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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Neutral Slate Background */
    margin: 0;
    padding: 0;
}

a {
    color: #0070ba; /* Trust-Blue */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Header */
header {
    background-color: #ffffff; /* White Header */
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    margin: 0;
}

/* Touch-Target Law: Min 44px */
nav a {
    font-weight: 600;
    color: #0a192f; /* Deep Navy */
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 20px; /* Large padding */
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

nav a:hover {
    background-color: #f0f7fc;
    text-decoration: none;
    color: #0070ba;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 15px;
    color: #0a192f; /* Deep Navy */
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #0070ba;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* Monetization: Direct Payment Button */
.btn-payment {
    display: inline-block;
    background-color: #0070ba; /* Trust-Blue */
    color: #ffffff !important; /* Force white */
    font-weight: 700;
    padding: 16px 32px; /* > 44px target */
    border-radius: 6px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 112, 186, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    min-width: 250px;
    text-decoration: none;
}

.btn-payment:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 112, 186, 0.3);
    text-decoration: none;
}

/* Support Section */
.support-section {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.support-section h3 {
    color: #0070ba;
    border-bottom: none;
    margin-top: 0;
}

/* AdSense CLS Armor */
.ad-container-leaderboard {
  min-height: 90px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  background-color: #eaeaea;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .ad-container-leaderboard {
    min-height: 250px;
  }
}

/* Layout */
.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px; /* Center content */
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content Card */
main {
    flex: 3;
    min-width: 300px;
    background-color: #ffffff; /* White Card */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

/* Sidebar Card */
aside {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff; /* White Card */
    padding: 30px;
    border-radius: 8px;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

/* Sidebar Styling */
aside h3 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0070ba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

aside a {
    color: #444;
    font-weight: 500;
    display: block;
    padding: 5px 0;
}

aside a:hover {
    color: #0070ba;
    padding-left: 5px;
    transition: padding-left 0.2s ease;
}

/* Ads */
.ad-sidebar {
    width: 300px;
    height: 250px;
    background-color: #f4f4f4;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
}

.ad-in-article {
    width: 100%;
    min-height: 150px;
    background-color: #f9f9f9;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    border: 1px dashed #ccc;
}

/* Homepage Hero */
.hero {
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card h3 {
    font-size: 1.15rem;
    margin: 15px;
}

.article-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 15px 15px;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid #eaeaea;
    background-color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    main, aside {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
}
