/*
 * FW8 About Page Styles
 * Premium SEO-optimized layout with TOC navigation and FAQ accordion
 * Version: 1.0
 */

/* ========== Global About Page Container ========== */
.fw8-about-page {
    background: #ffffff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ========== Hero Section ========== */
.fw8-about-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fw8-about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 43, 91, 0.85) 0%, rgba(15, 26, 61, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.fw8-about-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 30px;
    max-width: 1100px;
}

.fw8-about-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.fw8-about-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFB800;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ========== Main Content Wrapper (TOC + Content) ========== */
.fw8-about-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* ========== Desktop TOC (Sticky Sidebar) ========== */
.fw8-about-toc {
    position: sticky;
    top: 100px;
    align-self: start;
}

.fw8-toc-container {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 184, 0, 0.2);
}

.fw8-toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFB800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 184, 0, 0.3);
}

.fw8-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fw8-toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
}

.fw8-toc-link:hover {
    background: rgba(255, 184, 0, 0.1);
    border-color: rgba(255, 184, 0, 0.3);
    transform: translateX(5px);
}

.fw8-toc-link.active {
    background: linear-gradient(135deg, #F18221 0%, #FF9500 100%);
    border-color: #FFB800;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.fw8-toc-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    min-width: 28px;
}

.fw8-toc-link.active .fw8-toc-number {
    color: #000000;
}

.fw8-toc-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.fw8-toc-link.active .fw8-toc-text {
    color: #000000;
    font-weight: 600;
}

/* ========== Mobile TOC (Top Dropdown) ========== */
.fw8-mobile-toc {
    display: none; /* Hidden on desktop */
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.fw8-mobile-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fw8-mobile-toc-toggle:hover {
    background: linear-gradient(135deg, #0F1A3D 0%, #1B2B5B 100%);
    border-color: #FFB800;
}

.fw8-mobile-toc-toggle.active {
    border-color: #F18221;
    background: linear-gradient(135deg, #F18221 0%, #FF9500 100%);
    color: #000000;
}

.fw8-mobile-toc-arrow {
    transition: transform 0.3s ease;
}

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

.fw8-mobile-toc-dropdown {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 2px solid rgba(241, 130, 33, 0.3);
    border-radius: 16px;
    margin-top: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.fw8-mobile-toc-dropdown.active {
    max-height: 500px;
    opacity: 1;
}

.fw8-mobile-toc-link {
    display: block;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1B2B5B;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.fw8-mobile-toc-link:hover {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    color: #F18221;
    transform: translateX(5px);
}

/* ========== Content Sections ========== */
.fw8-about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.fw8-content-section {
    scroll-margin-top: 120px; /* Offset for sticky header + TOC */
}

.fw8-section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #F18221 0%, #FF9500 100%);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.fw8-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #1B2B5B;
    line-height: 1.3;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.fw8-section-text {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #2C3E50;
    margin-bottom: 30px;
}

.fw8-section-text p {
    margin-bottom: 18px;
}

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

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

/* ========== Image Container ========== */
.fw8-image-container {
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.fw8-section-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== Feature Grid (2 columns) ========== */
.fw8-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.fw8-feature-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border: 2px solid #F0E5C8;
    border-radius: 24px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.fw8-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(241, 130, 33, 0.15);
    border-color: #F18221;
}

.fw8-feature-icon {
    margin-bottom: 20px;
}

.fw8-feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1B2B5B;
    margin-bottom: 15px;
}

.fw8-feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #2C3E50;
    margin: 0;
}

/* ========== Technology Section ========== */
.fw8-tech-section {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border-radius: 32px;
    padding: 50px 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.fw8-tech-section .fw8-section-title,
.fw8-tech-section .fw8-section-text {
    color: #FFFFFF;
}

.fw8-tech-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
}

.fw8-tech-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    align-items: start;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 184, 0, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.fw8-tech-item:hover {
    background: rgba(255, 184, 0, 0.1);
    border-color: #FFB800;
    transform: translateX(10px);
}

.fw8-tech-number {
    font-family: 'Orbitron', 'Montserrat', monospace;
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(180deg, #FFB800 0%, #FF9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.fw8-tech-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFB800;
    margin-bottom: 10px;
}

.fw8-tech-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ========== Ecosystem Grid ========== */
.fw8-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.fw8-ecosystem-card {
    background: #ffffff;
    border: 2px solid rgba(27, 43, 91, 0.1);
    border-radius: 24px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.fw8-ecosystem-card:hover {
    border-color: #F18221;
    box-shadow: 0 15px 40px rgba(241, 130, 33, 0.15);
    transform: translateY(-8px);
}

.fw8-ecosystem-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.fw8-ecosystem-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1B2B5B;
    margin-top: 15px;
    margin-bottom: 0;
}

.fw8-ecosystem-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #2C3E50;
    text-align: center;
    margin: 0;
}

/* ========== Responsibility Section ========== */
.fw8-responsibility-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border-radius: 32px;
    padding: 50px 45px;
    border: 3px solid #F0E5C8;
}

.fw8-responsibility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.fw8-responsibility-card {
    background: #ffffff;
    border: 2px solid rgba(241, 130, 33, 0.2);
    border-radius: 20px;
    padding: 30px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.fw8-responsibility-card:hover {
    border-color: #F18221;
    box-shadow: 0 10px 30px rgba(241, 130, 33, 0.2);
    transform: translateY(-5px);
}

.fw8-resp-icon {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.fw8-resp-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1B2B5B;
    margin-bottom: 12px;
}

.fw8-resp-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #2C3E50;
    margin: 0;
}

/* ========== Future Roadmap Section ========== */
.fw8-future-section {
    background: linear-gradient(135deg, #1B2B5B 0%, #0F1A3D 100%);
    border-radius: 32px;
    padding: 50px 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.fw8-future-section .fw8-section-title,
.fw8-future-section .fw8-section-text {
    color: #FFFFFF;
}

.fw8-roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 35px;
    margin-bottom: 50px;
    position: relative;
    padding-left: 40px;
}

.fw8-roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(180deg, #FFB800 0%, #FF9500 100%);
}

.fw8-roadmap-item {
    position: relative;
    padding-left: 35px;
}

.fw8-roadmap-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    border-radius: 50%;
    border: 3px solid #0F1A3D;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.2);
}

.fw8-roadmap-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFB800;
    margin-bottom: 10px;
}

.fw8-roadmap-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ========== CTA Banner ========== */
.fw8-cta-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.fw8-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.fw8-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fw8-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.6);
}

/* ========== FAQ Accordion Section ========== */
.fw8-faq-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    border-radius: 32px;
    padding: 50px 45px;
    border: 3px solid #F0E5C8;
}

.fw8-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
}

.fw8-faq-item {
    background: #ffffff;
    border: 2px solid rgba(27, 43, 91, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fw8-faq-item:hover {
    border-color: rgba(241, 130, 33, 0.3);
}

.fw8-faq-item.active {
    border-color: #F18221;
    box-shadow: 0 8px 25px rgba(241, 130, 33, 0.15);
}

.fw8-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1B2B5B;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.fw8-faq-item.active .fw8-faq-question {
    color: #F18221;
    background: linear-gradient(135deg, rgba(241, 130, 33, 0.05) 0%, rgba(255, 149, 0, 0.05) 100%);
}

.fw8-faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: #1B2B5B;
}

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

.fw8-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.fw8-faq-answer p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2C3E50;
    padding: 0 28px 25px 28px;
    margin: 0;
}

/* ========== Responsive Design: Tablet (1024px) ========== */
@media (max-width: 1024px) {
    .fw8-about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .fw8-about-toc {
        display: none; /* Hide desktop TOC on tablet/mobile */
    }

    .fw8-mobile-toc {
        display: block; /* Show mobile TOC */
    }

    .fw8-about-hero-title {
        font-size: 42px;
    }

    .fw8-section-title {
        font-size: 32px;
    }

    .fw8-feature-grid,
    .fw8-ecosystem-grid,
    .fw8-responsibility-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========== Responsive Design: Mobile (768px) ========== */
@media (max-width: 768px) {
    .fw8-about-hero {
        height: 60vh;
        min-height: 400px;
    }

    .fw8-about-hero-title {
        font-size: 32px;
    }

    .fw8-about-hero-subtitle {
        font-size: 16px;
    }

    .fw8-about-wrapper {
        padding: 30px 15px;
        gap: 35px;
    }

    .fw8-section-title {
        font-size: 26px;
    }

    .fw8-section-text {
        font-size: 16px;
    }

    .fw8-tech-section,
    .fw8-responsibility-section,
    .fw8-future-section,
    .fw8-faq-section {
        padding: 35px 25px;
        border-radius: 24px;
    }

    .fw8-tech-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .fw8-tech-number {
        font-size: 36px;
    }

    .fw8-roadmap-timeline {
        padding-left: 30px;
    }

    .fw8-cta-title {
        font-size: 22px;
    }

    .fw8-cta-button {
        padding: 16px 35px;
        font-size: 16px;
    }

    .fw8-faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }

    .fw8-faq-answer p {
        font-size: 14px;
        padding: 0 20px 20px 20px;
    }
}

/* ========== Responsive Design: Small Mobile (480px) ========== */
@media (max-width: 480px) {
    .fw8-about-hero {
        height: 50vh;
        min-height: 350px;
    }

    .fw8-about-hero-title {
        font-size: 24px;
    }

    .fw8-about-hero-subtitle {
        font-size: 14px;
    }

    .fw8-about-wrapper {
        padding: 25px 12px;
    }

    .fw8-section-title {
        font-size: 22px;
    }

    .fw8-section-text {
        font-size: 15px;
    }

    .fw8-feature-card {
        padding: 25px 20px;
    }

    .fw8-tech-section,
    .fw8-responsibility-section,
    .fw8-future-section,
    .fw8-faq-section {
        padding: 30px 20px;
    }

    .fw8-cta-banner {
        padding: 30px 20px;
    }

    .fw8-cta-title {
        font-size: 20px;
    }

    .fw8-cta-button {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* ========== End of FW8 About Page Styles ========== */
