/* Case Study Page Styles - Minimal & Clean */

/* Import Nunito Sans (Cera Pro alternative) from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800;900&display=swap');

/* Global Font Application */
.case_study_hero_section,
.case_study_content_section,
.case_study_hero_section *:not(.fa):not([class*="fa-"]),
.case_study_content_section *:not(.fa):not([class*="fa-"]) {
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
}

/* Ensure Font Awesome icons use the correct font */
.fa,
[class*="fa-"] {
    font-family: FontAwesome !important;
}

/* Hero Section - Modern Gradient Design */
.case_study_hero_section {
    background: linear-gradient(135deg, #FFE5D9 0%, #FFF4E6 50%, #FFF9E6 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.case_study_hero_section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 169, 77, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.case_study_hero_section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero_content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero_badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #FF6B6B;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero_title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #2D3748;
    margin-bottom: 24px;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.hero_subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 32px;
    max-width: 800px;
    font-weight: 400;
}

.hero_meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.meta_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta_label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta_value {
    font-size: 1.125rem;
    color: #2D3748;
    font-weight: 700;
}

/* Content Section */
.case_study_content_section {
    padding: 80px 0;
    background: #f8f9fa;
}

.case_study_header {
    text-align: left;
    margin-bottom: 0;
    max-width: 900px;
}

.case_study_header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
}

.case_study_header .lead {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
}

.content_block {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content_block:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content_block h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #2D3748;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 16px;
}

.content_block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B 0%, #FFA94D 100%);
    border-radius: 2px;
}

.content_block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 32px;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
    color: #2D3748;
}

.content_block p {
    font-size: 22px;
    line-height: 1.5;
    color: #4A5568;
    margin-bottom: 16px;
    font-weight: 400;
}

.content_block ul {
    list-style: none;
    padding-left: 0;
}

.content_block ul li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    color: #4A5568;
}

/* Only show bullet if there's no icon */
.content_block ul li:not(:has(i)):before {
    content: "•";
    position: absolute;
    left: 12px;
    color: #FF6B6B;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Adjust padding for list items with icons */
.content_block ul li:has(i) {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content_block ul li i {
    color: #FF6B6B;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Two Column Layout */
.two_column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Nunito Sans', 'Poppins', sans-serif;
}

/* Daily Flow */
.daily_flow {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day_item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.day_number {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    min-width: 80px;
    padding-top: 4px;
}

.day_content {
    flex: 1;
}

.day_content strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #000;
}

.day_content p {
    margin-bottom: 0;
    color: #6c757d;
}

.day_item.highlight {
    background: linear-gradient(135deg, rgba(107, 45, 143, 0.05) 0%, rgba(74, 95, 193, 0.05) 100%);
    padding: 28px;
    border-radius: 12px;
    margin: 10px 0;
    border-left: 4px solid #6B2D8F;
}

/* Engagement Items */
.engagement_items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.engagement_item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.engagement_item .icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.engagement_item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.engagement_item p {
    font-size: 22px;
    line-height: 1.5;
    color: #6c757d;
    margin: 0;
}

/* Impact Grid - Modern Cards */
.impact_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.impact_item {
    padding: 36px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F5 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.impact_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA94D 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.15);
}

.impact_item:hover::before {
    opacity: 1;
}

.impact_item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.impact_item h4 i {
    color: #FF6B6B;
    font-size: 1.5rem;
}

.impact_item p {
    font-size: 22px;
    line-height: 1.5;
    color: #4A5568;
    margin: 0;
}

/* Metrics Table */
.metrics_table {
    margin-top: 30px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.metric_row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #dee2e6;
}

.metric_row:last-child {
    border-bottom: none;
}

.metric_row.header {
    background: linear-gradient(135deg, #6B2D8F 0%, #4A5FC1 100%);
    font-weight: 700;
    color: #fff;
}

.metric_row>div {
    padding: 16px 20px;
    border-right: 1px solid #dee2e6;
}

.metric_row>div:last-child {
    border-right: none;
}

.metric_label {
    font-weight: 500;
}

.metric_before {
    color: #6c757d;
    text-align: center;
}

.metric_after {
    text-align: center;
}

.metric_after.highlight {
    color: #28a745;
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Testimonials - Modern Design */
.testimonial {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFFFFF 100%);
    padding: 40px;
    border-radius: 16px;
    margin: 32px 0;
    border-left: 4px solid #FF6B6B;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255, 107, 107, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.12);
    transform: translateX(4px);
}

.testimonial p {
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    color: #2D3748;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Conclusion Block - Modern Design */
.conclusion_block {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 169, 77, 0.08) 100%);
    padding: 56px;
    border-radius: 20px;
    margin-top: 60px;
    border-left: 5px solid #FF6B6B;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.conclusion_block h2 {
    color: #2D3748;
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.conclusion_block p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4A5568;
}

.conclusion_block strong {
    color: #FF6B6B;
    font-weight: 700;
}

/* Image Blocks */
.image_block {
    margin: 50px 0;
    text-align: center;
}

.case_study_image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case_study_hero_section {
        padding: 60px 0 80px;
    }

    .hero_title {
        font-size: 2.5rem;
    }

    .hero_subtitle {
        font-size: 1.125rem;
    }

    .content_block {
        padding: 32px 24px;
    }

    .content_block h2 {
        font-size: 2rem;
    }

    .two_column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .day_item {
        flex-direction: column;
        gap: 12px;
    }

    .day_number {
        min-width: auto;
    }

    .impact_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact_item {
        padding: 28px;
    }

    .metric_row {
        grid-template-columns: 1fr;
    }

    .metric_row>div {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .metric_row>div:last-child {
        border-bottom: none;
    }

    .metric_row.header .metric_before,
    .metric_row.header .metric_after {
        display: none;
    }

    .metric_before::before {
        content: "Before: ";
        font-weight: 600;
        color: #2D3748;
    }

    .metric_after::before {
        content: "After: ";
        font-weight: 600;
        color: #2D3748;
    }

    .metric_before,
    .metric_after {
        text-align: left;
    }

    .conclusion_block {
        padding: 36px 24px;
    }

    .testimonial {
        padding: 28px 20px;
    }
}

@media (max-width: 576px) {
    .hero_title {
        font-size: 2rem;
    }

    .hero_subtitle {
        font-size: 1rem;
    }

    .content_block {
        padding: 24px 20px;
    }

    .content_block h2 {
        font-size: 1.75rem;
    }

    .content_block h3 {
        font-size: 1.375rem;
    }

    .impact_item {
        padding: 24px;
    }

    .day_item.highlight {
        padding: 20px 16px;
    }

    .engagement_item {
        flex-direction: column;
        gap: 8px;
    }

    .testimonial {
        padding: 24px 16px;
    }

    .conclusion_block {
        padding: 28px 20px;
    }
}
/* Related Case Studies Slider */
.related_cases_container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.related_cases_slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 10px 5px 30px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.related_cases_slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.related_cases_slider .impact_item {
    flex: 0 0 calc(33.333% - 17px);
    margin-top: 0;
    min-width: 300px;
}

.scroll_btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    color: #FF6B6B;
}

.scroll_btn:hover {
    background: #FF6B6B;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

@media (max-width: 991px) {
    .related_cases_slider .impact_item {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    .related_cases_slider .impact_item {
        flex: 0 0 100%;
    }
    
    .scroll_btn {
        display: none; /* Allow native touch scroll on mobile */
    }
    
    .related_cases_container {
        gap: 0;
    }
}
