/* ============================================================
   FW9 RESPONSIBLE GAMING / ABOUT PAGE STYLES
   Append this entire block to the bottom of style.css.
   All class names use the fw9- prefix.
   The rest of style.css is left completely unchanged.
   ============================================================ */


/* ----------------------------------------------------------
   1. PAGE WRAPPER
   ---------------------------------------------------------- */
.fw9-about-page {
    background: #ffffff;
    font-family: 'Montserrat', 'Inter', 'Roboto', sans-serif;
    color: #333333;
    overflow-x: hidden;
}

.fw9-responsible-page {
    /* Page-level override if needed */
}


/* ----------------------------------------------------------
   2. HERO — CONTAINED (rounded, not full-bleed)
   ---------------------------------------------------------- */
.fw9-about-hero--contained {
    background: none !important;
    padding: 40px 20px 0;
}

.fw9-about-hero-banner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.fw9-about-hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fw9-about-hero-overlay {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(15, 26, 61, 0.72) 0%,
        rgba(27, 43, 91, 0.50) 60%,
        transparent 100%
    );
    padding: 40px 30px;
    text-align: center;
}

.fw9-about-hero-content {
    max-width: 760px;
}

.fw9-about-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.fw9-about-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: #FFB800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .fw9-about-hero--contained { padding: 24px 16px 0; }
    .fw9-about-hero-banner-wrap { border-radius: 16px; }
    .fw9-about-hero-banner,
    .fw9-about-hero-overlay { min-height: 280px; }
}

@media (max-width: 480px) {
    .fw9-about-hero--contained { padding: 16px 12px 0; }
    .fw9-about-hero-banner-wrap { border-radius: 12px; }
    .fw9-about-hero-banner,
    .fw9-about-hero-overlay { min-height: 220px; }
    .fw9-about-hero-overlay { padding: 28px 20px; }
}


/* ----------------------------------------------------------
   3. MAIN LAYOUT WRAPPER — CSS GRID
      Desktop : [280px sidebar] [1fr content]
      ≤1024px : single column, sidebar hidden, mobile TOC shown
   ---------------------------------------------------------- */
.fw9-about-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "toc content";
    gap: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 30px 80px;
    align-items: start;
    position: relative;
}

@media (max-width: 1024px) {
    .fw9-about-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "mobile-toc"
            "content";
        gap: 0;
        padding: 24px 20px 60px;
    }
}

@media (max-width: 480px) {
    .fw9-about-wrapper {
        padding: 16px 14px 50px;
    }
}


/* ----------------------------------------------------------
   4. DESKTOP SIDEBAR TOC (sticky)
   ---------------------------------------------------------- */
.fw9-about-toc {
    grid-area: toc;
    position: sticky;
    top: 100px;         /* Adjust if your WP header height differs */
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #F18221 #f5f5f5;
}

/* Hide scrollbar track styling on WebKit */
.fw9-about-toc::-webkit-scrollbar { width: 4px; }
.fw9-about-toc::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 4px; }
.fw9-about-toc::-webkit-scrollbar-thumb { background: #F18221; border-radius: 4px; }

/* On mobile, the aside is completely hidden */
@media (max-width: 1024px) {
    .fw9-about-toc { display: none; }
}

.fw9-toc-container {
    background: #ffffff;
    border: 1px solid #EEE8DC;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.fw9-toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #F0E5C8;
}

.fw9-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fw9-toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #666666;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border-left: 3px solid transparent;
}

.fw9-toc-link:hover {
    background: #FFF9EE;
    color: #F18221;
    transform: translateX(3px);
    border-left-color: #F0C080;
}

.fw9-toc-link.active {
    background: linear-gradient(135deg, #FFF3DC 0%, #FFEBC8 100%);
    color: #F18221;
    font-weight: 700;
    border-left-color: #F18221;
}

.fw9-toc-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #CCCCCC;
    min-width: 24px;
    transition: color 0.2s ease;
}

.fw9-toc-link.active .fw9-toc-number,
.fw9-toc-link:hover .fw9-toc-number {
    color: #F18221;
}

.fw9-toc-text {
    flex: 1;
    line-height: 1.3;
}


/* ----------------------------------------------------------
   5. MOBILE TOC DROPDOWN
      Hidden on desktop (≥1025px), shown on mobile (≤1024px)
   ---------------------------------------------------------- */
.fw9-mobile-toc {
    display: none;           /* hidden on desktop */
    grid-area: mobile-toc;
    position: relative;
    margin-bottom: 24px;
    z-index: 50;
}

@media (max-width: 1024px) {
    .fw9-mobile-toc { display: block; }
}

.fw9-mobile-toc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #EEE8DC;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1B2B5B;
    transition: all 0.2s ease;
    text-align: left;
}

.fw9-mobile-toc-toggle:hover {
    background: #FFF9EE;
    border-color: #F18221;
}

.fw9-mobile-toc-toggle.active {
    border-color: #F18221;
    background: #FFF9EE;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.fw9-mobile-toc-toggle span {
    flex: 1;
}

.fw9-mobile-toc-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.fw9-mobile-toc-toggle.active .fw9-mobile-toc-arrow {
    transform: rotate(180deg);
}

.fw9-mobile-toc-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #F18221;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 100;
}

.fw9-mobile-toc-dropdown.active {
    display: block;
}

.fw9-mobile-toc-link {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    border-bottom: 1px solid #F5F0E8;
    transition: background 0.15s ease, color 0.15s ease;
}

.fw9-mobile-toc-link:last-child {
    border-bottom: none;
}

.fw9-mobile-toc-link:hover {
    background: #FFF3DC;
    color: #F18221;
}


/* ----------------------------------------------------------
   6. MAIN CONTENT AREA
   ---------------------------------------------------------- */
.fw9-about-content {
    grid-area: content;
    min-width: 0;  /* prevent grid blowout */
}


/* ----------------------------------------------------------
   7. CONTENT SECTIONS
   ---------------------------------------------------------- */
.fw9-content-section {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid #F0EBE0;
    scroll-margin-top: 120px;   /* offset for sticky header */
}

.fw9-content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fw9-section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(241, 130, 33, 0.12);
    color: #F18221;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.fw9-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #1B2B5B;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.fw9-assessment-title {
    color: #1B2B5B;
}

.fw9-section-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 28px;
}

.fw9-section-text p {
    margin-bottom: 12px;
}

.fw9-section-text p:last-child {
    margin-bottom: 0;
}

.fw9-highlight {
    color: #F18221;
    font-weight: 700;
}


/* ----------------------------------------------------------
   8. FEATURE GRID (vision cards, tool cards, security cards)
   ---------------------------------------------------------- */
.fw9-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.fw9-tools-grid {
    grid-template-columns: repeat(2, 1fr);
}

.fw9-security-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .fw9-feature-grid,
    .fw9-tools-grid,
    .fw9-security-grid {
        grid-template-columns: 1fr;
    }
}

.fw9-feature-card {
    background: #FAFAF8;
    border: 1px solid #EEE8DC;
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fw9-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(241, 130, 33, 0.12);
    border-color: #F0C080;
}

.fw9-feature-icon {
    width: 60px;
    height: 60px;
    background: #FFF3DC;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background 0.3s ease;
}

.fw9-feature-card:hover .fw9-feature-icon {
    background: #FFE8B8;
}

.fw9-feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1B2B5B;
    margin-bottom: 10px;
    line-height: 1.3;
}

.fw9-feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #666666;
    margin: 0;
}


/* ----------------------------------------------------------
   9. TECH / PROTECTION FEATURES (numbered list style)
   ---------------------------------------------------------- */
.fw9-tech-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.fw9-tech-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #FAFAF8;
    border: 1px solid #EEE8DC;
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fw9-tech-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(241, 130, 33, 0.1);
    border-color: #F0C080;
}

.fw9-tech-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #F18221;
    opacity: 0.35;
    line-height: 1;
    min-width: 44px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.fw9-tech-item:hover .fw9-tech-number {
    opacity: 0.7;
}

.fw9-tech-content {
    flex: 1;
}

.fw9-tech-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1B2B5B;
    margin-bottom: 8px;
    line-height: 1.3;
}

.fw9-tech-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #666666;
    margin: 0;
}

/* Protection section dark background variant */
.fw9-protection-section {
    background: linear-gradient(135deg, #F8F6FF 0%, #F5F0FF 100%);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #E8E0F8;
}

.fw9-protection-section .fw9-tech-item {
    background: #ffffff;
    border-color: #E8E0F8;
}

@media (max-width: 640px) {
    .fw9-tech-item { flex-direction: column; gap: 12px; }
    .fw9-tech-number { font-size: 1.6rem; }
    .fw9-protection-section { padding: 24px 18px; }
}


/* ----------------------------------------------------------
   10. CHECKLIST (self-assessment)
   ---------------------------------------------------------- */
.fw9-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.fw9-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #F7F9FF;
    border: 1px solid #D8E0F0;
    border-radius: 12px;
    padding: 18px 20px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fw9-checklist-item:hover {
    background: #EEF2FF;
    border-color: #B0BFEA;
}

.fw9-checklist-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #DDE5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fw9-checklist-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    margin: 0;
    padding-top: 4px;
}


/* ----------------------------------------------------------
   11. SUPPORT BANNER
   ---------------------------------------------------------- */
.fw9-support-banner {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border-radius: 16px;
    padding: 28px 32px;
    border-left: 5px solid #FFB800;
}

.fw9-support-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.fw9-support-text strong {
    color: #FFB800;
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

@media (max-width: 480px) {
    .fw9-support-banner { padding: 22px 20px; }
}


/* ----------------------------------------------------------
   12. FAQ ACCORDION
   ---------------------------------------------------------- */
.fw9-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.fw9-faq-item {
    background: #ffffff;
    border: 1px solid #EEE8DC;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fw9-faq-item:hover,
.fw9-faq-item.active {
    border-color: #F18221;
    box-shadow: 0 4px 16px rgba(241, 130, 33, 0.12);
}

.fw9-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1B2B5B;
    text-align: left;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.fw9-faq-question:hover {
    color: #F18221;
}

.fw9-faq-item.active .fw9-faq-question {
    color: #F18221;
}

.fw9-faq-icon {
    flex-shrink: 0;
    color: #CCCCCC;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.fw9-faq-item.active .fw9-faq-icon {
    transform: rotate(180deg);
    color: #F18221;
}

.fw9-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fw9-faq-answer p {
    padding: 0 24px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
}

@media (max-width: 480px) {
    .fw9-faq-question { padding: 16px 18px; font-size: 14px; }
    .fw9-faq-answer p { padding: 0 18px 18px; }
}


/* ----------------------------------------------------------
   13. ASSESSMENT SECTION VARIANT
   ---------------------------------------------------------- */
.fw9-assessment-section {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF9E8 100%);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #EEE8DC;
}

@media (max-width: 640px) {
    .fw9-assessment-section { padding: 24px 18px; }
}

/* ============================================================
   END OF FW9 RESPONSIBLE GAMING PAGE STYLES
   ============================================================ */
