:root {
    --brand-blue: #0b4ea2;
    --brand-blue-dark: #073a79;
    --brand-red: #ad2b34;
    --accent: #d79a16;
    --ink: #172033;
    --text: #334155;
    --muted: #64748b;
    --line: #dbe4f0;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --surface-tint: #eef5fb;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.12);
    --radius: 8px;
    --container: min(1180px, calc(100% - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--surface-soft);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.nav-locked {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

p {
    color: var(--text);
}

.container,
.nav-container,
.footer-grid,
.hero-container {
    width: var(--container);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.logo-top {
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    border-bottom: 1px solid rgba(11, 78, 162, 0.08);
}

.logo-layout {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 10px;
}

.logo-left,
.logo-right {
    display: flex;
    align-items: center;
}

.logo-left img {
    width: 210px;
    max-height: 76px;
    object-fit: contain;
}

.logo-right img {
    width: 420px;
    max-height: 82px;
    object-fit: contain;
}

.glass-navbar {
    background: var(--brand-blue);
}

.nav-container {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.logo img {
    width: 42px;
    height: 42px;
    padding: 4px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.22s ease, color 0.22s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffd369;
}

.dropdown-menu,
.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(11, 78, 162, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu,
.dropdown-submenu:hover > .submenu,
.dropdown-submenu.open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li,
.submenu li {
    position: relative;
}

.dropdown-menu a,
.submenu a {
    display: block;
    padding: 11px 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.submenu a:hover {
    background: var(--surface-tint);
    color: var(--brand-blue);
}

.dropdown-submenu .submenu {
    top: 0;
    left: calc(100% + 8px);
}

/* Hero */
.hero {
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    isolation: isolate;
}

.hero-slider,
.slide {
    position: absolute;
    inset: 0;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1s ease, transform 5s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 35, 72, 0.92), rgba(11, 78, 162, 0.72) 54%, rgba(173, 43, 52, 0.42)),
        linear-gradient(180deg, rgba(8, 18, 36, 0.1), rgba(8, 18, 36, 0.5));
}

.admission-banner {
    position: absolute;
    top: 22px;
    right: max(24px, calc((100vw - 1180px) / 2));
    z-index: 2;
    padding: 9px 16px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--brand-red);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(173, 43, 52, 0.28);
    animation: softPulse 2.8s ease-in-out infinite;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 48px;
    padding-block: 110px 78px;
}

.hero-content h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 58px;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-content p {
    max-width: 670px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.btn,
.btn-primary,
.btn-secondary,
.btn-light,
.course-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.course-btn {
    color: #ffffff;
    background: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(11, 78, 162, 0.22);
}

.btn-secondary,
.btn-light {
    color: var(--brand-blue-dark);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.hero .btn-primary {
    color: var(--ink);
    background: #ffd369;
}

.hero .btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.hero-card h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.hero-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.hero-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd369;
}

/* Shared Layout */
.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background: #ffffff;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-title span,
.section-tag,
.course-tag,
.course-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--brand-blue);
    background: rgba(11, 78, 162, 0.08);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-title h2,
.about-text h2,
.founder-content h2 {
    color: var(--ink);
    font-size: 38px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
}

.section-title p {
    margin-top: 10px;
}

.grid-2,
.grid-3,
.programme-grid,
.facility-grid,
.curriculum-grid,
.career-grid,
.achievement-grid,
.admin-grid,
.vision-grid,
.stats-grid,
.badges-section,
.counters-section,
.infra-grid {
    display: grid;
    gap: 22px;
}

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

.grid-3,
.facility-grid,
.admin-grid,
.infra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.curriculum-grid,
.achievement-grid,
.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.programme-card,
.facility-card,
.curriculum-card,
.overview-card,
.eligibility-card,
.vision-card,
.achievement-card,
.admin-card,
.counter-box,
.badge-card,
.stat-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card,
.programme-card,
.facility-card,
.curriculum-card,
.overview-card,
.eligibility-card,
.vision-card,
.achievement-card,
.stat-card {
    padding: 28px;
}

.card::before,
.programme-card::before,
.facility-card::before,
.curriculum-card::before,
.overview-card::before,
.eligibility-card::before,
.vision-card::before,
.achievement-card::before,
.admin-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red), var(--accent));
}

.card:hover,
.programme-card:hover,
.facility-card:hover,
.curriculum-card:hover,
.vision-card:hover,
.achievement-card:hover,
.admin-card:hover,
.counter-box:hover,
.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 78, 162, 0.18);
}

.card h3,
.programme-card h3,
.facility-card h3,
.curriculum-card h3,
.overview-card h3,
.eligibility-card h3,
.vision-card h3,
.achievement-card h3,
.admin-content h3 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
}

.card p,
.programme-card p,
.facility-card p,
.curriculum-card li,
.overview-card p,
.eligibility-card p,
.vision-card p,
.achievement-card p,
.admin-content p {
    margin-top: 12px;
}

.icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--brand-blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-box {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.contact-box ul,
.eligibility-card ul,
.curriculum-card ul,
.card ul {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.contact-box li,
.eligibility-card li,
.curriculum-card li,
.card li {
    position: relative;
    padding-left: 20px;
}

.contact-box li::before,
.eligibility-card li::before,
.curriculum-card li::before,
.card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-red);
}

/* Page Banners */
.page-banner,
.course-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(7, 35, 72, 0.92), rgba(11, 78, 162, 0.78), rgba(173, 43, 52, 0.4)),
        url("../images/optimized/hero1.jpg") center/cover no-repeat;
}

.page-banner::after,
.course-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-red), var(--accent), var(--brand-blue));
}

.page-banner .container,
.course-hero .container {
    position: relative;
    z-index: 1;
}

.page-banner h1,
.course-hero h1 {
    max-width: 920px;
    color: #ffffff;
    font-size: 48px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
}

.page-banner p,
.course-hero p {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

.course-hero-content {
    max-width: 920px;
}

.course-tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.course-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.course-info span,
.course-meta span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.course-info span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* Home Metrics */
.counters-section,
.badges-section {
    width: var(--container);
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.counters-section {
    position: relative;
    z-index: 4;
    margin-top: -44px;
}

.counter-box {
    padding: 26px 20px;
    text-align: center;
    background: #ffffff;
}

.counter-box h2 {
    color: var(--brand-blue);
    font-size: 38px;
    font-weight: 900;
}

.counter-box p {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
}

.badges-section {
    margin-top: 34px;
    margin-bottom: 70px;
}

.badge-card {
    padding: 18px;
    text-align: center;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    background: #ffffff;
}

/* Programmes */
.programme-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.programme-card[hidden] {
    display: none;
}

.filter-btn {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(11, 78, 162, 0.16);
    border-radius: 6px;
    color: var(--brand-blue-dark);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 8px;
}

.course-meta span {
    color: var(--text);
    background: var(--surface-tint);
}

/* About */
.about-section,
.founder-section,
.administration-section,
.lab-section,
.infra-section {
    background: var(--surface-soft);
}

.about-content,
.founder-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.about-text p,
.founder-content p {
    margin-top: 16px;
}

.about-image img,
.founder-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.founder-image img {
    max-height: 560px;
    object-position: top center;
}

.founder-content h4 {
    margin-top: 8px;
    color: var(--brand-blue);
    font-size: 18px;
}

.founder-content blockquote {
    margin-top: 24px;
    padding: 22px;
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
}

.vision-mission,
.founder-achievements,
.stats-section,
.course-overview,
.eligibility-section,
.facility-section,
.career-section,
.curriculum-section {
    padding: 78px 0;
}

.stats-section {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue), #2a7168);
}

.stat-card {
    padding: 26px 20px;
    text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.stat-card h2 {
    color: #ffd369;
    font-size: 38px;
    font-weight: 900;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

/* Labs and Infrastructure */
.lab-card {
    overflow: hidden;
    padding: 0;
}

.lab-card::before {
    display: none;
}

.lab-image {
    height: 220px;
    overflow: hidden;
    background: var(--surface-tint);
}

.lab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lab-card:hover .lab-image img,
.infra-card:hover img,
.admin-card:hover img {
    transform: scale(1.045);
}

.lab-card .icon,
.lab-card h3,
.lab-card p {
    margin-left: 22px;
    margin-right: 22px;
}

.lab-card .icon {
    margin-top: 22px;
}

.lab-card p {
    margin-bottom: 24px;
}

.infra-card {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.infra-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infra-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 35, 72, 0.06), rgba(7, 35, 72, 0.88));
}

.infra-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 24px;
    color: #ffffff;
}

.infra-content span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    color: var(--brand-blue-dark);
    background: #ffd369;
    font-weight: 900;
}

.infra-content h3,
.infra-content p {
    color: #ffffff;
}

/* Admin */
.admin-card {
    overflow: hidden;
}

.admin-image {
    height: 310px;
    overflow: hidden;
    background: var(--surface-tint);
}

.admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.admin-content {
    padding: 24px;
}

.admin-content span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin: 8px 0 4px;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--brand-blue);
    background: rgba(11, 78, 162, 0.08);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Tables and Forms */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    color: #ffffff;
    background: var(--brand-blue);
    font-size: 14px;
    font-weight: 900;
}

.info-table tr:last-child td {
    border-bottom: 0;
}

form {
    display: grid;
    gap: 14px;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-control:focus {
    outline: 0;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
}

.contact-info-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child {
    border-bottom: 0;
}

.card hr {
    height: 1px;
    margin: 20px 0;
    border: 0;
    background: var(--line);
}

.career-item {
    padding: 14px 16px;
    border: 1px solid rgba(11, 78, 162, 0.12);
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.career-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

/* Footer */
.site-footer {
    margin-top: 70px;
    color: #ffffff;
    background: linear-gradient(90deg, #082f63, var(--brand-blue-dark));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 38px;
    padding: 54px 0 40px;
}

.footer-logo {
    width: 240px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #ffffff;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    font-weight: 900;
}

.footer-about h3 {
    max-width: 520px;
    font-size: 20px;
    line-height: 1.35;
}

.footer-about p,
.footer-links a,
.footer-contact p,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.78);
}

.footer-about p {
    margin-top: 12px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 14px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffd369;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content,
.hero-card {
    animation: fadeUp 0.65s ease both;
}

.hero-card {
    animation-delay: 0.14s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .logo-left img {
        width: 180px;
    }

    .logo-right img {
        width: 350px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-card {
        max-width: 580px;
    }

    .grid-3,
    .facility-grid,
    .admin-grid,
    .infra-grid,
    .curriculum-grid,
    .achievement-grid,
    .stats-grid,
    .career-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    :root {
        --container: min(calc(100% - 28px), 760px);
    }

    .logo-layout {
        min-height: 72px;
        gap: 14px;
    }

    .logo-left img {
        width: 132px;
        max-height: 58px;
    }

    .logo-right img {
        width: 255px;
        max-height: 62px;
    }

    .nav-container {
        min-height: 56px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border-radius: 0 0 8px 8px;
        background: var(--brand-blue);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 13px 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .dropdown-menu,
    .submenu,
    .dropdown-submenu .submenu {
        position: static;
        min-width: 100%;
        display: none;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .dropdown.open > .dropdown-menu,
    .dropdown-submenu.open > .submenu {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        padding-block: 105px 64px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .page-banner h1,
    .course-hero h1 {
        font-size: 38px;
    }

    .section-title h2,
    .about-text h2,
    .founder-content h2 {
        font-size: 32px;
    }

    .about-content,
    .founder-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .programme-grid,
    .vision-grid,
    .counters-section,
    .badges-section {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 576px) {
    :root {
        --container: min(calc(100% - 24px), 520px);
    }

    .logo-layout {
        min-height: 64px;
        gap: 8px;
    }

    .logo-left img {
        width: 100px;
    }

    .logo-right img {
        width: 205px;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .hero-container {
        padding-block: 92px 54px;
    }

    .admission-banner {
        top: 16px;
        left: 12px;
        right: auto;
        font-size: 12px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-banner p,
    .course-hero p {
        font-size: 15px;
    }

    .hero-buttons,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-light,
    .course-btn {
        width: 100%;
    }

    .section,
    .vision-mission,
    .founder-achievements,
    .stats-section,
    .course-overview,
    .eligibility-section,
    .facility-section,
    .career-section,
    .curriculum-section {
        padding: 56px 0;
    }

    .page-banner,
    .course-hero {
        padding: 70px 0;
    }

    .page-banner h1,
    .course-hero h1 {
        font-size: 31px;
    }

    .section-title h2,
    .about-text h2,
    .founder-content h2 {
        font-size: 28px;
    }

    .grid-3,
    .facility-grid,
    .admin-grid,
    .infra-grid,
    .curriculum-grid,
    .achievement-grid,
    .stats-grid,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .programme-card,
    .facility-card,
    .curriculum-card,
    .overview-card,
    .eligibility-card,
    .vision-card,
    .achievement-card,
    .stat-card {
        padding: 22px;
    }

    .lab-card {
        padding: 0;
    }

    .lab-image {
        height: 190px;
    }

    .admin-image,
    .infra-card,
    .infra-card img {
        min-height: 300px;
        height: 300px;
    }

    .info-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-logo {
        width: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
