/* ==========================================================================
   ELIXIR TRUST FOUNDATION - MASTER STYLESHEET (main.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE DESIGN TOKENS & BASE STYLES
   -------------------------------------------------------------------------- */
:root {
    --brand-black: #0f172a;        /* Deep Obsidian Canvas */
    --brand-dark: #212529;
    --brand-gold: #d97706;         /* Premium Accent Amber Gold */
    --brand-orange: #f97316;       /* Action Focal Point Orange */
    --brand-yellow: #ffc107;
    --brand-yellow-hover: #e0a800;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #334155;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. GLOBAL LAYOUT & SECTION ARCHITECTURE
   -------------------------------------------------------------------------- */
.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: #f8f9fa;
}

.section-title {
    font-weight: 700;
    position: relative;
    margin-bottom: 50px;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION COMPONENTS
   -------------------------------------------------------------------------- */
/* Top Utility Strip */
.site-header {
    font-size: 0.82rem;
    font-weight: 500;
    background-color: var(--brand-black) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.3px;
}

.header-link-item {
    transition: color 0.2s ease;
}

.header-link-item:hover {
    color: var(--brand-orange) !important;
}

.top-social-icon {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.top-social-icon:hover {
    color: var(--brand-orange);
    transform: translateY(-1px);
}

/* Navbar Custom Styling */
.navbar-custom {
    background: #ffffff !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.logo-title-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-black);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.78rem;
    color: var(--brand-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-custom {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-600) !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.nav-link-custom:hover {
    color: var(--brand-orange) !important;
    background-color: var(--slate-100);
}

.nav-link-custom.active {
    font-weight: 800 !important;
    color: var(--brand-orange) !important;
    background-color: var(--slate-100);
}

/* --------------------------------------------------------------------------
   4. HERO & CAROUSEL COMPONENT
   -------------------------------------------------------------------------- */
.her {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.her-img {
    object-fit: cover;
    height: 85vh;
    width: 100%;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    text-align: center;
    background: transparent;
    padding: 0;
    width: 75%;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & UI INTERACTION
   -------------------------------------------------------------------------- */
.read-btn {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: 2px solid var(--brand-yellow);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-btn:hover {
    background: var(--brand-yellow-hover);
    border-color: var(--brand-yellow-hover);
    color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 193, 7, 0.35);
}

.read-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.35);
}

.read-btn i {
    transition: transform 0.3s ease;
}

.read-btn:hover i {
    transform: translateX(6px);
}

.custom-btn-donate {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    padding: 10px 24px !important;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-btn-donate:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    filter: brightness(1.05);
}

.btn-sm {
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   6. CARDS & CONTAINERS
   -------------------------------------------------------------------------- */
.service-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    background: #ffffff;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   7. FORM CONTROLS & UPLOADS
   -------------------------------------------------------------------------- */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.form-modern {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-modern:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.20);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #343a40;
}

.form-label i {
    color: var(--brand-yellow);
}

.form-control[type=file] {
    padding: 12px;
}

/* Upload Drop-zone */
.upload-area {
    border: 2px dashed #d6d6d6;
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.35s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-area:hover {
    border-color: var(--brand-yellow);
    background: #fffdf4;
}

.upload-area.dragover {
    border-color: var(--brand-yellow);
    background: #fff8e1;
}

.upload-icon {
    font-size: 4rem;
    color: var(--brand-yellow);
}

.preview-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--brand-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.upload-content h5 {
    font-weight: 700;
    color: var(--brand-dark);
}

#fileName {
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   8. TABLES & DATA MATRIX
   -------------------------------------------------------------------------- */
.table-hover tbody tr:hover {
    background-color: #fffdf4;
    transition: background-color 0.25s ease;
}

.table th {
    letter-spacing: 0.5px;
}

.table td .text-success {
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    transition: all 0.25s ease;
}

.pagination .page-link:hover {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 600;
}

.pagination .active .page-link {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

/* Badges */
.badge.bg-success-subtle {
    transition: all 0.3s ease;
}

.badge.bg-success-subtle:hover {
    background-color: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

.badge.bg-white {
    border: 1px solid #e9ecef;
    transition: all 0.25s ease;
}

.badge.bg-white:hover {
    background-color: var(--brand-dark);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. ADMIN DASHBOARD CONFIGURATIONS
   -------------------------------------------------------------------------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}

.dashboard-tag {
    background: #fff3cd;
    color: #856404;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-metric-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    transition: transform 0.25s ease;
    text-align: left;
}

.admin-metric-card:hover {
    transform: translateY(-3px);
}

.admin-metric-card h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.metric-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-link-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.admin-link-card i {
    color: #6c757d;
    transition: color 0.2s ease;
}

.admin-link-card:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.15);
}

.admin-link-card:hover i {
    color: var(--brand-yellow);
}

/* --------------------------------------------------------------------------
   10. FOOTER COMPONENT
   -------------------------------------------------------------------------- */
.footer-premium {
    background-color: var(--brand-black) !important;
    color: #94a3b8 !important;
    font-size: 0.88rem;
    border-top: 4px solid var(--brand-orange);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff !important;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; 
    bottom: -6px;
    width: 30px; 
    height: 2px;
    background: var(--brand-gold);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--brand-orange) !important;
    transform: translateX(3px);
}

/* Footer Newsletter Form */
.newsletter-input {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.btn-newsletter-submit {
    background: var(--brand-gold);
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    padding: 11px;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.btn-newsletter-submit:hover {
    background: var(--brand-orange);
}

/* Footer Social Circles Array */
.footer-social-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.footer-social-circle:hover {
    background-color: var(--brand-orange);
    color: #ffffff !important;
    transform: translateY(-2.5px);
}

/* --------------------------------------------------------------------------
   11. MODALS & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.volunteer-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.volunteer-header {
    background: var(--brand-dark);
    padding: 30px;
    border: none;
}

.modal-tag {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.volunteer-header h3 {
    color: var(--brand-yellow);
    font-weight: 700;
}

.form-section-title {
    color: var(--brand-dark);
    font-weight: 700;
    position: relative;
    padding-left: 18px;
}

.form-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 5px;
    height: 24px;
    background: var(--brand-yellow);
    border-radius: 30px;
}

.modal-body {
    background: #ffffff;
}

.toastify {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* --------------------------------------------------------------------------
   12. UTILITIES & THEME HELPER CLASSES
   -------------------------------------------------------------------------- */
.bg-purple-subtle { 
    background-color: #f3e8ff; 
}

.text-purple { 
    color: #7e22ce; 
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .her, 
    .her-img {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   14. INDEX & HOME PAGE SPECIFIC COMPONENTS
   -------------------------------------------------------------------------- */
/* Hero Parallax Overlay & Glassmorphism Captions */
.carousel-item.active .her-img {
    transform: scale(1.04);
}

.carousel-caption-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 850px;
    z-index: 5;
    text-align: center;
}

.hero-pretitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-yellow);
    display: inline-block;
    margin-bottom: 12px;
}

.carousel-caption-modern h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    text-transform: capitalize;
    line-height: 1.2;
}

.carousel-caption-modern p {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 400;
    max-width: 600px;
    margin: 16px auto 0;
}

/* Section Titles & Badges */
.section-title-wrapper {
    margin-bottom: 3.5rem;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--brand-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.section-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-black);
    letter-spacing: -0.5px;
    position: relative;
}

/* Program Grid Cards */
.program-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
    border-color: rgba(217, 119, 6, 0.2);
}

.program-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-card .card-body {
    padding: 24px;
}

.program-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-black);
    line-height: 1.4;
    margin-bottom: 16px;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Brand Buttons */
.btn-brand-solid {
    background: var(--brand-black);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-brand-solid:hover {
    background: var(--brand-gold);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-brand-outline {
    border: 2px solid var(--brand-black);
    color: var(--brand-black) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-brand-outline:hover {
    background: var(--brand-black);
    color: #ffffff !important;
}

/* Contact Sidebar & Modern Form Controls */
.contact-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fffbeb;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.form-modern-field {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: var(--brand-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-modern-field:focus {
    background: #ffffff;
    border-color: var(--brand-yellow) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12) !important;
}

.btn-whatsapp-cta {
    background: #25d366;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-whatsapp-cta:hover {
    background: #20ba5a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

@media (max-width: 768px) {
    .carousel-caption-modern h1 { font-size: 1.85rem; }
    .carousel-caption-modern p { font-size: 1rem; }
}


/* --------------------------------------------------------------------------
   15. ABOUT PAGE COMPONENTS
   -------------------------------------------------------------------------- */
/* Sub-Page Hero Header */
.hero-about {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), 
                url('/static/images/pix2.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--brand-orange);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--brand-gold) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom Checkmark List Component */
.objective-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.objective-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--slate-600);
}

.objective-list li:last-child {
    margin-bottom: 0;
}

.objective-list li::before {
    content: "\f058"; /* FontAwesome Check Circle Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-gold);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.objective-list li:hover::before {
    color: var(--brand-orange);
}

/* Asymmetric Pillar Identity Cards */
.pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 38px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.01), 0 2px 4px -1px rgba(15, 23, 42, 0.01);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 4px; 
    height: 100%;
    background: var(--brand-black);
    transition: background 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
    border-color: rgba(249, 115, 22, 0.15);
}

.card-orange-marker::before { 
    background: var(--brand-orange); 
}

.card-gold-marker::before { 
    background: var(--brand-gold); 
}

.pillar-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
}

.bg-orange-pill { 
    background: #fff7ed; 
    color: var(--brand-orange); 
}

.bg-gold-pill { 
    background: #fffbeb; 
    color: var(--brand-gold); 
}

.bg-black-pill { 
    background: #f1f5f9; 
    color: var(--brand-black); 
}

.pillar-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

/* Media Card Hover Scales */
.media-card-wrapper {
    transition: all 0.4s ease;
}

.media-card-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-card-wrapper:hover img {
    transform: scale(1.03);
}

/* Helper Class for Objective Top Border Accent */
.border-top-gold {
    border-top: 4px solid var(--brand-gold) !important;
}

/* --------------------------------------------------------------------------
   16. TEAM PAGE COMPONENTS
   -------------------------------------------------------------------------- */
/* Hero Section */
.team-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)),
                url('/static/images/pix3.jpg') center center/cover no-repeat;
    padding: 100px 0;
    color: #ffffff;
}

.team-hero h1 { 
    color: var(--brand-gold); 
    font-weight: 800; 
    letter-spacing: -1px; 
}

/* Team Grid & Cards */
.team-section { 
    padding: 80px 0; 
}

.team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.08);
    border-color: rgba(217, 119, 6, 0.15);
}

.team-image-wrapper {
    height: 450px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.03);
}

.team-content { 
    padding: 40px; 
}

.team-name { 
    font-size: 1.85rem; 
    font-weight: 800; 
    color: var(--brand-black); 
    letter-spacing: -0.5px; 
}

.team-position {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.team-bio-preview {
    color: var(--slate-600);
    line-height: 1.75;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reusable Profile Detail Button */
.profile-btn {
    background: var(--brand-black);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

.profile-btn:hover {
    background: var(--brand-gold);
    transform: translateY(-1px);
}


/* --------------------------------------------------------------------------
   17. TEAM MEMBER DETAIL PAGE COMPONENTS
   -------------------------------------------------------------------------- */
.detail-section {
    padding: 80px 0 100px;
}

/* Back Button Component */
.btn-back-roster {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--brand-black);
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-back-roster:hover {
    background: var(--brand-black);
    color: #ffffff !important;
    border-color: var(--brand-black);
    transform: translateX(-4px);
}

/* Executive Profile Image Framework */
.profile-image-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.profile-detail-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    border-radius: 18px;
    border: 4px solid var(--brand-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.profile-image-container:hover .profile-detail-img {
    transform: scale(1.02);
}

.member-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--brand-gold);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Detail Page Typography & Accents */
.member-position {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.member-name {
    font-size: 2.0rem;
    font-weight: 900;
    color: var(--brand-black);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.member-bio-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--slate-600);
    text-align: justify;
}

.accent-divider {
    height: 4px;
    width: 60px;
    background: var(--brand-gold);
    border-radius: 2px;
    margin-bottom: 30px;
}

.quote-box {
    background: #ffffff;
    border-left: 5px solid var(--brand-orange);
    padding: 24px 30px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    margin-top: 40px;
}

.quote-box p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--brand-black);
    font-weight: 500;
    margin: 0;
}

@media (max-width: 991px) {
    .profile-detail-img { 
        height: 450px; 
    }
    .member-name { 
        font-size: 2.5rem; 
    }
}

/* --------------------------------------------------------------------------
   18. ACTIVITIES PAGE COMPONENTS
   -------------------------------------------------------------------------- */
/* Hero Section */
.activity-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)),
                url('/static/images/pix3.jpg') center center/cover no-repeat;
    padding: 110px 0;
    color: #ffffff;
}

.activity-hero h1 {
    font-weight: 800;
    color: var(--brand-gold);
    letter-spacing: -1px;
}

.activity-hero p {
    max-width: 700px;
    margin: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.section-space {
    padding: 90px 0;
}

/* Activity Cards & Media */
.activity-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #ffffff;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12) !important;
}

.activity-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.activity-content {
    padding: 40px;
}

.activity-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-black);
    letter-spacing: -0.5px;
}

.activity-desc {
    color: var(--slate-600);
    line-height: 1.9;
}

.activity-meta {
    font-size: 0.9rem;
    color: #8b9097;
}

/* Category Badges */
.category {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. ACTIVITY DETAIL PAGE COMPONENTS
   -------------------------------------------------------------------------- */
/* Back Navigation Button */
.btn-back {
    border-radius: 40px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
}

/* Hero Wrapper & Overlay */
.hero-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.25)
    );
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #ffffff;
    z-index: 5;
}

.hero-content h1 {
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-content p {
    opacity: 0.9;
    margin: 0;
}

/* Detail Metadata Badges */
.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.activity-meta span {
    background: #f3f5f7;
    color: var(--slate-600);
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-meta .recent {
    background: #fff5d6;
    color: #8a6500;
    font-weight: 600;
}

/* Activity Rich Text Content Area */
.activity-content {
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--slate-600);
}

.activity-content p {
    font-size: 1.15rem;
    font-weight: 500;
    color: #2d3748;
}

.activity-content h1,
.activity-content h2,
.activity-content h3,
.activity-content h4 {
    color: var(--brand-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.activity-content img {
    max-width: 100%;
    border-radius: 14px;
    margin: 25px 0;
}

.activity-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
}

.activity-content table td,
.activity-content table th {
    border: 1px solid #e9ecef;
    padding: 12px;
}

.activity-content blockquote {
    border-left: 5px solid var(--brand-gold);
    background: #fffdf4;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 10px;
}

.activity-content ul,
.activity-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.activity-content li {
    margin-bottom: 0.6rem;
}

/* Photo Gallery & Modal Lightbox */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    background: #ffffff;
}

.gallery-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-card:hover i {
    transform: scale(1);
}

.video-box {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Modal Lightbox Controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 24px;
    z-index: 100;
    transition: background 0.3s ease, color 0.3s ease;
}

.gallery-nav:hover {
    background: #ffffff;
    color: #000000;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.gallery-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
}

#lightboxTargetImage {
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
}

@media (max-width: 992px) {
    .hero-image {
        height: 380px;
    }
    .hero-content {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 260px;
    }
    .hero-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .hero-content h1 {
        font-size: 1.45rem;
    }
    .gallery-img {
        height: 180px;
    }
    .activity-content {
        font-size: 1rem;
    }
}


/* --------------------------------------------------------------------------
   20. PROGRAMS & VOLUNTEER PAGE COMPONENTS
   -------------------------------------------------------------------------- */
/* Hero Section */
.hero-volunteer {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), 
                url("/static/images/pix2.jpg") no-repeat center center/cover;
    padding: 100px 0;
    color: #ffffff;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-brand-orange { 
    color: var(--brand-orange) !important; 
}

.text-brand-gold { 
    color: var(--brand-gold) !important; 
}

.btn-brand-dark {
    background: var(--brand-black);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-brand-dark:hover {
    background: var(--brand-gold);
}

/* Horizontal Program Cards */
.program-row-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-row-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
    border-color: rgba(217, 119, 6, 0.15);
}

.program-card-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

/* Strategy Grid Cards */
.strategy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.strategy-card:hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.strategy-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #fffbeb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* Modal Form Modern Controls */
.modal-modern .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-modern .modal-header {
    background: var(--brand-black);
    color: #ffffff;
    border-bottom: none;
    padding: 24px;
}

.form-modern-field {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: var(--brand-light);
    font-size: 1rem; /* Updated to 1rem for form input text */
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-modern-field:focus {
    background: #ffffff;
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12) !important;
}

/* Interactive Upload Workspace */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    background: var(--brand-light);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-area:hover, 
.upload-area.dragover {
    border-color: var(--brand-gold);
    background: #fffbeb;
}

.upload-icon {
    font-size: 2rem;
    color: #94a3b8;
}

.preview-image {
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   21. CONTACT PAGE COMPONENTS (REFACTORED & CRISP)
   -------------------------------------------------------------------------- */
/* Hero Header */
.hero-contact {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), 
                url("/static/images/pix3.jpg") no-repeat center center/cover;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid var(--brand-orange);
}

.hero-contact .hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--brand-gold) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 600px;
    margin: 12px auto 0;
}

/* Contact Details Cards */
.contact-channel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.contact-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.06);
    border-color: rgba(217, 119, 6, 0.2);
}

.icon-box-crisp {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fffbeb;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04);
}

.info-card-link {
    color: var(--brand-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card-link:hover {
    color: var(--brand-orange);
}

/* Contact Form Container */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

.form-label-crisp {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--slate-600);
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Structural Office Cards & Maps Grid */
.office-card-crisp {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card-crisp:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -5px rgba(15, 23, 42, 0.08);
}

.map-container-crisp {
    width: 100%;
    height: 250px;
    border-top: 1px solid #e2e8f0;
}

.map-container-crisp iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.1) contrast(1.02);
}

@media (max-width: 768px) {
    .hero-contact .hero-title { 
        font-size: 2.1rem; 
    }
}