/* =============================================
   SGI-MST UNIVERSITY PORTAL - MAIN STYLESHEET
   Design: Refined Academic Elegance
   ============================================= */

:root {
    --navy: #0A1628;
    --navy-light: #122040;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-pale: #FBF4E3;
    --white: #FFFFFF;
    --off-white: #F9F8F5;
    --gray-100: #F3F2EE;
    --gray-200: #E8E6DF;
    --gray-400: #B0A898;
    --gray-600: #6B6358;
    --gray-800: #2D2A25;
    --danger: #C0392B;
    --success: #1A7A4A;
    --info: #1A5276;
    --warning: #D68910;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;

    --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
    --shadow-md: 0 4px 16px rgba(10,22,40,0.12);
    --shadow-lg: 0 12px 40px rgba(10,22,40,0.16);
    --shadow-xl: 0 24px 64px rgba(10,22,40,0.2);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== ANNOUNCEMENT BAR ===================== */
.announcement-bar {
    background: var(--navy);
    color: var(--gold-light);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    padding: 8px 0;
    letter-spacing: 0.03em;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }

.brand-logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.brand-sub {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-600);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

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

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

.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--navy);
    background: var(--gray-100);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.has-dropdown { position: relative; }

.has-dropdown .nav-link .fa-chevron-down {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: var(--transition);
}

.has-dropdown:hover .fa-chevron-down { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--gold);
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background: var(--gold-pale);
    color: var(--navy);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-xl { padding: 18px 48px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-200);
}
.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--navy);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }

/* ===================== HERO SECTION ===================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26,82,118,0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0A1628 0%, #122040 50%, #0D1F3C 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(201,168,76,0.03) 60px,
            rgba(201,168,76,0.03) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(201,168,76,0.03) 60px,
            rgba(201,168,76,0.03) 61px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    padding: 80px 0;
}

.hero-text { color: var(--white); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge i { color: var(--gold); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title .accent { color: var(--gold); }

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.hero-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--navy);
}

.hero-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.hero-card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ===================== SECTIONS ===================== */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===================== QUICK ACCESS ===================== */
.quick-access {
    background: var(--off-white);
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-800);
}

.quick-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.quick-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--navy);
    transition: var(--transition);
}

.quick-card:hover .quick-card-icon {
    background: var(--navy);
    color: var(--gold);
}

.quick-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

/* ===================== PROGRAMS SECTION ===================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.program-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.program-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(10,22,40,0.6), transparent);
}

.program-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-faculty {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.program-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.program-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.program-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-600);
}

.program-meta-item i { color: var(--gold); font-size: 0.75rem; }

/* ===================== ADMISSION PROCESS ===================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

.step-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ===================== NEWS SECTION ===================== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.news-card.featured .news-card-img { height: 280px; }

.news-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    flex: 1;
    margin-bottom: 12px;
}

.news-card.featured .news-title { font-size: 1.4rem; }

.news-excerpt {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section {
    background: var(--navy);
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(201,168,76,0.4);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.78rem;
    color: var(--gold-light);
}

/* ===================== ALERT BANNERS ===================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: #D5F5E3; color: var(--success); border: 1px solid #A9DFBF; }
.alert-danger { background: #FADBD8; color: var(--danger); border: 1px solid #F1948A; }
.alert-warning { background: #FEF9E7; color: var(--warning); border: 1px solid #F9E79F; }
.alert-info { background: #D6EAF8; color: var(--info); border: 1px solid #85C1E9; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid { border-color: var(--success); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6358' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-text { font-size: 0.78rem; color: var(--gray-600); margin-top: 4px; }
.invalid-feedback { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* ===================== CARDS ===================== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
}

.card-body { padding: 24px; }
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

/* ===================== DASHBOARD ===================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.sidebar {
    background: var(--navy);
    color: var(--white);
    padding: 32px 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-user {
    padding: 0 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sidebar-user-id {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-family: var(--font-mono);
}

.sidebar-nav { padding: 0 12px; }

.sidebar-section {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 16px 12px 8px;
    font-family: var(--font-mono);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link i {
    width: 18px;
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.sidebar-link.active {
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
}

.sidebar-link.active i, .sidebar-link:hover i { color: var(--gold); }

.sidebar-badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.dashboard-main { padding: 32px; background: var(--off-white); }

.dashboard-header {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dashboard-greeting {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.dashboard-date {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-family: var(--font-mono);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.navy { background: rgba(10,22,40,0.08); color: var(--navy); }
.stat-icon.gold { background: rgba(201,168,76,0.12); color: var(--gold); }
.stat-icon.success { background: rgba(26,122,74,0.1); color: var(--success); }
.stat-icon.danger { background: rgba(192,57,43,0.1); color: var(--danger); }

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-desc { font-size: 0.8rem; color: var(--gray-600); }

/* ===================== TABLES ===================== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}

thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--off-white); }

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success { background: #D5F5E3; color: var(--success); }
.badge-danger { background: #FADBD8; color: var(--danger); }
.badge-warning { background: #FEF9E7; color: var(--warning); }
.badge-info { background: #D6EAF8; color: var(--info); }
.badge-navy { background: rgba(10,22,40,0.08); color: var(--navy); }
.badge-gold { background: rgba(201,168,76,0.15); color: #8B6B14; }

/* ===================== STEPS / WIZARD ===================== */
.step-wizard {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 120px;
}

.wizard-step-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 8px;
}

.wizard-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.wizard-step.active .wizard-step-num {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.wizard-step.completed .wizard-step-num {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.wizard-step-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.wizard-step.active .wizard-step-label { color: var(--navy); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--success); }

.wizard-connector {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    max-width: 60px;
    margin: 0 8px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.wizard-step.completed + .wizard-connector { background: var(--success); }

/* ===================== PAGE HERO ===================== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 64px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.08), transparent 60%);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.6rem; }
.breadcrumb .current { color: var(--gold); }

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
}

/* ===================== CHAT WIDGET ===================== */
.chat-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    border: 3px solid var(--gold);
}

.chat-fab:hover { background: var(--navy-light); transform: scale(1.05); }

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.chat-modal {
    position: fixed;
    bottom: 108px;
    right: 32px;
    width: 360px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    max-height: 500px;
}

.chat-modal.open { display: flex; }

.chat-modal-header {
    background: var(--navy);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.chat-agent-info { display: flex; align-items: center; gap: 10px; }

.agent-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.agent-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }

.agent-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #2ECC71;
    border-radius: 50%;
    display: inline-block;
}

.chat-close {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.chat-close:hover { color: var(--white); }

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message { display: flex; }
.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-message.bot .message-bubble {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background: var(--navy);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.chat-quick-replies button {
    padding: 6px 12px;
    background: var(--white);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
}

.chat-quick-replies button:hover {
    background: var(--gold);
    color: var(--navy);
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font-body);
}

.chat-input-area input:focus { border-color: var(--navy); }

.chat-input-area button {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-input-area button:hover { background: var(--gold); color: var(--navy); }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy); color: var(--white); }

.footer-top { padding: 80px 0 64px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 64px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo .logo-icon { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.footer-logo .brand-name { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.footer-logo .brand-sub { color: rgba(255,255,255,0.5); font-size: 0.58rem; }

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-col ul a:hover { color: var(--gold-light); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
}

.contact-item i { color: var(--gold); width: 16px; margin-top: 2px; flex-shrink: 0; }
.contact-item a { color: rgba(255,255,255,0.55); }
.contact-item a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-legal a:hover { color: var(--gold-light); }

/* ===================== MODALS ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: 1.1rem;
    transition: var(--transition);
}

.modal-close:hover { background: var(--gray-100); color: var(--navy); }

.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--gray-200); display: flex; gap: 12px; justify-content: flex-end; }

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-600); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-24 { padding: 24px; }
.hidden { display: none; }
.show { display: block !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===================== SECTION DARK ===================== */
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.65); }

/* ===================== LOADING ===================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 48px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== PAGE FADE IN ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero-cards { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .process-steps::before { display: none; }
    .dashboard-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-slow);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.open { right: 0; }
    .nav-links { flex-direction: column; width: 100%; gap: 4px; }
    .nav-link { padding: 12px 16px; }
    .nav-actions { flex-direction: column; width: 100%; margin-left: 0; margin-top: 16px; }
    .nav-actions .btn { width: 100%; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; background: var(--gray-100); margin-top: 4px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -260px; z-index: 500; transition: var(--transition-slow); }
    .sidebar.open { left: 0; }
    .chat-modal { width: calc(100vw - 32px); right: 16px; bottom: 96px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: 1fr; }
}
