/* --- NASA MODERN DESIGN SYSTEM --- */
:root {
    --nasa-blue: #0b3d91;
    --nasa-red: #fc3d21;
    --dark-bg: #000000;
    --header-bg: rgba(0, 0, 0, 0.95);
    --secondary-bg: #111111;
    --accent-bg: #1a1a1a;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #bbbbbb;
    --transition: all 0.25s ease-in-out;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--header-bg);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    width: 300px;
}

.header-left img {
    height: 45px;
    transition: var(--transition);
}

.header-left img:hover {
    transform: scale(1.05);
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.explore-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    margin-right: 20px;
    transition: var(--transition);
    text-transform: uppercase;
}

.explore-btn:hover {
    background: var(--text-primary);
    color: var(--dark-bg);
}

.search-container {
    position: relative;
}

.search-container input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    width: 200px;
    transition: var(--transition);
}

.search-container input:focus {
    border-color: var(--nasa-red);
    background: rgba(255, 255, 255, 0.1);
    width: 260px;
    box-shadow: 0 0 15px rgba(252, 61, 33, 0.3);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 300px;
}

.nav-links {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.dropdown {
    position: relative;
    padding: 0 15px;
    height: 80px;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown>a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dropdown>a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 10px;
    transition: var(--transition);
}

.dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown:hover>a {
    color: var(--nasa-red);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    min-width: 260px;
    padding: 20px 0;
    border-top: 4px solid var(--nasa-red);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    z-index: 99999;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--accent-bg);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--accent-bg);
    color: var(--text-primary);
    padding-left: 30px;
}

.live-badge {
    background-color: var(--nasa-red);
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 2s infinite;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }

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

/* --- SECONDARY NAV --- */
.secondary-nav {
    background-color: #111;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.secondary-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.secondary-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secondary-nav a:hover {
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 8%;
    color: var(--text-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #ccc;
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- GRID CARDS --- */
.main-container {
    padding: 60px 8%;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.today-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nasa-red);
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 30px;
    height: 530px;
    margin-bottom: 30px;
}

.large-card,
.small-card,
.wide-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.large-card:hover,
.small-card:hover,
.wide-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.grid-layout img,
.wide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.large-card:hover img,
.small-card:hover img,
.wide-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    color: white;
}

.card-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.3;
    transition: var(--transition);
}

.large-card:hover .card-overlay h3 {
    color: var(--nasa-red);
}

.card-tag {
    font-size: 12px;
    color: var(--nasa-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    border-bottom: 2px solid var(--nasa-red);
    padding-bottom: 2px;
}

.wide-card {
    height: 350px;
    margin-top: 30px;
}

/* --- CONTENT SECTIONS (For pages) --- */
.page-content {
    padding: 80px 10%;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--nasa-red);
}

.page-content p {
    font-size: 18px;
    color: #444;
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--secondary-bg);
    color: #888;
    text-align: center;
    padding: 80px 20px;
    border-top: 4px solid var(--nasa-red);
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

footer p {
    font-size: 14px;
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

footer .school-name {
    color: var(--nasa-red);
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .large-card {
        grid-row: auto;
        height: 400px;
    }

    .small-card {
        height: 300px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
    }

    .search-container input {
        width: 150px;
    }

    .search-container input:focus {
        width: 180px;
    }

    .header-right {
        display: none;
    }

    /* Could add a hamburger menu if needed */
}