/* Front page (division chooser) — moved verbatim from front-page.php */
:root {
    --primary-color: #0e1f31;
    --secondary-color: #738697;
    --accent-gold: #738697;
    --accent-green: #58923d;
}


body {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background: #fff;
    color: #14273d;
}

/* Animated Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 50%, var(--secondary-color) 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.site-header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(40,167,69,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.header-content {
    position: relative;
    z-index: 2;
}

.site-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.site-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.site-description {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Modern Split Layout */
.selection-container {
    min-height: calc(100vh - 250px);
    display: flex;
    padding: 0;
    margin: 0;
    background: #18212b; /* behind the photos */
}

.selection-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-item:hover {
    flex: 1.3;
}

.selection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(17,24,32,0.3) 0%, rgba(17,24,32,0.85) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.selection-item:hover::before {
    background: linear-gradient(180deg, rgba(17,24,32,0.1) 0%, rgba(17,24,32,0.75) 100%);
}

.selection-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.selection-item:hover .selection-bg {
    transform: scale(1.1);
}

.selection-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem 2rem;
    transition: all 0.5s ease;
}

.selection-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 2rem;
    /* filter: brightness(0) invert(1); - Removed temporarily for testing */
    transition: all 0.5s ease;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    display: block;
    max-width: 100%;
}

.selection-item:hover .selection-logo {
    transform: scale(1.15);
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.selection-badge {
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consulting-badge {
    background: #0f2846; /* white text: 15:1 */
    color: white;
}

.laboratory-badge {
    background: #467a30; /* white text: 5.1:1 */
    color: white;
}

.selection-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.selection-item:hover .selection-title {
    font-size: 2.8rem;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.7);
}

.selection-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.selection-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto 2rem;
    transition: all 0.5s ease;
}

.selection-item:hover .selection-description {
    opacity: 1;
}

.selection-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.selection-item:hover .selection-cta {
    opacity: 1;
    transform: translateY(0);
}

.selection-cta:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Divider Line */
.selection-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, white 50%, transparent 100%);
    z-index: 3;
    transform: translateX(-50%);
}

/* Footer: light grey with a hairline */
.site-footer {
    background: #eef2f6;
    border-top: 1px solid #dde4ec;
    color: #3f4f61;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    margin: 0;
}

.footer-text a {
    color: #0f2846;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: #0f2846;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .selection-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .selection-item {
        min-height: 500px;
    }
    
    .selection-item:hover {
        flex: 1;
    }
    
    .selection-divider {
        display: none;
    }
    
    .selection-cta {
        opacity: 1;
        transform: translateY(0);
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .selection-title {
        font-size: 2rem;
    }
    
    .selection-item:hover .selection-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 1.2rem;
    }
    
    .selection-title {
        font-size: 1.8rem;
    }
    
    .selection-logo {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .selection-description {
        font-size: 0.9rem;
    }
}
