/* ========================================
   CASE STUDIES PAGE STYLES
======================================== */

/* Case Study Hero Section */
.case-study-hero {
    background: linear-gradient(180deg, #0b0b0b 0%, #171717 100%);
    padding: 160px 0 80px;
    text-align: center;
}

.case-study-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.case-study-hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Real Results Section */
.real-results-section {
    padding: 100px 0;
    background: #ffffff;
}

.real-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left Content */
.real-results-content {
    width: 100%;
}

.real-results-title {
    font-size: 56px;
    font-weight: 700;
    color: #0C1023;
    margin: 0 0 32px 0;
    line-height: 1.15;
}

.real-results-text {
    font-size: 16px;
    line-height: 1.7;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.real-results-text:last-of-type {
    margin-bottom: 40px;
}

/* Get Started Button */
.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #FF601A;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.btn-get-started:hover {
    background: #e55515;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 96, 26, 0.3);
}

.btn-get-started .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.btn-get-started .arrow-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

/* Right Image */
.real-results-image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 16, 35, 0.15);
}

.real-results-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   DENTAL PRACTICE CASE STUDY CARD
======================================== */
.case-study-card-section {
    padding: 40px 0;
    background: #ffffff;
}

.case-study-card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.dental-case-card {
    background: #111111;
    border: 1px solid #B6B6B6;
    border-radius: 24px;
    padding: 48px;
}

.dental-case-card.dark {
    background: #111111;
}

.dental-case-card.orange {
    background: #FF601A;
    border-color: #B6B6B6;
}

/* Orange card - location badge variant */
.dental-case-card.orange .case-location-badge span {
    color: #111111;
}

/* Orange card - title color */
.dental-case-card.orange .dental-case-title {
    color: #ffffff;
}

/* Orange card - challenge heading and text */
.dental-case-card.orange .case-detail-section:not(.approach-card):not(.results-card) .case-detail-heading {
    color: #ffffff;
}

.dental-case-card.orange .case-detail-section:not(.approach-card):not(.results-card) .case-detail-text {
    color: #ffffff;
}

/* Orange card - black text for accordion headings */
.dental-case-card.orange .case-detail-heading.black-text {
    color: #111111;
}

/* Location Badge */
.case-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #B7B7B7;
    border-radius: 90px;
    margin-bottom: 24px;
}

.case-location-badge svg {
    width: 20px;
    height: 20px;
}

.case-location-badge span {
    font-size: 20px;
    font-weight: 500;
    color: #FF601A;
    line-height: 1;
}

/* Card Title */
.dental-case-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    line-height: 1.1;
}

/* Card Body */
.dental-case-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.dental-case-body.reverse {
    grid-template-columns: 1fr 1fr;
}

.dental-case-body.reverse .dental-case-image-wrapper {
    order: 1;
}

.dental-case-body.reverse .dental-case-content {
    order: 2;
}

.dental-case-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Detail Sections */
.case-detail-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-detail-section.approach-card,
.case-detail-section.results-card {
    background: #ffffff;
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.03);
}

/* Accordion Styles */
.accordion-item {
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-toggle:hover {
    transform: scale(1.1);
}

.accordion-toggle svg {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding-top: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    opacity: 1;
    padding-top: 16px;
}

.approach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.collapse-btn:hover {
    transform: scale(1.1);
}

.case-detail-heading {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.case-detail-heading.orange-text {
    color: #FF601A;
}

.case-detail-text {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

.case-detail-text.dark-text {
    color: rgba(19, 23, 53, 0.6);
}

/* Approach List */
.approach-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.approach-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.approach-list li span {
    font-size: 18px;
    line-height: 1.4;
    color: rgba(19, 23, 53, 0.6);
}

/* Right Image */
.dental-case-image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.dental-case-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   THE DIGIFRIES DIFFERENCE SECTION
======================================== */
.digifries-difference-section {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.digifries-difference-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.digifries-difference-title {
    font-size: 72px;
    font-weight: 700;
    color: #0C1023;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.digifries-difference-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    max-width: 935px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
======================================== */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-left,
    .reveal-right,
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   HERO SECTION (OLD)
======================================== */
.case-studies-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(255,96,26,1) 100%);
    padding: 160px 60px 100px;
    text-align: center;
    overflow: hidden;
}

.case-studies-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/_assets_imageasset5_png.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.case-studies-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(255,96,26,0.9) 100%);
}

.case-studies-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.case-studies-hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1.44px;
    margin: 0;
    line-height: 1;
}

/* ========================================
   INTRO SECTION
======================================== */
.case-studies-intro {
    background: var(--white);
    padding: 80px 60px;
}

.case-studies-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
    margin-bottom: 40px;
}

.intro-content {
    max-width: 543px;
}

.intro-title {
    font-size: clamp(42px, 5vw, 71px);
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1;
    letter-spacing: -1.42px;
    margin-bottom: 35px;
}

.intro-description {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(19, 23, 53, 0.6);
    letter-spacing: -0.36px;
    margin-bottom: 20px;
    font-weight: 500;
}

.intro-image {
    width: 519px;
    height: 570px;
    border-radius: 24px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-cta {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

/* ========================================
   CASE STUDY CARDS
======================================== */
.case-study-card {
    padding: 40px 60px;
    margin: 24px 0;
}

.case-study-card.dark {
    background: #111111;
    border: 1px solid #B6B6B6;
    border-radius: 24px;
}

.case-study-card.orange {
    background: var(--primary-color);
    border: 1px solid #B6B6B6;
    border-radius: 24px;
}

.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.case-study-header {
    margin-bottom: 25px;
}

.case-study-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid #B7B7B7;
    border-radius: 90px;
    margin-bottom: 12px;
}

.case-study-location span {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.48px;
}

.case-study-card.dark .case-study-location span {
    color: var(--primary-color);
}

.case-study-card.orange .case-study-location span {
    color: #111111;
}

.case-study-title {
    font-size: clamp(42px, 5vw, 71px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.42px;
    margin: 0;
}

.case-study-card.dark .case-study-title {
    color: var(--white);
}

.case-study-card.orange .case-study-title {
    color: var(--white);
}

/* Body */
.case-study-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.case-study-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section.approach-section {
    background: var(--white);
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.03);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.56px;
    margin: 0;
}

.case-study-card.dark .detail-heading {
    color: var(--white);
}

.case-study-card.orange .detail-heading {
    color: var(--white);
}

.detail-heading.orange {
    color: var(--primary-color) !important;
}

.detail-heading.dark {
    color: #111111 !important;
}

.detail-text {
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.36px;
    font-weight: 500;
    margin: 0;
}

.case-study-card.dark .detail-text {
    color: var(--white);
}

.case-study-card.orange .detail-text {
    color: var(--white);
}

.detail-section.approach-section .detail-text {
    color: rgba(19, 23, 53, 0.6);
}

.approach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.approach-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.approach-list li span {
    font-size: 18px;
    line-height: 1.14;
    color: rgba(19, 23, 53, 0.6);
    letter-spacing: -0.36px;
    font-weight: 500;
}

.case-study-image {
    width: 519px;
    height: 570px;
    border-radius: 24px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   DIGIFRIES DIFFERENCE SECTION
======================================== */
.digifries-difference {
    background: var(--white);
    padding: 100px 60px;
    text-align: center;
}

.difference-container {
    max-width: 1000px;
    margin: 0 auto;
}

.difference-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.03;
    margin-bottom: 16px;
}

.difference-subtitle {
    font-size: 18px;
    line-height: 1;
    color: rgba(19, 23, 53, 0.6);
    letter-spacing: -0.36px;
    font-weight: 500;
    max-width: 935px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .case-study-hero {
        padding: 140px 0 60px;
    }

    .case-study-hero-title {
        font-size: 52px;
    }

    .real-results-container {
        gap: 60px;
    }

    .real-results-title {
        font-size: 48px;
    }

    .case-studies-intro-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image {
        width: 100%;
        max-width: 519px;
        height: auto;
        aspect-ratio: 519 / 570;
        margin: 0 auto;
    }

    .case-study-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-study-image {
        width: 100%;
        max-width: 519px;
        height: auto;
        aspect-ratio: 519 / 570;
        margin: 0 auto;
    }

    .intro-content {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .real-results-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .real-results-title {
        font-size: 42px;
    }

    .dental-case-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dental-case-body.reverse .dental-case-image-wrapper {
        order: 1;
    }

    .dental-case-body.reverse .dental-case-content {
        order: 2;
    }

    .dental-case-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .case-studies-hero {
        padding: 140px 30px 80px;
    }

    .case-studies-intro {
        padding: 60px 30px;
    }

    .intro-title {
        font-size: 36px;
    }

    .case-study-card {
        padding: 30px;
    }

    .case-study-title {
        font-size: 36px;
    }

    .detail-heading {
        font-size: 24px;
    }

    .digifries-difference {
        padding: 80px 30px;
    }
}

@media (max-width: 600px) {
    .case-study-hero {
        padding: 120px 0 40px;
    }

    .case-study-hero-title {
        font-size: 40px;
    }

    .real-results-section {
        padding: 60px 0;
    }

    .real-results-title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .real-results-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .real-results-text:last-of-type {
        margin-bottom: 32px;
    }

    .btn-get-started {
        padding: 14px 28px;
        font-size: 15px;
    }

    .case-study-card-section {
        padding: 60px 0;
    }

    .dental-case-card {
        padding: 32px 24px;
    }

    .case-location-badge {
        padding: 10px 16px;
    }

    .case-location-badge span {
        font-size: 16px;
    }

    .dental-case-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .dental-case-content {
        gap: 24px;
    }

    .case-detail-heading {
        font-size: 24px;
    }

    .case-detail-text,
    .approach-list li span {
        font-size: 16px;
    }

    .case-detail-section.approach-card,
    .case-detail-section.results-card {
        padding: 20px;
    }

    .digifries-difference-section {
        padding: 60px 0;
    }

    .digifries-difference-title {
        font-size: 36px;
    }

    .digifries-difference-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .case-study-hero-title {
        font-size: 32px;
    }

    .real-results-title {
        font-size: 30px;
    }

    .dental-case-title {
        font-size: 28px;
    }

    .case-detail-heading {
        font-size: 20px;
    }

    .dental-case-card {
        padding: 24px 20px;
    }

    .digifries-difference-title {
        font-size: 32px;
    }

    .digifries-difference-subtitle {
        font-size: 15px;
    }

    .case-studies-hero {
        padding: 120px 20px 60px;
    }

    .case-studies-intro {
        padding: 40px 20px;
    }

    .intro-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .intro-description {
        font-size: 16px;
    }

    .case-study-card {
        padding: 24px 20px;
    }

    .case-study-location {
        padding: 10px 16px;
    }

    .case-study-location span {
        font-size: 18px;
    }

    .case-study-title {
        font-size: 28px;
    }

    .detail-heading {
        font-size: 20px;
    }

    .detail-text,
    .approach-list li span {
        font-size: 16px;
    }

    .digifries-difference {
        padding: 60px 20px;
    }

    .difference-title {
        font-size: 36px;
    }

    .difference-subtitle {
        font-size: 16px;
    }
}
