/* Case Study Layout Styles - UI Source Based */

/* Remove conflicting styles from base template for case studies */
body.case-study .main {
    background-attachment: fixed;
}

body.case-study .main .color-overlay,
body.case-study .main .blue-glow {
    display: none;
}

/* Case study badge */
.case-study-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Hero section */
.hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-title .btn-back {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-title .btn-back:hover {
    background-color: white;
    transform: translateY(-2px);
}

/* Full-width split screen sections */
.full-width-split-screen {
    display: flex;
    min-height: 500px;
    align-items: stretch;
}

.full-width-split-screen img {
    width: 50%;
    height: 500px;
    object-fit: cover;
}

.full-width-split-screen > div {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.full-width-split-screen .title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.full-width-split-screen p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Background color variants */
.bg-dark {
    background-color: #1a1a1a;
}

.bg-poseidon-secondary-blue {
    background-color: #2c3e50;
}

.bg-primary {
    background-color: #3498db;
}

/* Blue gradient section */
.blue-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
}

.blue-gradient .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blue-gradient .title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.blue-gradient p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.blue-gradient .btn-primary {
    margin-top: 2rem;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Image overlay for hero sections */
.image-overlay {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Top bar and logo */
.top-bar {
    margin-bottom: 2rem;
}

.logo {
    margin: 0;
}

.logo span {
    position: absolute;
    left: -9999px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .full-width-split-screen {
        flex-direction: column;
        min-height: auto;
    }
    
    .full-width-split-screen img,
    .full-width-split-screen > div {
        width: 100%;
    }
    
    .full-width-split-screen img {
        height: 250px;
        order: 2;
    }
    
    .full-width-split-screen > div {
        padding: 2rem;
        order: 1;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .full-width-split-screen .title {
        font-size: 1.5rem;
    }
    
    .image-overlay {
        padding: 2rem 0;
        min-height: 400px;
    }
    
    .hero-title .btn-back {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
}

/* Specific case study background images using existing images */
.wutr-case-study .main {
    background-image: url('/static/images/tmp-img-1.jpg');
}

.cerberus-case-study .main {
    background-image: url('/static/images/tmp-img-2.jpg');
}

.digital-twin-case-study .main {
    background-image: url('/static/images/tmp-img-3.jpg');
}

.nutheia-case-study .main {
    background-image: url('/static/images/tmp-img-4.jpg');
}
