:root {
    --primary-color: #4A90E2;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --card-hover: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}
header {
    background-color: var(--light-bg);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--primary-color);
}
header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 10px auto 0;
}
header.hero {
    padding: 5rem 1.5rem;
    text-align: center;
}
header.hero h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}
header.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 1.5rem auto 2.5rem;
    opacity: 0.9;
}
article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
nav.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav.main-nav .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}
nav.main-nav .links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}
nav.main-nav .links a:hover {
    color: var(--primary-color);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-mobile-drawer {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 0;
}
.nav-mobile-drawer.nav-mobile-drawer--open {
    display: flex;
}
.nav-mobile-drawer a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--light-bg);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
}
.nav-mobile-drawer a:last-child { border-bottom: none; }
.nav-mobile-drawer a:hover { color: var(--primary-color); }
@media (max-width: 640px) {
    .nav-hamburger { display: flex; }
    nav .links { display: none; }
}
.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #555;
}
.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: inline-block;
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
}
.cta-button:hover {
    transform: scale(1.05);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.doc-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.doc-card h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.doc-card p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    flex-grow: 1;
}
.read-more {
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: inline-block;
}
h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}
h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
}
p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.image-placeholder {
    background-color: var(--light-bg);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    color: #888;
    font-weight: bold;
    margin: 1.5rem 0;
    display: block;
}
.pro-tip {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
.game-block {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.game-block h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.header-section {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.security-box {
    background-color: #fff1f2;
    border-left: 4px solid #e11d48;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.feature-card h4 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.feature-box {
    background-color: #e9f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
.tool-card {
     padding: 2rem;
     border: 1px solid var(--border-color);
     border-radius: 12px;
     background: #eef7ff;
}
.tool-card button {
    padding: 0.6rem 1.2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.highlight-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
#cookie-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default, slides up */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color, #E0E0E0);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    box-sizing: border-box;
    z-index: 9999;
    transition: bottom 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color, #333333);
}
.cookie-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cookie-content a {
    color: var(--primary-color, #4A90E2);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}
.downloads { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center; 
    align-items: center; 
    margin-top: 30px; 
}

.downloads img { 
    max-width: 180px; 
    height: auto; 
    transition: transform 0.2s; 
}

.downloads img:hover { 
    transform: scale(1.05); 
}
.email-link { 
    font-size: 1.2em; 
    color: #27ae60; 
    font-weight: bold; 
    text-decoration: none; 
}
.email-link:hover { 
    text-decoration: underline; 
}
.btn-cookie {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}
.btn-accept {
    background-color: var(--primary-color, #4A90E2);
    color: #ffffff;
}
.btn-accept:hover {
    background-color: #357ABD;
}
.btn-reject {
    background-color: var(--light-bg, #F8F9FA);
    color: #666666;
    border: 1px solid #ccc;
}
.btn-reject:hover {
    background-color: #e2e2e2;
}
/* Responsive layout for wider screens */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    .cookie-buttons {
        width: auto;
        flex-shrink: 0;
    }
}
.img-container {
    margin: 2.5rem 0;
    text-align: center;
}
.img-container img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}
.img-row {
    display: flex;
    gap: 1.5rem;
    
    /* This enables the horizontal scroll! */
    overflow-x: auto; 
    
    /* Align items to the left so they don't get cut off when scrolling */
    justify-content: flex-start; 
    
    /* Add padding so the box-shadows don't get clipped by the overflow */
    padding: 1rem 0.5rem; 
}

/* Prevent images inside the scrolling row from shrinking */
.img-row img {
    flex: 0 0 auto; 
}

/* Optional: Make the scrollbar look clean and modern */
.img-row::-webkit-scrollbar {
    height: 8px;
}
.img-row::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.img-row::-webkit-scrollbar-thumb {
    background: #cccccc; 
    border-radius: 4px;
}
.img-row::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa; 
}

.img-caption {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

/* On larger desktop screens, center the row if it doesn't need to scroll */
@media (min-width: 900px) {
    .img-row {
        justify-content: center;
    }
}
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}
footer a { 
    color: #555; 
    margin: 0 10px; 
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #888;
    margin: 0.75rem 0 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.article-meta a:hover {
    text-decoration: underline;
}
.medical-disclaimer {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffc107;
    border-radius: 0 4px 4px 0;
    padding: 1rem 1.25rem;
    margin: 3rem 0 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.medical-disclaimer strong {
    color: #333;
}
.content-section {
    padding: 2rem 0;
}
.info-box {
    background-color: #e9f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
.ad-unit-container {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
}
.ad-unit-label {
    font-size: 0.7rem;
    color: #bbb;
    text-align: center;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.related-articles {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-bg);
}
.related-articles-title {
    font-size: 1.2rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1.25rem;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--light-bg);
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.related-card-img img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.related-img-placeholder {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #dce9f8 0%, #b8d4f0 100%);
}
.related-card-title {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}
.breadcrumb {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 1rem;
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}
.breadcrumb li + li::before {
    content: "›";
    margin-right: 0.3rem;
    color: #ccc;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb li[aria-current="page"] {
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.toc {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.toc-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin: 0 0 0.75rem;
}
.toc ol {
    margin: 0;
    padding-left: 1.2rem;
}
.toc li {
    margin-bottom: 0.4rem;
    font-size: 0.97rem;
}
.toc a {
    color: var(--primary-color);
    text-decoration: none;
}
.toc a:hover {
    text-decoration: underline;
}
.app-cta-box {
    background: linear-gradient(135deg, #e8f4ff 0%, #dceeff 100%);
    border: 1px solid #b8d9f7;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.app-cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.app-cta-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.app-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.app-cta-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
    transition: background-color 0.2s;
}
.app-cta-btn:hover {
    background: #357ABD;
}
.app-cta-btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.app-cta-btn-secondary:hover {
    background: #f0f7ff;
}