/* ============================================================
   ODIN ACADEMY - MODERN DESIGN SYSTEM 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary: #4a0e1d;
    --primary-light: #6b1429;
    --secondary: #801831;
    --secondary-dark: #631226;
    --accent: #d4af37;
    --accent-dark: #b8962e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .14);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

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

/* ── Utility ───────────────────────────────────────────────── */
.text-accent {
    color: var(--accent) !important;
}

.bg-navy {
    background-color: var(--primary) !important;
}

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

/* ── HEADER ────────────────────────────────────────────────── */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: var(--transition);
}

.header-main.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, .98);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-menu .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-main);
    padding: .4rem .6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.nav-menu .nav-link:hover {
    color: var(--secondary);
    background: rgba(37, 99, 235, .06);
}

/* ── DROPDOWNS ────────────────────────────────────────────── */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, .05);
    padding: .75rem;
    display: none;
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item-dropdown:hover .dropdown-menu-custom {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: block;
    padding: .6rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item-custom:hover {
    background: rgba(128, 24, 49, .06);
    color: var(--secondary);
    padding-left: 1.25rem;
}

.btn-nav-apply {
    background: var(--secondary);
    color: white !important;
    padding: .5rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: .875rem !important;
    transition: var(--transition) !important;
}

.btn-nav-apply:hover {
    background: var(--secondary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35) !important;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero_campus.jpeg');
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(74, 14, 29, .88) 0%,
            rgba(74, 14, 29, .65) 55%,
            rgba(74, 14, 29, .25) 100%);
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(212, 175, 55, .15);
    border: 1px solid rgba(212, 175, 55, .35);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .72);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: .95rem;
    padding: .9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 175, 55, .4);
}

.btn-hero-primary:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, .5);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: .95rem;
    padding: .9rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, .4);
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, .1);
    color: white;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .5);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem 2.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    background: var(--bg-subtle);
    align-self: stretch;
    margin: .5rem 0;
}

/* ── SECTION SHARED ────────────────────────────────────────── */
.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 480px;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
}

.about-badge .badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .badge-text {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: rgba(128, 24, 49, .08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: .2rem;
    font-size: .95rem;
}

.feature-desc {
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── ACADEMICS CARDS ───────────────────────────────────────── */
.program-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: white;
    border: none;
    height: 100%;
}

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

.program-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.program-card-body {
    padding: 1.75rem;
}

.program-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}

.tag-primary {
    background: rgba(128, 24, 49, .1);
    color: var(--secondary);
}

.tag-secondary {
    background: rgba(15, 23, 42, .08);
    color: var(--primary);
}

.tag-accent {
    background: rgba(212, 175, 55, .15);
    color: var(--accent-dark);
}

.program-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.program-card p {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.btn-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.btn-card-link:hover {
    gap: .7rem;
    color: var(--secondary-dark);
}

/* ── NEWS CARDS ────────────────────────────────────────────── */
.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, .06);
    transition: var(--transition);
    height: 100%;
}

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

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-date-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.news-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.4;
}

.news-card p {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, .05);
    height: 100%;
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: .9rem;
}

.testimonial-text {
    font-size: .95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-subtle);
}

.testimonial-name {
    font-weight: 700;
    font-size: .9rem;
    margin: 0;
}

.testimonial-role {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2f0913 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(128, 24, 49, .15);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .08);
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 175, 55, .4);
}

.btn-cta-primary:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, .1);
    color: white;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer-main {
    background: var(--primary);
    color: rgba(255, 255, 255, .65);
    padding: 1.5rem 0 1rem;
}

.footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.footer-desc {
    font-size: .875rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    text-decoration: none;
    transition: var(--transition);
    margin-right: .4rem;
}

.footer-social a:hover {
    background: var(--secondary);
    color: white;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: .6rem;
}

.footer-links a {
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .875rem;
    margin-bottom: .75rem;
    color: rgba(255, 255, 255, .55);
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: .15rem;
    min-width: 14px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .08);
    margin: 1.5rem 0 1rem;
}

.footer-bottom {
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .stats-bar {
        margin-top: 2rem;
    }

    .about-badge {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ── PRELOADER ─────────────────────────────────────────────── */
#loader-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    height: auto;
    animation: loaderPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .7;
        transform: scale(0.95);
    }
}

/* ── UNIFIED TABLE SYSTEM ─────────────────────────────────── */
.table-premium {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-main);
    vertical-align: middle;
}

.table-premium thead th {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--bg-subtle);
}

.table-premium tbody td {
    padding: 1.15rem 1rem;
    border-bottom: 1px solid var(--bg-subtle);
    font-size: .92rem;
}

.table-premium tbody tr:last-child td {
    border-bottom: none;
}

/* Unified Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-review {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Avatars */
.avatar-sm {
    width: 38px;
    height: 38px;
    background: var(--bg-subtle);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--bg-subtle);
}

@media (max-width: 991px) {
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stat-divider {
        display: none;
    }

    .stats-bar {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-image-wrap img {
        height: 300px;
    }

    .hero-bg {
        background-position: center right;
    }
}

.gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .gallery-img {
        height: 180px;
    }
}