:root {
    /* Color Palette - Slate & Indigo */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Spacing Overrides */
    --nav-height: 145px;
    --nav-height-condensed: 80px;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Global Layout */
    .inner-page {
        padding-top: 150px;
    }

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resetting */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    position: relative;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--slate-800);
    line-height: 1.6;
    background-color: #ffffff;
}

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal {
    animation: slideUp 0.8s ease forwards;
}

/* Primary Navigation */
/* Primary Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 25px;
}

.top-info i {
    color: var(--primary-light);
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-socials a {
    color: var(--slate-400);
    transition: var(--transition);
}

.top-socials a:hover {
    color: #ffffff;
}

/* Ensure desktop elements are hidden on mobile by default */
@media (max-width: 768px) {

    .desktop-only,
    .top-bar,
    .header-nav,
    .navigation-row,
    .header-nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}

.navbar {
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

/* Main Header States */
.header-home:not(.scrolled) .top-bar,
.header-home:not(.scrolled) .navbar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-40px);
}

.main-header.scrolled .navbar {
    height: 75px;
    min-height: 75px;
    padding: 0;
}

.main-header.scrolled .navbar-inner.header-grid {
    row-gap: 0.35rem;
}

.main-header.scrolled .header-logo-link img {
    height: 52px;
}

.main-header.scrolled .btn-portal-login {
    height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.main-header.scrolled .header-school-name {
    font-size: 1.4rem;
}

.main-header.scrolled .top-bar {
    opacity: 0;
    pointer-events: none;
}

.header-solid .top-bar {
    background: #0f172a;
}

.header-solid .navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
}

/* --- PREMIUM 2-ROW / 3-COL HEADER GRID --- */
.navbar-inner.header-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr minmax(140px, 220px);
    grid-template-rows: auto auto;
    column-gap: 2rem;
    row-gap: 0.65rem;
    align-items: center;
}

.navbar-inner.header-grid .header-left {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar-inner.header-grid .header-right {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-inner.header-grid .header-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.navbar-inner.header-grid .header-branding {
    grid-row: 1;
}

.navbar-inner.header-grid .header-nav {
    grid-row: 2;
}

.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding-right: 0.25rem;
}

.header-logo-link img {
    height: 76px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-school-name {
    font-weight: 850;
    font-size: 1.75rem;
    text-decoration: none;
    color: inherit;
    letter-spacing: -0.2px;
    line-height: 1.2;
    display: inline-block;
    max-width: 100%;
    padding: 0 0.25rem;
}

.header-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2.2vw, 2.25rem);
    flex-wrap: nowrap;
    min-width: 0;
}

.header-nav-link {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    opacity: 0.78;
    letter-spacing: 0.9px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

/* Modern gradient Portal Login button */
.btn-portal-login {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    height: 52px;
}

.btn-portal-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 30px -14px rgba(79, 70, 229, 0.65);
}

/* Ensure header stays premium/dark when NOT scrolled */
.header-home:not(.scrolled) .header-school-name,
.header-home:not(.scrolled) .header-nav-link {
    color: rgba(255, 255, 255, 0.95);
}

.header-home:not(.scrolled) .header-nav-link {
    opacity: 0.9;
}

.header-home:not(.scrolled) .header-nav-link:hover {
    opacity: 1;
    color: var(--primary-light);
}

.navigation-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.logo-only {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-only img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 850;
    font-size: 1.6rem;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    letter-spacing: -0.5px;
    transition: var(--transition);
    line-height: 1.1;
}

.logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.header-home:not(.scrolled) .logo {
    color: #ffffff;
}

.header-solid .logo,
.main-header.scrolled .logo {
    color: var(--slate-900);
}

.logo i {
    color: var(--primary-light);
    font-size: 2.25rem;
}

.header-solid .logo i,
.main-header.scrolled .logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.header-home:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-solid .nav-link,
.main-header.scrolled .nav-link {
    color: var(--slate-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    background: var(--slate-950);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    /* Safe space for combined header */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(0.4) contrast(1.1) saturate(1.2);
    transform: scale(1.02);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.8) 100%),
        linear-gradient(to bottom, transparent 60%, var(--slate-950) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    color: #ffffff;
    padding: 0 2rem;
    animation: fadeInSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 2.5rem;
    letter-spacing: -3px;
    background: linear-gradient(to bottom, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    color: var(--primary-light);
    display: block;
    margin-top: 1rem;
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-desc {
    font-size: 1.4rem;
    color: var(--slate-300);
    margin-bottom: 5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--slate-50);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.badge {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-head h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--slate-500);
}

/* Modern Card Grid */
.grid-gap {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-desc {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 3rem;
    overflow: hidden;
}

/* Teacher Profiles */
.teacher-card {
    text-align: center;
    padding: 3rem 2rem;
}

.teacher-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    padding: 5px;
    border: 2px dashed var(--primary);
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.teacher-designation {
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer Section */
.footer {
    background: var(--slate-900);
    color: #ffffff;
    padding: 100px 0 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 80px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--slate-400);
    margin-bottom: 2rem;
    max-width: 350px;
}

.footer .socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #ffffff;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(8px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--slate-500);
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .header-nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 1150px) {
    .navbar-inner {
        column-gap: 1.5rem;
    }

    .header-nav-col {
        display: none;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-logo-link img {
        height: 60px;
    }

    .header-school-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 1100px) {
    .navigation-row {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.25rem;
        transition: var(--transition);
    }

    .header-home:not(.scrolled) .mobile-menu-btn {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 640px) {
    .navbar {
        height: 75px;
        min-height: 75px;
    }

    .header-logo-link img {
        height: 44px;
    }

    .header-school-name {
        display: none;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .navbar-inner {
        display: flex;
        justify-content: space-between;
    }
}

/* --- Mobile Navigation Drawer System --- */
.mobile-menu-btn {
    display: none;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
}

.header-home:not(.scrolled) .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

.close-menu-btn {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--slate-800);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.mobile-nav-link:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Base Responsive Fixes */
@media (max-width: 1024px) {
    .hero-btns .btn-login {
        padding: 1rem 2rem !important;
    }

    .header-logo-col,
    .header-actions-col {
        flex: 0 0 auto;
    }

    .header-school-name {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        height: auto;
        min-height: 86px;
        padding: 0.75rem 0;
    }

    .navbar-inner.header-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0 !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    .header-left,
    .header-center,
    .header-right {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .navbar-inner.header-grid .header-left {
        flex: 0 0 auto !important;
        display: flex !important;
        order: 1 !important;
    }

    .navbar-inner.header-grid .header-center.header-branding {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 0 0.5rem !important;
        order: 2 !important;
        overflow: hidden !important;
    }

    .navbar-inner.header-grid .header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        order: 3 !important;
    }

    .header-logo-link img {
        height: 48px !important;
        width: auto !important;
    }

    .header-school-name {
        font-size: 0.9rem !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
        color: inherit !important;
        width: 100% !important;
    }

    .btn-portal-login {
        height: 40px !important;
        padding: 0 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 50px !important;
    }

    .btn-portal-login {
        height: 44px;
        padding: 0 0.95rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .btn-portal-login i {
        font-size: 1rem;
    }

    .hero {
        padding-top: 100px;
        min-height: 100vh;
        height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 2rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .header-actions {
        gap: 0.5rem !important;
    }

    .btn-login {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem;
    }

    .mobile-stack {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-image img {
        height: 300px;
        object-fit: cover;
    }

    .about-text h2 {
        font-size: 2rem !important;
    }
}
/* Home Page Enhancements */
.hero-metrics {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-metric {
    min-width: 180px;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(8px);
    text-align: left;
}

.hero-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1.1;
}

.hero-metric span {
    color: var(--slate-300);
    font-size: 0.85rem;
    font-weight: 600;
}

.about-points {
    list-style: none;
    margin-top: 1.8rem;
    display: grid;
    gap: 0.7rem;
}

.about-points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--slate-700);
    font-weight: 600;
}

.about-points i {
    color: var(--primary);
}

.highlight-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.highlight-card i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-card h3 {
    font-size: 1.1rem;
    color: var(--slate-900);
    margin-bottom: 0.6rem;
}

.highlight-card p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

.cta-banner {
    padding: 2.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e1b4b, #4338ca 45%, #0891b2);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0.5rem 0;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
}

.cta-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cta-alt-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .hero-metric {
        min-width: 150px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-metrics {
        justify-content: flex-start;
    }

    .hero-metric {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 130px;
    }

    .about-points {
        margin-top: 1.2rem;
    }

    .cta-banner {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn-login {
        width: 100%;
        justify-content: center;
    }
}
