section.home-banner{
    height:85vh;
    width: 100%;
    background-image: url(../resources/home_banner.webp);
    background-size: cover;
    background-position: content;
    background-repeat: no-repeat;
}

body{
    background-image: url(../resources/Background.png);
    overflow-y: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

section.Countdown-section{
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    padding-bottom: 10px;
    text-align: center;
    color: white;
    font-family: 'Helvetica', sans-serif;
    font-weight: bold;
}

p.label{
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.display-timer{
    font-size: 5rem;
    word-spacing: 15px;
    margin-bottom: 30px;
}

.register-btn {
    display: inline-block;
    background-color: #eb0028; /*updated the color*/
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 100px; 
    border-radius: 12px; 
    transition: 0.3s;
}

.register-btn:hover {
    background-color: #eb0028; /*updated the color*/
    transform: scale(1.02);
}

section.home-banner-2{
    width: 80%;
    height:50vh;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5%;
    padding-bottom: 25%;
    background-image: url(../resources/home_banner_2.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.home-info-section {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
}

.home-info-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center; /* Vertically centers the text alongside the picture */
    gap: 50px; /* Space separating the text section from the picture box */
}

.home-text-column {
    flex: 1; /* Automatically shares space equally */
}

.home-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.home-title .ted-red {
    color: #e62b1e; /* Distinctive bold official brand red */
}

.home-description {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 300;
    text-align: justify;
}
a{
    color:#e62b1e;
    text-decoration: underline;
}

/* ===================================================
   HOMEPAGE MOBILE MEDIA QUERIES (768px and below)
   =================================================== */
@media (max-width: 768px) {
    /* 1. Compress the Hero Banner frame for smaller devices */
    section.home-banner {
        height: 45vh;
    }

    /* 2. THE GAP FIX: Tighten up the Countdown Section Container */
    section.Countdown-section {
        padding: 30px 20px 5px 20px !important; /* Heavily cuts down top and bottom empty spaces */
    }

    p.label {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 5px !important; /* Pulls the timer text closer to the heading label */
    }

    /* Scale down the countdown numbers and eliminate large blank line gaps */
    .display-timer {
        font-size: 2.2rem !important; /* Fits perfectly on narrow phone monitors */
        word-spacing: 5px !important;
        line-height: 1.1 !important; /* Shaves off loose empty spacing above and below the digits */
        margin-bottom: 12px !important; /* Pulls the registration action button up closer */
        padding: 0 10px;
    }

    /* Tighten button scaling padding boxes */
    .register-btn {
        font-size: 1.1rem;
        padding: 10px 0; /* Snugger button proportions for mobile fingers */
        width: 85%;
        max-width: 260px;
    }

    /* 3. Perfect the alignment and spacing for the Infographic Banner */
    section.home-banner-2 {
        width: 100% !important; /* Fits nicely inside mobile viewport borders */
        height: auto !important; /* Destroys the desktop vh parameters completely */
        
        /* Ensure zero residual desktop percentage padding can leak in */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        
        /* THE MASTER SNAP CONTROLLER: Lifts the banner frame tightly under the register action button */
        margin: 0 auto !important; 
        
        /* Maintain the uniform vertical ratio blueprint layout */
        aspect-ratio: 16 / 9 !important; 
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Snap horizontal sections into column boxes */
    .home-info-container {
        flex-direction: column !important;
        text-align: center;
        padding: 10px 10px;
        gap: 10px;
    }

    /* Flips row-reverse items so text is stacked nicely on top of images on mobile */
    .alt-layout .home-info-container {
        flex-direction: column-reverse !important;
    }

    /* Turn justified text to left-aligned to prevent ugly spacing gaps on phones */
    .home-description {
        text-align: left;
    }
    
}