/* ================================================================
   1. FACILITIES HERO SECTION
   ================================================================ */
.facilities-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f0f8 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #2d3436;
    line-height: 1.1;
    font-size: 50px;
}

.hero-text h1 span { color: var(--blue); }

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}

/* ================================================================
   2. FACILITIES GRID (NO HOVER EFFECTS)
   ================================================================ */
.facilities-section { padding: 60px 0; }

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}

.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Class added by JavaScript when element enters viewport */
.facility-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.card-image-wrapper {
    position: relative;
    height: 170px; 
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-badge {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    z-index: 2;
}

.card-content {
    padding: 20px 20px 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 1.25rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   3. RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 1024px) {
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .facilities-grid { grid-template-columns: 1fr; }
    .card-image-wrapper { height: 200px; }
}