/* Facilities Grid & Carousel + FOOTER MEDIA - Add to mission.css */

header .container {
    background:#AFEEEE;
    color: #ae0808;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-right: 15rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo, #logoLeft {
    height: 180px;
    width: 160px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    cursor: pointer;
}

.contact-sticker {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0; /* GAP BETWEEN HEADER & CONTACT */
}

.contact-sticker span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-part {
    text-align: center;
    gap: 1.5rem; 
}

.contact-top {
    display: inline-block;
    margin-left: 0;
    width: 225px;
}

.contact-top img {
    width: 60px;
    height: 55px;
    vertical-align: middle;
    margin-right: 1px;
}

/* Marquee */
.marquee-container {
    background: #010326;
    padding: .3rem;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0rem 0; /* Consistent spacing */
}

.news-marquee, #newsMarquee {
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding: 0.4rem 0; /* Fixed padding */
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.news-marquee:hover, #newsMarquee:hover {
    animation-play-state: paused;
}

/* Banner */
.banner-images {
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.banner-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52,152,219,0.3), rgba(231,76,60,0.3));
    z-index: 1;
}

.banner-container {
    background: #ffffff;
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #051a48;
    padding: 2px;
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.banner-container img,
.banner-images img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.banner-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Facilities Grid */
.facilities-grid {
    background: #f1ede9;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
     background: #f1ede9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
}

.facility-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4a90e2;
}

.facility-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.facility-desc {
    flex-grow: 1;
    padding: 0 10px;
    color: #666;
    margin-bottom: 15px;
}

.carousel-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 5px;
    margin: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 16/9;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s;
    z-index: 3;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    overflow: hidden;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: #000;
}

#modalBody {
    padding: 20px;
    text-align: center;
}

#modalBody img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 40px 0 20px;
    color: #2c3e50;
}

/* FOOTER WITH SOCIAL MEDIA */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    height: auto 80px;
    margin: 0 auto 2rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(241, 179, 54, 0.85);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #4ecdc4;
}

.social-media {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.social-link.facebook:hover { background: #3b5998; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-link.youtube:hover { background: #ff0000; }
.social-link.whatsapp:hover { background: #25d366; }
.social-link.email:hover { background: #ea4335; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: .5rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: white;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .facility-card {
        height: 480px;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    header h1 {
        font-size: 2rem;
        margin-right: 0;
    }
    
    .logo, #logoLeft {
        height: 120px;
        width: 100px;
    }
    
    .banner-container img {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-top {
        width: 100%;
        max-width: 220px;
    }
}