/* ===== CONTACT PAGE STYLES ===== */
/* Extends the global design system – Bootstrap 5 utilities are used for layout */

/* ----- Contact Hero Section ----- */
.contact-hero {
    position: relative;
    min-height: 40vh;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    background-color: var(--primary-dark);
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 36, 99, 0.92) 0%, rgba(46, 46, 46, 0.85) 100%);
    z-index: 2;
}

.contact-hero .container {
    position: relative;
    z-index: 3;
}

.contact-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.contact-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 25px;
}

/* ----- Contact Cards (consistent with global card style) ----- */
.contact-info-section {
    background-color: var(--white);
    padding: 100px 0;
    position: relative;
}

/* Subtle background pattern */
.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230a2463' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.contact-info-section .container {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(10, 36, 99, 0.06);
    border: 1px solid rgba(10, 36, 99, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(10, 36, 99, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin-bottom: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1);
}

.contact-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    width: 100%;
}

.contact-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.contact-card-item {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 8px;
    font-weight: 500;
    direction: ltr;
    text-align: center;
    word-break: break-word;
}

.contact-card-item:last-child {
    margin-bottom: 0;
}

/* ----- Social Media Section ----- */
.contact-social-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-social-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 36, 99, 0.05);
    height: 100%;
    width: 100%;
}

.contact-social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.1);
    background-color: var(--white);
    border-color: var(--accent-gold);
}

.contact-social-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-social-card:hover .contact-social-icon {
    transform: scale(1.1);
}

.contact-social-name {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 992px) {
    .contact-hero-title {
        font-size: 42px;
    }
    
    .contact-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 35vh;
        padding: 100px 0 50px;
    }
    
    .contact-hero-title {
        font-size: 36px;
    }
    
    .contact-hero-subtitle {
        font-size: 18px;
    }
    
    .contact-info-section {
        padding: 70px 0;
    }
    
    .contact-card-title {
        font-size: 22px;
    }
    
    .contact-card-item {
        font-size: 17px;
    }
    
    .contact-social-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .contact-hero-title {
        font-size: 30px;
    }
    
    .contact-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .contact-card-title {
        font-size: 20px;
    }
    
    .contact-card-item {
        font-size: 16px;
    }
    
    .contact-social-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .contact-social-name {
        font-size: 18px;
    }
}

/* Bootstrap column enhancements */
.row.g-4 {
    --bs-gutter-y: 1.5rem;
}

/* Center cards nicely on all screen sizes */
.col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
}

@media (max-width: 768px) {
    .col-lg-5 {
        width: 100%;
    }
}