/* A&N verified 2026-11-06: solid RED favourites heart, intentionally NOT bouncing.
   This rule follows an-ux-fixes.css and intentionally outranks its orange mobile SVG. */
@keyframes an-heart-hop{
 0%,53%,100%{transform:translateY(0) scale(1);filter:drop-shadow(0 0 2px #e10c40)}
 10%{transform:translateY(-6px) scale(1.14);filter:drop-shadow(0 0 9px #ff526f)}
 18%{transform:translateY(0) scale(.96);filter:drop-shadow(0 0 4px #ec2952)}
 26%{transform:translateY(-3px) scale(1.07);filter:drop-shadow(0 0 8px #ff526f)}
 34%{transform:translateY(0) scale(1)}
}
body .top .an-favorite-header svg{
 fill:#f4264a!important;stroke:#ff607c!important;stroke-width:1.3!important;
 animation:none!important;transform:none!important;
 transform-origin:50% 50%!important;
}
body .top .an-favorite-header{animation:none!important;transform:none!important}
@media(min-width:801px){
 body .top .an-favorite-header::before{
  color:#f4264a!important;
  animation:none!important;transform:none!important;
  transform-origin:center center!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body .top .an-favorite-header svg,
 body .top .an-favorite-header::before{animation:none!important}
}
.top .an-favorite-count{background:#f8af58!important;color:#150d09!important}
body.an-universities-mode #app .an-scholarship-category-panel{
 position:absolute;right:0;top:calc(100% + 9px);width:min(340px,calc(100vw - 40px));
 padding:13px;background:#151b25;border:1px solid #ad753b;border-radius:13px;z-index:90;
 box-shadow:0 20px 45px #000c;display:grid;gap:8px;
}
body.an-universities-mode #app .an-scholarship-category-panel[hidden]{display:none!important}
body.an-universities-mode #app .an-scholarship-category-panel h3{font-size:13px;color:#ffbc73;margin:0 0 2px}
body.an-universities-mode #app .an-scholarship-category-panel p{color:#c8ccd4;font-size:10px;line-height:1.4;margin:0}
body.an-universities-mode #app .an-scholarship-category-panel button{
 display:block;text-align:left;width:100%;min-height:34px;padding:8px 11px;border-radius:9px;
 border:1px solid #765737;background:#20242b;color:#f0f0f0;font-size:12px;font-weight:700;
}
body.an-universities-mode #app .an-scholarship-category-panel button[aria-pressed=true]{
 color:#1a1209;background:#ffb15b;border-color:#ffcf94;
}
body.an-universities-mode #app .an-scholarship-category-panel button:hover{border-color:#ffb15b}
body.an-universities-mode #app .an-scholarship-filter-note{
 font-size:11px;color:#ffd8a7;line-height:1.4;padding:6px 0;margin:0;
}
/* Restore actual height of cards: 117+ rows were compressed into orange lines */
body.an-universities-mode #app .university-catalogue #results{
 display:grid!important;grid-auto-rows:1fr!important;align-content:start!important;
 align-items:stretch!important;justify-items:stretch!important;
 row-gap:12px!important;column-gap:10px!important;min-height:0!important;
 overflow:visible!important;
}
body.an-universities-mode #app #results > .uni-card,
body.an-universities-mode #app #results > .card{
 display:flex!important;flex-direction:column!important;
 position:relative!important;min-width:0!important;
 min-height:280px!important;max-height:none!important;
 opacity:1!important;visibility:visible!important;overflow:hidden!important;
 border:1px solid #8a5b33!important;background:#141922!important;
}
body.an-universities-mode #app #results .uni-cover-wrap{
 position:relative!important;min-height:120px!important;height:140px!important;
 flex:0 0 140px!important;overflow:hidden!important;
}
body.an-universities-mode #app #results .uni-card .inside{
 display:flex!important;flex:1 0 auto!important;flex-direction:column!important;
 min-height:135px!important;height:auto!important;max-height:none!important;
 overflow:visible!important;padding:10px!important;
}
body.an-universities-mode #app #results .an-guide-links{margin-top:auto!important;display:grid!important;gap:5px!important}
body.an-universities-mode #app #results .an-guide-photo,
body.an-universities-mode #app #results .campus-cover{
 display:block!important;max-width:100%;object-fit:cover;
}
body.an-universities-mode #app #results .an-guide-identity{
 display:flex!important;visibility:visible!important;opacity:1!important;
}
/* Keep ONLY filter row and heading fixed; featured 4 scroll with cards. */
body.an-scholarships-mode #app .an-scholarship-directory{
 display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;
}
body.an-scholarships-mode #app .an-scholarship-filters{
 order:0!important;flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:25!important;
}
body.an-scholarships-mode #app .an-scholarship-content-scroll{
 order:1!important;flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;
 overflow-x:hidden!important;overscroll-behavior-y:contain!important;scrollbar-width:thin;
 padding:2px 0 20px!important;
}
body.an-scholarships-mode #app .an-scholarship-content-scroll .an-feature-grid{
 position:static!important;display:grid!important;flex:none!important;
}
body.an-scholarships-mode #app .an-scholarship-content-scroll .an-scholarship-scroll-region{
 height:auto!important;max-height:none!important;min-height:0!important;
 overflow:visible!important;display:block!important;flex:none!important;
}
body.an-scholarships-mode #app .an-scholarship-content-scroll .an-scholarship-rail{
 overflow:visible!important;
}
body.an-scholarships-mode #app .an-scholarship-content-scroll .an-scholarship-info{
 display:block!important;overflow:visible!important;max-height:none!important;
 height:auto!important;
}
/* Full-height founder portrait, with smaller flags grouped to the left. */
#app .an2-founder-quote{position:relative!important;overflow:hidden!important}
#app .an2-founder-quote .an2-quote-footer{position:relative!important}
#app .an2-founder-quote .an2-floating-flags{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:5px!important;max-width:250px!important;width:min(100%,250px)!important;
}
#app .an2-founder-quote .an2-floating-flags .an2-flag{
 width:29px!important;height:25px!important;font-size:18px!important;border-radius:5px!important;
}
#app .an2-founder-quote .an2-flags-journey{max-width:255px!important;min-width:0!important}
#app .an2-founder-quote .an2-founder-person img{
 -webkit-mask-image:none!important;mask-image:none!important;
 object-fit:contain!important;object-position:right bottom!important;
}
@media(max-width:800px){
 #app .an2-founder-quote .an2-quote-footer{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,49%)!important;
  min-height:325px!important;align-items:stretch!important;
 }
 #app .an2-founder-quote .an2-flags-journey{max-width:180px!important;align-self:start!important;gap:8px!important}
 #app .an2-founder-quote .an2-floating-flags{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:145px!important;
 }
 #app .an2-founder-quote .an2-floating-flags .an2-flag{width:29px!important;height:24px!important;font-size:17px!important}
 #app .an2-founder-quote .an2-founder-person{
  height:340px!important;min-height:340px!important;
  overflow:visible!important;align-self:stretch!important;position:relative!important;
  width:100%!important;max-width:none!important;margin:0!important;
 }
 #app .an2-founder-quote .an2-founder-person img{
  position:absolute!important;right:-6px!important;top:-10px!important;bottom:0!important;
  height:350px!important;width:138%!important;max-height:none!important;max-width:none!important;
  object-fit:contain!important;object-position:right bottom!important;
  transform:none!important;
 }
}
@media(min-width:801px){
 #app .an2-founder-quote .an2-quote-footer{padding-right:clamp(230px,28vw,370px)!important}
 #app .an2-founder-quote .an2-founder-person{
  position:absolute!important;right:0!important;top:0!important;bottom:0!important;
  width:clamp(230px,28vw,370px)!important;height:100%!important;
 }
 #app .an2-founder-quote .an2-founder-person img{
  position:absolute!important;right:0!important;top:0!important;bottom:0!important;
  height:100%!important;width:100%!important;object-fit:contain!important;object-position:right bottom!important;
 }
}
/* Scholarship details: visibly structured eligibility, documents and help. */
#app .an-scholarship-detail .an-specific-guide,
#app .an-scholarship-detail .an-scholarship-help{
 padding:19px;border-radius:16px;border:1px solid #a96a30;
 background:linear-gradient(140deg,#1b2430,#141821);
 margin:20px 0;
}
#app .an-scholarship-detail .an-specific-guide h2,
#app .an-scholarship-detail .an-scholarship-help h2{color:#ffb65c;font-size:clamp(19px,2.6vw,26px)}
#app .an-scholarship-detail .an-specific-guide .an-specific-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#app .an-scholarship-detail .an-specific-guide article{
 border:1px solid #504334;background:#101721;padding:13px;border-radius:12px;
}
#app .an-scholarship-detail .an-specific-guide article h3{color:#79d9e4;margin:0 0 8px;font-size:14px}
#app .an-scholarship-detail .an-specific-guide article p,
#app .an-scholarship-detail .an-specific-guide article li{
 color:#e2e6ed;font-size:12px;line-height:1.6;
}
#app .an-scholarship-detail .an-specific-guide article ul{padding-left:18px;margin:6px 0}
#app .an-scholarship-detail .an-moi-badge{
 display:inline-flex;padding:5px 9px;border-radius:7px;font-size:11px;
 font-weight:900;border:1px solid #ff9a4a;background:#48250e;color:#fff;
}
#app .an-scholarship-detail .an-moi-badge.no{color:#fff;background:#582605;border-color:#ff7920}
#app .an-scholarship-detail .an-moi-badge.unknown{color:#fff;background:#302015;border-color:#c56c32}
#app .an-scholarship-detail .an-specific-guide a{color:#ffcb82;text-decoration:underline}
#app .an-scholarship-detail .an-scholarship-help form{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#app .an-scholarship-detail .an-scholarship-help label{color:#ead4bd;font-size:12px;display:grid;gap:4px}
#app .an-scholarship-detail .an-scholarship-help input,
#app .an-scholarship-detail .an-scholarship-help textarea{
 color:#fff;min-width:0;max-width:100%;padding:11px;background:#0c1420;
 border:1px solid #785c40;border-radius:9px;font-size:13px;
}
#app .an-scholarship-detail .an-scholarship-help .an-help-full{grid-column:1/-1}
#app .an-scholarship-detail .an-scholarship-help button{
 background:#ef8c24;color:#150e07;border:0;border-radius:9px;padding:12px 14px;
 font-weight:900;cursor:pointer;
}
#app .an-scholarship-detail .an-scholarship-help .an-help-disclaimer{font-size:11px;color:#aeb8c4;line-height:1.55}
@media(max-width:700px){
 #app .an-scholarship-detail .an-specific-guide .an-specific-grid,
 #app .an-scholarship-detail .an-scholarship-help form{grid-template-columns:1fr}
 #app .an-scholarship-detail .an-specific-guide,
 #app .an-scholarship-detail .an-scholarship-help{padding:13px;margin:13px 0}
}

body.an-universities-mode #app .an-university-directory-bar .an-directory-fav{display:none!important}
/* The header Favorites link remains red and animates internally, without moving the navigation box. */
.top .an-favorite-header:hover{transform:none!important}
body.an-universities-mode #app #results .an-university-moi-badge,
body.an-favorites-mode #app .an-university-moi-badge,
#app .an-university-moi-badge{
 display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;
 border-radius:7px;border:1px solid #2f9270;background:#123528;color:#b4f4cf!important;
 font-weight:900;font-size:9px;line-height:1.25;padding:6px 7px;letter-spacing:.2px;
 text-decoration:none;white-space:normal;margin:5px 0;
}
#app .an-university-moi-badge.no{border-color:#b95b59;background:#351619;color:#ffbdb9!important}
#app .an-university-moi-explainer{
 max-width:1220px;margin:8px auto 13px;padding:10px 14px;
 border:1px solid #80734d;background:#121e21;border-radius:11px;
}
#app .an-university-moi-explainer p{margin:6px 0;color:#d9e1e1;font-size:12px}
#app .an-moi-partners-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:12px;margin:15px 0;
}
#app .an-moi-partners-grid>.uni-card{
 display:flex;flex-direction:column;min-height:260px;border-radius:12px;
 background:#141923;border:1px solid #855e3d;overflow:hidden;
}
#app .an-moi-partners-grid .uni-cover-wrap{min-height:124px;height:124px;position:relative}
#app .an-moi-partners-grid .inside{
 display:flex;flex:1;flex-direction:column;min-height:145px;padding:11px!important;
}
#app .an-moi-partners-grid .inside .an-guide-links{margin-top:auto}
@media(max-width:750px){
 #app .an-moi-partners-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Founder portrait occupies the complete flag/message section, not a small
   220px box; transparent figure may overlay empty right-side space only. */
@media(max-width:800px){
 #app .an2-founder-quote .an2-quote-footer{
  position:relative!important;min-height:390px!important;
  padding-right:0!important;overflow:hidden!important;
  display:block!important;
 }
 #app .an2-founder-quote .an2-flags-journey{
  position:relative!important;z-index:2!important;
  width:46%!important;max-width:172px!important;
  padding:0 3px 0 0!important;min-height:360px!important;
  align-items:flex-start!important;justify-content:flex-start!important;
 }
 #app .an2-founder-quote .an2-founder-person{
  display:block!important;position:absolute!important;z-index:1!important;
  top:0!important;bottom:0!important;left:auto!important;right:-4px!important;
  height:100%!important;min-height:100%!important;width:57%!important;
  margin:0!important;overflow:visible!important;
 }
 #app .an2-founder-quote .an2-founder-person img{
  position:absolute!important;top:0!important;bottom:0!important;
  right:-8px!important;left:auto!important;height:100%!important;width:auto!important;
  min-width:0!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:right bottom!important;
 }
}

/* Final Android/Desktop QA: compact flag cluster clear of Nusrat's portrait.
   Bangladesh origin remains visibly larger than the other destination flags. */
body .top .an-favorite-header svg,
body .top .an-favorite-header svg path{
 fill:#f4264a!important;
 stroke:#f4264a!important;
}
#app .an2-founder-quote .an2-floating-flags .an2-flag-unit--home .an2-flag{
 width:30px!important;height:21px!important;min-width:0!important;max-width:30px!important;
 font-size:18px!important;animation:none!important;transform:none!important;
}
#app .an2-founder-quote .an2-floating-flags .an2-flag-unit:not(.an2-flag-unit--home) .an2-flag{
 width:24px!important;height:17px!important;min-width:0!important;max-width:24px!important;
 font-size:15px!important;animation:none!important;transform:none!important;
}
#app .an2-founder-quote .an2-floating-flags .an2-flag-unit--home{
 grid-column:span 1!important;max-width:40px!important;min-height:26px!important;
 height:26px!important;
}
