/* invisible aligners page */

:root {
    --secondary-navy: #2d3e66;
    --light-cream: #f5e6d3;
}

/*  caption for why-choose section */
.doctor-photo {
    max-width: 320px;
}

.doctor-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.caption-text {
    color: var(--light-cream);
    font-weight: 600;
    font-family: var(--text-font);
}

/* why-choose: force top alignment and readable text on dark bg */
.why-choose-section .section-text,
.why-choose-section .feature-text,
.why-choose-section .caption-text,
.why-choose-section ul li {
    color: var(--light-cream) !important;
}

/* ensure list bullets are visible */
.why-choose-section ul li {
    margin-bottom: 0.5rem;
}

/* keep image column vertically centered if you want, otherwise it follows start alignment */
.why-choose-section .doctor-photo {
    margin-top: 0;
}

.why-choose-section .doctor-photo img {
    padding: 0px 30px;
    background: white;
}


@keyframes parallax {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--title-color);
}

.hero-tag {
    color: var(--theme-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    font-family: var(--text-font);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out;
    font-family: var(--title-font);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light-cream);
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--light-cream);
    font-family: var(--text-font);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--text-font);
}

.stats-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    font-family: var(--text-font);
}

.stat-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-color);
    font-family: var(--title-font);
}

.stat-label {
    font-size: 0.9rem;
    text-align: center;
    color: var(--title-color);
    font-family: var(--text-font);
}

.stat-icon {
    width: 40px;
    height: 40px;
    color: var(--theme-color);
}

.btn-primary-cta {
    background: var(--theme-color);
    color: var(--title-color);
    border: none;
    /* padding: 1rem 2.5rem; */
    height: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3); */
    font-family: var(--text-font);
}

.btn-primary-cta:hover {
    background: #e89350;
    transform: translateY(-3px);
    /* box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4); */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    color: var(--theme-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
    transition-delay: var(--delay, 0ms);
    will-change: transform, opacity;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0ms);
}

.fade-in-left.fade-in-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0ms);
}

.scale-in.fade-in-visible {
    opacity: 1;
    transform: scale(1);
}

.content-section {
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-family: var(--title-font);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: var(--text-font);
}

.image-placeholder img {
    transition: transform 0.5s ease;
}

.image-placeholder img:hover {
    transform: scale(1.05);
}

.why-choose-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse 4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.section-title-light {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    color: var(--theme-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    color: var(--title-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--title-font);
}

.feature-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-family: var(--text-font);
}

.process-section {
    background: #f8f9fa;
}

.process-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.process-card:hover::before {
    transform: scaleY(1);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-color);
    opacity: 0.3;
    margin-bottom: 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
    font-family: var(--title-font);
}

.process-card:hover .process-number {
    transform: translateY(-6px);
    opacity: 1;
}

.process-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--title-font);
}

.process-text {
    color: var(--text-color);
    line-height: 1.7;
    font-family: var(--text-font);
}

.benefits-section {
    background: #1a2b52;
    padding: 5rem 0;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--title-color);
    animation: slideInLeft 0.5s ease-out;
    font-family: var(--text-font);
    padding-left: 2.5rem;
}

.benefit-item span:before {
    position: absolute;
    content: '\e906';
    font-family: 'icomoon';
    font-size: 16px;
    left: 0;
    top: 0;
    color: var(--theme-color) !important;
}


.related-videos-section {
    border-radius: 10px;
    padding: 30px 20px;
}

.related-videos-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--title-color);
}


.video-box video {
    aspect-ratio: 16/9;
    object-fit: contain !important;
    background-color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-box video:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: var(--title-color);
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    font-family: var(--title-font);
}

.accordion-button:not(.collapsed) {
    background: rgba(244, 162, 97, 0.1);
    color: var(--theme-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    line-height: 1.8;
    font-family: var(--text-font);
}

.cta-section {
    background: #f8f9fa;
}

.cta-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-navy) 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 6s infinite;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 1rem;
    font-family: var(--title-font);
}

.cta-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-family: var(--text-font);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-family: var(--text-font);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-cta {
    background: transparent;
    color: var(--title-color);
    border: 2px solid var(--theme-color);
    padding: 0rem 1rem;
    /* border-radius: 30px; */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: var(--text-font);
}

.btn-secondary-cta:hover {
    background: var(--theme-color);
    transform: translateY(-3px);
}

/* FAQ styles  */


.check-icon {
    width: 30px;
    height: 30px;
    color: var(--theme-color);
    flex-shrink: 0;
}

.faq-section {
    background: var(--secondary-color);
}

.faq-section .sec-title .sub-title {
    display: block;
    color: var(--theme-color);
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--text-font);
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 10px;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-color);
    box-shadow: 0 8px 24px rgba(3, 9, 26, 0.35);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    color: var(--text-color);
    font-family: var(--title-font);
}

.faq-toggle {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-family: var(--text-font);
}

.faq-answer {
    padding: 0 22px 18px 22px;
    color: rgba(17, 24, 39, 0.9);
    line-height: 1.7;
    transition: max-height 0.38s cubic-bezier(.2, .9, .2, 1), opacity 0.28s;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    font-family: var(--text-font);
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-item:first-child {
    transform: translateY(0);
}


/* hero section styles */

.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-navy) 100%);
    display: flex;
    align-items: stretch;
    position: relative;
    padding-top: 3rem;
    color: var(--title-color);
    overflow: hidden;
}

.hero-image-wrapper {
    padding-top: 45px;
    display: flex;
    align-items: flex-end;
    /* image bottom alignment */
    justify-content: flex-end;
}

.hero-image {
    max-width: 90%;
    height: auto;
}


@keyframes floatImage {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-text {
    line-height: 1.8;
    font-size: 1rem;
}

.stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    display: block;
}

.btn-primary-cta {
    background: var(--theme-color);
    color: var(--title-color);
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-cta:hover {
    background: #e89350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

/* testimonial section */


.testimonials-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    flex: 0 0 50%;
    padding: 10px;
}

.before-after-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.before-after-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}