/* 
 * SafeHaul Enterprise Landing Page Styles 
 * minimalist-yet-premium, sales-focused 
 */

:root {
    /* Brand Colors */
    --primary: #0CE1A5;
    --primary-hover: #0ad39b;
    --deep-blue: #004C68;
    --deep-blue-light: #005a7acc;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-800: #1e293b;
    --black: #0f172a;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;

    /* Layout & Shadows */
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ========================================= */
/* RESET & BASE                              */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ========================================= */
/* TYPOGRAPHY                                */
/* ========================================= */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-500);
}

/* ========================================= */
/* UTILITIES & COMPONENTS                    */
/* ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title h2 {
    color: var(--deep-blue);
}

.bg-light {
    background-color: var(--gray-100);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-blue);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--deep-blue);
    color: var(--deep-blue);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-500);
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ========================================= */
/* NAVIGATION                                */
/* ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--deep-blue);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-500);
}

.nav-link:hover {
    color: var(--deep-blue);
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal), padding var(--transition-normal);
        gap: 0;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-link {
        padding: 1rem 5%;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
        /* Can decide to show/hide generic nav CTA on mobile later, standard practice is hide */
    }
}

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */
.hero {
    padding: 10rem 5% 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(12, 225, 165, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-visual {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.screenshot {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* ========================================= */
/* FEATURES SECTION                          */
/* ========================================= */
.features-section {
    padding: 6rem 5%;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(12, 225, 165, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.feature-img {
    margin-top: auto;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    max-height: 180px;
    object-fit: cover;
    object-position: top;
}

/* ========================================= */
/* COMPARE / WHY SAFEHAUL                    */
/* ========================================= */
.compare-section {
    padding: 6rem 5%;
    background-color: var(--gray-50);
}

.compare-table-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
    background-color: var(--gray-100);
    color: var(--black);
    font-weight: 600;
}

.highlight-col {
    background-color: rgba(12, 225, 165, 0.05);
    font-weight: 600;
    color: var(--deep-blue);
}

.compare-event-demo {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-badge {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--gray-200);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #10b981;
}

.dot.blue {
    background: #3b82f6;
}

.dot.purple {
    background: #8b5cf6;
}

/* ========================================= */
/* PRICING                                   */
/* ========================================= */
.pricing-section {
    padding: 6rem 5%;
}

.pricing-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    flex-wrap: wrap;
}

.price-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    flex: 1;
    max-width: 450px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.premium {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(12, 225, 165, 0.2), var(--shadow-md);
    transform: translateY(-10px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--black);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.period {
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.plan-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 48px;
}

.plan-features {
    margin-bottom: 2.5rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--gray-800);
}

.pricing-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================= */
/* TESTIMONIALS                              */
/* ========================================= */
.testimonials-section {
    padding: 6rem 5%;
    background: var(--deep-blue);
    color: var(--white);
}

.testimonials-section .section-title h2 {
    color: var(--white);
}

.company-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.company-logo-item {
    background: rgba(255, 255, 255, 1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    min-width: 200px;
    transition: transform var(--transition-normal);
}

.company-logo-item:hover {
    transform: translateY(-5px);
}

.company-logo-item img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
}

.tophire-logo {
    flex-direction: column;
    color: var(--deep-blue);
    text-align: center;
}

.tophire-text {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

.tophire-sub {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

/* ========================================= */
/* FAQ                                       */
/* ========================================= */
.faq-section {
    padding: 6rem 5%;
    background: var(--white);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-row {
    border-bottom: 1px solid var(--gray-200);
}

.faq-row:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary-hover);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--gray-500);
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

.faq-row.active .faq-answer {
    max-height: 500px;
    /* arbitrary max height */
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.footer-section {
    background: var(--gray-800);
    color: var(--white);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--gray-400);
    max-width: 300px;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.legal-disclaimer {
    font-size: 0.75rem !important;
}

/* ========================================= */
/* MODAL OVERLAY                             */
/* ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
}

/* ========================================= */
/* PRIVACY POLICY PAGE                       */
/* ========================================= */
.privacy-hero {
    padding: 10rem 5% 4rem;
    background-color: var(--gray-50);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.privacy-hero h1 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.privacy-hero p {
    color: var(--gray-500);
}

.policy-section {
    background-color: var(--gray-50);
}

.policy-content {
    max-width: 900px;
    margin: 4rem auto 6rem;
    background: var(--white);
    padding: 4rem 5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.policy-content section:first-of-type h2 {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.25rem;
    color: var(--black);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    line-height: 1.8;
}

.policy-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    list-style-type: disc;
    line-height: 1.6;
}

.policy-content a {
    color: var(--primary);
    font-weight: 500;
}

.policy-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 2.5rem 2rem;
        margin: 2rem 5% 4rem;
        width: auto;
    }
}

.modal-header p {
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(12, 225, 165, 0.1);
}

/* ========================================= */
/* MEDIA QUERIES                             */
/* ========================================= */
@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 5% 4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-cards {
        flex-direction: column;
    }

    .price-card.premium {
        transform: translateY(0);
    }
}

/* Spam trap: real visitors and assistive technology never encounter this. */
.honeypot-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   SafeHaul News & Insights
   --------------------------------------------------------------------------
   Uses the existing :root brand tokens and the same card/section idiom as the
   features and pricing sections, so the blog reads as part of this site rather
   than as an embedded application view. Nothing here depends on the React
   design system.
   ========================================================================== */

.news-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-loading,
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    padding: 2rem 0;
    margin: 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.news-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep-blue);
    margin: 0 0 0.5rem;
}

.news-card-body h2,
.news-card-body h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.news-card-body h2 a,
.news-card-body h3 a {
    color: var(--black);
    text-decoration: none;
}

.news-card-body h2 a:hover,
.news-card-body h3 a:hover {
    color: var(--deep-blue);
    text-decoration: underline;
}

.news-card-excerpt {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.news-meta {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin: 0 0 1rem;
}

.news-read-more {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--deep-blue);
    text-decoration: none;
}

.news-read-more::after {
    content: " \2192";
}

.news-read-more:hover {
    text-decoration: underline;
}

.news-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Focus must stay clearly visible for keyboard users on both the card links
   and the "view all" button. */
.news-card a:focus-visible,
.news-cta a:focus-visible {
    outline: 3px solid var(--deep-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Article and index pages rendered by serveBlogPublic ----------------- */

.news-article,
.news-index {
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.news-index {
    max-width: var(--max-width);
}

.news-index-header,
.news-article-header {
    margin-bottom: 2rem;
}

.news-article-header h1,
.news-index-header h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
}

.news-figure {
    margin: 0 0 2rem;
}

.news-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

.news-credit {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.news-credit a {
    color: var(--gray-500);
}

.news-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-800);
}

.news-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.news-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.news-body p,
.news-body ul {
    margin: 0 0 1.25rem;
}

.news-body ul {
    padding-left: 1.5rem;
}

.news-body li {
    margin-bottom: 0.5rem;
}

.news-body blockquote {
    border-left: 4px solid var(--primary);
    margin: 0 0 1.25rem;
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: var(--gray-500);
}

.news-sources,
.news-about {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.news-sources h2,
.news-about h2 {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
}

.news-sources ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
}

.news-sources li {
    margin-bottom: 0.5rem;
}

.news-disclaimer {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.news-back {
    margin-top: 2rem;
}

.news-back a {
    color: var(--deep-blue);
    font-weight: 600;
    text-decoration: none;
}

/* --- Responsive: 1024, 768 and 412 ------------------------------------- */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 3.5rem 1.25rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .news-article,
    .news-index {
        padding: 6rem 1.25rem 3rem;
    }

    .news-article-header h1,
    .news-index-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 3rem 1rem;
    }

    .news-card-body {
        padding: 1.25rem;
    }

    .news-article,
    .news-index {
        padding: 5.5rem 1rem 2.5rem;
    }

    .news-article-header h1,
    .news-index-header h1 {
        font-size: 1.5rem;
    }

    /* Long source URLs are the one thing likely to force a horizontal
       scrollbar at 412px, so they are allowed to wrap mid-word. */
    .news-sources a {
        word-break: break-word;
    }
}
