/*--------------------------------------------------------------
 * About Page Styles
 * Styles specific to the page-about.php template.
 *
 * @package Thrive_Kids_GI_Care
 *--------------------------------------------------------------*/

/* ── Google Fonts (shared) ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ── Hero Section ────────────────────────────────────────────── */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        url('../images/about-2.jpg') center/cover no-repeat;
}

/* Dark overlay */
.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 20, 0.6);
    z-index: 1;
}

/* Content */
.about-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 80px;
    animation: aboutFadeIn 1s ease-out both;
}

@keyframes aboutFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Label */
.about-hero__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

/* Title */
.about-hero__title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ── Text Reveal Section ─────────────────────────────────────── */
.about-reveal {
    padding: 120px 24px;
}

.about-reveal__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-reveal__text {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.4;
    color: #c8c8c8;
    margin: 0;
    letter-spacing: -0.01em;
}

.about-reveal__word-wrap {
    display: inline;
    white-space: nowrap;
}

.about-reveal__char {
    display: inline;
    color: #c8c8c8;
}

/* ── Stats & Impact Section ──────────────────────────────────── */
.about-stats {
    padding: 100px 24px;
}

.about-stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.about-stats__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-stats__heading {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.25;
    color: #1F4F46;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.about-stats__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2E2E2E;
    margin: 0 0 40px;
    max-width: 480px;
}

.about-stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.about-stats__item {
    display: flex;
    flex-direction: column;
    padding: 28px 0;
    border-top: 1px solid #d8d8d5;
}

.about-stats__item:nth-child(2),
.about-stats__item:nth-child(4) {
    padding-left: 32px;
    border-left: 1px solid #d8d8d5;
}

.about-stats__item:nth-child(1),
.about-stats__item:nth-child(2) {
    padding-top: 28px;
    border-top: none;
}

.about-stats__value {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: #1F4F46;
    line-height: 1.1;
    margin-bottom: 8px;
}

.about-stats__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7b6b;
    letter-spacing: 0.01em;
}

/* ── Right: Image & Overlay ─ */
.about-stats__media {
    flex: 0 0 420px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-stats__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-stats__cta-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 20px;
}

.about-stats__play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.about-stats__play-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.about-stats__cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.about-stats__cta-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.about-stats__cta-link:hover {
    opacity: 0.8;
}

/* ── Doctor Profile Section ──────────────────────────────────── */
.about-doctor {
    padding: 120px 24px;
}

.about-doctor__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* ─ Left: Media ─ */
.about-doctor__media {
    flex: 0 0 460px;
    position: relative;
}

.about-doctor__frame {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.about-doctor__photo {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 24px;
    clip-path: inset(100% 0 0 0 round 24px);
    /* animated by GSAP */
    position: relative;
    z-index: 2;
}

/* Offset decorative border — revealed by GSAP scaleX then scaleY */
.about-doctor__frame-border {
    position: absolute;
    inset: -18px -18px 18px 18px;
    /* offset: right and up */
    border-radius: 28px;
    border: 2px solid rgba(204, 255, 51, 0.55);
    z-index: 1;
    transform-origin: top left;
    transform: scale(0);
}

/* Floating pill */
.about-doctor__pill {
    position: absolute;
    bottom: -20px;
    left: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1F4F46;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 20px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(31, 79, 70, 0.25);
}

.about-doctor__pill svg {
    flex-shrink: 0;
}

/* ─ Right: Content ─ */
.about-doctor__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.about-doctor__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #4e7e00;
    background-color: rgba(158, 240, 26, 0.1);
    border: 1px solid rgba(158, 240, 26, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 28px;
}

.about-doctor__name {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.about-doctor__name em {
    font-style: italic;
    color: #1F4F46;
}

.about-doctor__specialty {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6b7b6b;
    margin: 0 0 28px;
}

.about-doctor__bio {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 36px;
    max-width: 520px;
}

.about-doctor__credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.about-doctor__cred-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2F7D6B;
    margin-bottom: 2px;
}

.about-doctor__cred {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1F4F46;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    opacity: 0;
    /* animated by GSAP */
    transform: translateY(10px);
}

.about-doctor__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
    text-decoration: none;
    background-color: #1F4F46;
    border: 1.5px solid #1F4F46;
    border-radius: 50px;
    padding: 10px 10px 10px 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
}

.about-doctor__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #2F7D6B;
    border-radius: 50px;
    transform: translateX(-105%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.about-doctor__cta:hover {
    color: #ffffff !important;
    border-color: #1F4F46;
}

.about-doctor__cta:hover::before {
    transform: translateX(0);
}

.about-doctor__cta-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #2F7D6B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-doctor__cta:hover .about-doctor__cta-arrow {
    background-color: #2F7D6B;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */


@media screen and (max-width: 1024px) {
    .about-stats__inner {
        flex-direction: column;
        gap: 40px;
    }

    .about-stats__media {
        flex: none;
        width: 100%;
        height: 400px;
    }

    .about-stats__subtitle {
        max-width: 100%;
    }

    .about-doctor__inner {
        flex-direction: column-reverse;
        gap: 60px;
    }

    .about-doctor__media {
        flex: none;
        width: 100%;
    }

    .about-doctor__photo {
        height: 500px;
    }
}

@media screen and (max-width: 768px) {
    .about-hero {
        min-height: 40vh;
    }

    .about-hero__content {
        padding: 80px 16px 64px;
    }

    .about-hero__label {
        font-size: 0.82rem;
    }

    .about-hero__title {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
    }

    .about-reveal {
        padding: 80px 20px;
    }

    .about-reveal__text {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    }

    .about-stats {
        padding: 80px 20px;
    }

    .about-stats__inner {
        gap: 32px;
    }

    .about-stats__media {
        height: 360px;
    }

    .about-stats__cta-overlay {
        bottom: 14px;
        left: 14px;
        right: 14px;
        padding: 14px 16px;
    }

    .about-doctor {
        padding: 80px 20px;
    }

    .about-doctor__photo {
        height: 420px;
    }

    .about-doctor__frame-border {
        inset: -12px -12px 12px 12px;
    }

    .about-doctor__pill {
        font-size: 0.72rem;
        padding: 10px 16px;
        left: 16px;
        bottom: -16px;
    }
}

@media screen and (max-width: 480px) {
    .about-hero {
        min-height: 35vh;
    }

    .about-hero__content {
        padding: 64px 12px 48px;
    }

    .about-hero__label {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .about-hero__title {
        font-size: 1.7rem;
    }

    .about-reveal {
        padding: 60px 16px;
    }

    .about-reveal__text {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .about-stats {
        padding: 60px 16px;
    }

    .about-stats__heading {
        font-size: 1.6rem;
    }

    .about-stats__subtitle {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }

    .about-stats__item {
        padding: 20px 0;
    }

    .about-stats__item:nth-child(2),
    .about-stats__item:nth-child(4) {
        padding-left: 20px;
    }

    .about-stats__value {
        font-size: 1.8rem;
    }

    .about-stats__media {
        height: 300px;
    }

    .about-stats__cta-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px 14px;
        gap: 10px;
    }

    .about-stats__play-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .about-stats__cta-text {
        font-size: 0.78rem;
    }

    .about-doctor {
        padding: 60px 16px;
    }

    .about-doctor__photo {
        height: 360px;
    }

    .about-doctor__name {
        font-size: 2rem;
    }

    .about-doctor__bio {
        font-size: 0.88rem;
    }
}