/* ==========================================================================
   CRITICAL CARE (PICU, NICU, EMERGENCY) STYLES
   ========================================================================== */

:root {
    --picu-dark: #0a192f;
    --picu-accent: #00d2ff;
    --picu-glow: rgba(0, 210, 255, 0.3);
    --emergency-red: #d32f2f;
}

/* 1. Dramatic Hero Section */
.critical-hero {
    background-image: url('images/hero_pediatric.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.critical-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.75), rgba(43, 169, 166, 0.85));
    z-index: 0;
}

.critical-hero .container {
    position: relative;
    z-index: 2;
}

.critical-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--picu-glow) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.critical-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--picu-accent);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.critical-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}

.critical-title span {
    color: var(--picu-accent);
    text-shadow: 0 0 20px var(--picu-glow);
}

.critical-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.pulse-button {
    position: relative;
    display: inline-block;
}

.pulse-button::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50px;
    background: var(--emergency-red);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.btn-emergency {
    background: var(--emergency-red);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-emergency:hover {
    background: #b71c1c;
    color: var(--white);
    transform: translateY(-2px);
}


/* 2. Bento Grid Section (Technology & Facilities) */
.bento-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    margin-top: 50px;
}

.bento-item {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-10px);
}

.bento-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    background: rgba(43, 169, 166, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.bento-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Large Bento Item spans 2 cols */
.bento-item.large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.bento-item.large h3, .bento-item.large p {
    color: var(--white);
}

.bento-item.large .bento-icon {
    color: var(--white);
    background: rgba(255,255,255,0.2);
}

.bento-item.large:hover .bento-icon {
    background: var(--white);
    color: var(--primary-color);
}

/* Medium Bento Item spans 2 rows */
.bento-item.tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


/* 3. Conditions Card Section */
.conditions-section {
    padding: 100px 0;
    background: var(--white);
}

.condition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cond-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: var(--bg-light);
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease;
}

.cond-card:hover {
    border-bottom: 5px solid var(--picu-accent);
    transform: translateY(-5px);
}

.cond-img-wrap {
    height: 220px;
    overflow: hidden;
}

.cond-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cond-card:hover .cond-img-wrap img {
    transform: scale(1.1);
}

.cond-content {
    padding: 30px;
}

.cond-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.cond-icon-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* 4. Bold Emergency Banner */
.emergency-banner {
    background-image: url('images/hero_pediatric.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.emergency-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.92), rgba(154, 0, 7, 0.96));
    z-index: 1;
}

.emergency-glass {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.emergency-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.emergency-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.emergency-icon {
    font-size: 3.5rem;
    color: var(--white);
    animation: flash-alert 2s infinite;
}

@keyframes flash-alert {
    0%, 100% { opacity: 1; transform: scale(1); text-shadow: 0 0 20px rgba(255,255,255,0.5); }
    50% { opacity: 0.7; transform: scale(0.9); text-shadow: none; }
}

.emergency-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.emergency-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.btn-massive-call {
    background: var(--white);
    color: var(--emergency-red);
    font-size: 1.3rem;
    font-weight: 800;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.btn-massive-call::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    border: 2px solid var(--white);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.btn-massive-call:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: #f8f9fa;
    color: #b71c1c;
}

@media (max-width: 992px) {
    .emergency-flex {
        flex-direction: column;
        text-align: center;
    }
    .emergency-info {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
}


/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-item.large {
        grid-column: span 2;
    }
    .bento-item.tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .critical-title { font-size: 3rem; }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item.large {
        grid-column: span 1;
    }
    .emergency-banner h2 { font-size: 2rem; }
}
