/* ============================================================
   Shilpi's Academy — Faculty tabs
   Everything is scoped to .sa-fd so it can't clash with the theme.
   Font: Poppins (already loaded on the site)
   ============================================================ */
.sa-fd{
  --o:#F5821F; --od:#D96C08; --oxd:#B55603; --ol:#FFF3E6;
  --n:#1B4A8B; --nxd:#0B2347; --mut:#5B6678; --line:#E8EBF2;
  --go:linear-gradient(135deg,#F7941E 0%,#F05A22 100%);
  --gn:linear-gradient(135deg,#1B4A8B 0%,#0B2347 100%);
  font-family:'Poppins',sans-serif; color:#17212F; line-height:1.5;
  padding:72px 0; -webkit-font-smoothing:antialiased;
}
.sa-fd *,.sa-fd *::before,.sa-fd *::after{box-sizing:border-box}
.sa-fd-wrap{max-width:1248px; margin:0 auto; padding:0 24px}

/* ---------- Heading ---------- */
.sa-fd-head{text-align:center; margin-bottom:40px}
.sa-fd .sa-fd-eb{font-size:12.5px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--od)}
.sa-fd .sa-fd-title{margin:10px 0 0; padding:0; font-family:'Poppins',sans-serif; font-size:38px; font-weight:800; line-height:1.2; letter-spacing:0; text-transform:none; text-align:center; color:var(--nxd)}
.sa-fd .sa-fd-title em{font-style:normal; color:var(--o)}

/* ---------- Tabs ---------- */
.sa-fd-tabs{display:grid; grid-template-columns:repeat(var(--fd-n,4),minmax(0,1fr)); gap:20px; margin-bottom:26px}
.sa-fd .sa-fd-tab{position:relative; display:block; background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px 12px 18px; text-align:center; cursor:pointer; outline:0; transition:background .25s, box-shadow .25s, transform .25s}
.sa-fd .sa-fd-tab:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(14,42,82,.12)}
.sa-fd .sa-fd-tab:focus-visible{outline:3px solid var(--o); outline-offset:2px}
.sa-fd .sa-fd-tab.is-active{background:var(--gn); border-color:transparent; box-shadow:0 18px 40px rgba(14,42,82,.28); transform:none}
.sa-fd .sa-fd-tab.is-active::after{content:""; position:absolute; left:50%; bottom:-11px; width:22px; height:22px; background:#0F2E58; border-radius:4px; transform:translateX(-50%) rotate(45deg)}
.sa-fd-av{position:relative; display:block; width:84px; height:84px; margin:0 auto 12px; border-radius:50%; overflow:hidden; border:4px solid var(--ol); background:linear-gradient(135deg,var(--c1),var(--c2))}
.sa-fd-tab.is-active .sa-fd-av{border-color:var(--o)}
.sa-fd-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 20%; display:block}
.sa-fd .sa-fd-tn{display:block; font-size:14.5px; font-weight:700; line-height:1.35; color:var(--nxd)}
.sa-fd .sa-fd-tr{display:block; margin-top:3px; font-size:11.5px; font-weight:500; color:var(--mut)}
.sa-fd .sa-fd-tab.is-active .sa-fd-tn{color:#fff}
.sa-fd .sa-fd-tab.is-active .sa-fd-tr{color:#FFB46B}

/* ---------- Photo fallback: initials on the brand colour (shows if a photo URL is missing) ---------- */
.sa-fd .is-ph img{display:none}
.sa-fd-av.is-ph::before,.sa-fd-ph.is-ph::before{content:attr(data-i); position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:26px}
.sa-fd-ph.is-ph::before{font-size:84px}

/* ---------- Panels (only the active teacher is shown) ---------- */
.sa-fd-panels{background:#fff; border:1px solid var(--line); border-radius:28px; box-shadow:0 24px 60px rgba(14,42,82,.10)}
.sa-fd .sa-fd-panel{display:none; grid-template-columns:340px minmax(0,1fr); align-content:start; gap:44px; padding:34px}
.sa-fd .sa-fd-panel.is-active{display:grid; animation:sa-fd-in .3s ease}
.sa-fd-ph{position:relative; align-self:start; height:400px; border-radius:22px; overflow:hidden; background:linear-gradient(135deg,var(--c1),var(--c2))}
.sa-fd-ph img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 20%; display:block}
.sa-fd .sa-fd-tag{position:absolute; left:16px; bottom:16px; z-index:2; background:var(--go); color:#fff; font-size:11px; font-weight:800; letter-spacing:1px; border-radius:999px; padding:7px 14px}
.sa-fd .sa-fd-pill{display:inline-flex; background:var(--ol); color:var(--oxd); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; border-radius:999px; padding:6px 14px}
.sa-fd .sa-fd-name{margin:16px 0 14px; padding:0; font-family:'Poppins',sans-serif; font-size:34px; font-weight:800; line-height:1.2; letter-spacing:0; text-transform:none; text-align:left; color:var(--nxd)}
.sa-fd-chips{display:flex; flex-wrap:wrap; gap:8px}
.sa-fd .sa-fd-chip{background:#EEF3FB; color:var(--n); font-size:12.5px; font-weight:700; border-radius:10px; padding:7px 14px}
.sa-fd-txt{margin-top:22px}
.sa-fd .sa-fd-txt p{margin:0 0 12px; font-family:'Poppins',sans-serif; font-weight:400; font-size:15.5px; line-height:1.85; color:var(--mut); text-align:left}
.sa-fd .sa-fd-txt p:last-child{margin-bottom:0}
.sa-fd a.sa-fd-cta,.sa-fd a.sa-fd-cta:visited{display:inline-flex; margin-top:24px; background:var(--go); color:#fff; font-size:14.5px; font-weight:700; line-height:1.2; text-decoration:none; border-radius:999px; padding:13px 26px; box-shadow:0 12px 26px rgba(240,90,34,.35); transition:transform .2s, box-shadow .2s}
.sa-fd a.sa-fd-cta:hover{color:#fff; transform:translateY(-2px); box-shadow:0 16px 30px rgba(240,90,34,.45)}

/* ---------- Arrows + dots ---------- */
.sa-fd-nav{display:flex; justify-content:center; align-items:center; gap:18px; margin-top:26px}
.sa-fd .sa-fd-arrow{display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:#fff; border:2px solid var(--line); color:var(--n); font-size:18px; font-weight:800; line-height:1; cursor:pointer; outline:0; transition:background .2s, color .2s, border-color .2s}
.sa-fd .sa-fd-arrow:hover{background:var(--n); border-color:var(--n); color:#fff}
.sa-fd .sa-fd-arrow:focus-visible,.sa-fd .sa-fd-dot:focus-visible{outline:3px solid var(--o); outline-offset:2px}
.sa-fd-dots{display:flex; align-items:center; gap:8px}
.sa-fd .sa-fd-dot{display:block; width:9px; height:9px; border-radius:9px; background:#D5DCE8; cursor:pointer; outline:0; transition:width .25s, background .25s}
.sa-fd .sa-fd-dot.is-active{width:26px; background:var(--o)}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1100px){
  .sa-fd-tabs{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .sa-fd .sa-fd-panel{grid-template-columns:280px minmax(0,1fr); gap:30px}
  .sa-fd-ph{height:340px}
  .sa-fd .sa-fd-name{font-size:30px}
}
@media (max-width:767px){
  .sa-fd{padding:44px 0}
  .sa-fd-wrap{padding:0 16px}
  .sa-fd-head{margin-bottom:26px}
  .sa-fd .sa-fd-eb{font-size:11px}
  .sa-fd .sa-fd-title{font-size:26px}

  /* tabs become a swipeable row */
  .sa-fd-tabs{display:flex; gap:12px; margin:0 -16px 20px; padding:8px 16px 22px; margin-bottom:0; overflow-x:auto; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; scrollbar-width:none}
  .sa-fd-tabs::-webkit-scrollbar{display:none}
  .sa-fd .sa-fd-tab{flex:0 0 118px; scroll-snap-align:center; padding:14px 8px 12px; border-radius:16px}
  .sa-fd .sa-fd-tab:hover{transform:none}
  .sa-fd .sa-fd-tab.is-active::after{display:none}
  .sa-fd-av{width:60px; height:60px; margin-bottom:8px; border-width:3px}
  .sa-fd-av.is-ph::before{font-size:20px}
  .sa-fd .sa-fd-tn{font-size:12px}
  .sa-fd .sa-fd-tr{font-size:10px}

  .sa-fd-panels{border-radius:22px}
  .sa-fd .sa-fd-panel{grid-template-columns:minmax(0,1fr); gap:20px; padding:16px 16px 24px}
  .sa-fd-ph{height:290px; border-radius:18px}
  .sa-fd-ph.is-ph::before{font-size:64px}
  .sa-fd .sa-fd-name{font-size:24px; margin:12px 0 12px}
  .sa-fd .sa-fd-chip{font-size:11.5px; padding:6px 12px}
  .sa-fd-txt{margin-top:16px}
  .sa-fd .sa-fd-txt p{font-size:14px; line-height:1.8}
  .sa-fd a.sa-fd-cta{width:100%; justify-content:center; margin-top:20px}
  .sa-fd-nav{margin-top:20px}
}
@keyframes sa-fd-in{from{opacity:0} to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .sa-fd *{transition:none!important; animation:none!important}
}
