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

:root {
    /* Brand Colors */
    --brand-primary: rgb(154, 74, 122);
    --brand-dark: rgb(30, 30, 30);
    --bg-light: rgba(250, 250, 248, 0.97);
    --border-light: rgb(230, 230, 226);
    --text-muted: rgb(107, 107, 107);
    --footer-text: rgba(250, 250, 248, 0.55);
    --footer-text-hover: rgba(250, 250, 248, 1);
    --footer-border: rgba(255, 255, 255, 0.07);

    /* Layout */
    --container-max: 1280px;
    --header-height: 64px;

    /* Typography */
    --font-inter: "Inter", sans-serif;
}

/* Global Resets & Utilities */
.examlin-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.font-inter {
    font-family: var(--font-inter);
}

/* Header Styling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
<<<<<<< HEAD
    background-color: transparent !important;
    box-shadow: none !important;
=======
    background-color: transparent !important; 
    box-shadow: none !important; 
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
    border: none !important;
}
.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.025em;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    padding: 8px;
    color: var(--brand-dark);
    cursor: pointer;
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Navigation (Mobile Default Strategy)
   ========================================================================== */

/* Hide by default on mobile, show when 'mobile-active' class is added via JS */
.desktop-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: var(--header-height);
    left: 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
    box-sizing: border-box;
}

.desktop-nav.mobile-active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Base Nav Links */
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    font-family: var(--font-inter);
    width: 100%;
    text-align: left;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* Dropdown Elements */
.dropdown-wrapper {
    width: 100%;
}

.dropdown-content {
    display: block;
    width: 100%;
    padding-top: 8px;
}

.mobile-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Mobile Grid List */
.course-grid-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-btn {
    display: block;
    background-color: var(--brand-dark);
    color: #fff;
    text-align: center;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.course-btn:hover {
    background-color: var(--brand-primary);
}

/* ==========================================================================
   Navigation (Desktop View - Overrides Mobile)
   ========================================================================== */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none !important;
    }

    .desktop-nav {
        display: flex;
        position: static;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 0;
        border: none;
        background: transparent;
    }
<<<<<<< HEAD

=======
    
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
    .nav-link {
        color: var(--text-muted);
        padding: 0;
        width: auto;
    }

    .nav-link:hover {
        color: var(--brand-dark);
    }

    .dropdown-wrapper {
        position: relative;
        width: auto;
    }
<<<<<<< HEAD

=======
    
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
    .mobile-category-title {
        display: none; /* Hide the "All Courses" text inside the dropdown on desktop */
    }

    /* Desktop Wide Hover Dropdown (Matches your image) */
    .dropdown-content {
        display: none; /* Hidden until hover */
        position: absolute;
        top: 100%;
        right: 0; /* Align right */
<<<<<<< HEAD
        transform: translateX(
            33.333%
        ); /* Shift it left exactly as requested by your HTML snippet `-translate-x-1/3` */
=======
        transform: translateX(33.333%); /* Shift it left exactly as requested by your HTML snippet `-translate-x-1/3` */
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
        margin-top: 8px;
        width: 620px;
        background-color: rgb(250, 250, 248);
        border: 1px solid rgb(230, 230, 226);
        border-radius: 8px;
        padding: 24px;
<<<<<<< HEAD
        box-shadow:
            0 10px 15px -3px rgba(0, 0, 0, 0.1),
            0 4px 6px -2px rgba(0, 0, 0, 0.05);
=======
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
        z-index: 100;
    }

    /* Display Dropdown on Hover */
    .dropdown-wrapper:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease forwards;
    }

    /* Rotate Chevron on Hover */
    .dropdown-wrapper:hover .nav-icon {
        transform: rotate(180deg);
    }

    /* Desktop Grid layout */
    .course-grid-inner {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .course-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 4px;
        /* Desktop specific colors from your snippet */
        background-color: rgb(30, 30, 30);
        color: rgb(250, 250, 248);
    }
<<<<<<< HEAD

=======
    
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
    .course-btn:hover {
        background-color: var(--brand-primary);
        color: #fff;
    }
}

@keyframes fadeIn {
<<<<<<< HEAD
    from {
        opacity: 0;
        transform: translate(33.333%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(33.333%, 0);
    }
=======
    from { opacity: 0; transform: translate(33.333%, 10px); }
    to { opacity: 1; transform: translate(33.333%, 0); }
>>>>>>> b679883f1786ef91a5850ef9f3e010ee026b63a6
}

/* Footer Styling */
.site-footer {
    background-color: var(--brand-dark);
    padding: 56px 0 32px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .brand-text {
    color: #fafaf8;
    font-size: 18px;
}

.footer-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--footer-text);
    margin-top: 16px;
    max-width: 250px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-text);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 12px;
    color: rgba(250, 250, 248, 0.45);
    text-decoration: none;
    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

.footer-link:hover {
    color: var(--footer-text-hover);
    opacity: 1;
}

.footer-divider {
    border-top: 1px solid var(--footer-border);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-legal-text {
    font-size: 12px;
    color: rgba(250, 250, 248, 0.25);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal-link {
    font-size: 12px;
    color: rgba(250, 250, 248, 0.25);
    text-decoration: none;
    cursor: pointer;
}

.footer-legal-link:hover {
    color: var(--footer-text-hover);
}

/* Media Queries */
@media (min-width: 640px) {
    .examlin-container {
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .examlin-container {
        padding: 0 32px;
    }

    /* Header Responsive */
    .desktop-nav {
        display: flex;
    }

    .mobile-toggle,
    .mobile-menu {
        display: none !important;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: row;
    }
}
