:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #1565C0; /* Education Blue */
    --secondary-color: #f5f7fa; /* Light Grey/Blue Background */
    --border-color: #e0e0e0;
    --font-main: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Inter', 'Open Sans', sans-serif;
    --white: #ffffff;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    min-width: 0;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 20px;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding: 10px; /* Touch target size improvement */
}

nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Feed Items (Index) */
.feed-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.feed-item h3 {
    margin-top: 0;
    color: var(--accent-color);
}

.read-audit { /* Renaming to .read-more generally, but keeping class for now */
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--white);
    background-color: var(--accent-color);
    text-transform: uppercase;
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px; /* Minimum touch target */
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.read-audit:hover {
    background-color: #0d47a1;
    text-decoration: none;
    color: var(--white);
}

/* Articles */
article p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    color: #444;
}

.meta-data {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.meta-data p {
    margin: 5px 0;
}

.meta-data strong {
    color: var(--accent-color);
}

figure {
    margin: 40px 0;
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Sidebar */
aside {
    padding-left: 20px; /* Sidebar padding */
}

.sidebar-widget {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-top: 0;
    color: #333;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #555;
    display: block; /* Larger touch area */
    padding: 5px 0;
}

.sidebar-widget a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Visual feedback */
}

/* AdSense CLS Armor */
.ad-container-leaderboard {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  background-color: #f0f0f0; /* Light grey placeholder */
  border: 1px solid #ddd;
  border-radius: 4px;
}

.ad-container-sidebar {
    width: 300px;
    height: 600px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
    border-radius: 4px;
}

/* Revenue Modules */
.revenue-module, .transparency-module {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
    text-align: center;
}

.revenue-module {
    background-color: #f0f7ff; /* Very light blue tint */
    border-color: #bbdefb;
}

.kicker {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

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

.btn-payment {
    display: inline-block;
    background-color: #0070ba; /* PayPal Blue */
    color: white !important;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    min-width: 200px; /* Touch target */
    min-height: 44px; /* Touch target */
    line-height: 20px;
    margin-bottom: 15px;
}

.btn-payment:hover {
    background-color: #005ea6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,112,186,0.3);
}

.notice-list {
    list-style: none;
    padding: 0;
    font-size: 0.8rem;
    color: #888;
    text-align: left;
    margin-top: 10px;
}

.notice-list li {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #263238; /* Dark Blue/Grey for contrast */
    color: #cfd8dc;
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
}

footer a {
    color: #ffffff;
    margin: 0 15px;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    text-decoration: none;
}

footer p {
    font-size: 0.9rem;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    aside {
        padding-left: 0;
        margin-top: 40px;
    }
    .ad-container-sidebar {
        width: 100%;
        height: 250px;
        position: static;
        margin-bottom: 40px;
    }
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        margin: 5px 10px;
        font-size: 0.9rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .ad-container-leaderboard {
        min-height: 250px; /* Rectangle for mobile */
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    header, footer, .ad-container-leaderboard, .ad-container-sidebar, .read-audit, nav, aside, .revenue-module, .transparency-module {
        display: none !important;
    }
    .content-grid {
        grid-template-columns: 1fr;
        display: block;
    }
    .main-content {
        box-shadow: none;
        padding: 0;
    }
    a {
        text-decoration: none;
        color: black;
    }
    h1, h2, h3 {
        color: black;
        border-bottom: 1px solid #ccc;
    }
    figure {
        border: none;
        box-shadow: none;
        background: none;
    }
    figure img {
        max-width: 100% !important;
        filter: grayscale(100%);
    }
}
