/* Reset & Base */
:root {
    --primary-red: #C8102E;
    --primary-white: #FFFFFF;
    --primary-navy: #003087; /* Standard Navy */
    --text-color: #00205B; /* Deep Navy */
    --bg-color: #F4F6F8; /* Soft White/Grey */
    --accent-blue: #0070ba; /* Trust Blue for payments */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-navy);
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; margin-top: 1.5em; }
h3 { font-size: 1.5rem; margin-top: 1.2em; }
p { margin-bottom: 1em; }

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

/* Header */
header {
    background-color: var(--primary-white);
    border-bottom: 4px solid var(--primary-red);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.brand {
    text-align: center;
    margin-bottom: 1rem;
}

.brand h1 {
    font-size: 2rem; /* Adjusted for mobile */
    margin-bottom: 0.2rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--primary-navy);
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

/* Navigation */
nav {
    background-color: var(--primary-navy);
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--primary-white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: inline-block; /* Ensure click area */
    min-height: 44px; /* Touch target law */
    display: flex;
    align-items: center;
}

nav a:hover {
    background-color: var(--primary-red);
    color: var(--primary-white);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #001f3f 100%);
    color: var(--primary-white);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Content Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.pillar-card {
    background: var(--primary-white);
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pillar-card h3 a {
    color: var(--primary-navy);
}

.pillar-card h3 a:hover {
    color: var(--primary-red);
}

/* Monetization Components */
.ad-container-leaderboard {
    min-height: 90px; /* Prevent CLS */
    background-color: #f0f0f0;
    margin: 1rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-container-responsive {
    min-height: 250px;
    background-color: #f0f0f0;
    margin: 2rem 0;
    text-align: center;
}

.btn-payment {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-align: center;
    min-width: 200px;
    min-height: 44px; /* Touch target law */
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-payment:hover {
    background-color: #005c99;
    color: white;
    text-decoration: none;
}

/* Sovereign Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 3rem 0;
    margin-top: 3rem;
}

.revenue-module, .transparency-module {
    margin-bottom: 2rem;
    text-align: center;
}

.kicker {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.notice {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.notice-list {
    list-style: none;
    font-size: 0.85rem;
    color: #777;
    padding: 0;
}

.ymyl-disclaimer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

/* Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 768px) {
    .brand h1 { font-size: 3rem; }
    h1 { font-size: 3.5rem; }
    footer .container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .revenue-module, .transparency-module {
        flex: 1;
        min-width: 300px;
        margin: 0 1rem;
    }
}

.brand-name {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
}
@media (min-width: 768px) {
    .brand-name { font-size: 3rem; }
}


/* Related Dakota Resources */
.related-resources-module {
    margin-bottom: 2rem;
    text-align: center;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.5rem;
}

.resource-list a {
    color: var(--primary-navy);
    font-weight: 600;
}

.resource-list a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .related-resources-module {
        flex: 1;
        min-width: 300px;
        margin: 0 1rem;
    }
}


/* Smooth Scrolling & Animations */
html {
    scroll-behavior: smooth;
}

/* Header Sticky & Shadow */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Pillar Card Hover Scale */
.pillar-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pillar-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Button Hover Expansion */
.btn-payment {
    transition: all 0.2s ease-in-out;
}

.btn-payment:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 112, 186, 0.4);
}

/* Fade In Animation for Content Blocks */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
