

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

:root {
    --brand-blue: #2E3192;
    --brand-blue-dark: #212569;
    --brand-deep-space: #0d0f2b;
    --brand-cyan: #67e8f9;
    --brand-yellow: #f0e445;
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --stroke-blue: #3b82f6;
    --danger-red: #ef4444;
    --danger-red-dark: #dc2626;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--brand-deep-space);
    color: var(--text-light);
    background-image: linear-gradient(to bottom right, var(--brand-blue), var(--brand-blue-dark), var(--brand-deep-space));
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- STARS BACKGROUND --- */

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    background-color: var(--text-light);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(103, 232, 249, 0.8);
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

#app-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    z-index: 1; /* Ensure content is above stars */
}

/* --- SHARED COMPONENTS --- */

.back-link {
    display: inline-block;
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-light);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-logo {
    display: inline-block;
    position: relative;
    margin-bottom: 3rem;
}

.main-logo-image {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.sponsors {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 210px;
}
.sponsor-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}
.sponsor-logo--light-image {
    /* No special styles */
}
.sponsor-logo--light-image img {
    /* Removed drop-shadow filter */
}

.copyright-notice {
    margin-top: 4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.025em;
    line-height: 1.5;
}

.copyright-notice .privacy-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-link {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
}
.footer-link:hover {
    text-decoration: underline;
}

/* --- HUB PAGE --- */
.hub-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    text-align: center;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hub-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hub-subtitle p + p {
    margin-top: 1rem;
}

.trail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.home-guide-link-container {
    text-align: center;
    margin-top: 3rem;
}

.home-guide-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--brand-cyan);
    color: var(--brand-deep-space);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-guide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(103, 232, 249, 0.4);
}

.stop-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.stop-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-cyan);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stop-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stop-title-preview {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- STOP PAGE --- */
.stop-page-header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.2;
}
.stop-page-header .mission-title {
    color: var(--brand-yellow);
    display: block;
}

.stop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .stop-layout {
        grid-template-columns: 2fr 3fr;
    }
    .stop-column-right {
        margin-top: -4rem;
    }
}

.stop-column-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.content-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-yellow);
    margin-bottom: 0.75rem;
}

.content-box p, .content-box li {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.content-box ul {
    list-style-type: '★ ';
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-box blockquote {
    border-left: 4px solid var(--brand-cyan);
    padding-left: 1rem;
    font-style: italic;
    color: var(--brand-cyan);
    margin-top: 1rem;
    white-space: pre-wrap;
}

.instructions-bubble {
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    padding: 2rem 2.5rem;
    border-radius: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.instructions-bubble h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.instructions-bubble p {
    font-size: 1.1rem;
    line-height: 1.6;
}
.instructions-bubble p:not(:last-child) {
    margin-bottom: 1rem;
}

.video-container {
    margin-top: 4rem;
}

.video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: #000; /* Black background for letterboxing */
}

.share-section {
    margin-top: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.share-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--brand-yellow);
}

.share-section p {
    color: #e0e0e0;
    max-width: 600px;
    line-height: 1.6;
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-light);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(59, 130, 246, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.twitter-btn {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.twitter-btn:hover {
    background-color: #1a91da;
}

.facebook-btn {
    background-color: #1877F2;
    border-color: #1877F2;
}

.facebook-btn:hover {
    background-color: #166fe5;
}

.instagram-btn {
    background: linear-gradient(45deg, #5851DB, #C13584);
    border-color: transparent;
}

.instagram-btn:hover {
    filter: brightness(0.9);
}

.native-share-btn {
    background-color: var(--brand-cyan);
    color: var(--brand-deep-space);
    border-color: var(--brand-cyan);
}

.native-share-btn:hover {
    background-color: #88f0ff;
}

.hidden {
    display: none;
}

.about-trail-section {
    margin-top: 4rem;
}

.about-trail-section p:not(:last-child) {
    margin-bottom: 1rem;
}

.home-guide-inline-link {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--brand-cyan);
    transition: color 0.2s, border-color 0.2s;
}

.home-guide-inline-link:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}


/* --- HOME GUIDE PAGE --- */

.diploma-section {
    background-color: rgba(13, 15, 43, 0.5);
    border: 1px solid var(--brand-yellow);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(240, 228, 69, 0.3);
}

.diploma-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-yellow);
    margin-bottom: 0.75rem;
}

.diploma-section p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.diploma-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--brand-yellow);
    color: var(--brand-deep-space);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.diploma-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 228, 69, 0.5);
}

.diploma-download-btn svg {
    width: 24px;
    height: 24px;
}

.home-guide-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.activity {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.activity h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin-bottom: 0.25rem;
}
.activity p {
    color: #e0e0e0;
}
.activity p strong {
    color: var(--text-light);
}

.home-guide-info-section {
    margin-top: 1rem; /* Combined with gap from .home-guide-content */
}
.home-guide-info-section > p:not(:last-child) {
    margin-bottom: 1rem;
}
.benefits-subsection {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}
.home-guide-info-section > .benefits-subsection:first-of-type {
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
}
.benefits-subsection h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin-bottom: 0.5rem;
}
.benefits-subsection p {
    margin-bottom: 1.25rem;
}
.benefits-subsection p strong {
    color: var(--text-light);
    font-weight: 600;
}

/* --- ANALYTICS PAGE --- */
.analytics-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.analytics-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-yellow);
    line-height: 1.1;
}

.analytics-card .stat-label {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 0.5rem;
}

.analytics-section {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(5px);
}
.analytics-section:last-child {
    background-color: transparent;
    border: none;
    text-align: center;
}

.analytics-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-cyan);
    margin-bottom: 1.5rem;
}

.analytics-table .analytics-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
.analytics-table .analytics-table-row:last-child {
    border-bottom: none;
}
.analytics-table .analytics-table-row.header {
    font-weight: 700;
    color: var(--brand-cyan);
    border-bottom-width: 2px;
}
.analytics-table .analytics-table-row div:last-child {
    text-align: right;
    font-weight: 600;
}
.analytics-table .analytics-table-row.header div:last-child {
    font-weight: 700;
}

.btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background-color: var(--brand-cyan);
    color: var(--brand-deep-space);
}
.btn-primary:hover {
    background-color: #88f0ff;
}
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.btn-danger {
    background-color: var(--danger-red);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-danger:hover {
    background-color: var(--danger-red-dark);
    transform: translateY(-2px);
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 15, 43, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    z-index: 1000;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
#cookie-consent-banner.visible {
    transform: translateY(0);
}
.consent-text {
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 600px;
}
.consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- PRIVACY PAGE --- */
.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-content .content-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-content .content-box p:not(:last-child) {
    margin-bottom: 1rem;
}


/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 768px) {
    #cookie-consent-banner {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
}


@media (max-width: 640px) {
    .sponsors {
        padding: 1.5rem 1rem; /* Tighter horizontal padding */
        gap: 1.5rem 1rem; /* Tighter row and column gap */
    }

    .sponsor-logo {
        /* Ensure logos take up proportional space to form a grid */
        flex-grow: 1;
        flex-basis: 40%; 
        max-width: 45%;
    }
}