/* Page Load Animation Targets */
body.loading header,
body.loading .page-header,
body.loading .content-section,
body.loading footer {
    opacity: 0;
    filter: blur(20px);
}

body.loading header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

body.loading .page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
}

body.loading .content-section,
body.loading footer {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(135deg,
            rgba(255, 87, 64, 0.85) 0%,
            rgba(255, 138, 101, 0.75) 100%
        ),
        var(--page-header-bg-image, none) center/cover;
}

/* Content Section - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #f5f5f5;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #FF5740;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-icon svg {
    width: 48px;
    height: 48px;
    stroke: #FF5740;
    fill: none;
    stroke-width: 2;
}

.download-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.download-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Features List - page-specific overrides (different icon + margin) */
.features {
    margin: 0.4rem 0;
}

.features li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.features li:before {
    content: "\203A";
    color: #FF5740;
    top: 0.35rem;
    font-size: 1.3rem;
    line-height: 1;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    min-height: 500px;
    transition: min-height 0.3s ease;
}

/* Category Filter Tabs - Pill Design */
.faq-filter-wrapper {
    text-align: center;
}

.faq-filter {
    display: inline-flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    white-space: nowrap;
    font-family: inherit;
}

.filter-btn:hover {
    color: #FF5740;
}

.filter-btn.active {
    background: #FF5740;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 64, 0.3);
}

/* FAQ Category Animation */
.faq-category {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
}

.faq-category.active {
    display: block;
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-category-title {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-left: 1rem;
    border-left: 4px solid #FF5740;
}

/* FAQ Item */
.faq-item {
    position: relative;
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    bottom: -95px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 101, 0.2) 0%, rgba(255, 138, 101, 0) 70%);
    pointer-events: none;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem 1.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s;
    gap: 1rem;
    z-index: 1;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: #FF5740;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-top: -2px;
}

.faq-question:hover {
    background: rgba(255, 87, 64, 0.05);
}

.faq-item.active .faq-question {
    background: rgba(255, 87, 64, 0.08);
    color: #FF5740;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

.faq-answer-content {
    position: relative;
    z-index: 1;
    padding: 1.35rem 3rem 1.35rem 3rem;
    color: #555;
    line-height: 1.8;
}

.faq-answer-content a {
    color: #FF5740;
    text-decoration: none;
    font-weight: 600;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

/* Glossary Section */
.glossary-section {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-top: 4rem;
}

.glossary-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.glossary-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glossary-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 3px solid #FF5740;
}

.glossary-term {
    font-size: 1.2rem;
    color: #FF5740;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.glossary-definition {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Knowledge Center */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.knowledge-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #FF5740;
    transition: all 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.knowledge-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Contact Section with Background */
.contact-section-bg {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        var(--support-contact-bg-image, none) center/cover !important;
    padding: 100px 0 !important;
    position: relative;
}

/* Contact Box - Transparent Container */
.contact-box {
    text-align: center;
    color: white;
}

.contact-box h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.contact-box > p {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Liquid Glass Contact Cards */
.contact-item {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.1)
    );
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.15)
    );
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* CTA Button for Contact Section */
.contact-box .btn {
    position: relative;
    background: linear-gradient(135deg, #FF5740 0%, #FF8A65 100%) !important;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(255, 87, 64, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white !important;
}

.contact-box .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-box .btn:hover::before {
    opacity: 1;
}

.contact-box .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(255, 87, 64, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.contact-box .btn:active {
    transform: translateY(-1px) scale(1);
}

/* ==========================================================================
   Responsive - Page-specific
   ========================================================================== */

@media (max-width: 768px) {
    /* Download grid */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-card {
        padding: 1.8rem 1.5rem;
    }

    .download-card h3 {
        font-size: 1.3rem;
    }

    /* FAQ filters */
    .faq-filter-wrapper {
        text-align: left;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
    }

    .faq-filter {
        justify-content: flex-start;
        gap: 0.5rem;
        margin: 0 20px 2rem 20px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
        flex-shrink: 0;
    }

    /* FAQ items */
    .faq-question {
        font-size: 0.95rem;
        padding: 1.2rem 1.5rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }

    .faq-category-title {
        font-size: 1.4rem;
    }

    /* Glossary */
    .glossary-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .glossary-title {
        font-size: 1.6rem;
    }

    .glossary-subtitle {
        font-size: 0.98rem;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Knowledge grid */
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .knowledge-card {
        padding: 2rem 1.5rem;
    }

    .knowledge-card h3 {
        font-size: 1.2rem;
    }

    /* Contact section */
    .contact-section-bg {
        padding: 70px 0 !important;
    }

    .contact-box h3 {
        font-size: 1.9rem;
    }

    .contact-box > p {
        font-size: 1.02rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 2rem 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-box h3 {
        font-size: 1.65rem;
    }
}
