/* ================= Base & Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* ================= Header Layout ================= */
.top-header, .main-header {
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-header {
    top: 0;
    height: 40px;
    background: #1a0768;
    display: flex;
    align-items: center;
}

.main-header {
    top: 40px;
    height: 80px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

/* ================= Container ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* ================= Top Header Elements ================= */
.top-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

.top-link, .social-icon {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-link:hover, .social-icon:hover {
    opacity: 0.8;
}

.top-header-right {
    display: flex;
    gap: 15px;
}

/* ================= Logo ================= */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ================= Navigation (Desktop) ================= */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.menu-link span {
    display: inline-block;
    transition: transform 0.3s;
}

/* ================= Dropdown (Desktop) ================= */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    border-top: 3px solid #ff9700;
    z-index: 1100;
}

.dropdown li a {
    padding: 12px 20px;
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: #f8f9fa;
    color: #1a0768;
    padding-left: 25px;
}

/* Desktop Hover Logic */
@media (min-width: 992px) {
    .menu-link:hover {
        color: #ff9700;
    }
    
    .menu-link:hover span {
        transform: translateY(-3px);
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }
    
    /* Dropdown Arrow */
    .has-dropdown .menu-link::after {
        content: '\f107'; 
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-left: 6px;
        font-size: 12px;
        color: #999;
    }
}

/* ================= Buttons ================= */
.btn-primary {
    background: #ff9700;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary:hover {
    background: #e68a00;
}

/* Hidden by default on Desktop */
.menu-btn {
    display: none;
}

/* ================= Hamburger ================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #1a0768;
    cursor: pointer;
    padding: 5px;
}

/* ================= Responsive (Mobile/Tablet) ================= */
@media (max-width: 991px) {

    .top-header-right { display: none; }
    .top-header { justify-content: center; }
    .hamburger { display: block; }
    .desktop-btn { display: none; }

    /* Mobile Navigation */
    .main-nav {
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background: #ffffff;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        height: auto;
        padding-bottom: 20px;
    }

    .main-nav.active { display: block; }

    .menu { flex-direction: column; gap: 0; }

    .menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f1f1f1;
    }

    .menu-link { padding: 15px 0; width: 100%; }
    .menu-link span { transform: none !important; }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        border-top: none;
        width: 100%;
    }

    .has-dropdown.active .dropdown { display: block; }

    .has-dropdown.active > .menu-link {
        color: #ff9700;
        background: #fff8f0;
    }

    /* Mobile Button */
    .menu-btn {
        display: block;
        border-bottom: none;
        padding: 25px 0 10px;
    }
}