/**
 * Case Study Contact Module
 * Replicates homepage contact module styling for case study pages
 * Created: May 20, 2025
 */

/* Base contact module styling */
.case-study .contact-module {
    position: relative;
    background-image: url('../../images/contact-module-bg.webp');
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

/* Gradient background */
.case-study .contact-module.homepage-contact {
    background: linear-gradient(135deg, #000042 0%, #000020 100%);
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Top blue gradient line */
.case-study .contact-module.homepage-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #00c3ff 0%, #00ffea 100%);
    z-index: 1;
}

/* Diamond pattern overlay */
.case-study .contact-module.homepage-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 50, 0.4) 25%, transparent 25%),
        linear-gradient(135deg, rgba(0, 0, 50, 0.4) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0, 0, 50, 0.4) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0, 0, 50, 0.4) 25%, transparent 25%);
    background-size: 100px 100px;
    z-index: 0;
    opacity: 0.3;
}
/* Transparent overlay */
.case-study .contact-module .color-overlay {
    background-color: rgba(2, 0, 52, 0.5);
    position: relative;
    z-index: 1;
}

/* Content layout */
.case-study .homepage-contact .image-overlay {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-image: none;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

/* Typography */
.case-study .homepage-contact .image-overlay h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0;
    flex: 0 0 40%;
    text-transform: uppercase;
    line-height: 1.2;
    font-family: 'Khand', sans-serif;
}

.case-study .homepage-contact .image-overlay p {
    font-size: 1.2rem;
    margin-bottom: 0;
    flex: 0 0 35%;
    color: white;
}

/* Button styling */
.case-study .homepage-contact .image-overlay .btn {
    background-color: #00d8e2 !important;
    border-color: #00d8e2 !important;
    color: #000 !important;
    font-weight: bold;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    border-radius: 0.25rem;
    flex: 0 0 auto;
}

.case-study .homepage-contact .image-overlay .btn:hover {
    background-color: #00c4cc !important;
    border-color: #00c4cc !important;
    box-shadow: 0 6px 12px rgba(0, 216, 226, 0.4);
    transform: translateY(-2px);
}

.case-study .homepage-contact .image-overlay .btn strong {
    color: #000 !important;
}

/* Responsive layout */
@media (max-width: 991px) {
    .case-study .homepage-contact .image-overlay {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .case-study .homepage-contact .image-overlay h2,
    .case-study .homepage-contact .image-overlay p {
        flex: 0 0 100%;
    }
}
