/* --- CSS Variables & Reset --- */
:root {
    --color-bg-dark: #0c132c;
    --color-bg-darker: #080d1f;
    --color-primary-red: #fa131e;
    --color-text-white: #ffffff;
    --color-text-gray: #c1c0be;
    --color-link: #4fa9e0;
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Instrument Sans', sans-serif;
    --max-width: 1200px;
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-red { color: var(--color-primary-red); }
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }

.hidden { display: none; }

/* --- Page Structure --- */
.page-section {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block; /* Visible when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header/Nav --- */
.site-header {
    background-color: white;
    color: black;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1b1b1b;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active-link {
    color: #005ea2;
    text-decoration: underline;
}

.report-btn {
    background-color: var(--color-primary-red);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.3s;
}

.report-btn:hover {
    background-color: #d0000b;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
}

.hero-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: -40px; /* Overlap effect */
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 400;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtext {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
    color: #eee;
}

/* --- Benefits Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.benefit-item .amount {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.benefit-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mission Cards Section --- */
.mission-section {
    padding: 60px 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: white;
    color: black;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 400px;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); }

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.3); /* Overlay */
    transition: background 0.3s;
}

.card:hover .card-content { background: rgba(0,0,0,0.6); }

.card-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    background: white;
    color: black;
    padding: 5px 15px;
    margin-bottom: 15px;
    transform: rotate(-1deg);
}

.card-desc {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    background: white;
    color: black;
    padding: 5px 10px;
    margin-bottom: 20px;
    max-width: 80%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover { background: white; color: black; }

/* --- FAQ Accordion --- */
.faq-section {
    padding: 60px 20px;
    max-width: 880px;
    margin: 0 auto;
}

.accordion-item { border-top: 1px solid white; margin-bottom: 10px; }

.accordion-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    padding: 20px 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn::after { content: '+'; font-size: 1.5rem; margin-left: 10px; }
.accordion-btn.active::after { content: '-'; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    font-size: 1rem;
    color: #ddd;
}
.accordion-content p { padding-bottom: 20px; }

/* --- New Pages: About --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- New Pages: Apply / Forms --- */
.apply-container {
    max-width: 800px;
    margin: 60px auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border: 1px solid #333;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: none;
    border-radius: 4px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border: 1px solid #444;
}

/* --- New Pages: Friends --- */
.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.friend-link {
    display: block;
    padding: 20px;
    border: 1px solid #333;
    text-align: center;
    background: rgba(255,255,255,0.02);
}
.friend-link:hover {
    background: white;
    color: black;
    border-color: white;
}

/* --- Terms Page Styles --- */
.terms-content {
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border: 1px solid #333;
    color: #ddd;
    font-size: 0.9rem;
    max-height: 800px;
    overflow-y: auto;
}
.terms-content h3 {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
}
.terms-content p {
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-bg-darker);
    padding: 40px 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 20px;
}

.footer-col h3 {
    font-family: var(--font-serif);
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 1.2rem;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: white; text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; } /* Simplified for template */
    .benefits-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
}