/* 1. Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Global Dashboard Background */
body {
    background-color: #0a0b10; /* Very dark background matching your dashboard */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* 3. Header Styling */
header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-style: italic; /* Matching the "Projects for this mission" vibe */
    font-weight: 700;
}

#date {
    color: #8b8d9c;
    font-size: 1rem;
}

/* 4. THE CARD (Your main container styled to match) */
main {
    display: flex;
    flex-direction: column;
    max-width: 600px; /* Width of the card */
    width: 100%;
    background-color: #33354a; /* That specific gray-indigo bottom color */
    border-radius: 10px; /* Smooth rounded corners */
    border: 1px solid #4a4d65; /* Subtle card outline */
    overflow: hidden; /* Ensures the image respects the rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* 5. IMAGE SECTION - Visually moved to the top! */
#media-container {
    order: 1; /* Forces the image to the very top of the card */
    width: 100%;
    background-color: #000;
    position: relative; /* Needed to anchor the badge */
    border-bottom: 1px solid #2a2c3d;
}

/* Generate the Cyan Badge without touching HTML! */
#media-container::before {
    content: 'FETCHED';
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4dfce0; /* Bright cyan */
    color: #000000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px; /* Pill shape */
    z-index: 10;
    letter-spacing: 0.5px;
}

#media-container img, 
#media-container iframe {
    width: 100%;
    height: auto;
    max-height: 350px; /* Prevents super tall images from breaking the layout */
    object-fit: cover; /* Crops nicely like a dashboard thumbnail */
    display: block;
}

/* 6. TITLE SECTION - Visually moved to the middle */
#title {
    order: 2; /* Places title under the image */
    padding: 20px 20px 8px 20px;
    color: #ffffff;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 700;
}

/* 7. DESCRIPTION SECTION - Stays at the bottom */
.description-box {
    order: 3; 
    padding: 0 20px 25px 20px;
}

#description {
    line-height: 1.4;
    font-size: 0.95rem;
    color: #9ba0b6; /* The light grayish-blue text from the cards */
    text-align: left;
}

/* 8. Footer */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #4a4d65;
    width: 100%;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}