/* Root Variables & Reset */
:root {
    --mlh-blue: #4588df;
    --mlh-info: #30c5c5;
    --deep-dark: #0f172a;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Global Animations*/
body {
    opacity: 0; 
    transition: opacity 0.6s ease-out;
}

body.loaded {
    opacity: 1; 
}

.content {
    flex: 1;
}

/* Navigation */
.navbar {
    /* background: rgba(0, 0, 0, 0.9) !important; */
    background: linear-gradient(to right, rgb(48, 197, 197), #636161) !important;
    backdrop-filter: blur(10px); 
    transition: all 0.3s;
}

.user-profile-pill {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 2px 12px 2px 5px !important;
}




/* --- Custom Navigation Dropdown --- */

/* 1. The Menu Container */
.dropdown-menu-dark {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 2. Individual Links */
.dropdown-menu-dark .dropdown-item {
    color: #cbd5e1 !important; 
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* 3. Hover State */
.dropdown-menu-dark .dropdown-item:hover {
    background-color: var(--mlh-info) !important; 
    color: white !important;
    transform: translateX(5px); 
}

/* 4. The Divider Line */
.dropdown-menu-dark .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. Icon colors inside the dropdown */
.dropdown-menu-dark .dropdown-item i {
    color: var(--mlh-info); 
    transition: color 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover i {
    color: white; 
}


/* --- Top-Level Nav Link Styling --- */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

/* The Hover Underline Effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15%;
    background-color: var(--mlh-info);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--mlh-info) !important;
    text-shadow: 0 0 10px rgba(48, 197, 197, 0.4);
}


.user-profile-pill::after {
    display: none !important;
}

.user-profile-pill:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.user-profile-pill img {
    object-fit: cover; 
    background-color: #f8fafc; 
}

.navbar .btn-info {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.3s;
    border: none;
}

.navbar .btn-info:hover {
    background-color: white !important;
    color: var(--mlh-blue) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--mlh-info);
}


/* Dropdown Animation */
@keyframes slideIn {
    0% { transform: translateY(1rem); opacity: 0; }
    100% { transform: translateY(0rem); opacity: 1; }
}
.slideIn { 
    animation-name: slideIn; 
    animation-duration: 0.2s;
    animation-fill-mode: both;
}

/* --- 4. Hero Sections --- */
.hero {
    min-height: 80vh; 
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(8, 17, 141, 0.4)), 
                url("../images/sey1.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    padding: 20px;
}

.announcement-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.announcement-card:hover {
    transform: scale(1.05);
}

.main-footer {
    background-color: var(--deep-dark) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--mlh-info) !important;
    transform: translateX(5px);
}

.footer-partner-img {
    height: 40px;
    /* filter: grayscale(100%) brightness(200%); */
    transition: 0.3s ease-in-out;
    opacity: 0.6;
}

.footer-partner-img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: white;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--mlh-info);
    color: white;
    transform: translateY(-3px);
}

.hover-info:hover {
    color: var(--mlh-info) !important;
}

/* Index.html */

:root {
    --primary-teal: rgb(48, 197, 197);
    --dark-grey: #2c3e50;
    --light-grey: #f8f9fa;
    --glass-teal: rgba(48, 197, 197, 0.15);
}

.mega-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active { opacity: 0.6; animation: kenBurns 10s infinite alternate; }

@keyframes kenBurns { 
    from { transform: scale(1); } 
    to { transform: scale(1.1); } 
}

.hero-content { position: relative; z-index: 10; width: 100%; color: white; }

.glass-portal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3.5rem;
    border-radius: 40px;
}

/* --- VP SECTION --- */

.minister-card {
    background: #ffffff;
    border-radius: 30px; 
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.minister-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
   
    aspect-ratio: 4 / 5; 
}

.minister-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.minister-card:hover img {
    transform: scale(1.08);
}

.img-accent-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leader-card img {
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.leader-card:hover img {
    transform: scale(1.05);
}

    .header-line {
        width: 60px;
        height: 4px;
        background: var(--bs-info);
        border-radius: 2px;
    }

    .main-leader { width: 220px; height: 220px; object-fit: cover; border: 5px solid #fff; }
    .mid-leader { width: 180px; height: 180px; object-fit: cover; border: 4px solid #fff; }
    .staff-leader { width: 140px; height: 140px; object-fit: cover; border: 3px solid #f8f9fa; }

    @media (max-width: 576px) {
        .main-leader { width: 160px; height: 160px; }
        .mid-leader { width: 140px; height: 140px; }
        .staff-leader { width: 110px; height: 110px; }
        .small-mobile-text { font-size: 0.85rem; }
        h3 { font-size: 1.5rem; }
    }


    .leader-card {
        transition: transform 0.3s ease;
    }
    .leader-card:hover {
        transform: translateY(-5px);
    }

/* --- DEPARTMENT CARDS --- */
.dept-card {
    border: none;
    height: 500px;
    border-radius: 30px;
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.dept-card .card-content {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 50px 30px;
}

.dept-card:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 20px 40px rgba(48, 197, 197, 0.3); 
}

/* --- PORTAL CARDS --- */
.portal-card {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: 0.4s;
}

.portal-card:hover {
    background: white;
    transform: translateY(-12px);
}

.portal-card:hover * { color: var(--dark-grey) !important; }

/* --- QUICK LINKS --- */
.quick-link-btn {
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: 0.3s;
}
.quick-link-btn:hover {
    background: var(--light-grey);
    border-color: var(--primary-teal);
}


/* --- About Us Page Extensions --- */
.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/sey1.jpg') fixed center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.info-section { padding: 80px 0; }

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--mlh-info);
    transition: 0.4s ease;
}

.about-img-wrapper:hover .about-img {
    transform: translate(10px, 10px);
    box-shadow: 0px 0px 0px var(--mlh-info);
}

/* Leadership Grid */
.leader-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
}

.leader-card:hover { 
    transform: translateY(-10px); 
    border-bottom: 5px solid var(--mlh-info); 
}

.leader-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--mlh-info);
}

.leader-img img { width: 100%; height: 100%; object-fit: cover; }

/* Value Boxes */
.value-box {
    padding: 40px;
    border-radius: 15px;
    background: var(--light-grey);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.value-box:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top: 4px solid var(--mlh-info);
}

.value-box i { font-size: 3rem; color: var(--mlh-info); margin-bottom: 20px; }

/* Badges */
.dept-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(48, 197, 197, 0.1);
    color: var(--mlh-info);
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
}


/* --- Partner Section Styles --- */
.partner-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: var(--mlh-info) !important;
}

.partner-logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tracking-widest {
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.transition-hover {
    transition: 0.3s ease;
}

.partner-logo-hover {
    opacity: 0.5;
    transition: all 0.4s ease;
    max-height: 60px; 
    width: auto;
}

.partner-logo-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1); 
    cursor: pointer;
}


/* --- Contact Page Extensions --- */
.contact-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/help_desk.jpg') center/cover no-repeat;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    border-bottom: 5px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-bottom: 5px solid var(--primary-teal);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(48, 197, 197, 0.1);
    color: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Directory Styling */
.directory-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.directory-label { font-weight: 600; color: var(--dark-grey); }
.directory-number { color: var(--primary-teal); font-family: 'Monaco', 'Consolas', monospace; font-weight: bold; }

/* Form Styling */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.btn-submit {
    background-color: var(--primary-teal);
    color: white;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: bold;
    border: none;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--dark-grey);
    transform: translateY(-2px);
    color: white;
}

/* Map Wrapper */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* --- Lands Department Extensions --- */
.lands-hero {
    background: linear-gradient(rgba(48, 197, 197, 0.7), rgba(44, 62, 80, 0.8)), url('../images/lands.jpg') no-repeat center center;
    background-size: cover;
    height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--mlh-info);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(48, 197, 197, 0.4);
    font-size: 1.2rem;
}

.lands-card {
    border: none;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    overflow: hidden;
}

.lands-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.parallax-lands {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/selfcare.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    color: white;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--mlh-info);
    border-radius: 2px;
}

/* List group customization */
.list-group-item-action:hover {
    background-color: rgba(48, 197, 197, 0.05);
    color: var(--mlh-info);
}


/* --- Housing Department Extensions --- */
.housing-hero {
    background: linear-gradient(rgba(48, 197, 197, 0.65), rgba(44, 62, 80, 0.75)), url('../images/housing.jpg') no-repeat center center;
    background-size: cover;
    height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.process-step {
    position: relative;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--mlh-info);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(48, 197, 197, 0.3);
}

.community-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0;
    color: white;
}

.housing-card {
    border: none;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    overflow: hidden;
}

.housing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.housing-card img {
    transition: transform 0.5s ease;
}

.housing-card:hover img {
    transform: scale(1.1);
}


/* --- Self-Care Portal & Global Components --- */
.message-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    width: 350px;
}

.alert-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Bento Grid Cards */
.feature-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(48, 197, 197, 0.15);
    border-color: var(--primary-teal);
}

/* Action Buttons */
.portal-btn {
    height: 65px;
    border-radius: 18px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Clip-Path Section */
.selfcare-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/selfcare_bg.jpg') center/cover no-repeat;
    height: 50vh;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}


/* --- Vacancies & Career Portal --- */
.vacancies-hero {
    background: linear-gradient(rgba(48, 197, 197, 0.7), rgba(44, 62, 80, 0.8)), 
                url('../images/vacancy_.jpg') no-repeat center center;
    background-size: cover;
    height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.join-family {
    background: white;
    border-radius: 30px;
    padding: 60px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.job-card {
    border: none;
    border-radius: 24px !important;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 5px solid var(--mlh-info);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.job-badge {
    position: absolute;
    top: 18px;
    right: -38px;
    background: var(--mlh-info);
    color: white;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.deadline-box {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(48, 197, 197, 0.1);
    color: var(--mlh-info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}


/* --- Blog & Insight Hub --- */
.blog-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('../images/blog.jpg') center/cover fixed;
    padding: 140px 0;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.featured-card {
    background: white;
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    margin-top: -100px;
    border: none;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(48, 197, 197, 0.2);
}

.blog-card {
    background: white;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.card-img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-card img {
    transition: transform 0.8s ease;
}

.blog-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--mlh-info);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(48, 197, 197, 0.1) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid rgba(48, 197, 197, 0.2);
    border-radius: 40px;
}


/* --- Blog Detail Page --- */
.blog-detail-header {
    background: #f8fafc;
    padding: 80px 0 120px;
    text-align: center;
}

.article-container {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.blog-carousel-card {
    border-radius: 30px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: none;
}

.blog-main-img {
    height: 650px;
    object-fit: cover;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    font-family: 'Inter', sans-serif; 
}

/* Sidebar Styling */
.sidebar-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.recent-post-link {
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    transition: 0.2s;
    display: block;
    margin-bottom: 5px;
}

.recent-post-link:hover {
    color: var(--mlh-info);
}

.sidebar-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sidebar-item:last-child {
    border-bottom: none;
}


/* --- Booking & Appointment Styles --- */
.booking-card {
    border: none;
    border-radius: 30px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.booking-sidebar {
    background: linear-gradient(180deg, #7fd4e9 0%, #79d3df 100%);
    color: white;
    padding: 50px 40px;
}

.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    opacity: 0.6;
    transition: 0.3s;
}

.step-indicator.active {
    opacity: 1;
}

.step-number {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 800;
}

.form-section {
    padding: 50px !important;
}

.ui-datepicker {
    font-family: 'Inter', sans-serif;
    border: 0 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    border-radius: 20px !important;
    padding: 15px !important;
}

.ui-datepicker-header {
    background: #008388 !important;
    border: 0 !important;
    border-radius: 15px !important;
    padding: 10px 0 !important;
}

.ui-state-default {
    background: #f8fafc !important;
    border: 0 !important;
    text-align: center !important;
    border-radius: 8px !important;
}

.ui-state-active {
    background: #30c5c5 !important;
    color: white !important;
}

.booked-day span {
    color: #cbd5e1 !important;
    text-decoration: line-through;
}


/* --- Resource Center / Downloads --- */
.dl-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3)), 
                url('../images/seychelles_aerial.jpg') center/cover fixed;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.jump-nav {
    position: sticky;
    top: 90px;
    z-index: 1000;
    transition: all 0.4s ease;
}

.jump-link {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--deep-dark);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 0 5px;
    border: 1px solid rgba(255,255,255,0.3);
}

.jump-link:hover {
    background: var(--mlh-info);
    color: white;
    transform: translateY(-3px);
}

.doc-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    height: 100%;
}

.doc-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--mlh-info);
}

.file-icon-box {
    width: 65px;
    height: 65px;
    background: #f8fafc;
    color: var(--mlh-info);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.empty-state-box {
    background: #fdfdfd;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}


/* Faq */

.faq-nav-card {
    position: sticky;
    top: 100px;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.faq-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
    margin-bottom: 5px;
}

.faq-nav-link i { margin-right: 12px; font-size: 1.1rem; }

.faq-nav-link:hover, .faq-nav-link.active {
    background: var(--mlh-info);
    color: white !important;
}

.faq-accordion .accordion-item {
    border: 1px solid #f1f5f9 !important;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-accordion .accordion-button {
    font-size: 1.1rem;
    padding: 1.5rem;
}

/* Custom Rotating Chevron */
.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2330c5c5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.criteria-item {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 8px;
    border-left: 4px solid var(--mlh-info);
}



    /* --- Service Portal Styles --- */
    .portal-header {
        padding: 80px 0 60px;
        background: radial-gradient(circle at top right, #e0f2f2 0%, white 100%);
    }

    .dept-pill {
        display: inline-flex;
        align-items: center;
        padding: 8px 20px;
        background: white;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 50px;
        font-weight: 700;
        color: var(--mlh-blue);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .section-title {
        font-weight: 800;
        color: #1e293b;
        position: relative;
        padding-bottom: 15px;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--mlh-info);
        border-radius: 10px;
    }

/* Service Card */
    .service-action-card {
        background: white;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 20px;
        padding: 30px;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .service-action-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: var(--mlh-info);
    }

    .icon-box {
        width: 60px;
        height: 60px;
        background: rgba(48, 197, 197, 0.1);
        color: var(--mlh-info);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .btn-apply {
        background: var(--mlh-blue);
        color: white;
        border-radius: 12px;
        padding: 12px 25px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
        transition: 0.3s;
        border: none;
        margin-top: auto;
    }

    .btn-apply:hover {
        background: var(--mlh-info);
        color: white;
        box-shadow: 0 8px 20px rgba(48, 197, 197, 0.3);
    }

    .dept-sidebar-label {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-weight: 900;
        opacity: 0.1;
        font-size: 4rem;
        position: absolute;
        left: -50px;
        top: 0;
        pointer-events: none;
    }


/* --- Housing Application form --- */

.form-control:focus, .form-select:focus {
    border-color: var(--mlh-info);
    box-shadow: 0 0 0 0.25rem rgba(48, 197, 197, 0.15);
    outline: none;
}

/* file upload buttons */
input[type="file"]::file-selector-button {
    background-color: var(--mlh-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 5px 15px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--mlh-info);
}


.step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.form-check-input:checked {
    background-color: var(--mlh-info);
    border-color: var(--mlh-info);
}


.animate-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.lands-hero-v2 { background: url('{% static "images/lands_img.jpg" %}') no-repeat center center; background-size: cover; min-height: 70vh; }
.transition-all { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.cursor-pointer { cursor: pointer; }
.dept-card:hover { transform: translateY(-12px); box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.15)!important; }
.dept-card.active-dept { background: #f0faff; border-top: 6px solid #0dcaf0; }

.transition-fade { transition: opacity 0.4s ease; }
.vertical-stepper { position: relative; padding-left: 50px; }
.v-step { position: relative; padding-bottom: 2.5rem; }
.v-step::before { content: ''; position: absolute; left: -31px; top: 40px; width: 2px; height: calc(100% - 40px); background: #e0e0e0; }
.v-step:last-child::before { display: none; }
.v-num { position: absolute; left: -50px; width: 40px; height: 40px; background: #0dcaf0; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(13,202,240,0.2); }
.v-txt { background: white; padding: 1.25rem; rounded: 12px; border: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }


.message-container {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1060; 
    width: 100%;
    max-width: 400px; 
    pointer-events: none; 
}

.alert-glass {
    pointer-events: auto; 
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


@media (max-width: 576px) {
    .message-container {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}



.spotlight-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2) !important;
}

.spotlight-img-container {
    height: 550px; 
    width: 100%;
    overflow: hidden;
    position: relative;
}

.spotlight-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center 20%; 
    transition: transform 0.8s ease;
}

.spotlight-card:hover .spotlight-img-container img {
    transform: scale(1.05);
}

.spotlight-label {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 5;
    background: rgba(8, 121, 141, 0.9); 
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.quote-icon {
    font-size: 3rem;
    color: var(--mlh-blue);
    opacity: 0.15;
    line-height: 0;
}

.spotlight-dept-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive fix for mobile */
@media (max-width: 991.98px) {
    .spotlight-img-container {
        height: 350px;
    }
}


html {
    scroll-behavior: smooth;
}

.about-quick-nav {
    max-width: 900px;
    margin: 0 auto;
}

.nav-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-pill:hover {
    background: white;
    color: var(--mlh-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#mission-vision, #core-values, #leadership, #spotlight {
    scroll-margin-top: 100px;
}