/* shared-components — Figma page styles. Loaded after assets/css/style.css (see panacea_enqueue_assets). Scope every selector to this page/section. */

/* Shared components restyled to Figma, used on many pages:
   1. Footer CTA banner   (common/footer-cta.php   → .join-section)
   2. FAQ accordion       (common/faq.php          → .faq-section)
   3. Testimonials marquee (common/testimonials.php → .testimonials-section)
   Every selector is scoped to the component's own section class. */

/* =====================================================================
   1. FOOTER CTA — "Start Preparing For Your Exam Today"
   Figma (1920 frame): card 1440 x 315, radius 20, #1A4DA1, padding 84/69,
   title 56px white + orange highlight, right column = 16/30 paragraph at
   70% white + two 53px pills.
   ===================================================================== */

.join-section {
    position: relative;
}

.join-section .join-banner {
    position: relative;
    background: #1A4DA1;
    border-radius: 20px;
    padding: 64px 69px 64px 84px;
    min-height: 315px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* faint concentric arcs (r = 217…467px, 50px apart) — centre sits just
   outside the bottom-right corner, as in the Figma */
.join-section .join-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(
        circle at calc(100% + 54px) calc(100% + 205px),
        transparent 17px 65.6px,
        rgba(255, 255, 255, 0.14) 65.6px 67px
    );
    -webkit-mask-image: radial-gradient(circle at calc(100% + 54px) calc(100% + 205px), transparent 0 212px, #000 213px 469px, transparent 470px);
    mask-image: radial-gradient(circle at calc(100% + 54px) calc(100% + 205px), transparent 0 212px, #000 213px 469px, transparent 470px);
    pointer-events: none;
    z-index: 0;
}

/* warm orange glow hugging the bottom-right corner (wider than tall) */
.join-section .join-banner::after {
    content: '';
    position: absolute;
    right: -210px;
    bottom: -100px;
    width: 420px;
    height: 200px;
    background: radial-gradient(ellipse closest-side,
        rgba(241, 146, 31, 0.27) 0,
        rgba(241, 146, 31, 0.17) 40%,
        rgba(241, 146, 31, 0.06) 75%,
        rgba(241, 146, 31, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.join-section .join-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    /* right column is 539px in the 1440 Figma card (title column takes the rest) */
    grid-template-columns: minmax(0, 1fr) minmax(0, min(560px, 50%));
    align-items: center;
}

.join-section .join-title {
    font-size: 54px;
    font-weight: 500;
    line-height: 1.27;
    color: #ffffff;
    margin: 0;
    max-width: 560px;
}

.join-section .join-title .text-white {
    color: #ffffff;
}

/* Bootstrap's .text-warning uses !important on color through a variable —
   retint the variable instead of fighting the !important. */
.join-section .join-title .text-warning,
.join-section .join-title .text-accent,
.join-section .join-title .highlight {
    --bs-warning-rgb: 241, 146, 31;
    --warning-color: #F1921F;
    color: #F1921F;
}

.join-section .join-text {
    font-size: 16px;
    line-height: 30px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 39px;
    max-width: 480px;
}

.join-section .join-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
}

.join-section .join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    height: 53px;
    padding: 0 29px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
}

.join-section .join-btn i.bi-arrow-right {
    font-size: 18px;
    line-height: 1;
}

.join-section .join-btn i.bi-arrow-right::before {
    -webkit-text-stroke: 0.4px currentColor;
}

.join-section .join-btn-light {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #101010;
}

.join-section .join-btn-light:hover,
.join-section .join-btn-light:focus {
    background: #ffffff;
    color: #1A4DA1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.join-section .join-btn-outline {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.join-section .join-btn-outline:hover,
.join-section .join-btn-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* small grey outline diamond inside the card (centre at 48.7% / 76px) */
.join-section .join-diamond-white {
    width: 25px;
    height: 25px;
    border: 2.5px solid #B4B4B4;
    border-radius: 6px;
    top: 63px;
    left: calc(48.7% - 12.5px);
    z-index: 1;
}

/* orange outline diamond outside the card, right edge. In the 1920 frame its
   centre is 115px right of the card and 120px below the card top; on narrower
   screens it moves in so it still peeks into the side gutter. */
.join-section .join-diamond-orange {
    display: block;
    width: 45px;
    height: 45px;
    border: 5px solid #F5B12A;
    border-radius: 11px;
    top: calc(120px - 22.5px);
    right: auto;
    left: calc(100% - 12px - 22.5px + min(115px, (100vw - 100%) * 0.28 + 6px));
    z-index: 3;
}

@media (max-width: 1199.98px) {
    .join-section .join-banner {
        padding: 56px 48px;
    }

    .join-section .join-title {
        font-size: 46px;
    }
}

@media (max-width: 991.98px) {
    .join-section .join-banner {
        padding: 48px 36px;
        min-height: 0;
    }

    .join-section .join-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
    }

    .join-section .join-title {
        font-size: 36px;
        max-width: none;
    }

    .join-section .join-text {
        max-width: 560px;
        margin-bottom: 28px;
    }

    .join-section .join-diamond-white {
        display: block;
        top: 28px;
        left: auto;
        right: 40px;
    }

    .join-section .join-diamond-orange {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .join-section .join-banner {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .join-section .join-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .join-section .join-text {
        font-size: 15px;
        line-height: 26px;
    }

    .join-section .join-btns {
        gap: 12px;
    }

    .join-section .join-btn {
        flex: 1 1 220px;
        height: 50px;
        padding: 0 22px;
        font-size: 16px;
    }

    .join-section .join-diamond-white {
        top: 20px;
        right: 24px;
        width: 20px;
        height: 20px;
    }
}

/* =====================================================================
   2. FAQ — "Frequently Ask Questions"
   Figma (1440 column): 45/600 title, 2 columns 700px + 40px gap, white
   cards with a soft drop shadow, 90px closed height, 18/500 question at
   116px, blue "+" (21px) / orange "−" (27px) at 48px, 14/21 grey answer.
   Toggle = Bootstrap collapse (data-bs-toggle / data-bs-parent): the
   button gets/loses .collapsed and the body gets .show.
   ===================================================================== */

.faq-section {
    position: relative;
    background: #ffffff;
    padding: 80px 15px;
}

.faq-section .faq-heading {
    font-size: 45px;
    font-weight: 600;
    line-height: 1.2;
    color: #1A4DA1;
    margin: 0 0 59px;
}

/* style.css: .text-accent { color: var(--warning-color) !important } —
   retint the variable rather than adding another !important */
.faq-section .faq-heading .text-accent,
.faq-section .faq-heading .highlight {
    --warning-color: #F1921F;
    color: #F1921F;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.faq-section .faq-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.faq-section .faq-item {
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 22px 32px -14px rgba(16, 24, 40, 0.14), 0 0 8px rgba(16, 24, 40, 0.025);
    transform: none;
    transition: box-shadow 0.3s ease;
}

.faq-section .faq-item:hover {
    transform: none;
    box-shadow: 0 24px 36px -14px rgba(26, 77, 161, 0.2), 0 0 8px rgba(16, 24, 40, 0.03);
}

.faq-section .faq-btn {
    display: flex;
    align-items: center;
    gap: 41px;
    width: 100%;
    min-height: 90px;
    margin: 0;
    padding: 33px 40px 33px 48px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    color: #1F1F1F;
    cursor: pointer;
    font-family: inherit;
}

.faq-section .faq-btn:hover,
.faq-section .faq-btn:focus {
    background: transparent;
    color: #1F1F1F;
    box-shadow: none;
}

.faq-section .faq-btn:focus-visible {
    outline: 2px solid #1A4DA1;
    outline-offset: -4px;
}

/* "+" / "−" drawn with two bars — the <i> glyph is hidden so the icon can
   switch shape and colour from the Bootstrap .collapsed state alone */
.faq-section .faq-ico {
    position: relative;
    flex: 0 0 27px;
    width: 27px;
    height: 24px;
    display: block;
}

.faq-section .faq-ico i {
    display: none;
}

.faq-section .faq-ico::before,
.faq-section .faq-ico::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1A4DA1;
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease, width 0.3s ease;
}

/* horizontal bar */
.faq-section .faq-ico::before {
    width: 21px;
    height: 3px;
    transform: translate(-50%, -50%);
}

/* vertical bar */
.faq-section .faq-ico::after {
    width: 3px;
    height: 21px;
    transform: translate(-50%, -50%);
}

.faq-section .faq-btn:not(.collapsed) .faq-ico::before {
    width: 27px;
    background: #F4A84C;
}

.faq-section .faq-btn:not(.collapsed) .faq-ico::after {
    background: #F4A84C;
    transform: translate(-50%, -50%) scaleY(0);
}

/* question text (also resets the About-page .faq-q rules in style.css) */
.faq-section .faq-q {
    display: block;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #1F1F1F;
    cursor: inherit;
}

.faq-section .faq-body {
    padding: 0;
}

.faq-section .faq-ans {
    margin: -3px 0 0;
    padding: 0 40px 52px 116px;
    max-width: 606px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    color: #6B6875;
}

/* decorative diamonds: blue left of the title, orange outside the right edge */
.faq-section .faq-diamond {
    position: absolute;
    display: block;
    border-radius: 11px;
    pointer-events: none;
    z-index: 0;
    animation: float-box 3s ease-in-out infinite;
}

.faq-section .faq-diamond--blue {
    width: 44px;
    height: 44px;
    border: 4.5px solid #0084FF;
    top: -12px;
    left: calc(12px + 9%);
}

.faq-section .faq-diamond--orange {
    width: 45px;
    height: 45px;
    border: 5px solid #F5B12A;
    top: 75px;
    left: calc(100% - 12px - 22.5px + min(115px, (100vw - 100%) * 0.28 + 6px));
    animation-delay: 0.6s;
}

@media (max-width: 991.98px) {
    .faq-section {
        padding: 56px 15px;
    }

    .faq-section .faq-heading {
        font-size: 30px;
        margin-bottom: 36px;
    }

    .faq-section .faq-grid {
        gap: 20px;
    }

    .faq-section .faq-col {
        gap: 20px;
    }

    .faq-section .faq-btn {
        gap: 24px;
        min-height: 76px;
        padding: 24px 24px 24px 28px;
    }

    .faq-section .faq-ans {
        padding: 0 24px 32px 79px;
    }

    .faq-section .faq-diamond--blue {
        width: 32px;
        height: 32px;
        border-width: 3.5px;
        top: -46px;
        left: 20px;
    }

    .faq-section .faq-diamond--orange {
        display: none;
    }
}

/* phones: one column, original question order restored */
@media (max-width: 767.98px) {
    .faq-section .faq-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .faq-section .faq-col {
        display: contents;
    }

    .faq-section .faq-item {
        order: var(--faq-order, 0);
    }
}

@media (max-width: 575.98px) {
    .faq-section .faq-heading {
        font-size: 27px;
        margin-bottom: 28px;
    }

    .faq-section .faq-btn {
        gap: 16px;
        min-height: 68px;
        padding: 20px 18px;
    }

    .faq-section .faq-ico {
        flex-basis: 22px;
        width: 22px;
    }

    .faq-section .faq-ico::before {
        width: 17px;
        height: 2.5px;
    }

    .faq-section .faq-ico::after {
        width: 2.5px;
        height: 17px;
    }

    .faq-section .faq-btn:not(.collapsed) .faq-ico::before {
        width: 22px;
    }

    .faq-section .faq-q {
        font-size: 16px;
        line-height: 22px;
    }

    .faq-section .faq-ans {
        padding: 0 18px 24px 56px;
    }
}

/* =====================================================================
   3. TESTIMONIALS — "Experiences That Inspire Growth" (marquee)
   Figma (1920 frame): #F0F6F6 band, 2-line 45px title, 16/25 subtitle,
   two rows of 620px white cards (radius 24, gap 24) bleeding off both
   edges, 5 orange stars + date, 18/34 quote, 56px avatar, 20/500 name,
   blue exam tag (radius 20 top-left) in the bottom-right corner.
   Track = CSS animation (.left-to-right / .right-to-left); the template
   renders every row twice so the -50% loop is seamless.
   ===================================================================== */

.testimonials-section {
    position: relative;
    background: #F0F6F6;
    padding: 84px 0 79px;
    overflow: hidden;
}

.testimonials-section .testimonials-header {
    position: relative;
    text-align: center;
    margin: 0 auto 10px;
    padding: 0 15px;
}

.testimonials-section .testimonials-header .testimonials-title {
    font-size: 45px;
    font-weight: 600;
    line-height: 50px;
    color: #1A4DA1;
    max-width: 420px;
    margin: 0 auto 16px;
}

.testimonials-section .testimonials-header .testimonials-title .accent-orange,
.testimonials-section .testimonials-header .testimonials-title .text-accent,
.testimonials-section .testimonials-header .testimonials-title .highlight {
    --warning-color: #F1921F;
    color: #F1921F;
}

.testimonials-section .testimonials-header .testimonials-title .accent-blue {
    color: #1A4DA1;
}

.testimonials-section .testimonials-header .testimonials-subtitle {
    font-size: 16px;
    line-height: 25px;
    color: #101010;
    max-width: 400px;
    margin: 0 auto;
}

/* outline diamonds: yellow left (centre 14.4% / 125px), orange right (82.4% / 100px) */
.testimonials-section .testimonials-header .diamond-left,
.testimonials-section .testimonials-header .diamond-right {
    position: absolute;
    width: 69px;
    height: 69px;
    pointer-events: none;
}

.testimonials-section .testimonials-header .diamond-left {
    left: calc(14.4% - 34.5px);
    top: calc(125px - 84px - 34.5px);
    animation: testi-float-y 3s ease-in-out infinite;
}

.testimonials-section .testimonials-header .diamond-right {
    right: auto;
    left: calc(82.4% - 34.5px);
    top: calc(100px - 84px - 34.5px);
    animation: testi-float-y 3s ease-in-out 0.8s infinite;
}

.testimonials-section .testimonials-header .diamond-left svg rect {
    stroke: #F5B12A;
}

.testimonials-section .testimonials-header .diamond-right svg rect {
    stroke: #F2642E;
}

@keyframes testi-float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* rows */
.testimonials-section .marquee-wrapper {
    padding: 12px 0;
    overflow: hidden;
}

/* Figma: cards are cut cleanly by the screen edge, no fade masks */
.testimonials-section .marquee-wrapper::before,
.testimonials-section .marquee-wrapper::after {
    display: none;
}

.testimonials-section .marquee-track {
    gap: 24px;
    align-items: stretch;
}

/* the cloned set doubles the track, so -50% is exactly one full set */
.testimonials-section .marquee-track.left-to-right,
.testimonials-section .marquee-track.right-to-left {
    animation-duration: 80s;
}

.testimonials-section .marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* card */
.testimonials-section .testimonial-card {
    flex: 0 0 620px;
    width: 620px;
    max-width: none;
    min-height: 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonials-section .testimonial-card:hover {
    box-shadow: 0 12px 28px rgba(26, 77, 161, 0.08);
}

.testimonials-section .testimonial-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 0 21px;
}

.testimonials-section .testimonial-card .card-top .stars {
    display: flex;
    gap: 5px;
}

.testimonials-section .testimonial-card .card-top .stars svg {
    width: 21px;
    height: 21px;
    fill: #FF7F22;
}

.testimonials-section .testimonial-card .card-top .stars svg.is-off {
    fill: #E3E8EF;
}

.testimonials-section .testimonial-card .card-top .date {
    font-size: 16px;
    line-height: 24px;
    color: #7A7A7A;
    white-space: nowrap;
}

.testimonials-section .testimonial-card .card-text {
    flex: 0 0 auto;
    margin: 0;
    padding: 23px 0 24px;
    border-top: 1.5px solid #EDF1F7;
    border-bottom: 1.5px solid #EDF1F7;
    font-size: 18px;
    line-height: 34px;
    font-weight: 400;
    color: #101010;
}

.testimonials-section .testimonial-card .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 24px 110px 0 0;
    border-top: 0;
}

.testimonials-section .testimonial-card .card-bottom .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.testimonials-section .testimonial-card .card-bottom .user-info .avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonials-section .testimonial-card .card-bottom .user-info .user-details .name {
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    color: #101010;
    margin: 0;
}

.testimonials-section .testimonial-card .card-bottom .user-info .user-details .location {
    font-size: 16px;
    line-height: 22px;
    color: #5F6065;
}

.testimonials-section .testimonial-card .card-bottom .exam-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 44px;
    padding: 0 20px;
    background: #1A4DA1;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    border-radius: 20px 0 0 0;
}

@media (max-width: 991.98px) {
    .testimonials-section {
        padding: 56px 0;
    }

    .testimonials-section .testimonials-header .testimonials-title {
        font-size: 30px;
        line-height: 36px;
        max-width: 300px;
        margin-bottom: 12px;
    }

    .testimonials-section .testimonials-header .diamond-left,
    .testimonials-section .testimonials-header .diamond-right {
        display: block;
        width: 44px;
        height: 44px;
        top: -10px;
    }

    .testimonials-section .testimonials-header .diamond-left {
        left: 6%;
    }

    .testimonials-section .testimonials-header .diamond-right {
        left: auto;
        right: 6%;
    }

    .testimonials-section .testimonial-card {
        flex-basis: 440px;
        width: 440px;
        padding: 20px;
    }

    .testimonials-section .testimonial-card .card-text {
        font-size: 16px;
        line-height: 28px;
        padding: 18px 0 20px;
    }
}

@media (max-width: 575.98px) {
    .testimonials-section {
        padding: 48px 0;
    }

    .testimonials-section .testimonials-header {
        margin-bottom: 20px;
    }

    .testimonials-section .testimonials-header .testimonials-title {
        font-size: 27px;
        line-height: 33px;
        max-width: 260px;
    }

    .testimonials-section .testimonials-header .testimonials-subtitle {
        font-size: 15px;
        line-height: 23px;
        max-width: 320px;
    }

    .testimonials-section .testimonials-header .diamond-left,
    .testimonials-section .testimonials-header .diamond-right {
        width: 34px;
        height: 34px;
        top: -6px;
    }

    .testimonials-section .testimonials-header .diamond-left {
        left: 4%;
    }

    .testimonials-section .testimonials-header .diamond-right {
        right: 4%;
    }

    .testimonials-section .marquee-wrapper {
        padding: 8px 0;
    }

    .testimonials-section .marquee-track {
        gap: 16px;
    }

    .testimonials-section .testimonial-card {
        flex-basis: 300px;
        width: 300px;
        padding: 18px;
        border-radius: 20px;
    }

    .testimonials-section .testimonial-card .card-top {
        padding-bottom: 16px;
    }

    .testimonials-section .testimonial-card .card-top .stars {
        gap: 5px;
    }

    .testimonials-section .testimonial-card .card-top .stars svg {
        width: 15px;
        height: 15px;
    }

    .testimonials-section .testimonial-card .card-top .date {
        font-size: 13px;
    }

    .testimonials-section .testimonial-card .card-text {
        font-size: 15px;
        line-height: 25px;
        padding: 14px 0 16px;
    }

    .testimonials-section .testimonial-card .card-bottom {
        padding: 16px 84px 0 0;
    }

    .testimonials-section .testimonial-card .card-bottom .user-info {
        gap: 12px;
    }

    .testimonials-section .testimonial-card .card-bottom .user-info .avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .testimonials-section .testimonial-card .card-bottom .user-info .user-details .name {
        font-size: 17px;
        line-height: 22px;
    }

    .testimonials-section .testimonial-card .card-bottom .user-info .user-details .location {
        font-size: 14px;
    }

    .testimonials-section .testimonial-card .card-bottom .exam-badge {
        height: 36px;
        min-width: 64px;
        padding: 0 14px;
        font-size: 15px;
        border-radius: 16px 0 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-section .marquee-track.left-to-right,
    .testimonials-section .marquee-track.right-to-left {
        animation-duration: 240s;
    }
}
