/* CodeZero Group-inspired Case Study Styles */

/* General case study styling */
.codezero-style {
    --cz-primary: #0069ff;
    --cz-secondary: #002a5c;
    --cz-accent: #00d4ff;
    --cz-dark: #1a1a1a;
    --cz-light: #f5f8fa;
    --cz-text: #333333;
    --cz-gray: #6c757d;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--cz-text);
}

/* Hero section */
.case-study-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.case-study-hero .overlay {
    background: linear-gradient(rgba(0,42,92,0.75), rgba(0,42,92,0.95));
    padding: 80px 0;
    width: 100%;
}



.case-study-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.case-study-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.case-study-hero .hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-hero .hero-meta .label {
    font-weight: 600;
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Summary Card */
.case-study-summary-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: -60px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.case-study-summary-card h3 {
    color: var(--cz-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--cz-light);
    color: var(--cz-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background-color: var(--cz-accent);
    color: white;
}

/* Outcome Summary Cards */
.outcomes-summary {
    margin-bottom: 4rem;
}

.outcome-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s;
}

.outcome-card:hover {
    transform: translateY(-5px);
}

.outcome-card h3 {
    color: var(--cz-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}

.outcome-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--cz-primary);
    border-radius: 50%;
}

.outcome-card.challenges h3 {
    color: #e74c3c;
}

.outcome-card.challenges h3::before {
    background-color: #e74c3c;
}

.outcome-card.solutions h3 {
    color: #3498db;
}

.outcome-card.solutions h3::before {
    background-color: #3498db;
}

.outcome-card.results h3 {
    color: #2ecc71;
}

.outcome-card.results h3::before {
    background-color: #2ecc71;
}

.outcome-card ul {
    padding-left: 1.25rem;
}

.outcome-card li {
    margin-bottom: 0.5rem;
}

/* Content Sections */
.case-study-content {
    margin-bottom: 4rem;
}

.content-section {
    margin-bottom: 3.5rem;
}

.section-title {
    color: var(--cz-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.section-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul, 
.section-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

/* Media elements */
.media-container {
    margin: 2rem 0;
}

.media-figure {
    margin-bottom: 1.5rem;
}

.media-figure img {
    border-radius: 8px;
    width: 100%;
}

.media-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--cz-gray);
    margin-top: 0.75rem;
}

/* Gallery */
.gallery-container {
    margin: 2rem 0;
}

.gallery-item {
    margin-bottom: 1.5rem;
}

.gallery-item img {
    border-radius: 6px;
    width: 100%;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Quote styling */
.quote-container {
    padding: 2rem;
    background-color: var(--cz-light);
    border-radius: 8px;
    margin: 2rem 0;
}

.quote-container blockquote {
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    padding-left: 2rem;
    margin: 0;
}

.quote-container blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -1rem;
    top: -1rem;
    color: var(--cz-primary);
    opacity: 0.3;
}

.quote-container cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* Stats section */
.stats-container {
    margin: 2rem 0;
}

.stats-media {
    margin-top: 2rem;
}

/* Table styling */
.specs-table table {
    margin-top: 1.5rem;
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    background-color: var(--cz-secondary);
    color: white;
    padding: 0.75rem 1rem;
}

.specs-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

/* Testimonials section */
.testimonials-section {
    background-color: var(--cz-light);
    padding: 4rem 0;
    margin: 3rem 0;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--cz-secondary);
}

.testimonial-item {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 1rem;
}

/* Gallery section */
.gallery-section {
    padding: 3rem 0;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--cz-secondary);
}

/* Technical specs */
.tech-specs-section {
    background-color: var(--cz-light);
    padding: 3rem 0;
    margin: 3rem 0;
}

.tech-specs-section h2 {
    margin-bottom: 2rem;
    color: var(--cz-secondary);
}

.tech-specs-section .spec-name {
    font-weight: 600;
    width: 30%;
}

/* Related case studies */
.related-case-studies {
    padding: 4rem 0;
}

.related-case-studies h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--cz-secondary);
}

.case-study-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-study-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--cz-secondary);
}

.card-content p {
    margin-bottom: 1.5rem;
    flex: 1;
}

/* CTA section */
.cta-section {
    background-color: var(--cz-secondary);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--cz-primary);
    border-color: var(--cz-primary);
}

.cta-section .btn:hover {
    background-color: var(--cz-accent);
    border-color: var(--cz-accent);
}

/* External links */
.external-links {
    padding: 3rem 0;
    background-color: var(--cz-light);
}

.external-links h3 {
    margin-bottom: 1.5rem;
    color: var(--cz-secondary);
}

.external-links ul {
    padding-left: 1.25rem;
}

.external-links li {
    margin-bottom: 0.75rem;
}

.external-links a {
    color: var(--cz-primary);
    text-decoration: none;
}

.external-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .case-study-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .case-study-hero .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .case-study-hero .hero-title {
        font-size: 2rem;
    }
    
    .case-study-hero .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .case-study-summary-card {
        margin-top: -30px;
    }
    
    .outcome-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .case-study-hero {
        min-height: 400px;
    }
    
    .case-study-hero .overlay {
        padding: 50px 0;
    }
    
    .case-study-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .case-study-summary-card {
        padding: 1.5rem;
    }
}
