/* Navigation Styles */
:root {
    --primary-purple: #8B5CF6;
    --deep-purple: #7C3AED;
    --light-purple: #A78BFA;
    --accent-purple: #C4B5FD;
    --bright-purple: #DDD6FE;
    --bg-dark: #0A0A0A;
    --bg-darker: #000000;
    --bg-light: #FAF5FF;
    --text-dark: #E5E7EB;
    --text-gray: rgba(255,255,255,0.7);
    --white: #FFFFFF;
    --announcement-height: 0px;
}

nav {
    position: fixed;
    top: var(--announcement-height, 0px);
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    /* flex-wrap: wrap; */
    justify-content: flex-end;
    column-gap: clamp(1rem, 2vw, 2.5rem);
    row-gap: 0.5rem;
    width: 100%;
    /* max-width: 950px; */
    margin-left: auto;
}

.nav-menu li {
    position: relative;
}

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--white);
    z-index: 1002;
    padding: 0.55rem 2.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.announcement-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    position: relative;
    padding-right: 2.5rem;
}

.announcement-text {
    width: 100%;
    text-align: center;
    line-height: 1.5;
    font-size: 0.95rem;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    /* padding: 0.45rem 0.9rem; */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    position: absolute;
    /* top: 8px; */
    right: 8px;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu a,
.nav-menu button {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu button {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    padding: 0;
}

.nav-menu a::after,
.nav-menu button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-purple);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.nav-menu button:hover::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu button:hover {
    color: var(--white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 900px;
    max-width: 90vw;
    padding: 2rem;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.programs-dropdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.program-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.program-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.program-card-title:hover {
    color: var(--light-purple);
}

.program-card-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.program-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.program-card-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.program-card-link:hover {
    color: var(--light-purple);
    text-decoration: underline;
}

.program-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.program-card-btn {
    color: var(--light-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, gap 0.3s ease;
}

.program-card-btn::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.program-card-btn:hover {
    color: var(--white);
    gap: 0.6rem;
}

.program-card-btn:hover::after {
    transform: translateX(3px);
}

.apply-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--white) !important;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.apply-btn::after {
    display: none;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

/* Add top margin to body to account for fixed navigation */
body {
    padding-top: calc(100px + var(--announcement-height, 0px));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        height: 80px;
        padding: 1rem 0;
    }

    body {
        padding-top: calc(80px + var(--announcement-height, 0px));
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        margin-left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-menu a,
    .nav-menu button {
        white-space: normal;
    }

    .nav-menu button {
        width: 100%;
        justify-content: space-between;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 0;
        margin-top: 0.75rem;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .programs-dropdown {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .program-card {
        background: rgba(255, 255, 255, 0.05);
    }

    .apply-btn {
        width: 100%;
        text-align: center;
    }
}

/* Program link visibility */
@media (min-width: 1025px) {
    .nav-menu .nav-program-link {
        display: none;
    }
}

@media (max-width: 1024px) {
    .nav-menu .nav-program-dropdown {
        display: none;
    }

    .announcement-content {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 1rem;
    }

    .announcement-close {
        position: absolute;
        top: 0.05rem;
        right: -2.2rem;
        transform: none;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}
