@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #04472c; /* Deep Forest Green */
    --primary-light: #0a6642;
    --accent: #d4af37; /* Refined Gold */
    --accent-hover: #fcd556;
    --text-main: #1a1f1c;
    --text-muted: #5e6b64;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 30px rgba(4, 71, 44, 0.08);
    --shadow-lg: 0 20px 40px rgba(4, 71, 44, 0.15);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    
    --transition: cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Typography Utility */
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* Back to Top Override */
#back-top {
    background: var(--primary) !important;
}
#back-top a {
    background: var(--primary) !important;
    color: var(--bg-white) !important;
}
#back-top a:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
}

/* Secondary Design Elements Overrides */
.tag-btn, .category-btn {
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}
.tag-btn:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Hero Section Standardizer */
.slider-area2 {
    background-color: var(--primary) !important;
    position: relative;
    z-index: 1;
}
.slider-area2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(4, 71, 44, 0.95) 0%, rgba(4, 71, 44, 0.7) 50%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}
.slider-area2 .container {
    position: relative;
    z-index: 2;
}
.slider-area2 .hero-cap h2, .slider-area2 .hero-cap h1 {
    color: white !important;
}

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-white);
    font-family: var(--font-heading) !important;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--transition);
    border-radius: var(--radius-pill);
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.btn-premium:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}

.btn-accent::before { background: var(--bg-white); }
.btn-accent:hover { color: var(--primary); }

/* Glass Header */
.header-modern {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Dropdown Base */
.nav-links li {
    position: relative;
    padding: 15px 0;
}

.nav-links .dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-links .dropdown i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Dropdown Menu - Desktop */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 1100;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s var(--transition);
    padding: 10px 0;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.15);
}

/* High Specificity Hover Trigger for Global Site Override */
.header-modern .nav-links li:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.nav-links li:hover .dropdown > i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    padding: 0 !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 15px;
    text-shadow: none !important;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--primary) !important;
}

.dropdown-menu a::after { display: none !important; }

/* Dark mode adjustments during transparent header state */
.header-modern:not(.scrolled) .dropdown-menu {
    background: rgba(4, 71, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-modern:not(.scrolled) .dropdown-menu a {
    color: white !important;
}

.header-modern:not(.scrolled) .dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.2);
}

.header-modern.scrolled .nav-links a {
    color: var(--text-main);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* Mobile Submenu Styles */
@media (max-width: 991px) {
    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .nav-links .dropdown-menu {
        position: relative;
        width: 100%;
        display: none !important; /* Force hide in mobile until toggled */
        background: transparent !important;
        box-shadow: none;
        padding: 0 0 10px 20px;
        transform: none;
        border: none !important;
    }

    .nav-links li.active .dropdown-menu {
        display: block !important;
    }

    .nav-links .dropdown {
        display: block;
        width: 100%;
        padding: 15px 0;
    }
    
    .nav-links .dropdown a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-links .dropdown-menu a {
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-main) !important;
    }

    .header-modern.scrolled .dropdown-menu a {
        color: var(--text-main) !important;
    }
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary); /* Force visible color */
    cursor: pointer;
    position: relative;
    z-index: 100001; /* Higher than .nav-links (99999) to ensure clickable closing */
}

.header-modern.scrolled .menu-toggle {
    color: var(--primary);
}

/* Hero Section */
.hero-premium {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: zoomInOut 20s infinite alternate linear;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(4, 71, 44, 0.95) 0%, rgba(4, 71, 44, 0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--bg-white);
    max-width: 700px;
}

.hero-subtitle {
    font-family: var(--font-heading) !important;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--bg-white);
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Quick Impact Cards overlapping hero */
.impact-cards {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.impact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transform: translateY(0);
    transition: all 0.4s var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(4, 71, 44, 0.2);
}

.impact-icon {
    width: 60px; height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.impact-icon i {
    display: block;
    line-height: 1;
}

.impact-text h4 {
    margin-bottom: 10px;
    font-size: 22px;
}

.impact-text p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Section Styling */
.section-padding { padding: 120px 0; }
.bg-subtle { background-color: var(--bg-light); }

.section-head {
    margin-bottom: 60px;
}

.section-head .tag {
    color: var(--accent);
    font-family: var(--font-heading) !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-head .tag::before {
    content: '';
    width: 40px; height: 2px;
    background: var(--accent);
}

.section-head h2 {
    font-size: 48px;
    margin-top: 15px;
    line-height: 1.2;
}

/* About Section */
.about-images {
    position: relative;
    height: 600px;
}

.img-main, .img-overlap {
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.img-main {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 0; right: 0;
}

.img-overlap {
    width: 60%;
    height: 60%;
    position: absolute;
    bottom: 0; left: 0;
    border: 10px solid var(--bg-white);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item .icon {
    width: 54px; height: 54px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(4, 71, 44, 0.15);
}

.feature-item h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.feature-item h5 { margin: 0; font-size: 18px; }

/* Cases */
.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.case-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.case-card:hover .case-img {
    transform: scale(1.08);
}

.case-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(4, 71, 44, 0.9) 0%, rgba(4, 71, 44, 0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px 30px;
}

.case-content {
    color: var(--bg-white);
    transform: translateY(20px);
    transition: transform 0.4s var(--transition);
}

.case-card:hover .case-content {
    transform: translateY(0);
}

.case-content h3 {
    color: var(--bg-white);
    font-size: 26px;
    margin-bottom: 10px;
}

.case-cat {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-heading) !important;
}

/* CTA */
.cta-section {
    background: var(--primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 500px; height: 500px;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 600px; height: 600px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Form floating chat */
.floating-chat {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-chat:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--primary);
}

/* Resp */
@media (max-width: 991px) {
    .header-modern { padding: 15px 0; }
    .logo img { height: 40px; }
    
    .menu-toggle { display: block; }
    

/* ==========================================================================
   NICE SELECT FIXES (GLOBAL)
   ========================================================================== */
select {
    display: none !important;
}

.nice-select {
    width: 100% !important;
    height: 55px !important;
    line-height: normal !important; /* Reset line-height to use flex centering */
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    background-color: #f8fafc !important;
    padding-left: 20px !important;
    padding-right: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 16px !important;
    color: var(--text-main) !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transition: all 0.3s ease !important;
}

.nice-select:active, .nice-select.open, .nice-select:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(4, 71, 44, 0.1) !important;
}

.nice-select .current {
    font-weight: 500 !important;
    display: inline-block !important;
    line-height: normal !important;
    margin-top: 0 !important;
}

.nice-select .list {
    width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    background: #fff !important;
    z-index: 9999 !important;
}

.nice-select .option {
    padding-left: 20px !important;
    padding-right: 20px !important;
    line-height: 44px !important;
    min-height: 44px !important;
    font-size: 15px !important;
    color: var(--text-main) !important;
}

.nice-select .option:hover, 
.nice-select .option.focus, 
.nice-select .option.selected.focus {
    background-color: rgba(4, 71, 44, 0.05) !important;
    color: var(--primary) !important;
}

.nice-select::after {
    right: 20px !important;
    width: 10px !important;
    height: 10px !important;
    border-bottom: 2px solid var(--primary) !important;
    border-right: 2px solid var(--primary) !important;
    margin-top: -6px !important; 
    top: 50% !important;
    transform: rotate(45deg) !important;
}

.nice-select.open::after {
    transform: rotate(-135deg) !important;
    margin-top: -2px !important;
}

/* Styled File Upload */
input[type="file"].form-control {
    background: #f8fafc !important;
    padding: 10px 15px !important;
}

input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--accent);
    color: var(--primary);
}
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; /* Fixed width for better control */
        height: 100vh;
        background: var(--primary) !important;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99999 !important; /* Extremely high to beat all sections */
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        padding: 60px 40px;
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-links.active { 
        right: 0; 
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links a {
        font-size: 20px !important;
        color: #ffffff !important;
        text-shadow: none !important;
        display: block;
        width: 100%;
        text-align: left;
    }

    .hero-premium {
        height: auto;
        min-height: 600px;
        padding: 120px 0 60px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .hero-title { 
        font-size: 36px; 
        margin-bottom: 15px;
    }
    
    .hero-desc {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-premium {
        width: 100%;
        padding: 14px 25px;
        font-size: 14px;
    }

    .impact-cards { 
        margin-top: 20px; 
        position: static; 
        padding-bottom: 40px;
    }
    
    .impact-card {
        padding: 30px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-images { 
        height: 400px; 
        margin-bottom: 40px; 
    }
    
    .section-padding { padding: 80px 0; }
    
    .section-head h2 { font-size: 32px; }
}

/* =========================================
   SUB-PAGE COMPONENTS
   =========================================*/
/* Premium Header Banner */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 130px 0 50px;
    text-align: center;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/gallery/section_bg01.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--bg-white);
    margin: 0;
}

/* Info Cards */
.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3 i {
    color: var(--accent);
}

.badge-premium {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(4, 71, 44, 0.08); /* slight green tint */
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(4, 71, 44, 0.15);
    margin: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Fix generic strong/bold colors from overriding template */
strong, b {
    color: var(--text-main) !important;
}

/* =========================================
   GLOBAL OVERRIDES FOR LEGACY PAGES
   (Styles legacy classes to match new design)
   ========================================= */

/* Legacy Header/Hero (e.g. on About, Events pages) */
.slider-area2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    margin-top: 0;
    padding: 130px 0 50px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.slider-height2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.hero-cap2 h2 {
    color: var(--bg-white);
    font-size: 50px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Legacy Section Titles */
.section-tittle h2 {
    font-family: var(--font-heading) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    margin-bottom: 25px !important;
    position: relative;
    display: inline-block;
}

.section-tittle h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Base generic overrides */
.section-padding30,
.section-padding {
    padding: 80px 0 !important;
}

/* Legacy Cards & Team Sections */
.single-team {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.single-team:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-caption {
    padding: 25px 20px;
}

.team-caption h3 a {
    color: var(--primary);
    font-family: var(--font-heading) !important;
    font-size: 22px;
    font-weight: 700;
}

.team-caption p {
    color: var(--accent);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Convert all old .btn classes to premium styles */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary) !important;
    color: var(--bg-white) !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    padding: 14px 30px !important;
    border-radius: var(--radius-pill) !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--accent) !important;
}

/* Fix generic list stylings inside text sections */
ul, ol {
    color: var(--text-muted);
}
li {
    margin-bottom: 8px;
}

/* ==========================================================================
   GLOBAL FORM UI ENHANCEMENTS (Premium Inputs)
   ========================================================================== */
.form-control, .form-control-lg, .single-input, .single-textarea {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    color: var(--text-main) !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

.form-control:focus, .single-input:focus, .single-textarea:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(4, 71, 44, 0.1) !important;
    outline: none !important;
}

.form-group label {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
}

/* Modern Checkbox Fixes */
.form-check {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
    padding-left: 0 !important; /* Reset bootstrap padding */
}

.form-check-input {
    position: relative !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: var(--primary) !important;
    flex-shrink: 0 !important;
}

.form-check-label {
    margin-bottom: 0 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--text-muted) !important;
}
/* ==========================================================================
   MODAL PREMIUM UI
   ========================================================================== */
.modal-premium-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 71, 44, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-premium-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-premium-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-premium-overlay.active .modal-premium-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px; height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.modal-icon.success {
    background: #f0fdf4;
    color: #166534;
}

.modal-icon.error {
    background: #fef2f2;
    color: #991b1b;
}

.modal-premium-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.modal-premium-content p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-modal-close {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: white;
    border: none;
    font-family: var(--font-heading) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-modal-close:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sub-page Premium Hero */
.sub-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sub-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
}

@media (max-width: 991px) {
    .sub-hero {
        height: auto;
        padding: 140px 0 60px;
    }
    .sub-hero .hero-title {
        font-size: 36px;
    }
}

/* ==========================================================================
   PREMIUM PRELOADER UPGRADE
   ========================================================================== */
#preloader-active {
    background: #ffffff;
    z-index: 999999;
}

.preloader {
    background-color: #ffffff;
}

.preloader .preloader-circle {
    border-top-color: var(--primary) !important;
    border-width: 3px !important;
    width: 120px !important;
    height: 120px !important;
    box-shadow: 0 10px 30px rgba(4, 71, 44, 0.1) !important;
    animation: zoom-loader 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.preloader-img img {
    max-width: 70px !important;
    transition: transform 0.3s ease;
}

@keyframes zoom-loader {
    0% { transform: rotate(0deg) scale(1); border-top-color: var(--primary); }
    50% { transform: rotate(180deg) scale(1.05); border-top-color: var(--accent); }
    100% { transform: rotate(360deg) scale(1); border-top-color: var(--primary); }
}
