
/* SPACELAUNCH - MAIN WEBSITE DESIGN */

/* 1. Global settings */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #080E19;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
}

/* 2. Navigation bar */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 7%;
  background-color: rgba(8, 14, 25, 0.45);
backdrop-filter: blur(8px);
    border-bottom: 1px solid #24344A;
}

header h1 {
    font-size: 28px;
    color: #1686ED;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #AEBBD0;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #1686ED;
}

/* 3. Main hero section */

/* 3. Main hero section */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 10%;

    background:
        linear-gradient(
            90deg,
            rgba(8, 14, 25, 0.95) 0%,
            rgba(8, 14, 25, 0.65) 45%,
            rgba(8, 14, 25, 0.15) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 14, 25, 0) 55%,
            #080E19 100%
        ),
      url("images/mission-backgrounds/starship.jpg") center 25% / cover no-repeat;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    color: #1686ED;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h2 {
    font-size: 58px;
    line-height: 1.1;
    margin: 20px 0;
}

.hero p {
    color: #AEBBD0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 550px;
    margin-bottom: 30px;
}

/* 4. Buttons */

button {
    background-color: #1686ED;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #0867C2;
    transform: translateY(-2px);
}

/* 5. Website sections */

.launches,
.rockets {
    padding: 65px 7%;
}

.launches h2,
.rockets h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.launches p,
.rockets p {
    color: #AEBBD0;
    font-size: 16px;
}

/* 6. Footer */

footer {
    text-align: center;
    padding: 30px;
    background-color: #101C2E;
    color: #AEBBD0;
    margin-top: 50px;
}

/* 7. Mobile compatibility */

@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h2 {
        font-size: 32px;
    }
}

/* =================================
   SPACELAUNCH - LAUNCH DASHBOARD
================================= */

.section-heading {
    margin-bottom: 35px;
}

.section-label {
    color: #1686ED;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: 36px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.section-heading p {
    color: #AEBBD0;
    font-size: 16px;
}

/* Dashboard card layout */

.launch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Individual cards */

.launch-card {
    background: #101C2E;
    border: 1px solid #24344A;
    border-radius: 12px;
    padding: 30px;
    min-height: 190px;
    transition: 0.3s ease;
}

.launch-card:hover {
    border-color: #1686ED;
    transform: translateY(-5px);
    background: #14243A;
}

.launch-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.launch-card p {
    color: #AEBBD0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-link {
    color: #1686ED;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile dashboard layout */

@media (max-width: 800px) {
    .launch-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 29px;
    }
}
.upcoming {
    padding: 80px 10%;
    background-color: #080E19;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.upcoming-card {
    background: #101C2E;
    border: 1px solid #24344A;
    border-radius: 12px;
    padding: 28px;
    transition: 0.3s ease;
}

.upcoming-card:hover {
    border-color: #1686ED;
    transform: translateY(-5px);
}

.launch-status {
    color: #1686ED;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.upcoming-card h3 {
    font-size: 25px;
    margin-top: 18px;
}

.launch-provider {
    color: #AEBBD0;
    margin-top: 5px;
}

.launch-details {
    border-top: 1px solid #24344A;
    margin-top: 22px;
    padding-top: 15px;
}

.launch-details p {
    color: #AEBBD0;
    font-size: 14px;
    margin: 10px 0;
}

@media (max-width: 800px) {
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
}
.launch-details strong {
    color: #FFFFFF;
    font-size: 11px;
    letter-spacing: 1px;
}

.upcoming-card {
    min-height: 260px;
}

/* ==============================
   ROCKET DATABASE PAGE
============================== */

.rocket-hero {
    padding: 100px 10% 70px;
    background: linear-gradient(
        180deg,
        #101C2E 0%,
        #080E19 100%
    );
}

.rocket-hero h2 {
    font-size: 52px;
    margin-top: 18px;
    margin-bottom: 15px;
}

.rocket-hero p {
    color: #AEBBD0;
    font-size: 18px;
    max-width: 600px;
    line-height: 1.7;
}

.rocket-database {
    padding: 60px 10% 100px;
}

.rocket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.rocket-card {
    background: #101C2E;
    border: 1px solid #24344A;
    border-radius: 12px;
    padding: 18px;
    min-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}


.rocket-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #24344A;
    background: #101C2E;
    padding: 0;
    transition: 0.3s ease;
}


.rocket-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.rocket-card.portrait-card img {
    object-fit: contain !important;
    object-position: center !important;
}


.rocket-card:hover img {
    transform: scale(1.06);
}

.rocket-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background: linear-gradient(transparent, rgba(8, 14, 25, 0.98));
}

.rocket-overlay h3 {
    font-size: 28px;
    margin: 5px 0 10px;
}

.rocket-overlay p:not(.rocket-company) {
    color: #AEBBD0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.rocket-company {
    color: #101C2E !important;
    background-color: #DCE6F1;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin: 0;
}
.rocket-card:hover {
    border-color: #1686ED;
    transform: translateY(-5px);
    background: #14243A;
}

.rocket-card h3 {
    font-size: 27px;
    margin-bottom: 8px;
}

.rocket-company {
    color: #1686ED;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.rocket-card > p:not(.rocket-company) {
    color: #AEBBD0;
    line-height: 1.7;
    margin-bottom: 25px;
}

@media (max-width: 800px) {
    .rocket-grid {
        grid-template-columns: 1fr;
    }

    .rocket-hero h2 {
        font-size: 36px;
    }
}

/* ROCKET SPECIFICATIONS */

.rocket-number {
    color: #1686ED;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.rocket-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    border-top: 1px solid #24344A;
    margin-top: 25px;
    padding-top: 20px;
}

.rocket-specs div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rocket-specs span {
    color: #AEBBD0;
    font-size: 10px;
    letter-spacing: 1px;
}

.rocket-specs strong {
    color: #FFFFFF;
    font-size: 16px;
}

.rocket-card {
    min-height: 350px;
}
.status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    background: rgba(99, 179, 255, 0.12);
    border: 1px solid rgba(99, 179, 255, 0.35);
    color: #63B3FF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.verification-info {
    color: #8fbde8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 8px 0 12px;
    padding: 8px 12px;
    background: rgba(99, 179, 255, 0.08);
    border-left: 3px solid #63B3FF;
    border-radius: 4px;
}
/* HOMEPAGE ROCKET PREVIEW */

.rocket-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.rocket-preview-card {
    display: flex;
    min-height: 220px;
    align-items: center;
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rocket-preview-card:hover {
    transform: translateY(-5px);
    border-color: #63b3ff;
}

.rocket-preview-content {
    padding: 28px;
}

.rocket-preview-content h3 {
    margin: 0 0 14px;
    font-size: 21px;
}

.rocket-preview-content p {
    color: #b8c7d9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rocket-preview-content span {
    color: #63b3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.more-rockets-card {
    background: linear-gradient(145deg, #102b49, #0a192b);
    border-color: #315d89;
}

@media (max-width: 800px) {
    .rocket-preview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .rocket-preview-grid {
        grid-template-columns: 1fr;
    }
}
/* HOMEPAGE COUNTDOWN */

.home-countdown {
    margin: 35px 0 45px;
    padding: 30px;
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 12px;
    text-align: center;
}

.home-countdown-label {
    color: #63b3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-countdown h3 {
    color: #ffffff;
    font-size: 25px;
    margin: 12px 0;
}

.home-countdown > p:not(.home-countdown-label) {
    color: #b8c7d9;
}

.home-countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 650px;
    margin: 25px auto;
}

.home-countdown-box {
    background: #071321;
    border: 1px solid #24466b;
    border-radius: 10px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.home-countdown-box span:first-child {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-countdown-box span:last-child {
    color: #63b3ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

@media (max-width: 550px) {
    .home-countdown {
        padding: 20px 12px;
    }

    .home-countdown-timer {
        gap: 7px;
    }

    .home-countdown-box {
        padding: 14px 5px;
    }

    .home-countdown-box span:first-child {
        font-size: 25px;
    }
}
/* HOMEPAGE UPCOMING LAUNCH CARDS */

#home-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

#home-upcoming-grid .launch-card {
    padding: 20px;
    min-width: 0;
}

#home-upcoming-grid .launch-name {
    font-size: 19px;
    line-height: 1.35;
}

#home-upcoming-grid .launch-date {
    font-size: 11px;
    margin-left: 8px;
}

#home-upcoming-grid .launch-provider {
    font-size: 11px;
}

#home-upcoming-grid .launch-details {
    font-size: 12px;
    line-height: 1.7;
}

#home-upcoming-grid .status {
    font-size: 10px;
}

.home-launch-footer {
    text-align: center;
    margin: 30px 0 10px;
}

.home-launch-footer a {
    color: #63b3ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-launch-footer a:hover {
    color: #ffffff;
}

.home-launch-loading {
    color: #b8c7d9;
    text-align: center;
    grid-column: 1 / -1;
    padding: 25px;
}

@media (max-width: 850px) {
    #home-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    #home-upcoming-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   SPACELAUNCH MISSION DATABASE
================================= */

/* MISSION HERO */

.mission-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 55px 8%;
    background:
        linear-gradient(90deg, rgba(8, 15, 28, 0.96), rgba(8, 15, 28, 0.55)),
        url("images/space-background.jpg") center/cover no-repeat;
}

.mission-hero-content {
    max-width: 700px;
}

.mission-hero h2 {
    color: #ffffff;
    font-size: 48px;
    margin: 15px 0;
}

.mission-hero p {
    color: #b8c7d9;
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
}

/* MAIN DASHBOARD */

.mission-dashboard {
    padding: 65px 7%;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0 45px;
}

.mission-stat {
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.mission-stat span {
    display: block;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
}

.mission-stat p {
    color: #63b3ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 10px 0 0;
}

/* SEARCH AND FILTERS */

.mission-filters {
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 40px;
}

.mission-filters h3 {
    color: #ffffff;
    margin: 0 0 20px;
    font-size: 20px;
}

#mission-search {
    width: 100%;
    box-sizing: border-box;
    background: #071321;
    border: 1px solid #315273;
    border-radius: 8px;
    padding: 15px 17px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

#mission-search:focus {
    border-color: #63b3ff;
}

#mission-search::placeholder {
    color: #8194aa;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.filter-row select {
    width: 100%;
    background: #071321;
    border: 1px solid #315273;
    border-radius: 8px;
    padding: 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-row select:focus {
    border-color: #63b3ff;
}

.filter-row select option {
    background: #0a192b;
    color: #ffffff;
}

/* RESULTS HEADING */

.mission-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.mission-results-heading h2 {
    color: #ffffff;
    font-size: 25px;
    margin: 0;
}

#mission-result-count {
    color: #63b3ff;
    font-size: 13px;
    font-weight: 600;
}

/* MISSION GRID */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 850px) {
    .mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-hero h2 {
        font-size: 40px;
    }
}

@media (max-width: 550px) {
    .mission-hero {
        min-height: 230px;
        padding: 40px 7%;
    }

    .mission-hero h2 {
        font-size: 34px;
    }

    .mission-dashboard {
        padding: 45px 5%;
    }

    .mission-stats {
        gap: 10px;
    }

    .mission-stat {
        padding: 17px 8px;
    }

    .mission-stat span {
        font-size: 27px;
    }

    .mission-stat p {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .mission-filters {
        padding: 18px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-results-heading h2 {
        font-size: 21px;
    }
}

/* MISSION CARDS */

.mission-card {
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: #63b3ff;
}

.mission-card-content {
    padding: 25px;
}

.mission-card-era {
    display: inline-block;
    color: #63b3ff;
    background: rgba(99, 179, 255, 0.1);
    border: 1px solid rgba(99, 179, 255, 0.25);
    border-radius: 5px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mission-card h3 {
    color: #ffffff;
    font-size: 21px;
    margin: 18px 0 8px;
}

.mission-agency {
    color: #63b3ff;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 17px;
}

.mission-description {
    color: #aebed0;
    font-size: 14px;
    line-height: 1.6;
    min-height: 67px;
    margin-bottom: 22px;
}

.mission-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #24466b;
    padding-top: 16px;
    color: #91a7bf;
    font-size: 11px;
    font-weight: 600;
}

/* NO MISSION RESULTS */

.mission-no-results {
    grid-column: 1 / -1;
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    color: #aebed0;
    font-size: 14px;
}

/* =================================
   INDIVIDUAL MISSION PAGES
================================= */




.mission-detail-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 60px 8%;

   
background:
    linear-gradient(
        to bottom,
        transparent 45%,
        rgba(8, 15, 28, 0.45) 70%,
        #080f1c 100%
    ),
    linear-gradient(
        to right,
        #080f1c 0%,
        rgba(8, 15, 28, 0.75) 35%,
        rgba(8, 15, 28, 0.15) 100%
    ),
    url("images/mission-backgrounds/apollo11.jpg") center 45% / cover no-repeat;

   
}




.mission-detail-hero-content {
    max-width: 750px;
}

.mission-detail-hero h2 {
    color: #ffffff;
    font-size: 58px;
    margin: 15px 0;
}

.mission-detail-hero p {
    color: #b8c7d9;
    font-size: 19px;
    margin-bottom: 25px;
}

.mission-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mission-detail-meta span {
    background: rgba(99, 179, 255, 0.12);
    border: 1px solid #315273;
    border-radius: 5px;
    padding: 9px 13px;
    color: #63b3ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* MAIN CONTENT */

.mission-detail-content {
    padding: 65px 8%;
}

.mission-detail-overview {
    max-width: 850px;
    margin-bottom: 45px;
}

.mission-detail-overview h2,
.mission-detail-section h2 {
    color: #ffffff;
    font-size: 30px;
    margin: 12px 0 18px;
}

.mission-detail-overview p {
    color: #aebed0;
    font-size: 15px;
    line-height: 1.9;
}

/* MISSION STATISTICS */

.mission-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 45px 0 70px;
}

.mission-detail-stat {
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 10px;
    padding: 24px 15px;
    text-align: center;
}

.mission-detail-stat span {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.mission-detail-stat p {
    color: #63b3ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 12px 0 0;
}

/* CONTENT SECTIONS */

.mission-detail-section {
    margin-bottom: 70px;
}

.mission-detail-section h2 {
    margin-bottom: 28px;
}

/* CREW */

.mission-crew-grid,
.mission-hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mission-crew-card,
.mission-hardware-card {
    background: #0a192b;
    border: 1px solid #24466b;
    border-radius: 10px;
    padding: 25px;
}

.mission-crew-card h3,
.mission-hardware-card h3 {
    color: #ffffff;
    font-size: 17px;
    margin: 0 0 12px;
}

.mission-crew-card p,
.mission-hardware-card p {
    color: #aebed0;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.mission-crew-card p {
    color: #63b3ff;
}

/* TIMELINE */

.mission-timeline {
    border-left: 2px solid #315273;
    padding-left: 28px;
    margin-left: 8px;
}

.mission-timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.mission-timeline-item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #63b3ff;
    box-shadow: 0 0 12px rgba(99, 179, 255, 0.4);
}

.mission-timeline-item span {
    color: #63b3ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mission-timeline-item h3 {
    color: #ffffff;
    font-size: 19px;
    margin: 9px 0;
}

.mission-timeline-item p {
    color: #aebed0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ACHIEVEMENTS */

.mission-achievements {
    padding-left: 22px;
    color: #aebed0;
    line-height: 2.2;
    font-size: 14px;
}

.mission-achievements li::marker {
    color: #63b3ff;
}

/* BACK LINK */

.mission-back-link {
    padding: 0 8% 65px;
}

.mission-back-link a {
    color: #63b3ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.mission-back-link a:hover {
    color: #ffffff;
}

/* MOBILE */

@media (max-width: 750px) {
    .mission-detail-hero {
        min-height: 280px;
        padding: 45px 7%;
    }

    .mission-detail-hero h2 {
        font-size: 42px;
    }

    .mission-detail-content {
        padding: 45px 6%;
    }

    .mission-detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mission-crew-grid,
    .mission-hardware-grid {
        grid-template-columns: 1fr;
    }

      .mission-detail-section {
        margin-bottom: 50px;
    }

    .mission-detail-hero::after {
        bottom: 0;
        height: 100px;
    }

    .mission-detail-content {
        position: relative;
        z-index: 1;
    }
}
@media (max-width: 450px) {
    .mission-detail-hero h2 {
        font-size: 36px;
    }

    .mission-detail-overview h2,
    .mission-detail-section h2 {
        font-size: 25px;
    }

    .mission-detail-stat {
        padding: 19px 8px;
    }

    .mission-detail-stat span {
        font-size: 14px;
    }
}

.mission-detail-hero {
    position: relative;
    isolation: isolate;
}

.mission-detail-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100px;
    height: 180px;
    background: linear-gradient(
        to bottom,
        rgba(8, 15, 28, 0),
        #080f1c 85%
    );
    pointer-events: none;
    z-index: -1;
}
/* APOLLO 8 HERO BACKGROUND */

.mission-detail-hero.apollo8-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.75) 35%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/apollo8.jpg") center 45% / cover no-repeat;
}
/* APOLLO 13 HERO BACKGROUND */

/* APOLLO 13 HERO BACKGROUND */

.mission-detail-hero.apollo13-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.95) 40%,
            rgba(8, 15, 28, 0.65) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/apollo13.jpg") center 45% / cover no-repeat;
}
/* MERCURY PROGRAM HERO BACKGROUND */

.mission-detail-hero.mercury-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/mercury.jpg") center 45% / cover no-repeat;
}
/* MERCURY HERO HEIGHT FIX */

.mission-detail-hero.mercury-hero {
    min-height: 500px;
    padding-top: 80px;
    padding-bottom: 80px;
}
/* SPACE SHUTTLE HERO BACKGROUND */

.mission-detail-hero.shuttle-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.95) 40%,
            rgba(8, 15, 28, 0.65) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/space-shuttle.jpg") center 45% / cover no-repeat;
}

/* VOYAGER 2 HERO BACKGROUND */

.mission-detail-hero.voyager2-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/voyager2.jpg") center 45% / cover no-repeat;
}
/* HUBBLE SPACE TELESCOPE HERO BACKGROUND */

.mission-detail-hero.hubble-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/hubble.jpg") center 45% / cover no-repeat;
}
/* CASSINI-HUYGENS HERO BACKGROUND */

.mission-detail-hero.cassini-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/cassini.jpg") center 45% / cover no-repeat;
}
/* VIKING 1 HERO BACKGROUND */

.mission-detail-hero.viking1-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/viking1.jpg") center 45% / cover no-repeat;
}
/* ARTEMIS PROGRAM HERO BACKGROUND */

.mission-detail-hero.artemis-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/artemis.jpg") center 45% / cover no-repeat;
}
/* INTERNATIONAL SPACE STATION HERO BACKGROUND */

.mission-detail-hero.iss-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/iss.jpg") center 45% / cover no-repeat;
}
/* STARSHIP FLIGHT TESTS HERO BACKGROUND */

.mission-detail-hero.starship-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/starship.jpg") center 20% / cover no-repeat;
}
/* JAMES WEBB SPACE TELESCOPE HERO BACKGROUND */

.mission-detail-hero.james-webb-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/james-webb.jpg") center 45% / cover no-repeat;
}
/* PERSEVERANCE ROVER HERO BACKGROUND */

.mission-detail-hero.perseverance-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/perseverance.jpg") center 45% / cover no-repeat;
}

/* VOYAGER 1 HERO BACKGROUND */

.mission-detail-hero.voyager1-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(8, 15, 28, 0.45) 70%,
            #080f1c 100%
        ),
        linear-gradient(
            to right,
            #080f1c 0%,
            rgba(8, 15, 28, 0.98) 40%,
            rgba(8, 15, 28, 0.75) 65%,
            rgba(8, 15, 28, 0.15) 100%
        ),
        url("images/mission-backgrounds/voyager1.jpg") center 45% / cover no-repeat;
}
/* VOYAGER 1 CONTENT SPACING FIX */

.mission-detail-content.voyager1-content {
    padding: 65px 8% 65px;
}
/* MISSION CARD LINKS */

.mission-card-link {
    display: inline-block;
    margin-top: 18px;
    color: #63b3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mission-card-link:hover {
    color: #ffffff;
}
@media (max-width: 600px) {
    .countdown-section {
        padding: 20px 12px;
    }

    .countdown-timer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .countdown-box {
        min-width: 0;
        padding: 14px 2px;
    }

    .countdown-box span:first-child {
        font-size: 25px;
    }

    .countdown-unit {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
}