:root {
    --primary: #2e5a27; /* Forest green for Ecology Society */
    --accent: #4a90e2;
    --bg: #f7f9fb;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --peach: #fef7ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--primary);
    color: var(--white);
    padding: 5px 0;
    text-align: center;
    border-bottom: 4px solid #1e3d1a;
}

.branding h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 5px; }
.brand-tagline { font-size: 1.1rem; opacity: 0.85; font-style: italic; }

/* Main Content Body */
.main-content {
    background: var(--white);
    margin: 30px 0;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

h1, h2, h3 { margin: 35px 0 20px; color: var(--primary); }
h1 { font-size: 2.3rem; line-height: 1.2; border-bottom: 3px solid #eee; padding-bottom: 15px; }
p, ul, ol { margin-bottom: 20px; }
ul, ol { padding-left: 25px; }

/* Affiliate Showcase (Card Design) */
.affiliate-showcase { margin: 40px 0; }
.showcase-subtitle { text-align: center; font-weight: 500; color: #666; margin-bottom: 35px; font-size: 1.1rem; }

.casino-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 25px 35px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.casino-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.casino-logo-col { flex: 0 0 170px; display: flex; justify-content: center; background-color: #f2f2f2; padding: 20px; border-radius: 16px; margin-right: 10px;}
.casino-logo-col img { max-width: 140px; height: auto; border-radius: 12px; }

.casino-info-col { flex: 1; padding: 0 45px; }
.casino-info-col h3 { margin: 0 0 12px; font-size: 1.6rem; color: #111; border: none; padding: 0; }

.bonus-box {
    background: var(--peach);
    border: 1.5px dashed #fbd9b3;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bonus-text { margin: 0; font-weight: 800; color: #2d3748; font-size: 1.2rem; }

.feature-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-tags span {
    background: #f0f4f8;
    color: #444;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 60px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.feature-tags span::before { content: '●'; color: var(--accent); margin-right: 8px; font-size: 0.6rem; }

.casino-action-col { flex: 0 0 200px; text-align: right; }
.rating {
    background: #f0f7ff;
    color: #3182ce;
    display: inline-block;
    padding: 7px 20px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.play-btn {
    display: block;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 18px rgba(74, 144, 226, 0.4);
    transition: background 0.2s ease;
}

.play-btn:hover { background: #357abd; }

/* FAQ Styles */
.faq-container { margin-top: 45px; background: #fafbfc; padding: 45px; border-radius: 20px; border: 1px solid #eef2f6; }
.faq-item { margin-bottom: 35px; border-bottom: 1px solid #eef2f7; padding-bottom: 25px; }
.faq-item:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item strong { display: block; font-size: 1.25rem; color: var(--primary); margin-bottom: 12px; }

/* Footer */
.site-footer { background: #1a1a1a; color: #999; padding: 60px 0; text-align: center; font-size: 0.95rem; }
.site-footer p { margin-bottom: 10px; }

/* Mobile Optimization */
@media (max-width: 1024px) {
    .casino-card { flex-direction: column; text-align: center; padding: 45px 25px; }
    .casino-info-col { padding: 30px 0; }
    .casino-action-col { width: 100%; text-align: center; }
    .play-btn { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .main-content { padding: 35px 20px; }
    .branding h1 { font-size: 1.9rem; }
}
/* Wagering Calculator Styles */
.wagering-calculator {
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.calc-header h3 {
    margin-top: 0;
    font-size: 1.8rem;
    border: none;
    padding-bottom: 0;
}

.calc-header p {
    color: #666;
    margin-bottom: 25px;
}

.calc-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.calc-btn {
    grid-column: 1 / -1;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 10px;
}

.calc-result-box {
    background: var(--peach);
    border: 1.5px dashed #fbd9b3;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.calc-result-box h4 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 1.1rem;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Mobile Adjustment for Calculator */
@media (max-width: 600px) {
    .wagering-calculator {
        padding: 25px 20px;
    }
    .result-amount {
        font-size: 2rem;
    }
}
/* Floating Scroll Button Styles */
.floating-scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make button pop up smoothly when active */
.floating-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-scroll-btn:hover {
    background-color: #1e3d1a; /* Darker green matching your header border */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile responsive tweak so it doesn't block card text */
@media (max-width: 600px) {
    .floating-scroll-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .floating-scroll-btn span {
        display: none; /* Keeps just the 🧮 icon on tiny mobile screens to save space */
    }
}
/* Verified Date Refresh Block */
.verified-update-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.verified-update-block {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f0fdf4; /* Soft trust green */
    border: 1px solid #bbf7d0;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #166534; /* Deep green text */
    font-size: 0.95rem;
}

.verified-update-block strong {
    font-weight: 700;
    color: var(--primary); /* Ties into your main brand color */
}

.shield-icon {
    font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .verified-update-block {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}
/* Author Box Styles */
.author-box {
    display: flex;
    align-items: center;
    background: #f8fafc; /* Very light gray to stand out from white background */
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    margin-top: 50px;
    gap: 25px;
}

.author-avatar-col {
    flex: 0 0 100px;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-bio-col {
    flex: 1;
}

.author-bio-col h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
    border: none;
    padding: 0;
}

.author-highlight {
    color: var(--primary);
    font-weight: 800;
}

.author-bio-col p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Mobile Adjustment for Author Box */
@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
}
/* Horizontal Table of Contents Styles */
.horizontal-toc {
    margin: 30px 0 40px 0;
    padding-bottom: 10px;
    /* Enables horizontal scrolling for overflow */
    overflow-x: auto;
    /* Smooth momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Hides the scrollbar for a cleaner look in Firefox/Chrome */
    scrollbar-width: none;
}

.horizontal-toc::-webkit-scrollbar {
    display: none;
}

.toc-list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* Forces items to stay in a single line */
    white-space: nowrap;
}

.toc-list li {
    display: inline-block;
}

.toc-list a {
    display: inline-block;
    background: #f0f4f8;
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.toc-list a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 90, 39, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .horizontal-toc {
        margin: 20px 0 30px 0;
    }
    .toc-list a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
/* --- Mini Affiliate Showcase --- */
.mini-casino-list {
    margin: 25px 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-casino-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 15px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.mini-casino-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.mini-logo-col {
    flex: 0 0 110px;
    background-color: #f2f2f2;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.mini-logo-col img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
}

.mini-info-col {
    flex: 1;
}

.mini-info-col h4 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    color: #111;
    padding: 0;
    border: none;
}

.mini-bonus-text {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin: 0;
}

.mini-action-col {
    flex: 0 0 150px;
    text-align: right;
}

.mini-play-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    transition: background 0.2s ease;
    text-align: center;
    width: 100%;
}

.mini-play-btn:hover {
    background: #357abd;
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    .mini-casino-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .mini-logo-col {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .mini-info-col {
        margin-bottom: 20px;
    }
    .mini-action-col {
        width: 100%;
    }
}