/* Case Study Template Styles */

/* Demo-specific styles */
.demo-header { background: #333; color: white; padding: 20px 0; text-align: center; margin-bottom: 0; }
.demo-navigation { background: #148bb4; padding: 10px 0; text-align: center; }
.demo-navigation a { color: white; text-decoration: none; margin: 0 15px; font-weight: 600; }
.demo-footer { background: #333; color: white; padding: 30px 0; text-align: center; margin-top: 50px; }

/* Featured Business Section Styles */
.intro { padding: 40px 0; margin-bottom: 40px; }
.general-title { font-size: 30px; font-weight: 700; color: #333; margin-bottom: 15px; line-height: 1.2; }
.sub-general-title { font-size: 14px; line-height: 24px; color: #666; margin-bottom: 30px; font-weight: 400; }
.intro h1 { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: #000; }
.intro h2 { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: #333; }
.intro p { font-size: 18px; line-height: 1.6; margin-bottom: 20px; padding-bottom: 4px; color: #555; }
.intro p b { color: #333; font-size: 20px; display: inline-block; padding-top: 6px; }
.btn-orange { background-color: #f39c12; border-color: #f39c12; color: white; padding: 12px 30px; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 25px; margin-top: 20px; transition: all 0.3s ease; }
.btn-orange:hover { background-color: #e67e22; border-color: #e67e22; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3); }

/* Apply to Join button - replicate sales page primary button */
.ua-success_story-go_premium {
    background: #ff8a25;
    color: #ffffff;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 138, 37, 0.5);
    min-height: 64px;
    margin-top: 50px;
}
.ua-success_story-go_premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 138, 37, 0.6);
    background: #ff9500;
}
.banner-premium { width: 80% !important; height: auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); display: block; margin: 0 auto; }
.featured-business-image { text-align: center; margin-top: 50px; position: relative; display: block; width: 100%; }

/* How It Works Section Styles */
.how-it-work { padding: 85px 0px 60px 0; background-color: #f8f9fa; margin: 40px 0; }
.how-item { text-align: center; padding: 20px; }
.how-info { margin-top: 20px; }
.how-rate { text-align: center; color: #009eeb; font-size: 56px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; display: block !important; }
.how-title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 15px; line-height: 1.3; display: block !important; }
.how-title span { color: #009eeb; font-weight: 700; }
.how-text { font-size: 18px; line-height: 1.6; color: #666; margin: 0; }

/* Testimonial Sidebar Styles (from template) */
.case-study-testimonial-sidebar { margin-top: 20px; }
.case-study-testimonial-sidebar .testimonial-content { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); padding: 25px; border-radius: 8px; color: white; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3); }
.case-study-testimonial-sidebar h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: white; line-height: 1.3; }
.case-study-testimonial-sidebar blockquote { border-left: 3px solid rgba(255, 255, 255, 0.3); padding-left: 15px; margin: 15px 0; font-style: italic; }
.case-study-testimonial-sidebar blockquote p { color: white; font-size: 14px; line-height: 1.5; margin: 0; }
.case-study-testimonial-sidebar .testimonial-author { margin-top: 20px; padding-top: 1px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.case-study-testimonial-sidebar .author-info p { color: white; margin: 5px 0; font-size: 14px; }
.case-study-testimonial-sidebar .author-info strong { font-weight: 700; }

/* Other Businesses Section - Vertical Layout */
.case-study-other-businesses { padding: 40px 0; background-color: #f8f9fa; margin: 40px 0; }
.case-study-other-businesses h2 { text-align: center; margin-bottom: 30px; color: #333; }
.other-businesses-content p { text-align: center; font-size: 18px; line-height: 1.6; color: #555; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.characteristics-list { max-width: 600px; margin: 0 auto; }
.characteristic-item { background: white; padding: 25px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); border-left: 4px solid #009eeb; transition: all 0.3s ease; }
.characteristic-item:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
.characteristic-item:last-child { margin-bottom: 0; }
.characteristic-item h4 { color: #333; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.characteristic-item p { color: #666; font-size: 16px; line-height: 1.5; margin: 0; text-align: left; }

.case-study-solutions, #other-businesses {background-color: #f8f9fa; }

@media (max-width: 768px) {
  .intro { padding: 20px 0; }
  .intro h2 { font-size: 24px; }
  .featured-business-image { margin-top: 30px; }
  .how-it-work { padding: 40px 0; }
  .how-item { margin-bottom: 30px; }
  /* Headline layout: show featured image above sub-headline on mobile */
  #headline .headline-sub-row {
      display: flex;
      flex-direction: column-reverse;
  }
}

.h4header { color: #a2a2a2; font-size: 14px; text-transform: uppercase; font-weight: 700 !important; margin-top: 0; margin-bottom: 10px !important; letter-spacing: 1px; }
.business-tips-p-title { font-size: 18px; font-weight: 700; color: #666; margin-top: 30px; }
.case-study-page { padding-bottom: 20px; }
.case-study-challenge, .case-study-strategy {padding: 80px 0; }
.testimonial-content h2 { color: #000; font-size: 44px; }
.testimonial-content .section-paragraph { color: #666; font-size: 16px; }
.testimonial-author { color: #666; font-size: 16px; font-weight: 700; border: none !important; }
.company-ceo-quote { padding: 100px 40px; border-radius: 8px; text-align: center; }
.company-ceo-quote h2 { color: #fff; font-size: 30px; }
.company-ceo-quote .section-paragraph { color: #fff; font-size: 40px; }
.ceo-name { color: #fff; font-size: 16px; font-weight: 700; border: none !important; }
        .editable { position: relative; display: inline-block; }
        .editable__btn { position: relative; top: -0.1em; left: 0.5em; background: none; border: 0; cursor: pointer; opacity: 0.6; }
        .editable__btn:hover { opacity: 1; }
        .editable[contenteditable="true"] { outline: 2px dashed #9aa7b2; outline-offset: 2px; }
        .editable__btn i { font-size: 16px; }
        .editable__btn .bi-check-lg { 
            font-size: 22px; 
            color: #5cb85c;
        }
        .editable__btn .bi-x { 
            margin-right: 8px;
            font-size: 24px;
            color: #ff0000;
        }
        .editable__text--placeholder {
            color: #90a4ae !important;
            font-style: italic;
            font-size: 18px !important;
        }
        .editable--placeholder .editable__btn {
            opacity: 0.4;
        }
        .editable_block{
            display: block !important;
        }

        /* Image Upload Modal */
        .image-upload-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .image-upload-modal.show {
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .image-upload-modal .modal-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .image-upload-modal .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e5e5e5;
        }

        .image-upload-modal .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: #333;
            margin: 0;
        }

        .image-upload-modal .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .image-upload-modal .modal-close:hover {
            background: #f5f5f5;
            color: #333;
        }

        .image-upload-modal .upload-area {
            border: 2px dashed #009eeb;
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            background: #f8f9fa;
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 20px;
        }

        .image-upload-modal .upload-area:hover {
            border-color: #0088d1;
            background: #e8f4fd;
        }

        .image-upload-modal .upload-area.dragover {
            border-color: #28a745;
            background: #d4edda;
        }

        .image-upload-modal .upload-icon {
            font-size: 48px;
            color: #009eeb;
            margin-bottom: 15px;
        }

        .image-upload-modal .upload-text {
            font-size: 16px;
            color: #333;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .image-upload-modal .upload-subtext {
            font-size: 14px;
            color: #666;
        }

        .image-upload-modal .file-input {
            display: none;
        }

        .image-upload-modal .preview-container {
            margin-bottom: 20px;
            text-align: center;
        }

        .image-upload-modal .preview-image {
            max-width: 100%;
            max-height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .image-upload-modal .modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .image-upload-modal .btn-modal {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .image-upload-modal .btn-modal-primary {
            background: #009eeb;
            color: white;
        }

        .image-upload-modal .btn-modal-primary:hover {
            background: #0088d1;
            transform: translateY(-1px);
        }

        .image-upload-modal .btn-modal-secondary {
            background: #6c757d;
            color: white;
        }

        .image-upload-modal .btn-modal-secondary:hover {
            background: #5a6268;
        }

        .image-upload-modal .btn-modal:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .image-upload-modal .upload-progress {
            margin-top: 15px;
            display: none;
        }

        .image-upload-modal .progress-bar {
            width: 100%;
            height: 8px;
            background: #e5e5e5;
            border-radius: 4px;
            overflow: hidden;
        }

        .image-upload-modal .progress-fill {
            height: 100%;
            background: #009eeb;
            width: 0%;
            transition: width 0.3s ease;
        }

        .image-upload-modal .progress-text {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        /* Image upload button on banner */
        .image-upload-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            opacity: 1;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .image-upload-btn:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: translateY(-1px);
        }

        .featured-business-image {
            position: relative;
            display: block;
            width: 100%;
        }
        .banner-empty-text{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #90a4ae;
            font-weight: 600;
            font-size: 14px;
            text-align: center;
            padding: 0 16px;
        }
        .file-input-container{
            padding-top: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .client-content p, 
        .metric-label strong,
        .challenge-content p,
        .strategy-content p,
        .step-content h4,
        .solutions-content p,
        .conclusion-content p,
        .business-tips-p-title,
        .testimonial-content h3,
        .testimonial-content blockquote p,
        .testimonial-content .author-info p,
        .testimonial-content .author-info strong,
        .testimonial-author,
        .company-ceo-quote h2,
        .company-ceo-quote .section-paragraph,
        .company-ceo-quote .ceo-name,
        .other-businesses-content p,
        .characteristic-item,
        .characteristic-item p,
        .how-title,
        .how-text,
        .result-item p
        {
            font-size: 18px;
        }

        .highlight-list li, 
        .metric-label p,
        .strategy-list li,
        .solutions-achievements p
        {
            font-size: 16px;
        }

/* Based on existing SavvySME design elements and brand colors */

.case-study-page {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    line-height: 1.6;
}

/* Headline Section */
.case-study-headline {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #148bb4 0%, #009eeb 100%);
    color: white;
    text-align: center;
}

.case-study-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .case-study-title {
        font-size: 28px;
    }
}

/* Featured Image Section */
.case-study-featured-image {
    padding: 40px 0;
    background: #f8f9fa;
}

.featured-business-image img,
.savvy-business-showcase img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Project Summary Section */
.case-study-summary {
    padding: 60px 0;
    background: white;
}

.case-study-summary h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.summary-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.summary-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #148bb4;
}

.summary-stats p {
    margin: 10px 0;
    font-weight: 600;
    color: #148bb4;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

/* Ensure paragraph text within highlight list uses standard body color */
.highlight-list > li > p {
    color: #666;
    font-size: 14px;
}

/* Titles and text inside summary-highlights lists (client and other-businesses) */
.summary-highlights .highlight-list h4 {
    color: #148bb4;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.summary-highlights .highlight-list p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Process Steps (Blue Theme from Savvy) */
.process-steps {
    /* background: white; */
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.process-steps h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 22px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.step-number {
    background: #148bb4;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #333;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.step-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Client Section */
.case-study-client {
    padding: 60px 0;
    background: #fff;
}

.case-study-client h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.client-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

/* Audience Quality Widget */
.audience-quality-widget {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.audience-quality-widget h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 22px;
}

.audience-quality-widget p {
    color: #666;
    margin-bottom: 25px;
}

.metric-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.metric-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.metric-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.metric-circle.blue {
    background: #148bb4;
}

.metric-circle.green {
    background: #28a745;
}

.metric-circle.orange {
    background: #ffc107;
}

.metric-circle .percentage {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.metric-label strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.metric-label p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Challenge Section */
.case-study-challenge {
    padding: 60px 0;
    background: #f8f9fa;
}

.case-study-challenge h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.challenge-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

/* SavvyCredits Feature */
.savvy-credits-feature {
    background: linear-gradient(135deg, #148bb4 0%, #009eeb 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.savvy-credits-feature h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
}

.savvy-credits-feature p {
    color: white;
    margin-bottom: 20px;
}

.credits-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.savvy-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin: 20px 0;
}

.savvy-btn:hover {
    background: #e0a800;
    color: #333;
}

.feature-image {
    margin-top: 20px;
}

.feature-image img {
    border-radius: 6px;
}

/* Strategy Section */
.case-study-strategy {
    padding: 60px 0;
    background: #fff;
}

.case-study-strategy h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.strategy-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.strategy-points {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.strategy-points h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.strategy-list {
    list-style: none;
    padding: 0;
}

.strategy-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.strategy-list li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #f00;
    font-weight: 700;
    font-size: 18px;
}

.strategy-list li:last-child {
    border-bottom: none;
}

.strategy-list h4 { 
    color: #148bb4;
    font-weight: 600;
    margin: 0px 0 15px 0px;
    font-size: 18px;
}

/* Make h4 red for the list immediately following business-tips-p-title */
.business-tips-p-title + .strategy-list h4 {
    color: #ff0000;
}

/* Solutions Section */
.case-study-solutions {
    padding: 60px 0 60px 0;
    background-color: #f8f9fa;
}

.case-study-solutions h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.solutions-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.solutions-achievements {
    margin-top: 40px;
}

.solutions-achievements h3 {
    color: #148bb4;
    font-weight: 600;
    margin: 30px 0 15px 0px;
    font-size: 18px;
    padding-left: 30px;
}
.solutions-achievements h3:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}
.solutions-achievements-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

/* Match strategy-list bullet and heading styles */
.solutions-achievements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}
.solutions-achievements-list h4 {
    color: #148bb4;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 18px;
}

/* Community Stats */
.community-stats {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.community-stats h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
}

.stat-highlight {
    background: linear-gradient(135deg, #148bb4 0%, #009eeb 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: white;
    margin-top: 20px;
}

.big-numbers .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.big-numbers p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Results Section */
.case-study-results {
    padding: 60px 0;
    background: #fff;
}

.case-study-results h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.result-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28a745;
}

.result-item h3 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
}

.result-item p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Quality Metrics Sidebar */
.quality-metrics-sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quality-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.quality-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.quality-score {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.quality-score.blue {
    background: #148bb4;
}

.quality-score.green {
    background: #28a745;
}

.quality-score.orange {
    background: #ffc107;
}

/* Other Businesses Section */
.case-study-other-businesses {
    padding: 60px 0;
    background: white;
}

.case-study-other-businesses h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.other-businesses-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.characteristics-list {
    margin-top: 30px;
}

.characteristic-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    border-top: 3px solid #148bb4;
}

.characteristic-item h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.characteristic-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Testimonial Section */
.case-study-testimonial {
    padding: 60px 0;
    background: #f8f9fa;
}

.testimonial-content {
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-content.orange-bg {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.testimonial-content h2 {
    color: #666;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 28px;
}

.testimonial-content blockquote {
    border: none;
    margin: 0;
    padding: 0;
}

.testimonial-content blockquote p {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.author-info p {
    color: white;
    margin: 5px 0;
}

.author-info strong {
    font-weight: 700;
}

/* Timeline Section */
.case-study-timeline {
    padding: 60px 0;
    background: white;
}

.case-study-timeline h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.timeline-content {
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #148bb4;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    background: #148bb4;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 25px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-content-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    flex: 1;
    border-left: 3px solid #148bb4;
}

.timeline-content-item h4 {
    color: #333;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.timeline-content-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-page {
        padding: 0 15px;
    }
    
    .case-study-headline {
        padding: 40px 0 30px;
    }
    
    .case-study-title {
        font-size: 24px;
    }
    
    .case-study-summary,
    .case-study-client,
    .case-study-challenge,
    .case-study-strategy,
    .case-study-solutions,
    .case-study-results,
    .case-study-other-businesses,
    .case-study-testimonial,
    .case-study-timeline {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 24px;
    }
    
    .timeline-content:before {
        left: 15px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        font-size: 14px;
    }
    
    .metric-circle {
        width: 50px;
        height: 50px;
    }
    
    .quality-score {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .big-numbers .stat-number {
        font-size: 28px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-content h2 {
        font-size: 22px;
    }
    
    .testimonial-content blockquote p {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .case-study-page {
        font-size: 12px;
    }
    
    .case-study-headline {
        background: #148bb4 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .testimonial-content.orange-bg {
        background: #ffc107 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}


/* ===== Migrated from articleCaseStudy/view.php inline CSS ===== */
.case-study-header {
    padding: 2rem 0;
    border-bottom: 2px solid #e3e6f0;
}
.case-study-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}
.case-study-meta .badge { font-size: 0.875rem; padding: 0.5rem 1rem; }
.author-avatar { width: 60px; height: 60px; }
.author-name { font-weight: 600; color: #2c3e50; }
.publish-date { font-size: 0.875rem; }
.content-section { padding: 2rem 0; }
.section-title { font-size: 1.75rem; font-weight: 600; color: #2c3e50; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #3498db; }
.section-content { font-size: 1.1rem; line-height: 1.7; color: #34495e; }
.results-highlight { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); padding: 1.5rem; border-radius: 8px; border-left: 4px solid #28a745; }
.testimonial-card { background: #f8f9fa; padding: 2rem; border-radius: 12px; border-left: 4px solid #007bff; }
.testimonial-text { font-style: italic; font-size: 1.1rem; line-height: 1.6; color: #495057; margin: 0; }
.sidebar-card { background: #fff; border: 1px solid #e3e6f0; border-radius: 8px; padding: 1.5rem; box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15); }
.sidebar-title { font-size: 1.25rem; font-weight: 600; color: #2c3e50; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e3e6f0; }
.related-title { font-size: 1rem; font-weight: 600; color: #495057; margin-bottom: 0.5rem; }
.related-item { padding: 0.5rem 0; border-bottom: 1px solid #f8f9fa; }
.related-link { color: #3498db; text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.related-link:hover { color: #2980b9; text-decoration: underline; }
.cta-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 3rem 2rem; border-radius: 12px; }
.cta-card h3 { color: white; margin-bottom: 1rem; }
@media (max-width: 768px) {
  .case-study-title { font-size: 2rem; }
  .case-study-header { padding: 1rem 0; }
  .content-section { padding: 1rem 0; }
  .section-title { font-size: 1.5rem; }
}

/* Sticky status bar */
.sticky-status-bar{
    position: fixed;
    top: 117px;
    left: 0; right: 0;
    width: 100%;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 14px 20px;
    box-sizing: border-box;
}
.modal-open .sticky-status-bar { z-index: 1030; }
.sticky-status-bar:after{ content:""; display: table; clear: both; }
.sticky-status-bar .status-left{ float:left; }
.sticky-status-bar .status-right{ float:right; }
.sticky-status-bar .status-title{ font-weight:700; margin-bottom: 6px; color: #d9534f; }
.sticky-status-bar .status-list{ margin:0; padding-left: 18px; }
.sticky-status-bar .status-list li{ cursor:pointer; color:#007bff; }
.sticky-status-bar .status-list li:hover{ text-decoration: underline; }
.sticky-status-bar .btn.disabled{ opacity:.6; cursor:not-allowed; }
#cs-sticky-wrap + .case-study-page .intro { margin-top: 60px; }
@media (min-width: 993px){ #cs-sticky-wrap .status-left{ margin-left: 10%; } }
#missingList, #missingList li{ color: #d9534f; font-weight: 700; }
#missingList .missing-item-icon{ color: #ff0000; margin-right: 6px; font-size: 16px; }
#submitBtn.disabled, #submitBtn.disabled:hover, #submitBtn.disabled:focus{ background-color: #bdbdbd !important; border-color: #b0b0b0 !important; color: #ffffff !important; cursor: not-allowed; }
@media (max-width: 768px){ .sticky-status-bar{ padding:12px 15px; } .sticky-status-bar .status-left, .sticky-status-bar .status-right{ float:none; } .sticky-status-bar .status-right{ margin-top:8px; text-align:left; } }
@media (min-width: 992px){ .audience-quality-widget{ margin-top: 100px; } .case-study-client .col-md-8{ padding-right: 140px; } }

/* Expert and CTA styles */
.expert-section { padding: 60px 0; }
.expert-section .company-name { margin-top: 0; font-weight: 700; color: #2c3e50; }
.expert-section .company-meta { color: #666; margin-top: 6px; }
.expert-section .company-meta .separator { margin: 0 6px; color: #c0c0c0; }
.expert-card { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); margin-bottom: 30px; border: 1px solid #e6e6e6; }
.expert-bio { margin-top: 16px; }
.expert-bio p { font-size: 16px; line-height: 1.6; color: #555; margin: 0; }
.company-info { margin-bottom: 10px; }
.company-logo img { width: 100%; max-width: 140px; height: auto; object-fit: contain; display: block; }
.company-details .trust-badges { display: flex; gap: 12px 16px; flex-wrap: wrap; margin-top: 10px; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-left: 3px solid #28a745; margin: 0; color: #495057; font-weight: 600; }
.trust-badge i { color: #28a745; font-size: 16px; }
.cta-section-right { background: #009eeb; background: linear-gradient(135deg, #009eeb 0%, #3a58b9 100%); color: white; padding: 30px; border-radius: 8px; text-align: center;}
.cta-section-right h3 { color: white; font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.cta-section-right p { color: rgba(255,255,255,0.9); font-size: 14px; margin-bottom: 25px; }
.cta-button-right { background: #ff8b26; color: white; border: none; padding: 15px 30px; border-radius: 25px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; transition: all .3s ease; text-decoration: none; display: inline-block; width: 100%; }
.cta-button-right:hover { background: #e07520; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,139,38,0.3); }
.section-header { color: #a2a2a2; font-size: 14px; text-transform: uppercase; font-weight: 700; margin-top: 0; margin-bottom: 10px; letter-spacing: 1px; }

/* Image upload modal (scoped) */
.image-upload-modal .modal-content{ background:#fff; border-radius:12px; padding:30px; max-width:500px; width:90%; max-height:80vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.3); position:relative; }
.image-upload-modal .modal-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-bottom:15px; border-bottom:1px solid #e5e5e5; }
.image-upload-modal .modal-title{ font-size:20px; font-weight:700; color:#333; margin:0; }
.image-upload-modal .modal-close{ background:none; border:none; font-size:24px; color:#999; cursor:pointer; padding:0; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:all .2s ease; }
.image-upload-modal .modal-close:hover{ background:#f5f5f5; color:#333; }
.image-upload-modal .upload-area{ border:2px dashed #009eeb; border-radius:8px; padding:40px 20px; text-align:center; background:#f8f9fa; transition:all .3s ease; cursor:pointer; margin-bottom:20px; }
.image-upload-modal .upload-area:hover{ border-color:#0088d1; background:#e8f4fd; }
.image-upload-modal .upload-area.dragover{ border-color:#28a745; background:#d4edda; }
.image-upload-modal .upload-icon{ font-size:48px; color:#009eeb; margin-bottom:15px; }
.image-upload-modal .upload-text{ font-size:16px; color:#333; margin-bottom:8px; font-weight:600; }
.image-upload-modal .upload-subtext{ font-size:14px; color:#666; }
.image-upload-modal .file-input{ display:none; }
.image-upload-modal .preview-container{ margin-bottom:20px; text-align:center; }
.image-upload-modal .preview-image{ max-width:100%; max-height:200px; border-radius:8px; box-shadow:0 4px 15px rgba(0,0,0,0.1); }
.image-upload-modal .modal-actions{ display:flex; gap:10px; justify-content:flex-end; }
.image-upload-modal .btn-modal{ padding:10px 20px; border:none; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; transition:all .3s ease; }
.image-upload-modal .btn-modal-primary{ background:#009eeb; color:white; }
.image-upload-modal .btn-modal-primary:hover{ background:#0088d1; transform:translateY(-1px); }
.image-upload-modal .btn-modal-secondary{ background:#6c757d; color:white; }
.image-upload-modal .btn-modal-secondary:hover{ background:#5a6268; }
.image-upload-modal .btn-modal:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.image-upload-modal .upload-progress{ margin-top:15px; display:none; }
.image-upload-modal .progress-bar{ width:100%; height:8px; background:#e5e5e5; border-radius:4px; overflow:hidden; }
.image-upload-modal .progress-fill{ height:100%; background:#009eeb; width:0%; transition:width .3s ease; }
.image-upload-modal .progress-text{ font-size:12px; color:#666; margin-top:5px; }

/* Case Study - When sticky wrap is present, offset case-study-page */
#cs-sticky-wrap + .case-study-page{
    position: relative;
    margin-top: 0; /* Will be set dynamically via JavaScript */
    transition: margin-top 0.2s ease;
    padding-top: 0 !important; /* Remove inline padding-top, will be handled by margin-top */
}