/* Case Studies Styling - Modernized Version */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-blue: #0a192f;
    --medium-blue: #1a2c46;
    --light-blue: #e9f0fd;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Enhanced Hero Section */
.case-study-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0d47a1 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.case-study-hero::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

.breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
}

.case-study-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #90caf9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.case-study-hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #93c5fd;
    max-width: 80%;
}

.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tag:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Floating elements in the hero section */
.case-study-hero-illustration {
    position: relative;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-element i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.element-1 {
    top: 20px;
    right: 30%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 60px;
    right: 10%;
    animation-delay: 1s;
}

.element-3 {
    bottom: 30px;
    left: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Enhanced Overview Section */
.case-study-overview {
    background-color: var(--light-bg);
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.case-study-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr);
    gap: 40px;
}

.case-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.info-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.info-item p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.case-summary {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.case-summary h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.case-summary h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.case-summary p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.case-summary p:last-child {
    margin-bottom: 0;
}

/* Content Sections */
.case-study-content {
    padding: 80px 0;
}

.case-study-section {
    margin-bottom: 70px;
}

.case-study-section:last-child {
    margin-bottom: 0;
}

.case-study-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.case-study-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.case-study-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.case-study-section ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.case-study-section ul li {
    margin-bottom: 12px;
    color: var(--text-medium);
    position: relative;
    padding-left: 5px;
    line-height: 1.6;
}

/* Enhanced Challenge List */
.challenge-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.challenge-item {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.challenge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.challenge-number {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.challenge-text {
    flex: 1;
}

.challenge-text strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* Enhanced Testimonial */
.testimonial {
    background-color: var(--light-blue);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
}

.testimonial::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial cite {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    color: var(--dark-blue);
}

/* Enhanced Implementation Process */
.implementation-process {
    margin: 40px 0;
    position: relative;
}

.implementation-process::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 3px;
    background-color: var(--light-blue);
    border-radius: 3px;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step h3 {
    background-color: var(--primary-color);
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 50px;
    margin-right: 25px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    min-width: 220px;
    text-align: center;
    flex-shrink: 0;
}

.process-step p {
    background-color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.process-step ul {
    background-color: white;
    padding: 20px 25px 20px 45px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.process-step li {
    margin-bottom: 10px;
}

.process-step li:last-child {
    margin-bottom: 0;
}

/* Enhanced Outcome Grid */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.outcome-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.outcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.outcome-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.outcome-card:hover .outcome-icon {
    background-color: var(--primary-color);
}

.outcome-icon img {
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
}

.outcome-card:hover .outcome-icon img {
    filter: brightness(10);
}

.outcome-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.outcome-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

/* Enhanced Implementation Details */
.implementation-details {
    margin: 40px 0;
}

.implementation-step {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.implementation-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.implementation-step:last-child {
    margin-bottom: 0;
}

.implementation-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.implementation-step p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Enhanced CTA Section */
.case-study-cta {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0d47a1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.case-study-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #90caf9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.case-study-cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
    display: inline-block;
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.6);
    background-color: #0b5ed7;
}

.button.secondary {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid white;
    font-size: 16px;
    display: inline-block;
}

.button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Animated Compliance Progress Indicator */
.compliance-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.progress-chart {
    width: 120px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
}

.progress-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-chart .circle-bg {
    stroke: #f1f5f9;
    stroke-width: 8;
}

.progress-chart .circle {
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
}

.progress-details {
    flex: 1;
}

.progress-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.progress-timeline {
    font-size: 14px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-icon {
    color: var(--success-color);
}

/* Enhanced Related Case Studies Section */
.related-case-studies {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.related-case-studies h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

.case-study-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-study-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.case-study-card-content {
    padding: 25px;
}

.case-study-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.case-study-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.read-more:hover {
    color: #0b5ed7;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Results and Metrics Section */
.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.metric-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Key Takeaways Section */
.key-takeaways {
    background-color: var(--light-blue);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.key-takeaways h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.key-takeaways h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.takeaway-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.takeaway-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.takeaway-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Before/After Comparison */
.before-after-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.comparison-column {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.comparison-column.before {
    border-top: 5px solid var(--danger-color);
}

.comparison-column.after {
    border-top: 5px solid var(--success-color);
}

.comparison-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-column.before h3 {
    color: var(--danger-color);
}

.comparison-column.after h3 {
    color: var(--success-color);
}

.comparison-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.comparison-list li i {
    margin-top: 3px;
}

.comparison-column.before i {
    color: var(--danger-color);
}

.comparison-column.after i {
    color: var(--success-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .case-study-hero h1 {
        font-size: 2.5rem;
    }
    
    .case-study-hero h2 {
        font-size: 1.5rem;
        max-width: 100%;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    
    .implementation-process::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .process-step h3 {
        margin-right: 0;
        margin-bottom: 15px;
        width: fit-content;
    }
    
    .before-after-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        padding: 80px 0 60px;
    }
    
    .case-study-hero h1 {
        font-size: 2rem;
    }
    
    .case-study-hero h2 {
        font-size: 1.3rem;
    }
    
    .case-info {
        grid-template-columns: 1fr;
    }
    
    .outcome-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-list {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .case-study-section h2 {
        font-size: 24px;
    }
    
    .testimonial {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .case-study-hero h1 {
        font-size: 1.8rem;
    }
    
    .case-study-hero h2 {
        font-size: 1.1rem;
    }
    
    .case-study-meta {
        gap: 10px;
    }
    
    .tag {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .implementation-step {
        padding: 20px;
    }
    
    .implementation-step h3 {
        font-size: 18px;
    }
    
    .outcome-card {
        padding: 20px;
    }
}
