/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0022cc;
    --dark-blue: #000b44;
    --text-dark: #0a1133;
    --text-muted: #555e7d;
    --gold: #d4af37;
    --gold-bg: #fffbf0;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b132b;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;

  /* Set the image file path */
  background-image: url('images/background1.png'); 

  /* Prevent the image from repeating as a grid */
  background-repeat: no-repeat; 

  /* Center the image horizontally and vertically */
  background-position: center center; 

  /* Scale the image to perfectly cover the screen */
  background-size: cover; 

  /* Keep the background fixed in place while scrolling */
  background-attachment: fixed; 

  /* Fallback color if the image fails to load */
  background-color: #cccccc; 


}

/* --- Background Image & Container --- */
.background-container {
    width: 100%;
    max-width: 1100px;
    background: radial-gradient(circle, rgba(16,28,68,0.85) 0%, rgba(5,10,30,1) 100%), 
                url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?q=80&w=1500') no-repeat center center/cover;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Temporary Mock Header Logo --- */
.header-logo {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}
.logo-placeholder {
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
}
.logo-placeholder .year {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2px;
}
.logo-placeholder .sub {
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 500;
}
.logo-placeholder .countries {
    font-size: 0.75rem;
    color: #ff4a4a;
    letter-spacing: 1px;
}

/* --- Main Card Layout --- */
.challenge-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 950px;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

/* --- Typography (Updated Title) --- */
.main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem; /* Scaled down slightly to cleanly fit the longer string */
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    font-size: 2.4rem;
    color: var(--dark-blue);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

/* --- Hero CTA Container (Above the Fold with extra whitespace below) --- */
.hero-cta-container {
    margin-bottom: 55px; /* Added extra whitespace beneath the main button */
    display: flex;
    justify-content: center;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 16px 45px;
    width: 100%;
    max-width: 350px;
    border-radius: 50px;
}

/* --- Info Grid (Dates) --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.info-box {
    border: 1.2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}
.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}
.blue-icon { background-color: #edf2ff; color: var(--primary-blue); }
.green-icon { background-color: #ebfbee; color: #2b8a3e; }

.label-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.date-highlight {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
}
.time-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Prizes Section --- */
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
}
.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}
.section-title::before { left: 0; }
.section-title::after { right: 0; }

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.prize-card {
    border: 1.2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    position: relative;
    overflow: hidden;
}
.gold-card {
    border-color: #ffd43b;
    background-color: var(--gold-bg);
}
.star-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fab005;
    color: white;
    width: 35px;
    height: 35px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    padding: 4px;
    font-size: 0.7rem;
    text-align: left;
}
.trophy-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.trophy-icon.gold { color: #fab005; }
.trophy-icon.silver { color: #ced4da; }
.trophy-icon.bronze { color: #e67e22; }

.place {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e67e22;
    letter-spacing: 0.5px;
}
.gold-card .place { color: #f59f00; }

.amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.1;
    margin: 4px 0;
}
.reward-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.reward-type i {
    color: #ff9900;
    margin-left: 2px;
}

/* --- How it Works Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px dashed var(--border-color);
    padding-top: 30px;
    margin-bottom: 40px;
    text-align: left;
}
.step-item {
    display: flex;
    gap: 15px;
    position: relative;
}
.step-number {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--primary-blue);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}
.step-icon {
    font-size: 1.6rem;
    color: var(--dark-blue);
    background-color: #f8fafc;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.step-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4px;
}
.step-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- CTA Buttons (Single Bottom Layout) --- */
.cta-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 34, 204, 0.3);
}
.btn-primary:hover {
    background-color: #001bbb;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    min-width: 200px;
    justify-content: center;
}
.btn-secondary:hover {
    background-color: #f0f4ff;
}

/* --- Footer --- */
.card-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .challenge-card { padding: 30px 20px; }
    .main-title { font-size: 1.8rem; flex-direction: column; gap: 6px; text-align: center; }
    .title-icon { font-size: 2rem; }
    .info-grid, .prizes-grid, .steps-grid { grid-template-columns: 1fr; }
    .btn-hero, .btn-secondary { width: 100%; max-width: 100%; }
    .section-title::before, .section-title::after { width: 25%; }
}

