:root {
        --ink: #172326;
        --muted: #607174;
        --teal: #0b7a75;
        --teal-dark: #075c59;
        --rose: #9e2f4d;
        --gold: #d69b2d;
        --mint: #e7f5f1;
        --cream: #fffaf0;
        --paper: #ffffff;
        --line: #dbe6e3;
        --shadow: 0 18px 50px rgba(23, 35, 38, 0.14);
        --radius: 8px;
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      [id] {
        scroll-margin-top: 70px;
      }

      body {
        margin: 0;
        overflow-x: hidden;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: var(--ink);
        background: #f8fbfa;
        line-height: 1.55;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      img {
        display: block;
        max-width: 100%;
      }

      .topbar {
        background: var(--teal-dark);
        color: #edf9f6;
        font-size: 0.88rem;
      }

      .topbar-inner,
      .nav-inner,
      .section-inner {
        width: min(1180px, calc(100% - clamp(28px, 5vw, 48px)));
        margin: 0 auto;
      }

      .topbar-inner {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
      }

      .topbar span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .site-header {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(255, 255, 255, 0.94);
        border-bottom: 1px solid rgba(219, 230, 227, 0.9);
        backdrop-filter: blur(16px);
      }

      .nav-inner {
        min-height: clamp(66px, 8vw, 76px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
      }

      .brand-mark {
        width: clamp(46px, 5.5vw, 54px);
        height: clamp(46px, 5.5vw, 54px);
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 10px 26px rgba(11, 122, 117, 0.18);
        flex: 0 0 auto;
      }

      .brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
      }

      .brand strong,
      .brand small {
        display: block;
      }

      .brand strong {
        font-size: clamp(0.9rem, 1.4vw, 1rem);
        line-height: 1.15;
      }

      .brand small {
        color: var(--muted);
        font-size: 0.78rem;
      }

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

      .nav-links a {
        padding: 10px 12px;
        border-radius: var(--radius);
        color: #2e4448;
        font-weight: 650;
        font-size: 0.92rem;
      }

      .nav-links a:hover,
      .nav-links a:focus-visible {
        background: var(--mint);
        outline: 0;
      }

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

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 0 16px;
        border: 1px solid transparent;
        border-radius: var(--radius);
        font-weight: 750;
        font-size: 0.94rem;
        cursor: pointer;
        transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
      }

      .btn:hover {
        transform: translateY(-1px);
      }

      .btn-primary {
        color: #fff;
        background: var(--rose);
        box-shadow: 0 12px 22px rgba(158, 47, 77, 0.24);
      }

      .btn-secondary {
        color: var(--teal-dark);
        background: #fff;
        border-color: var(--line);
      }

      .icon-btn {
        width: 42px;
        height: 42px;
        display: none;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--ink);
        background: #fff;
        cursor: pointer;
      }

      .hero {
        position: relative;
        min-height: 300px;
        overflow: hidden;
        color: #fff;
        background:
          linear-gradient(90deg, rgba(7, 43, 44, 0.9) 0%, rgba(7, 43, 44, 0.68) 43%, rgba(7, 43, 44, 0.15) 100%),
          url("photos/sections/about.jpg") center / cover,
          linear-gradient(135deg, #0b7a75, #9e2f4d);
      }

      .hero .section-inner {
        min-height: 300px;
        display: grid;
        align-items: center;
        padding:0 0 105px;
      }

      .hero-content {
        max-width: 710px;
      }

      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin: 0 0 18px;
        color: #fff2c8;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
        font-size: 0.78rem;
      }

      h1,
      h2,
      h3,
      p {
        margin-top: 0;
      }

      h1 {  
        max-width: 680px;
        margin-bottom: 18px;
        font-size: clamp(2.25rem, 7vw, 4.3rem);
        line-height: 1.02;
        letter-spacing: 0;
      }

      .hero-lede {
        max-width: 620px;
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.88);
        font-size: clamp(1rem, 2vw, 1.28rem);
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }

      .hero-stats {
        position: absolute;
        right: max(20px, calc((100vw - 1180px) / 2));
        bottom: 0;
        width: min(560px, calc(100% - 40px));
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #fff;
        color: var(--ink);
        border-radius: var(--radius) var(--radius) 0 0;
        box-shadow: var(--shadow);
      }

      .stat {
        min-height: 118px;
        padding: 22px;
        border-right: 1px solid var(--line);
      }

      .stat:last-child {
        border-right: 0;
      }

      .stat strong {
        display: block;
        color: var(--teal-dark);
        font-size: clamp(1.55rem, 3vw, 2.2rem);
        line-height: 1;
      }

      .stat span {
        display: block;
        margin-top: 8px;
        color: var(--muted);
        font-weight: 650;
        font-size: 0.88rem;
      }

      section {
        padding: 40px 0;
      }

      .section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 34px;
      }

      .section-head h2 {
        max-width: 640px;
        margin-bottom: 0;
        font-size: clamp(1.8rem, 4vw, 3.25rem);
        line-height: 1.05;
        letter-spacing: 0;
      }

      .section-head p {
        max-width: 410px;
        margin-bottom: 0;
        color: var(--muted);
      }

      .program-layout{
    display:grid;
    grid-template-columns:1fr 480px;
    gap:40px;
    align-items:center;
    min-height:360px;
}

.program-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
    height:100%;
}

.program-text h2{
    margin-bottom:20px;
    font-size:clamp(2rem,4vw,4rem);
    line-height:1.1;
}

.program-text p{
    max-width:520px;
    color:var(--muted);
    line-height:1.8;
}

.program-grid{
    display:flex;
    justify-content:flex-end;
}

.program-card{
    width:100%;
    max-width:480px;
}

      .card {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper);
        box-shadow: 0 12px 34px rgba(23, 35, 38, 0.06);
      }

      .program-card {
        min-height: 170px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding:15px;
        overflow: hidden;
        position: relative;
      }

      .program-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 6px;
        background: var(--teal);
      }

      .program-card:nth-child(2)::before {
        background: var(--rose);
      }

      .program-card:nth-child(3)::before {
        background: var(--gold);
      }

      .program-card h3 {
        margin-bottom: 8px;
        font-size: 1.15rem;
        line-height: 1.2;
      }

      .program-photo {
        min-height: 50px;
        margin: -15px -15px 12px;
        border-bottom: 1px solid var(--line);
      }

      .program-card p {
        color: var(--muted);
      }

      .program-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px;
      }

      .chip {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 999px;
        background: var(--mint);
        color: var(--teal-dark);
        font-weight: 750;
        font-size: 0.78rem;
      }

      .split {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 42px;
        align-items: center;
      }

      .image-panel {
        overflow: hidden;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }

      .image-panel img {
        width: 100%;
        min-height: 480px;
        object-fit: cover;
      }

      .image-panel .photo-slot {
         min-height: 350px;
      }

      .photo-slot {
        position: relative;
        min-height: clamp(220px, 32vw, 320px);
        overflow: hidden;
        background:
          var(--photo) center / cover,
          linear-gradient(135deg, #e7f5f1, #fffaf0);
      }

      .text-stack h2 {
        margin-bottom: 18px;
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.08;
      }

      .text-stack p {
        color: var(--muted);
        font-size: 1.02rem;
      }

      .feature-list {
        display: grid;
        gap: 12px;
        margin-top: 24px;
      }

      .feature {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 14px;
        align-items: start;
      }

      .feature-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: var(--radius);
        color: var(--teal-dark);
        background: var(--mint);
      }

      .feature h3 {
        margin-bottom: 2px;
        font-size: 1rem;
      }

      .feature p {
        margin-bottom: 0;
        font-size: 0.95rem;
      }

      .departments {
        background: var(--ink);
        color: #fff;
      }

      .departments .section-head p {
        color: rgba(255, 255, 255, 0.72);
      }

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

      .dept-card {
        min-height: 150px;
        padding: 22px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.06);
        overflow: hidden;
      }

      .dept-photo {
        min-height: 126px;
        margin: -22px -22px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      }

      .dept-card i {
        color: #ffe1a3;
      }

      .dept-card h3 {
        margin: 18px 0 0;
        font-size: 1.08rem;
      }
       
      #departments .section-head {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      }

      #departments .section-head p {
      max-width: 760px;
      margin: 0;
      }
      #departments .section-head {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      }

      #departments .section-head h2 {
      max-width: 900px;
      font-size: clamp(2.2rem, 4vw, 3.6rem);
      line-height: 1.08;
      margin: 0;
      }

      #departments .section-head p {
      max-width: 700px;
      margin: 0;
      color: var(--muted);
      }

      .facilities {
        background: #fff;
      }

      .facility-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 20px;
      }

      .facility-tabs {
        display: grid;
        gap: 8px;
        align-content: start;
      }

      .tab-button {
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--ink);
        background: #fff;
        font-weight: 750;
        text-align: left;
        cursor: pointer;
      }

      .tab-button.is-active {
        color: #fff;
        background: var(--teal);
        border-color: var(--teal);
      }

      .facility-panel {
        display: grid;
        grid-template-columns: 1fr 0.86fr;
        min-height: clamp(300px, 44vw, 430px);
        overflow: hidden;
      }


      .facility-copy {
        padding: 30px;
      }

      #facilities{
        padding:5px 0;
      }

      .facility-copy h3 {
        margin-bottom: 14px;
        font-size: 1.7rem;
      }

      .facility-copy p {
        color: var(--muted);
      }

      .facility-copy ul {
        margin: 22px 0 0;
        padding-left: 20px;
        color: #344c50;
      }
      #facilities .section-head h2 {
        max-width: 100%;
        font-size: clamp(1.8rem,4vw,2.5rem);
        white-space: normal;
      }

      .facility-image {
        position: relative;
        min-height: 100%;
        background:
          var(--photo) center / cover,
          linear-gradient(135deg, #e7f5f1, #fffaf0);
      }

      .life {
        position: relative;
        background:
          linear-gradient(90deg, rgba(255, 250, 240, 0.95), rgba(231, 245, 241, 0.86)),
          url("photos/sections/campus-life.jpeg") center / cover,
          linear-gradient(135deg, #fffaf0, #e7f5f1);
      }

      .life-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
      }

      .life-card {
        min-height: 188px;
        padding: 22px;
      }

      .life-card h3 {
        margin: 18px 0 8px;
      }

      .life-card p {
        margin: 0;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .admissions {
        padding: 0;
        background: var(--paper);
      }

      .admissions-band {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 28px;
        align-items: center;
        padding: 42px;
        border-radius: var(--radius);
        color: #fff;
        background:
          linear-gradient(135deg, rgba(7, 92, 89, 0.96), rgba(158, 47, 77, 0.9)),
          url("photos/sections/admissions/admissions.jpg") center / cover,
          linear-gradient(135deg, var(--teal-dark), var(--rose));
      }

      .admissions-band h2 {
        margin-bottom: 10px;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
      }

      .admissions-band p {
        max-width: 650px;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.8);
      }

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

      .notice {
        padding: 20px;
      }

      .notice time {
        display: inline-flex;
        margin-bottom: 14px;
        color: var(--rose);
        font-weight: 800;
        font-size: 0.82rem;
      }

      .notice h3 {
        margin-bottom: 10px;
        font-size: 1.08rem;
      }

      .notice p {
        margin-bottom: 0;
        color: var(--muted);
        font-size: 0.94rem;
      }

      .contact {
        background: #fff;
      }

.contact-card{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:30px;
    align-items:center;
    padding:30px;
}
      .contact-row {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 14px;
        margin-top: 18px;
      }

      .contact-row p {
        margin: 0;
        color: var(--muted);
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
      }
.principal-left{
    display:flex;
    justify-content:center;
    align-items:center;
}

.contact-right{
    width:100%;
}

#contact .section-head h2{
    max-width:100%;
    white-space:nowrap;
}

.principal-image{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

      .map-card h3 {
        font-size: 2rem;
        margin-bottom: 8px;
      }

      .map-card p {
        max-width: 520px;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.84);
      }

      footer {
        padding: 44px 0;
        background: var(--ink);
        color: rgba(255, 255, 255, 0.72);
      }

      .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr repeat(3, 1fr);
        gap: 28px;
      }

      footer h3,
      footer h4 {
        color: #fff;
        margin-bottom: 12px;
      }

      footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      footer li {
        margin: 8px 0;
      }

      .footer-bottom {
        margin-top: 32px;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
        font-size: 0.9rem;
      }

      [data-animate] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 520ms ease, transform 520ms ease;
      }

      [data-animate].in-view {
        opacity: 1;
        transform: none;
      }

      @media (max-width: 980px) {
        .icon-btn {
          display: grid;
        }

        .nav-links {
          position: absolute;
          left: clamp(14px, 4vw, 24px);
          right: clamp(14px, 4vw, 24px);
          top: calc(100% + 8px);
          display: none;
          flex-direction: column;
          align-items: stretch;
          padding: 12px;
          border: 1px solid var(--line);
          border-radius: var(--radius);
          background: #fff;
          box-shadow: var(--shadow);
        }

        .nav-links.is-open {
          display: flex;
        }

        .nav-actions .btn-primary {
          display: none;
        }

        .hero-stats {
          position: static;
          width: min(1180px, calc(100% - clamp(28px, 5vw, 48px)));
          margin: -48px auto 0;
        }

        .program-grid,
        .dept-grid,
        .news-grid {
          grid-template-columns: 1fr 1fr;
        }

        .split,
        .facility-layout,
        .facility-panel,
        .contact-grid,
        .footer-grid {
          grid-template-columns: 1fr;
        }

        .life-grid {
          grid-template-columns: 1fr 1fr;
        }

        .facility-image {
          min-height: 300px;
        }
        .program-layout{
          grid-template-columns:1fr;
          gap:30px;
        }

        .program-grid{
            justify-content:center;
        }
      }

      @media (max-width: 760px) {
        .topbar {
          display: none;
        }

        [id] {
          scroll-margin-top: 86px;
        }

        .site-header {
          top: 0;
        }

        .nav-inner {
          min-height: 66px;
          gap: 12px;
        }

        .brand {
          gap: 10px;
        }

        .brand strong {
          max-width: 190px;
        }

        .brand small {
          font-size: 0.72rem;
        }

        .hero,
        .hero .section-inner {
          min-height: clamp(520px, 74svh, 640px);
        }

        .hero .section-inner {
          padding-bottom: 82px;
        }

        .hero-stats {
          margin-top: -34px;
        }

        .stat {
          padding: 18px;
        }

        .facility-tabs {
          display: flex;
          overflow-x: auto;
          padding-bottom: 6px;
          scroll-snap-type: x proximity;
        }

        .tab-button {
          flex: 0 0 auto;
          min-width: 178px;
          scroll-snap-align: start;
        }

        .facility-copy {
          padding: 28px;
        }
      }

      @media (max-width: 680px) {
        .topbar-inner {
          align-items: flex-start;
          flex-direction: column;
          padding: 10px 0;
        }

        .brand {
          min-width: 0;
        }

        .hero-stats,
        .program-grid,
        .dept-grid,
        .life-grid,
        .news-grid {
          grid-template-columns: 1fr;
        }

        .stat {
          min-height: auto;
          border-right: 0;
          border-bottom: 1px solid var(--line);
        }

        .stat:last-child {
          border-bottom: 0;
        }

        .section-head,
        .admissions-band,
        .footer-bottom {
          align-items: start;
          flex-direction: column;
          grid-template-columns: 1fr;
        }

        section {
          padding: 54px 0;
        }

        .image-panel .photo-slot {
          min-height: 330px;
        }

        .facility-copy,
        .admissions-band,
        .contact-card,
        .map-card {
          padding: 24px;
        }
      }

.gallery-header {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(7,43,44,.72), rgba(7,43,44,.72)),
        url("photos/sections/about/about1.jpg") center/cover no-repeat;
}      

.gallery-overlay{
    position:absolute;
    inset:0;
    backdrop-filter:blur(2px);
}

.gallery-header .section-inner {
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - clamp(28px, 5vw, 48px)));
    margin: 0 auto;
    min-height: 420px;
    z-index: 2;
}

.gallery-content {
    max-width: 650px;
    text-align: left;
}

.gallery-badge{
    display:inline-block;
    padding:8px 18px;
    margin-bottom:22px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.gallery-header h1{
    color:#fff;
    margin:0 0 18px;
    font-size:clamp(2.6rem,5vw,4.2rem);
    line-height:1.05;
}

.gallery-header p{
    max-width:640px;
    margin:0 auto;
    color:rgba(255,255,255,.9);
    font-size:1.1rem;
}

.scroll-indicator{
    margin-top:30px;
    color:#fff;
    font-weight:600;
    opacity:.9;
    margin-left: 5px;
}

.gallery-section{
    width:min(1180px,calc(100% - 48px));
    margin:40px auto 60px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
}

.gallery-item{
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    box-shadow:0 20px 45px rgba(23,35,38,.12);
    transition:transform .35s ease,box-shadow .35s ease;
}

.gallery-item:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 60px rgba(23,35,38,.18);
}

.gallery-item img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:transform .45s ease;
}

.gallery-item:hover img{
    transform:scale(1.08);
}

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(8px);
    z-index:9999;
}

.lightbox.show{display:flex;}

.lightbox img{
    max-width:92%;
    max-height:92%;
    border-radius:12px;
}

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

@media (max-width: 680px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }
}


@media (max-width: 768px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head p {
        max-width: 100%;
    }

    .contact-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .principal-left {
        margin-bottom: 20px;
    }

    .principal-image {
        margin: auto;
    }

    .contact-row {
        grid-template-columns: 32px 1fr;
        text-align: left;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .life-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .dept-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .facility-layout,
    .facility-panel,
    .split,
    .program-layout {
        grid-template-columns: 1fr;
    }

    iframe,
    table {
        max-width: 100%;
    }
}
@media (max-width: 768px) {

    .gallery-header .section-inner {
        justify-content: flex-start;
    }

    .gallery-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        text-align: left;
    }

    .gallery-header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .gallery-header p {
        max-width: 100%;
        margin: 0;
    }

    .scroll-indicator {
        margin-left: 0;
        transform: none;
    }
}
