/* Base Global Styling */
:root {
    --primary: #1e1b4b;
    --secondary: #3b82f6;
    --accent: #f97316;
    --pink: #ec4899;
    --teal: #14b8a6;
    --light: #f8fafc;
    --dark: #0f172a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 50%, #fdf2f8 100%); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* Unified Frosted Navbar */
nav {
    background: linear-gradient(90deg, rgba(30,27,75,0.96), rgba(49,46,129,0.96), rgba(15,118,110,0.96));
    color: white; display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(30,27,75,0.22);
}
.logo h2 { font-weight: 800; letter-spacing: 0.8px; background: linear-gradient(90deg, #fff, #fde047, #5eead4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; list-style: none; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.nav-links a:not(.btn-apply-nav) { color: #e2e8f0; text-decoration: none; font-weight: 600; padding-bottom: 4px; border-bottom: 3px solid transparent; transition: color 0.25s, border-color 0.25s; }
.nav-links a:not(.btn-apply-nav):hover, .nav-links a.active-link { color: #fde047; border-bottom-color: var(--accent); }

.btn-apply-nav {
    background: linear-gradient(135deg, #f97316, #ec4899); color: white !important; text-decoration: none;
    padding: 0.6rem 1.4rem; border-radius: 50px; font-weight: 700; position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(236,72,153,0.45); transition: transform 0.25s ease;
}
.btn-apply-nav:hover { transform: translateY(-2px); }

/* Sliding Image Header (Home Page) */
.hero-slider { position: relative; height: 66vh; overflow: hidden; color: white; }
.slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 1.5rem;
    opacity: 0; visibility: hidden; transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}
.slide.active { opacity: 1; visibility: visible; }
.hero-content { max-width: 720px; }
.badge-nsfas { display: inline-block; background: rgba(20,184,166,0.9); padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; }
.hero-content h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; margin-bottom: 0.9rem; text-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.hero-content p { font-size: 1.15rem; margin-bottom: 1.6rem; color: #f1f5f9; }
.btn-hero { display: inline-block; background: white; color: var(--primary); padding: 0.75rem 1.6rem; border-radius: 50px; font-weight: 700; text-decoration: none; transition: background 0.25s, color 0.25s; }
.btn-hero:hover { background: var(--accent); color: white; }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.dot.active { background: #fde047; transform: scale(1.25); }

/* Sub-Pages Header (Rooms & Gallery) */
.page-header {
    background: linear-gradient(135deg, #1e1b4b, #2563eb, #0f766e);
    color: white; text-align: center; padding: 4rem 1.5rem;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.6rem; }
.page-header p { font-size: 1.1rem; color: #e2e8f0; max-width: 620px; margin: 0 auto; }

/* NSFAS Banner & Amenities */
.nsfas-banner { max-width: 1300px; margin: -2.2rem auto 0 auto; padding: 0 5%; position: relative; z-index: 20; }
.nsfas-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-left: 8px solid var(--teal); border-radius: 16px; padding: 2rem;
    box-shadow: 0 15px 35px rgba(15,23,42,0.12); display: flex; gap: 1.5rem; align-items: center;
}
@media (max-width: 700px) { .nsfas-box { flex-direction: column; text-align: center; } }
.nsfas-icon { font-size: 3rem; }
.nsfas-box h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 0.4rem; }

.section-wrapper { max-width: 1300px; margin: 0 auto; padding: 4rem 5%; }
.section-title { text-align: center; color: var(--primary); font-size: 2rem; font-weight: 800; margin-bottom: 2.5rem; }

.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.amenity-card {
    background: white; padding: 1.8rem; border-radius: 14px; box-shadow: 0 8px 20px rgba(59,130,246,0.07);
    border-top: 4px solid var(--secondary); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amenity-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(236,72,153,0.14); border-top-color: var(--pink); }
.amenity-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.amenity-card h3 { color: var(--primary); margin-bottom: 0.4rem; }

/* About & Latest News Split */
.main-container { display: grid; grid-template-columns: 1.7fr 1.3fr; gap: 2.5rem; padding: 1rem 5% 4.5rem 5%; max-width: 1300px; margin: 0 auto; }
@media (max-width: 820px) { .main-container { grid-template-columns: 1fr; } }
.bg-section { background: white; padding: 2.2rem; border-radius: 16px; box-shadow: 0 10px 28px rgba(59,130,246,0.08); border-top: 5px solid var(--secondary); }
.bg-section h2, .news-section h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1.2rem; }
.news-card { background: white; padding: 1.4rem; border-radius: 14px; margin-bottom: 1rem; box-shadow: 0 6px 18px rgba(14,165,233,0.08); border-left: 6px solid var(--pink); }
.news-date { font-size: 0.8rem; font-weight: 800; color: var(--pink); display: block; margin-bottom: 0.3rem; }

/* Rooms Page Specifics */
.policy-highlight { background: linear-gradient(135deg, #fff1f2 0%, #eff6ff 100%); border: 2px solid var(--pink); border-radius: 16px; padding: 2rem; margin-bottom: 3rem; text-align: center; }
.policy-tag { background: var(--pink); color: white; padding: 0.25rem 0.9rem; border-radius: 50px; font-size: 0.8rem; font-weight: 800; display: inline-block; margin-bottom: 0.6rem; }
.policy-highlight h2 { color: var(--primary); font-size: 1.9rem; margin-bottom: 0.6rem; }

.rooms-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 850px) { .rooms-split { grid-template-columns: 1fr; } }
.room-showcase-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.09); }
.room-showcase-card img { width: 100%; height: 280px; object-fit: cover; }
.room-details { padding: 2rem; }
.room-details h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.specs-list { list-style: none; margin-bottom: 1.5rem; }
.specs-list li { padding: 0.45rem 0; border-bottom: 1px solid #f1f5f9; }

.nsfas-funding-card { background: linear-gradient(145deg, #1e1b4b, #312e81); color: white; padding: 2.2rem; border-radius: 16px; box-shadow: 0 12px 30px rgba(30,27,75,0.25); }
.nsfas-funding-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; color: #fde047; }
.funding-step { background: rgba(255,255,255,0.08); padding: 1rem; border-radius: 10px; margin-top: 1rem; border-left: 4px solid var(--teal); }
.funding-step strong { display: block; color: #5eead4; margin-bottom: 0.25rem; }

/* Gallery Page Hover Captions & Full-Screen Lightbox */
.gallery-container { padding: 4rem 5%; max-width: 1350px; margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 2rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; height: 280px; cursor: pointer; box-shadow: 0 10px 25px rgba(30,27,75,0.14); border: 3px solid white; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(30,27,75,0.6) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
    opacity: 0; transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: white; font-size: 1.3rem; margin-bottom: 0.3rem; }
.gallery-overlay p { color: #e2e8f0; font-size: 0.9rem; margin-bottom: 0.6rem; }
.zoom-hint { color: #fde047; font-size: 0.82rem; font-weight: 700; }

/* Full-Screen Lightbox Modal */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); z-index: 3000;
    display: none; justify-content: center; align-items: center; padding: 1rem;
}
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; z-index: 3010; line-height: 1; }
.close-lightbox:hover { color: var(--pink); }
.lightbox-box { width: 100%; max-width: 1100px; text-align: center; }
.lightbox-box img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-info { color: white; margin-top: 1rem; }
.lightbox-info h3 { font-size: 1.4rem; color: #fde047; }
.lightbox-info p { color: #cbd5e1; font-size: 0.95rem; }

/* Colorful Application Form Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.78); backdrop-filter: blur(6px);
    display: none; justify-content: center; align-items: center; z-index: 2000; padding: 1.5rem;
}
.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 50%, #fdf2f8 100%);
    width: 100%; max-width: 650px; border-radius: 18px; padding: 2.2rem;
box-shadow: 0 25px 50px rgba(30,27,75,0.4); position: relative; max-height: 90vh; overflow-y: auto;
border-top: 8px solid var(--pink); animation: popIn 0.3s ease-out;
}
.modal-content h2 { background: linear-gradient(90deg, var(--primary), var(--secondary), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; margin-bottom: 1.2rem; }
.close-modal { position: absolute; top: 1rem; right: 1.4rem; font-size: 2rem; cursor: pointer; color: #94a3b8; }
.close-modal:hover { color: var(--pink); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 700; font-size: 0.92rem; color: var(--primary); }
.form-group:focus-within label { color: var(--pink); }
.form-group input, .form-group select { width: 100%; padding: 0.72rem 0.9rem; border: 2px solid #cbd5e1; border-radius: 10px; font-size: 0.95rem; background: white; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236,72,153,0.18); }
.form-group input[type="file"] { border: 2px dashed var(--secondary); background: #eff6ff; cursor: pointer; padding: 0.65rem; }
.file-note { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
.btn-submit {
background: linear-gradient(135deg, #2563eb, #ec4899, #f97316); color: white; width: 100%; padding: 0.95rem;
border: none; border-radius: 50px; font-size: 1.05rem; font-weight: 800; cursor: pointer; margin-top: 0.8rem;
box-shadow: 0 8px 20px rgba(236,72,153,0.35);
}
/* Unified Footer with Email & WhatsApp Links */
footer { background: linear-gradient(90deg, #1e1b4b, #312e81, #0f766e); color: #f1f5f9; text-align: center; padding: 3rem 1rem; }
.footer-content h3 { font-size: 1.4rem; margin-bottom: 0.3rem; color: #fde047; }
.footer-contacts { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin: 1.5rem 0; }
.contact-pill { text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem; color: white; transition: transform 0.25s ease; }
.contact-pill:hover { transform: translateY(-3px); }
.email-pill { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.4); }
.whatsapp-pill { background: #25D366; color: #0f172a; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.copyright { font-size: 0.85rem; color: #cbd5e1; margin-top: 1rem; }
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
/* ==========================================
   GALLERY VIDEO TOUR SHOWCASE
   ========================================== */
.video-showcase {
    background: white;
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 27, 75, 0.1);
    border-top: 6px solid var(--pink);
    margin-bottom: 3rem;
    text-align: center;
}

.video-showcase h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.video-showcase p {
    color: #475569;
    margin-bottom: 1.5rem;
}

.video-wrapper {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
    width: 100%;
    max-height: 480px;
    display: block;
}

