﻿/* =========================================
   KARYARTHI GLOBAL FAQ PAGE
   ========================================= */

.kg-faq-page {
    --faq-navy: #07192d;
    --faq-navy-light: #102a43;
    --faq-aqua: #00d6c9;
    --faq-white: #ffffff;
    --faq-light: #f3f6f8;
    --faq-grey: #a8b2bc;
    --faq-text: #526173;
    width: 100%;
    overflow: hidden;
    color: var(--faq-navy);
    font-family: inherit;
}

    .kg-faq-page *,
    .kg-faq-page *::before,
    .kg-faq-page *::after {
        box-sizing: border-box;
    }

    .kg-faq-page a {
        text-decoration: none;
    }

.faq-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.faq-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--faq-aqua);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    line-height: 1.8;
    text-transform: uppercase;
}

.faq-eyebrow-dark {
    color: #008f8b;
}


/* =========================================
   HERO
   ========================================= */

.faq-hero {
    position: relative;
    isolation: isolate;
    padding: 100px 0 95px;
    overflow: hidden;
    color: var(--faq-white);
    background: radial-gradient( circle at 85% 45%, rgba(0, 214, 201, 0.11), transparent 30% ), linear-gradient( 125deg, #061426 0%, #0a2037 55%, #102b43 100% );
}

    .faq-hero::before {
        position: absolute;
        z-index: -1;
        top: -230px;
        right: -180px;
        width: 620px;
        height: 620px;
        border: 1px solid rgba(0, 214, 201, 0.13);
        border-radius: 50%;
        content: "";
    }

    .faq-hero::after {
        position: absolute;
        z-index: -1;
        right: -95px;
        bottom: -330px;
        width: 650px;
        height: 650px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 50%;
        content: "";
    }

.faq-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 65px;
}

.faq-hero-content {
    max-width: 660px;
}

    .faq-hero-content h1 {
        margin: 0 0 25px;
        color: #ffffff;
        font-size: clamp(42px, 5.3vw, 68px);
        font-weight: 800;
        line-height: 1.12;
        letter-spacing: -2.3px;
    }

        .faq-hero-content h1 span {
            display: block;
            margin-top: 10px;
            color: var(--faq-aqua);
        }

    .faq-hero-content p {
        max-width: 620px;
        margin: 0 0 16px;
        color: #c4cfda;
        font-size: 15px;
        line-height: 1.95;
    }

.faq-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    margin-top: 20px;
    padding: 15px 23px;
    border: 1px solid var(--faq-aqua);
    border-radius: 9px;
    color: #061a2e;
    background: var(--faq-aqua);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .faq-primary-button span {
        font-size: 19px;
        transition: transform 0.3s ease;
    }

    .faq-primary-button:hover {
        transform: translateY(-4px);
        color: #061a2e;
        background: #48eee0;
        box-shadow: 0 14px 35px rgba(0, 214, 201, 0.2);
    }

        .faq-primary-button:hover span {
            transform: translate(3px, -2px);
        }


/* =========================================
   HERO VISUAL
   ========================================= */

.faq-hero-visual {
    position: relative;
    display: grid;
    min-height: 410px;
    place-items: center;
    perspective: 1000px;
}

.faq-visual-orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 214, 201, 0.35);
    border-radius: 50%;
}

.faq-orbit-a {
    transform: rotateX(62deg) rotateZ(-25deg);
    animation: faq-orbit-spin 20s linear infinite;
}

.faq-orbit-b {
    width: 360px;
    height: 360px;
    border-color: rgba(255, 255, 255, 0.13);
    transform: rotateX(68deg) rotateZ(35deg);
    animation: faq-orbit-spin 26s linear infinite reverse;
}

.faq-visual-center {
    position: relative;
    z-index: 2;
    display: flex;
    width: 205px;
    height: 205px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid rgba(0, 214, 201, 0.6);
    border-radius: 36px;
    background: linear-gradient( 145deg, rgba(20, 53, 77, 0.96), rgba(7, 25, 45, 0.98) );
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 50px rgba(0, 214, 201, 0.08);
    transform: rotateY(-8deg) rotateX(5deg);
    animation: faq-center-float 5s ease-in-out infinite;
}

.faq-visual-icon {
    display: grid;
    width: 80px;
    height: 80px;
    place-items: center;
    border: 1px solid rgba(0, 214, 201, 0.45);
    border-radius: 24px;
    color: var(--faq-aqua);
    background: rgba(0, 214, 201, 0.08);
    font-size: 48px;
    font-weight: 800;
}

.faq-visual-center > span {
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.faq-floating-icon {
    position: absolute;
    z-index: 3;
    display: flex;
    min-width: 125px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    color: #eaf4fa;
    background: rgba(13, 37, 59, 0.92);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    animation: faq-floating 5s ease-in-out infinite;
}

    .faq-floating-icon > span {
        display: grid;
        width: 31px;
        height: 31px;
        flex-shrink: 0;
        place-items: center;
        border-radius: 9px;
        color: var(--faq-aqua);
        background: rgba(0, 214, 201, 0.1);
        font-size: 17px;
    }

    .faq-floating-icon small {
        color: #e1eaf1;
        font-size: 10px;
        font-weight: 700;
    }

.faq-float-one {
    top: 42px;
    left: 0;
}

.faq-float-two {
    top: 92px;
    right: -2px;
    animation-delay: -1s;
}

.faq-float-three {
    bottom: 65px;
    left: 3px;
    animation-delay: -2s;
}

.faq-float-four {
    right: 0;
    bottom: 35px;
    animation-delay: -3s;
}

.faq-hero-bottom-line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient( 90deg, transparent, var(--faq-aqua), #a8b2bc, transparent );
    opacity: 0.7;
}


/* =========================================
   INTRO SECTION
   ========================================= */

.faq-intro-section {
    padding: 100px 0;
    background: #ffffff;
}

.faq-intro-heading {
    max-width: 790px;
    margin: 0 auto 55px;
    text-align: center;
}

    .faq-intro-heading h2 {
        margin: 0 0 20px;
        color: var(--faq-navy);
        font-size: clamp(32px, 4vw, 46px);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .faq-intro-heading p {
        margin: 0 auto 14px;
        color: var(--faq-text);
        font-size: 15px;
        line-height: 1.9;
    }

.faq-topic-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.faq-topic {
    position: relative;
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid #e5eaee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(7, 25, 45, 0.025);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .faq-topic::after {
        position: absolute;
        right: -20px;
        bottom: -28px;
        width: 90px;
        height: 90px;
        border: 1px solid rgba(0, 214, 201, 0.15);
        border-radius: 50%;
        content: "";
        transition: transform 0.4s ease;
    }

    .faq-topic > span {
        color: #008f8b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.4px;
    }

    .faq-topic strong {
        color: var(--faq-navy);
        font-size: 14px;
        font-weight: 800;
    }

    .faq-topic i {
        position: absolute;
        top: 20px;
        right: 20px;
        color: #008f8b;
        font-size: 18px;
        font-style: normal;
        transition: transform 0.3s ease;
    }

    .faq-topic:hover {
        transform: translateY(-7px);
        border-color: var(--faq-aqua);
        background: #f9ffff;
        box-shadow: 0 18px 35px rgba(7, 25, 45, 0.08);
    }

        .faq-topic:hover::after {
            transform: scale(1.3);
        }

        .faq-topic:hover i {
            transform: translate(3px, -3px);
        }


/* =========================================
   MAIN FAQ SECTION
   ========================================= */

.faq-main-section {
    padding: 100px 0 110px;
    background: radial-gradient( circle at 100% 10%, rgba(0, 214, 201, 0.035), transparent 28% ), #f3f6f8;
}

.faq-main-heading {
    position: relative;
    margin-bottom: 75px;
}

    .faq-main-heading h2 {
        margin: 0 0 17px;
        color: var(--faq-navy);
        font-size: clamp(34px, 4.5vw, 51px);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -1.4px;
    }

    .faq-main-heading > p {
        max-width: 670px;
        margin: 0;
        color: var(--faq-text);
        font-size: 15px;
        line-height: 1.9;
    }

.faq-count {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #738090;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

    .faq-count span {
        display: grid;
        width: 48px;
        height: 48px;
        place-items: center;
        border: 1px solid rgba(0, 214, 201, 0.65);
        border-radius: 14px;
        color: #008f8b;
        background: #ffffff;
        font-size: 18px;
    }


/* =========================================
   FAQ CATEGORY
   ========================================= */

.faq-category {
    margin-bottom: 70px;
    scroll-margin-top: 35px;
}

    .faq-category:last-child {
        margin-bottom: 0;
    }

.faq-category-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.faq-category-number {
    display: grid;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(0, 214, 201, 0.5);
    border-radius: 18px;
    color: #008f8b;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(7, 25, 45, 0.04);
    font-size: 18px;
    font-weight: 800;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.faq-category-heading:hover .faq-category-number {
    transform: rotate(-5deg) translateY(-3px);
    color: #07192d;
    background: var(--faq-aqua);
}

.faq-category-heading > div:last-child > span {
    color: #008f8b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.faq-category-heading h3 {
    margin: 6px 0 0;
    color: var(--faq-navy);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.3;
}


/* =========================================
   FAQ ITEMS
   ========================================= */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8ed;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(7, 25, 45, 0.025);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

    .faq-item::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 3px;
        background: var(--faq-aqua);
        content: "";
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    .faq-item:hover {
        border-color: rgba(0, 180, 174, 0.4);
        box-shadow: 0 10px 28px rgba(7, 25, 45, 0.055);
    }

    .faq-item.is-open {
        border-color: rgba(0, 180, 174, 0.55);
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(7, 25, 45, 0.065);
    }

        .faq-item.is-open::before {
            transform: scaleY(1);
        }

.faq-question {
    display: grid;
    width: 100%;
    min-height: 88px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    border: 0;
    color: var(--faq-navy);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .faq-question:focus-visible {
        outline: 2px solid #008f8b;
        outline-offset: -4px;
        border-radius: 12px;
    }

.faq-question-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e5eaee;
    border-radius: 11px;
    color: #7d8997;
    background: #f6f8fa;
    font-size: 11px;
    font-weight: 800;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.faq-question-text {
    color: var(--faq-navy);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.7;
}

.faq-toggle {
    position: relative;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(0, 180, 174, 0.55);
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.35s ease, border-color 0.3s ease, background 0.3s ease;
}

    .faq-toggle span {
        position: absolute;
        display: block;
        width: 13px;
        height: 2px;
        border-radius: 3px;
        background: #008f8b;
        transition: transform 0.3s ease, background 0.3s ease;
    }

        .faq-toggle span:last-child {
            transform: rotate(90deg);
        }

.faq-item.is-open .faq-question-number {
    border-color: var(--faq-aqua);
    color: #07192d;
    background: var(--faq-aqua);
}

.faq-item.is-open .faq-toggle {
    transform: rotate(180deg);
    border-color: var(--faq-navy);
    background: var(--faq-navy);
}

    .faq-item.is-open .faq-toggle span {
        background: #ffffff;
    }

        .faq-item.is-open .faq-toggle span:last-child {
            transform: rotate(0deg);
        }


/* =========================================
   FAQ ANSWERS
   ========================================= */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

    .faq-answer[hidden] {
        display: none !important;
    }

.faq-item.is-open .faq-answer:not([hidden]) {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-content {
    min-height: 0;
    overflow: hidden;
    padding: 0 90px 0;
}

.faq-item.is-open .faq-answer-content {
    padding-bottom: 28px;
}

.faq-answer-content p {
    margin: 0 0 14px;
    color: #586779;
    font-size: 14px;
    line-height: 1.95;
}

    .faq-answer-content p:last-of-type {
        margin-bottom: 0;
    }

.faq-answer-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 17px;
    border: 1px solid rgba(0, 180, 174, 0.45);
    border-radius: 8px;
    color: #007f7a;
    background: #f2ffff;
    font-size: 12px;
    font-weight: 800;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

    .faq-answer-link:hover {
        transform: translateY(-2px);
        color: #ffffff;
        background: var(--faq-navy);
    }


/* =========================================
   CONTACT CTA
   ========================================= */

.faq-contact-section {
    padding: 100px 0;
    background: #ffffff;
}

.faq-contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
    align-items: center;
    gap: 55px;
    padding: 65px;
    overflow: hidden;
    border: 1px solid rgba(0, 214, 201, 0.18);
    border-radius: 27px;
    color: #ffffff;
    background: radial-gradient( circle at 100% 0, rgba(0, 214, 201, 0.12), transparent 35% ), linear-gradient( 125deg, #07192d, #102b43 );
    box-shadow: 0 25px 65px rgba(7, 25, 45, 0.11);
}

.faq-contact-decoration {
    position: absolute;
    top: -130px;
    right: 15%;
    display: flex;
    gap: 15px;
    opacity: 0.12;
    transform: rotate(25deg);
    pointer-events: none;
}

    .faq-contact-decoration span {
        display: block;
        width: 75px;
        height: 420px;
        border: 1px solid #ffffff;
        border-radius: 50%;
    }

.faq-contact-content {
    position: relative;
    z-index: 1;
    max-width: 670px;
}

    .faq-contact-content h2 {
        margin: 0 0 20px;
        color: #ffffff;
        font-size: clamp(32px, 4vw, 47px);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .faq-contact-content p {
        margin: 0 0 15px;
        color: #c4cfda;
        font-size: 14px;
        line-height: 1.95;
    }

.faq-contact-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.faq-contact-circle {
    position: relative;
    display: grid;
    width: 175px;
    height: 175px;
    place-items: center;
    border: 1px solid rgba(0, 214, 201, 0.65);
    border-radius: 50%;
    background: rgba(0, 214, 201, 0.05);
    box-shadow: 0 0 0 15px rgba(0, 214, 201, 0.035), 0 0 0 32px rgba(0, 214, 201, 0.02);
    animation: faq-center-float 5s ease-in-out infinite;
}

    .faq-contact-circle span {
        color: var(--faq-aqua);
        font-size: 46px;
        font-weight: 900;
        letter-spacing: -2px;
    }

    .faq-contact-circle i {
        position: absolute;
        top: 10px;
        right: 5px;
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border-radius: 50%;
        color: #07192d;
        background: var(--faq-aqua);
        font-size: 24px;
        font-style: normal;
    }

.faq-contact-side > p {
    color: #c4cfda;
    font-size: 10px;
    font-weight: 800;
    line-height: 2;
    letter-spacing: 3px;
    text-align: center;
}


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes faq-orbit-spin {
    from {
        transform: rotateX(62deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(62deg) rotateZ(360deg);
    }
}

@keyframes faq-center-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

@keyframes faq-floating {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1000px) {

    .faq-hero-grid {
        gap: 30px;
    }

    .faq-hero-content h1 {
        font-size: 51px;
    }

    .faq-hero-visual {
        min-height: 360px;
        transform: scale(0.9);
    }

    .faq-topic-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-contact-panel {
        padding: 45px;
        gap: 30px;
    }
}

@media (max-width: 760px) {

    .faq-container {
        width: min(100% - 34px, 600px);
    }

    .faq-hero {
        padding: 75px 0 65px;
    }

    .faq-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-hero-content h1 {
        font-size: clamp(38px, 9vw, 53px);
        letter-spacing: -1.5px;
    }

    .faq-hero-content p {
        font-size: 14px;
    }

    .faq-hero-visual {
        min-height: 350px;
        margin-top: 10px;
        transform: scale(0.88);
    }

    .faq-intro-section {
        padding: 70px 0;
    }

    .faq-intro-heading {
        margin-bottom: 35px;
    }

        .faq-intro-heading h2 {
            font-size: 33px;
        }

    .faq-topic-strip {
        gap: 11px;
    }

    .faq-topic {
        min-height: 120px;
        padding: 17px;
    }

        .faq-topic strong {
            max-width: 150px;
            font-size: 12px;
        }

    .faq-main-section {
        padding: 75px 0;
    }

    .faq-main-heading {
        margin-bottom: 50px;
    }

        .faq-main-heading h2 {
            font-size: 35px;
        }

    .faq-count {
        position: static;
        margin-top: 25px;
    }

    .faq-category {
        margin-bottom: 55px;
    }

    .faq-category-heading {
        gap: 14px;
        margin-bottom: 20px;
    }

    .faq-category-number {
        width: 53px;
        height: 53px;
        border-radius: 15px;
    }

    .faq-category-heading h3 {
        font-size: 24px;
    }

    .faq-question {
        min-height: 78px;
        grid-template-columns: 32px minmax(0, 1fr) 35px;
        gap: 12px;
        padding: 17px 15px;
    }

    .faq-question-number {
        width: 31px;
        height: 31px;
        border-radius: 9px;
        font-size: 10px;
    }

    .faq-question-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .faq-toggle {
        width: 33px;
        height: 33px;
    }

    .faq-answer-content {
        padding-right: 20px;
        padding-left: 59px;
    }

    .faq-item.is-open .faq-answer-content {
        padding-bottom: 23px;
    }

    .faq-answer-content p {
        font-size: 13px;
        line-height: 1.85;
    }

    .faq-contact-section {
        padding: 70px 0;
    }

    .faq-contact-panel {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 33px 25px;
        border-radius: 21px;
    }

    .faq-contact-content h2 {
        font-size: 34px;
    }

    .faq-contact-side {
        padding: 15px 0;
    }
}

@media (max-width: 420px) {

    .faq-container {
        width: calc(100% - 28px);
    }

    .faq-topic-strip {
        grid-template-columns: 1fr;
    }

    .faq-topic {
        min-height: 95px;
    }

    .faq-hero-visual {
        min-height: 310px;
        margin-right: -20px;
        margin-left: -20px;
        transform: scale(0.78);
    }

    .faq-question {
        grid-template-columns: 28px minmax(0, 1fr) 31px;
        gap: 9px;
        padding: 15px 11px;
    }

    .faq-question-number {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .faq-question-text {
        font-size: 12px;
    }

    .faq-toggle {
        width: 30px;
        height: 30px;
    }

    .faq-answer-content {
        padding-right: 14px;
        padding-left: 48px;
    }

    .faq-item.is-open .faq-answer-content {
        padding-bottom: 19px;
    }

    .faq-contact-panel {
        padding: 28px 20px;
    }
}


/* =========================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .kg-faq-page *,
    .kg-faq-page *::before,
    .kg-faq-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
