* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a1628;
  --royal: #1b3a8c;
  --gold: #f5a623;
  --amber: #e8852a;

  --teal: #3a8a85;
  --green: #1db07a;
  --offwhite: #f8f9fc;
  --charcoal: #0d0d0d;
  --gray: #6b7280;
  --white: #fff;

  --font-display: "Playfair Display", serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html,body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: #fff;
}
a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

/* =============================================
 NAVIGATION
============================================= */
#nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 1000;
height: 100px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 clamp(16px, 2vw, 48px);
transition: background 0.4s, box-shadow 0.4s;
background-color: transparent;
}

#nav.scrolled {
background: var(--navy);
box-shadow: 0 2px 24px rgba(0,0,0,0.4);
border-bottom: 1px solid white;
}

#nav.scrolled .hamburger span { background: #ffffff; }

.hamburger span {
width: 24px; height: 2px;
background: #ffffff;
border-radius: 2px;
transition: background 0.3s ease, transform 0.3s ease;
}

.nav-logo-wrap {
background: #fff;
border-radius: 8px;
padding: 5px 0;
display: flex;
align-items: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-logo-wrap img { height: 44px; width: auto; }

.nav-logo-wrap .logo-text {
font-family: var(--font-heading);
font-weight: 800;
font-size: 15px;
color: var(--navy);
letter-spacing: -0.02em;
}

.nav-links {
display: flex;
align-items: center;
gap: 10px;
}

.nav-links a {
font-size: 14px;
font-weight: 500;
color: rgba(255,255,255,0.85);
padding: 7px 10px;
border-radius: 6px;
transition: color 0.2s, background 0.2s;
white-space: nowrap;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-apply {
background: var(--gold);
color: var(--navy);
font-size: 13px;
font-weight: 700;
padding: 10px 15px;
border-radius: 7px;
transition: transform 0.2s, box-shadow 0.2s;
white-space: nowrap;
}

.btn-apply:hover {
transform: scale(1.04);
box-shadow: 0 4px 20px rgba(245,166,35,0.5);
}

.hamburger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
padding: 4px;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DRAWER */
#drawer {
position: fixed;
top: 0; right: 0;
width: min(340px, 90vw);
height: 100vh;
background: var(--navy);
z-index: 1100;
padding: 20px 0 40px;
display: flex;
flex-direction: column;
overflow-y: auto;
transform: translateX(100%);
transition: transform 0.45s ease-in-out;
will-change: transform;
}

#drawer.open { transform: translateX(0); }

#drawer-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
z-index: 1050;
opacity: 0;
visibility: hidden;
transition: opacity 0.35s ease, visibility 0.35s ease;
}

#drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer-link {
font-size: 15px;
font-weight: 500;
color: rgba(255,255,255,0.85);
padding: 12px 28px;
display: block;
border-bottom: 1px solid rgba(255,255,255,0.06);
transition: color 0.2s, background 0.2s;
}

.drawer-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

.drawer-cta { margin: 24px 28px 0; }

.drawer-cta a {
display: block;
text-align: center;
background: var(--gold);
color: var(--navy);
font-size: 14px;
font-weight: 700;
padding: 14px;
border-radius: 8px;
}
.nav-logo-pill{
  /* background:#ffffff; */
  border-radius:10px;
  padding:6px 16px;
  display:flex;
  align-items:center;
  /*box-shadow:0 2px 12px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.6);*/
}
.nav-logo-pill img{height:70px;width:auto;display:block;}
.scrolled > .nav-logo-pill img{height:60px;}
.scrolled > .nav-logo-pill.logo {
    height: 50px;
}

footer{background:var(--navy);padding:60px 40px 32px;color:rgba(255,255,255,.65);}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 2fr;gap:40px;margin-bottom:40px;}
.footer-brand .nav-logo{margin-bottom:16px;}
.footer-brand p{font-size:14px;line-height:1.7;max-width:280px;}
.footer-col h4{font-size:13px;font-weight:700;color:#fff;letter-spacing:.08em;text-transform:uppercase;margin-bottom:16px;}
.footer-col a{display:block;font-size:14px;color:rgba(255,255,255,.55);margin-bottom:10px;transition:color .2s;}
.footer-col a:hover{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;}
.footer-bottom a{color:rgba(255,255,255,.4);transition:color .2s;}
.footer-bottom a:hover{color:#fff;}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:580px){
  .footer-grid{grid-template-columns:1fr;}
  footer{padding:48px 20px 24px;}
}

/* Tablets */
@media (max-width: 900px) {
.nav-links { display: none; }
.hamburger { display: flex; }
.btn-apply { padding: 9px 14px !important; }
}
/* Phones */
@media (max-width: 600px) {
.btn-apply { display: none !important; }
.nav-logo-wrap img { height: 36px !important; }

}

@media (max-width: 640px) {
      #nav{ height: 90px; }
  }

#faculty {
  /*background: var(--navy);*/
  padding: 90px 40px;
  position: relative;
  overflow: hidden;
}

#faculty::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.14), transparent 65%);
  pointer-events: none;
}

.faculty-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faculty-showcase-only {
  display: block;
}

.faculty-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}

.faculty-showcase-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  color: #fff;
  line-height: 1.15;
  margin: 12px 0 0;
}

.faculty-showcase-header h2 span {
  color: var(--gold);
}

.faculty-intro {
  max-width: 680px;
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
}

.btn-all-faculty {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  padding: 11px 22px;
  border-radius: 8px;
  transition: border-color .25s, background .25s, transform .25s;
}

.btn-all-faculty:hover {
  border-color: var(--gold);
  background: rgba(255,170,0,.08);
  transform: translateY(-2px);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.faculty-grid-wide {
  width: 100%;
}

.faculty-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.faculty-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,170,0,.35);
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
}

.faculty-card-img {
  height: 350px;
  background: linear-gradient(135deg,#1B3A8C 0%,#0A1628 100%);
  position: relative;
  overflow: hidden;
}

.faculty-card-img img,
.faculty-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*opacity: .82;*/
  transition: transform .45s ease, opacity .3s ease;
}

.faculty-card:hover .faculty-card-img img,
.faculty-card:hover .faculty-card-img video {
  transform: scale(1.06);
  opacity: .95;
}

.faculty-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0) 35%,
    rgba(10,22,40,.82) 100%
  );
}

.faculty-logo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #1a1a1a;
  max-width: 80%;
}

.faculty-play-btn {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #071323;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .25s ease, background .25s ease;
}

.faculty-play-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

.faculty-card-body {
  padding: 16px 16px 18px;
}

.faculty-card-body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin-bottom: 6px;
}

.faculty-card-body p {
  font-size: 13px;
  /*color: rgba(255,255,255,.55);*/
  line-height: 1.5;
}

/* Optional: make first card slightly premium */
.faculty-feature-card {
  grid-row: span 1;
}

@media(max-width: 1024px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-showcase-header {
    align-items: flex-start;
  }
}

@media(max-width: 700px) {
  #faculty {
    padding: 65px 20px;
  }

  .faculty-showcase-header {
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faculty-card-img {
    height: 240px;
  }

  .btn-all-faculty {
    width: fit-content;
  }
}

/*****************Footer Social Links*******************/

.footer-social h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #fff;
    color: #000;
}


/**********************************************************************************/
/* ==========================================================
   GEMS B SCHOOL - FACULTY PAGE
   FINAL FACULTY CARD CSS
   Fixed Card Height + Internal Profile Scroll
========================================================== */


/* ==========================================================
   FACULTY GRID
========================================================== */

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


/* ==========================================================
   FACULTY CARD
========================================================== */

.faculty-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 540px;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(16, 33, 63, 0.06),
        0 2px 6px rgba(16, 33, 63, 0.03);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.faculty-card:hover {
    transform: translateY(-5px);

    border-color: #d9e1ec;

    box-shadow:
        0 18px 40px rgba(16, 33, 63, 0.12),
        0 5px 12px rgba(16, 33, 63, 0.05);
}


/* ==========================================================
   FACULTY IMAGE
========================================================== */

.faculty-card-img {
    position: relative;

    width: 100%;
    height: 300px;
    flex: 0 0 300px;

    overflow: hidden;

    background: #f0f3f7;
}


.faculty-card-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transition: transform 0.4s ease;
}


.faculty-card:hover .faculty-card-img img {
    transform: scale(1.025);
}


/* ==========================================================
   FACULTY CARD BODY
========================================================== */

.faculty-card-body {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    padding: 21px 22px 20px;

    background: #ffffff;

    overflow: hidden;
}


/* ==========================================================
   FACULTY NAME
========================================================== */

.faculty-card-body h4 {
    flex-shrink: 0;

    margin: 0 0 10px;

    color: #10213f;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}


/* ==========================================================
   SHORT PROFILE
   Visible before View Profile is clicked
========================================================== */

.faculty-short-profile {
    margin: 0;

    color: #667085;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;

    display: -webkit-box;

    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================================
   FULL PROFILE
   Hidden initially
========================================================== */

.faculty-full-profile {
    display: none;

    flex: 1;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    margin: 0;

    padding: 0 10px 0 0;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #b7c2d1 transparent;
}


/* FULL PROFILE PARAGRAPHS */

.faculty-full-profile p {
    margin: 0 0 13px;

    color: #667085;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}


.faculty-full-profile p:last-child {
    margin-bottom: 5px;
}


/* ==========================================================
   PROFILE OPEN STATE
========================================================== */

/*
   Short profile disappears.
   Full profile uses SAME available body space.
   Therefore card height NEVER increases.
*/

.faculty-card.profile-open .faculty-short-profile {
    display: none;
}


.faculty-card.profile-open .faculty-full-profile {
    display: block;

    flex: 1;
    min-height: 0;
}


/* ==========================================================
   INTERNAL SCROLLBAR
========================================================== */

.faculty-full-profile::-webkit-scrollbar {
    width: 5px;
}


.faculty-full-profile::-webkit-scrollbar-track {
    background: transparent;
}


.faculty-full-profile::-webkit-scrollbar-thumb {
    background: #c0c9d5;

    border-radius: 20px;
}


.faculty-full-profile::-webkit-scrollbar-thumb:hover {
    background: #174382;
}


/* ==========================================================
   VIEW PROFILE BUTTON
========================================================== */

.faculty-read-more {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;

    margin-top: auto;
    padding: 14px 0 0;

    background: #ffffff;

    border: 0;
    border-top: 1px solid #e8ecf2;

    color: #174382;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    transition: color 0.2s ease;
}


.faculty-read-more:hover {
    color: #2d8e89;
}


/* BUTTON ARROW */

.faculty-read-more span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 10px;

    font-size: 15px;
    line-height: 1;

    transition: transform 0.3s ease;
}


/* ROTATE ARROW WHEN OPEN */

.faculty-card.profile-open .faculty-read-more span {
    transform: rotate(180deg);
}


/* ==========================================================
   IMPORTANT:
   OPEN CARD MUST REMAIN SAME HEIGHT
========================================================== */

.faculty-card.profile-open {
    height: 570px;

    transform: none;
}


.faculty-card.profile-open:hover {
    transform: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }


    .faculty-card,
    .faculty-card.profile-open {
        height: 510px;
    }


    .faculty-card-img {
        height: 285px;
        flex-basis: 285px;
    }


    .faculty-card-body {
        padding: 20px;
    }


    .faculty-card-body h4 {
        font-size: 19px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .faculty-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .faculty-card,
    .faculty-card.profile-open {
        height: 525px;

        border-radius: 14px;
    }


    .faculty-card-img {
        height: 260px;
        flex-basis: 260px;
    }


    .faculty-card-body {
        padding: 18px 19px;
    }


    .faculty-card-body h4 {
        margin-bottom: 8px;

        font-size: 18px;
    }


    .faculty-short-profile,
    .faculty-full-profile p {
        font-size: 12.5px;
    }


    .faculty-read-more {
        padding-top: 12px;

        font-size: 12px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .faculty-card,
    .faculty-card.profile-open {
        height: 500px;
    }


    .faculty-card-img {
        height: 240px;
        flex-basis: 240px;
    }


    .faculty-card-body {
        padding: 17px;
    }


    .faculty-card-body h4 {
        font-size: 17px;
    }


    .faculty-short-profile {
        -webkit-line-clamp: 3;
    }


    .faculty-full-profile {
        padding-right: 7px;
    }

}
