/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Imports - Classic combination */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #1a365d;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    text-align: center;
    padding: 20px 0;
}

.site-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.site-title::before {
    content: "📊";
    margin-right: 12px;
    font-size: 0.8em;
}

.tagline {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85em;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
    padding-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    opacity: 0.7;
}

/* News Ticker - Simplified single line */
.news-ticker {
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    height: 32px;
    position: relative;
}

.ticker-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding: 8px 0;
    animation: scroll-ticker 120s linear infinite;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8em;
    color: #4a5568;
    font-weight: 400;
    line-height: 32px;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.hero-text {
    font-size: 1.05em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.button.primary {
    background-color: #d69e2e;
    color: white;
    border-color: #d69e2e;
}

.button.primary:hover {
    background-color: #b7791f;
    border-color: #b7791f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button.secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.button.secondary:hover {
    background-color: white;
    color: #1a365d;
}

.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sections */
section {
    padding: 60px 20px;
}

section h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.9em;
    font-weight: 400;
    color: #1a365d;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.3px;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #d69e2e;
    margin: 15px auto 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.05em;
    color: #4a5568;
    font-weight: 300;
}

/* Key Facts */
.key-facts {
    background-color: white;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fact-card {
    padding: 30px;
    background-color: #f7fafc;
    border-left: 4px solid #d69e2e;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.fact-card h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.fact-card h3::before {
    content: "✓";
    margin-right: 8px;
    color: #d69e2e;
    font-weight: bold;
}

.fact-card p {
    font-size: 0.95em;
    line-height: 1.6;
    font-weight: 300;
}

/* News Section */
.news-section {
    background-color: #f7fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.news-item {
    background-color: white;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s, transform 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-item.featured {
    grid-column: 1 / -1;
    background-color: #edf2f7;
    border-left: 4px solid #d69e2e;
}

.news-date {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8em;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date::before {
    content: "📅";
    margin-right: 6px;
    font-size: 0.9em;
}

.news-item h3 {
    font-size: 1.15em;
    margin-bottom: 12px;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 400;
    line-height: 1.4;
}

.news-item h3 a {
    color: #2c5282;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #1a365d;
    text-decoration: underline;
}

.news-item p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 300;
}

.news-source {
    display: inline-block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.75em;
    color: #a0aec0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Eligibility Section */
.eligibility-section {
    background-color: white;
}

.eligibility-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.eligibility-box {
    padding: 30px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: transform 0.3s;
}

.eligibility-box:hover {
    transform: translateY(-2px);
}

.eligibility-box.highlight {
    background-color: #edf2f7;
    border: 2px solid #d69e2e;
}

.eligibility-box h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25em;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 15px;
}

.eligibility-box h3::before {
    content: "📋";
    margin-right: 8px;
}

.eligibility-box ul {
    margin: 15px 0;
    padding-left: 25px;
}

.eligibility-box li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 300;
}

.note {
    font-size: 0.9em;
    font-style: italic;
    color: #4a5568;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-weight: 300;
}

/* Timeline */
.how-to-section {
    background-color: #f7fafc;
}

.timeline {
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #d69e2e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.3);
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-content h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.timeline-content li {
    margin-bottom: 8px;
    font-weight: 300;
}

/* Resources Section */
.resources-section {
    background-color: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    padding: 30px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

.resource-card h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    color: #1a365d;
    margin-bottom: 12px;
}

.resource-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.resource-card .button {
    margin-top: 10px;
    background-color: #2c5282;
    color: white;
}

.resource-card .button:hover {
    background-color: #1a365d;
}

.brokerage-guides {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 30px;
    background-color: #edf2f7;
    border-radius: 4px;
}

.brokerage-guides h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    color: #1a365d;
    margin-bottom: 15px;
}

.brokerage-guides ul {
    padding-left: 25px;
}

.brokerage-guides li {
    margin-bottom: 10px;
}

.brokerage-guides a {
    color: #2c5282;
    text-decoration: none;
}

.brokerage-guides a:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #edf2f7;
    border-top: 3px solid #d69e2e;
    border-bottom: 3px solid #d69e2e;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-form {
    background-color: white;
    padding: 40px;
    border-radius: 4px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
}

.newsletter-form h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.3em;
    color: #1a365d;
    margin-bottom: 15px;
}

.newsletter-form ul {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.newsletter-form li {
    margin-bottom: 8px;
}

.signup-form .form-group {
    margin-bottom: 20px;
}

.signup-form label {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 0.9em;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 500;
}

.signup-form input[type="email"],
.signup-form input[type="text"],
.signup-form textarea,
.signup-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95em;
}

.signup-form input[type="checkbox"] {
    margin-right: 8px;
}

.privacy-note {
    font-size: 0.85em;
    color: #718096;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-content {
    max-width: 800px;
    margin: 40px auto 0;
}

.contact-box-single {
    padding: 40px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 0.9em;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #edf2f7;
    border-radius: 4px;
    border-left: 3px solid #d69e2e;
}

.contact-info ul {
    margin-top: 10px;
    padding-left: 25px;
}

.contact-info li {
    margin-bottom: 8px;
}

.contact-info a {
    color: #2c5282;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Newsletter Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #718096;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #2d3748;
}

.popup-content h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.5em;
    color: #1a365d;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
}

.popup-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.popup-form input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95em;
}

.popup-form button {
    padding: 12px 24px;
    white-space: nowrap;
}

.popup-note {
    font-size: 0.85em;
    color: #718096;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Footer */
footer {
    background-color: #1a365d;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d69e2e;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.9em;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85em;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .site-title {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 1.6em;
    }

    section h2 {
        font-size: 1.6em;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .facts-grid,
    .news-grid,
    .eligibility-content,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form,
    .contact-box-single {
        padding: 20px;
    }

    /* Mobile ticker adjustments */
    .news-ticker {
        height: 28px;
    }

    .ticker-content {
        font-size: 0.7em;
        line-height: 28px;
    }

    /* Mobile popup adjustments */
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .popup-form {
        flex-direction: column;
    }

    .popup-form button {
        width: 100%;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    header,
    .hero,
    .news-ticker,
    .newsletter-section,
    .contact-section,
    .popup-overlay,
    footer {
        display: none;
    }

    body {
        background-color: white;
    }
}