html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #FFFFFF;
    color: #000000;
    font-family: Arial, sans-serif;
}

header {
    background: #232F3E;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

header p {
    font-size: 1.2rem;
}

main {
    padding: 1rem;
    max-width: 900px;
    margin: auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

textarea,
input {
    width: 90%;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: #0078d4;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #005bb5;
}

pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

footer {
    background: #232F3E;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    margin: auto;
}

footer a {
    color: #fff;
    /* Default white for unvisited links */
    text-decoration: none;
}

/* Hover state */
footer a:hover {
    color: #f90;
    /* Orange for hover */
}

/* Visited state */
footer a:visited {
    color: #ccc;
    /* Light gray for visited links */
}

/* Default Link Style */
.nav-links a,
.mobile-nav a {
    color: #333333;
    /* Dark grey text */
    text-decoration: none;
}

/* Hover State */
.nav-links a:hover,
.mobile-nav a:hover {
    color: #0078D4;
    /* Calming blue hover color */
}

/* Visited State */
.nav-links a:visited,
.mobile-nav a:visited {
    color: #6A5ACD;
    /* Soft lavender-blue for visited links */
}

/* Active State */
.nav-links a:active,
.mobile-nav a:active {
    color: #FF4500;
    /* Bright orange for an engaging active state */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }
}

.header-book-ad {
    --ad-bg: #0b1220;
    --ad-bg2: #101a33;
    --ad-border: rgba(255, 255, 255, 0.12);
    --ad-text: rgba(255, 255, 255, 0.92);
    --ad-muted: rgba(255, 255, 255, 0.72);
    --ad-accent: #7c3aed;
    --ad-accent2: #22c55e;

    width: 100%;
    border: 1px solid var(--ad-border);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ad-bg), var(--ad-bg2));
    color: var(--ad-text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.header-book-ad__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.header-book-ad__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-book-ad__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ad-muted);
}

.header-book-ad__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.header-book-ad__title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-book-ad__sub {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    color: var(--ad-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-book-ad__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-book-ad__link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.header-book-ad__link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.header-book-ad__cta {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 13px;
    color: #0b1220;
    background: linear-gradient(135deg, var(--ad-accent2), #a3e635);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.18);
    transition: transform 120ms ease, filter 120ms ease;
    white-space: nowrap;
}

.header-book-ad__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.header-book-ad__cta:active {
    transform: translateY(0px);
}

.header-book-ad__spark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(15deg);
}

@media (max-width: 720px) {
    .header-book-ad__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-book-ad__title,
    .header-book-ad__sub {
        white-space: normal;
    }

    .header-book-ad__actions {
        justify-content: space-between;
    }
}

/* Article Specific Styles */
.intro-box {
    background: #f0f7ff;
    border-left: 4px solid #0066cc;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 24px 0;
    font-size: 1.05em;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    flex: 1 1 180px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.stat-card .num {
    font-size: 1.8em;
    font-weight: bold;
    color: #0066cc;
}

.stat-card .label {
    font-size: 0.85em;
    color: #555;
    margin-top: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #1a1a2e;
    color: #fff;
}

.comparison-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 16px 0;
    padding: 16px 20px;
    background: #fafafa;
}

.faq-item h3 {
    margin-top: 0;
    color: #0066cc;
    font-size: 1.05em;
}

.faq-item p {
    margin: 8px 0 0;
    color: #444;
}

.cta-box {
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 36px 0;
    text-align: center;
}

.cta-box a {
    color: #7ec8e3;
    font-weight: bold;
}
