:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #0066cc;
    --accent-hover: #0052a3;
    --success-color: #28a745;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e1e8ed;
    --bg-light: #f8f9fb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
#header {
    background: var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: #fff;
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: none;
}

.logo:hover {
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: #fff;
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-decoration: none;
}

.btn-cta {
    background: var(--accent-color);
    color: #fff;
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    border: 3px solid var(--accent-color);
}

.btn-cta:hover {
    background: #fff;
    color: var(--accent-color);
    border: 3px solid var(--accent-color);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Article */
.article {
    padding: 20px 0 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 20px;
}

.meta {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.advertorial {
    font-weight: bold;
}

.category {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.3;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
}

.featured-img {
    width: 100%;
    max-width: 940px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.article-body {
    max-width: 940px;
    margin: 0 auto;
}

p {
    margin-bottom: 1em;
}

strong {
    font-weight: 700;
}

ul {
    margin: 15px 0;
    padding-left: 40px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Age Selection */
.age-selection {
    margin: 40px 0;
    text-align: center;
    background: var(--bg-light);
    padding: 40px 20px;
    border-radius: 8px;
}

.age-selection h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 26px;
}

.age-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.age-btn {
    background: #fff;
    color: var(--accent-color);
    border: 3px solid var(--accent-color);
    padding: 20px 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.age-btn:hover {
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Footer */
#footer {
    background: var(--primary-color);
    border-top: 4px solid var(--accent-color);
    padding: 40px 0 20px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo-icon {
    background: #fff;
    color: var(--accent-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
}

#footer a {
    color: #fff;
    text-decoration: underline;
}

#footer a:hover {
    text-decoration: none;
}

.footer-links {
    margin: 15px 0;
}

.disclaimer {
    margin-top: 20px;
    text-align: center;
}

/* Exit Intent Popup */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.exit-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 50px 30px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s ease;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s;
}

.exit-popup-close:hover {
    color: var(--text-color);
}

.exit-popup h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 900;
}

.exit-popup-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.exit-popup-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.exit-popup-btn {
    padding: 20px 50px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    border: 3px solid var(--accent-color);
}

.exit-popup-btn-yes {
    background: var(--accent-color);
    color: #fff;
}

.exit-popup-btn-yes:hover {
    background: #fff;
    color: var(--accent-color);
    transform: scale(1.05);
    text-decoration: none;
}

.exit-popup-btn-no {
    background: #fff;
    color: var(--accent-color);
}

.exit-popup-btn-no:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .exit-popup-content {
        padding: 40px 20px;
    }

    .exit-popup h2 {
        font-size: 26px;
    }

    .exit-popup-subtitle {
        font-size: 16px;
    }

    .exit-popup-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .exit-popup-btn {
        width: 100%;
        min-width: auto;
        padding: 18px 30px;
        font-size: 20px;
    }
    
    .header-content {
        justify-content: center;
    }
}

/* Responsive */
@media (min-width: 768px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    .logo {
        font-size: 28px;
    }

    .logo-text {
        display: inline;
        font-size: 18px;
        font-weight: 700;
    }

    .footer-logo {
        font-size: 32px;
    }

    .age-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767px) {
    .age-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}