/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
    --primary: #1e3a8a;
    --primary-dark: #1e293b;
    --accent: #d97706;
    --accent-hover: #b45309;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ==========================================
   TOP BAR & HEADER
   ========================================== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.top-links a:hover {
    color: var(--accent);
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.main-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text .location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.logo-text .motto {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* Navigation Links & Dropdowns */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    border-radius: 4px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
}

/* ==========================================
   QUICK SHORTCUTS
   ========================================== */
.shortcuts {
    padding: 3rem 5%;
    background: var(--white);
}

.shortcuts h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.shortcuts .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card span {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ==========================================
   COURSES & TABS SECTION
   ========================================== */
.courses-section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.course-card.hide {
    display: none;
}

.course-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.course-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.course-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.course-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.course-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-link:hover {
    color: var(--accent);
}

/* ==========================================
   MAIN SECTION (NEWS & SIDEBAR)
   ========================================== */
.main-section {
    padding: 3rem 5%;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.news-section h3, .sidebar-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

.news-item h4 {
    font-size: 1.15rem;
    margin: 0.25rem 0 0.5rem 0;
    color: var(--text-dark);
}

.news-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.sidebar-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.portal-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s, padding-left 0.2s;
}

.portal-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.portal-link i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 5% 1.5rem 5%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: var(--white);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s;
}

.social-icons a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==========================================
   SCROLL REVEAL & ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN & MOBILE DRAWER ANIMATIONS
   ========================================== */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links > li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: 100%;
    }

    .nav-links.open > li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open > li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open > li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.open > li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.open > li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.open > li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.open > li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.open > li:nth-child(7) { transition-delay: 0.4s; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: block;
    }
}


