/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Sophisticated Heritage Gold Theme)
   ========================================================================== */
:root {
    /* Color Palette - Midnight Moss & Swatch Gold-Green (Dark Theme Standard) */
    --bg-dark: #080f0a; /* Deep midnight moss background */
    --bg-panel: #111d15; /* Deep moss navy panel */
    --bg-card: #172a1e; /* Moss card backgrounds */
    --bg-glass: rgba(17, 29, 21, 0.92);
    --border-glass: rgba(197, 160, 89, 0.25); /* Gold border lines */

    --color-accent: #caebbd; /* Swatch soft green as highlight in dark mode */
    --color-accent-hover: #d6f2cc;
    --color-accent-light: #e2f7db;
    --color-gold: #caebbd;
    --text-primary: #f0f5f2; /* Crisp mint white primary text */
    --text-secondary: #a2b5a8; /* Muted mint secondary text */
    --text-muted: #6b7e71; /* Muted slate-green text */
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    /* Shadows & Effects */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 25px rgba(42, 78, 53, 0.25);
    /* Layout */
    --header-height: 100px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

    .theme-toggle-btn:hover {
        background: var(--bg-card);
        border-color: var(--color-accent);
        transform: scale(1.05);
        color: var(--color-accent-light);
    }

/* Dashboard Header Overrides (For Standard Full Width Split View) */
.dashboard-body-override .main-header {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 0 !important;
}

    .dashboard-body-override .main-header.scrolled {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pad-y {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-panel);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-accent-light);
}

.text-cyan {
    color: var(--color-accent);
}

.w-100 {
    width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border: 2px solid var(--bg-dark);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-accent);
    }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

    .section-title h2 {
        font-size: 3rem;
        margin-bottom: 16px;
        font-family: var(--font-heading);
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--color-accent);
        margin: 15px auto 0;
        border-radius: 2px;
    }

    .section-title.text-center::after {
        margin: 15px auto 0;
    }

.section-tag {
    display: inline-block;
    color: var(--color-accent-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold {
    background: linear-gradient(135deg, #c5a059 0%, #b48e48 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
}

    .btn-gold:hover {
        background: linear-gradient(135deg, #d8b268 0%, #c5a059 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(197, 160, 89, 0.55);
    }

.btn-nav-login {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2) 0%, rgba(42, 78, 53, 0.4) 100%) !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    color: var(--color-gold, #c5a059) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    margin-left: 8px;
}

    .btn-nav-login:hover {
        background: linear-gradient(135deg, rgba(197, 160, 89, 0.35) 0%, rgba(42, 78, 53, 0.6) 100%) !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    }

.btn-outline {
    background-color: rgba(197, 160, 89, 0.08);
    border: 2px solid rgba(197, 160, 89, 0.6);
    color: #ffffff !important;
    backdrop-filter: blur(4px);
}

    .btn-outline:hover {
        background-color: rgba(197, 160, 89, 0.22);
        border-color: #c5a059;
        color: #ffffff !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        background-color: var(--bg-dark);
        border: 1px solid rgba(197, 160, 89, 0.25);
        border-radius: var(--border-radius-sm);
        color: var(--text-primary);
        font-family: var(--font-body);
        font-size: 0.95rem;
        transition: var(--transition);
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-accent);
            background-color: var(--bg-card);
            box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
        }

        .form-group select option {
            background-color: var(--bg-card);
            color: var(--text-primary);
        }

    .form-group .required {
        color: #ef4444;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.error-msg {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid .error-msg {
    display: block;
}

.glass-border {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    height: var(--header-height);
    background-color: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
    padding: 0;
    overflow: visible;
}

    .main-header.scrolled {
        height: 72px;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    }

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.logo-icon {
    height: 88px;
    width: 88px;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(197, 160, 89, 0.55);
    border: 2px solid #c5a059;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 101;
}

.main-header.scrolled .logo-icon {
    height: 60px;
    width: 60px;
    padding: 2px;
}

.heritage-crest {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.logo-text h1 {
    color: #ffffff;
    font-size: 2.1rem;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.logo-text span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #c5a059;
    display: block;
    margin-top: 4px;
    line-height: 1;
    font-weight: 600;
}

.nav-menu ul {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

    .nav-link:hover,
    .nav-link.active {
        color: #c5a059;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #c5a059, #e8c97a);
        border-radius: 2px;
        transition: var(--transition);
    }

    .nav-link.active::after,
    .nav-link:hover::after {
        width: 100%;
    }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   SPA ROUTER LAYOUT
   ========================================================================== */
.page-section {
    padding-top: var(--header-height);
    min-height: calc(100vh - 120px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Home hero section: full viewport, no extra padding needed */
#home.page-section {
    padding-top: 0;
}

.hidden-page {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}

.active-page {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.6s forwards;
}

/* ==========================================================================
   HOME PAGE VIEW
   ========================================================================== */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../IMAGES/family_unity_banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
    margin-top: 0;
    filter: contrast(1.18) saturate(1.15) brightness(1.05);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 880px;
    text-align: center;
    padding: 0 24px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Split Hero Columns Layout */
.hero-split-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-left-content {
    max-width: 100%;
    text-align: left;
}

.hero-right-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-gold);
    background-color: var(--bg-card);
    transition: var(--transition);
    max-width: 100%;
}

    .hero-image-frame::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border: 1px solid rgba(46, 81, 56, 0.3);
        border-radius: calc(var(--border-radius-lg) - 5px);
        pointer-events: none;
        z-index: 2;
    }

.hero-main-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.hero-image-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

    .hero-image-frame:hover .hero-main-img {
        transform: scale(1.03);
    }

@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 40px;
    }

    .hero-left-content {
        text-align: center;
        order: 1;
    }

    .hero-right-graphic {
        order: 2;
        max-width: 450px;
        margin: 0 auto;
    }
}

.hero-subtitle {
    display: inline-block;
    color: #c5a059;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 6px 18px;
    border-radius: 30px;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: slideUp 0.8s ease;
    max-width: 820px;
    color: #ffffff;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1.15rem;
    color: #d8e6dd;
    line-height: 1.85;
    margin-bottom: 32px;
    max-width: 680px;
    animation: slideUp 1s ease;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: slideUp 1.2s ease;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

    .hero-scroll-indicator i {
        animation: bounce 2s infinite;
    }

/* Stats Section */
.stats-section {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 20;
    padding: 30px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-card {
    text-align: center;
    min-width: 180px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* ==========================================================================
   FAMILY GENEALOGY TREE STYLING
   ========================================================================== */
.tree-scroll-wrapper {
    overflow-x: auto;
    width: 100%;
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-card);
    box-shadow: inset 0 0 20px rgba(197, 160, 89, 0.04), var(--shadow-sm);
    position: relative;
    cursor: grab;
}

    .tree-scroll-wrapper:active {
        cursor: grabbing;
    }

.tree-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    min-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

    /* CSS Org Chart connector lines */
    .tree-canvas ul {
        padding-top: 30px;
        position: relative;
        display: flex;
        justify-content: center;
        gap: 25px;
        transition: var(--transition);
    }

    .tree-canvas li {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding: 30px 10px 0 10px;
        transition: var(--transition);
    }

        /* Horizontal connectors */
        .tree-canvas li::before,
        .tree-canvas li::after {
            content: '';
            position: absolute;
            top: 0;
            right: 50%;
            border-top: 2px solid var(--color-accent);
            width: 50%;
            height: 30px;
            opacity: 0.55;
        }

        .tree-canvas li::after {
            right: auto;
            left: 50%;
            border-left: 2px solid var(--color-accent);
        }

        /* Remove connectors for single children */
        .tree-canvas li:only-child::after,
        .tree-canvas li:only-child::before {
            display: none;
        }

        .tree-canvas li:only-child {
            padding-top: 0;
        }

        /* Boundary cleanups */
        .tree-canvas li:first-child::before,
        .tree-canvas li:last-child::after {
            border: 0 none;
        }

        .tree-canvas li:last-child::before {
            border-right: 2px solid var(--color-accent);
            border-radius: 0 5px 0 0;
        }

        .tree-canvas li:first-child::after {
            border-radius: 5px 0 0 0;
        }

    /* Vertical down lines from parent node */
    .tree-canvas ul ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        border-left: 2px solid var(--color-accent);
        width: 0;
        height: 30px;
        opacity: 0.55;
    }

/* Genealogy Tree Nodes & Cards */
.tree-node {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 5;
    transition: var(--transition);
}

    .tree-node.has-spouse::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 160px;
        height: 2px;
        background-color: var(--color-accent);
        opacity: 0.8;
        z-index: 1;
    }

    /* Vertical upward branch connector line from node to horizontal line */
    .tree-node::before {
        content: '';
        position: absolute;
        top: -32px;
        left: 50%;
        width: 2px;
        height: 32px;
        background-color: var(--color-accent);
        opacity: 0.55;
        z-index: 1;
    }

.tree-canvas > ul > li > .tree-node::before {
    display: none; /* Hide for Root node */
}

/* Tree Card Layout */
.tree-card {
    width: 135px;
    border-radius: var(--border-radius-md);
    border: 1.5px solid var(--border-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
    position: relative;
    padding-bottom: 10px;
}

    .tree-card.male {
        background-color: #111d2b;
        border-color: #2b5075;
    }

    .tree-card.female {
        background-color: #21151a;
        border-color: #612c3f;
    }

    .tree-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-glow), var(--shadow-md);
    }

.card-photo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 12px auto 6px auto;
    border: 2.5px solid var(--border-glass);
    transition: var(--transition);
}

.tree-card.male .card-photo-wrapper {
    border-color: #3b82f6;
}

.tree-card.female .card-photo-wrapper {
    border-color: #ec4899;
}

.tree-card:hover .card-photo-wrapper {
    transform: scale(1.08);
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 8px 6px 0 6px;
    text-align: center;
    width: 100%;
}

.card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-years {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.card-role {
    font-size: 0.62rem;
    color: var(--color-gold);
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.legend-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

    .legend-circle.gen-1 {
        background-color: var(--color-accent-light);
    }

    .legend-circle.gen-2 {
        background-color: var(--color-accent);
    }

    .legend-circle.gen-3 {
        background-color: #a1a1aa;
    }

/* Pillars Section */
.pillars-section {
    background-color: var(--bg-dark) !important;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pillar-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 45px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .pillar-card:hover {
        background-color: var(--bg-panel);
        border-color: var(--color-accent);
        transform: translateY(-8px);
        box-shadow: var(--shadow-md), var(--shadow-glow);
    }

.pillar-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.15);
}

.pillar-card h3 {
    font-size: 1.45rem;
    margin-bottom: 15px;
}

.pillar-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   ABOUT US VIEW
   ========================================================================== */
.sub-hero {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(8, 15, 10, 0.1), rgba(8, 15, 10, 0.35)), url('../IMAGES/family 2 banner.webp');
    background-size: cover;
    background-position: center;
}

.sub-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, var(--bg-dark));
}

.sub-hero-container {
    position: relative;
    z-index: 10;
}

    .sub-hero-container h2 {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .sub-hero-container p {
        color: var(--color-accent);
        font-weight: 500;
    }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    height: 480px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-text-wrapper h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.vision-mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vm-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

    .vm-card h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        font-family: var(--font-body);
    }

    .vm-card p {
        font-size: 0.85rem;
    }

/* Trustees */
.trustees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.trustee-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

    .trustee-card:hover {
        border-color: var(--border-glass);
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.trustee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(217, 119, 6, 0.08);
    color: var(--color-accent);
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid var(--border-glass);
}

.trustee-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.trustee-role {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.trustee-card p {
    font-size: 0.85rem;
}

/* ==========================================================================
   GALLERY VIEW
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .filter-btn:hover,
    .filter-btn.active {
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        color: #ffffff;
        box-shadow: var(--shadow-glow);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .gallery-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(transparent 30%, rgba(7, 11, 14, 0.9) 95%);
        z-index: 1;
        opacity: 0.8;
        transition: var(--transition);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 2;
    transform: translateY(10px);
    transition: var(--transition);
}

    .gallery-info h3 {
        font-size: 1.15rem;
        color: #ffffff;
        margin-bottom: 4px;
        font-family: var(--font-body);
    }

    .gallery-info span {
        font-size: 0.75rem;
        color: var(--color-accent-light);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

    .gallery-item:hover img {
        transform: scale(1.08);
    }

    .gallery-item:hover::before {
        opacity: 0.95;
    }

    .gallery-item:hover .gallery-info {
        transform: translateY(0);
    }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lightbox.active {
        display: flex;
        opacity: 1;
    }

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 12, 0.98);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1010;
    transition: var(--transition);
}

    .lightbox-close:hover {
        color: var(--color-accent);
        transform: scale(1.1);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .lightbox-nav:hover {
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        box-shadow: var(--shadow-glow);
    }

    .lightbox-nav.prev {
        left: 40px;
    }

    .lightbox-nav.next {
        right: 40px;
    }

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    z-index: 1005;
    text-align: center;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 70vh;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.lightbox-caption {
    margin-top: 15px;
}

    .lightbox-caption h4 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
        color: var(--color-accent);
        text-transform: uppercase;
        font-weight: 700;
    }

/* ==========================================================================
   CONTACT US VIEW
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info-block h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info-block p {
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background-color: rgba(217, 119, 6, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.map-placeholder {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.contact-form-block {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

    .contact-form-block h3 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-panel);
    border-radius: var(--border-radius-lg);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

    .form-success-overlay.active {
        display: flex;
        animation: fadeIn 0.4s forwards;
    }

.success-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

.success-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.success-content p {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   UNIFIED LOGIN VIEW (REMADE LUXURY DESIGN)
   ========================================================================== */
.login-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 80px);
    padding: 50px 20px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #122418 0%, #08110b 100%);
}

.login-bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

    .login-bg-glow.primary-glow {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(197, 160, 89, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
        top: 20%;
        left: 20%;
    }

    .login-bg-glow.secondary-glow {
        width: 450px;
        height: 450px;
        background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        bottom: 10%;
        right: 20%;
        animation-delay: -4s;
    }

@keyframes pulseGlow {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 1;
    }

    100% {
        transform: scale(0.95) translate(-15px, 15px);
        opacity: 0.8;
    }
}

.login-card {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 35px;
    background: rgba(14, 26, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(197, 160, 89, 0.12);
}

/* MODEL LOGIN CARD AESTHETIC (LIGHT MINIMALIST CARD WITH GRADIENT BUTTON) */
.login-model-card {
    background: #f4f5f8;
    border-radius: 16px;
    padding: 45px 35px 35px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-model-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 35px;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.form-group-line {
    margin-bottom: 25px;
    position: relative;
}

    .form-group-line input {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 2px solid #d1d5db;
        padding: 10px 4px;
        font-size: 0.98rem;
        color: #1f2937;
        outline: none;
        transition: border-color 0.3s ease;
    }

        .form-group-line input::placeholder {
            color: #9ca3af;
        }

        .form-group-line input:focus {
            border-bottom-color: #3b82f6;
        }

.btn-model-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease !important;
    margin-top: 15px;
    margin-bottom: 25px;
}

    .btn-model-gradient:hover {
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    }

.model-forgot-wrap {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

    .model-forgot-wrap a {
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
    }

        .model-forgot-wrap a:hover {
            text-decoration: underline;
        }

.login-split-card {
    position: relative;
    z-index: 1;
    max-width: 980px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    background: rgba(14, 26, 18, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.28);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(197, 160, 89, 0.12);
    overflow: hidden;
}

/* Left Branding Panel */
.login-branding-panel {
    background: linear-gradient(155deg, rgba(20, 44, 30, 0.95) 0%, rgba(9, 21, 14, 0.98) 100%);
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(197, 160, 89, 0.15);
    position: relative;
}

    .login-branding-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--color-gold, #c5a059), transparent);
    }

.login-trust-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: var(--color-gold, #c5a059);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.trust-subtitle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-gold, #c5a059);
    text-transform: uppercase;
    background: rgba(197, 160, 89, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    width: fit-content;
    margin-bottom: 15px;
}

.branding-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 14px;
}

    .branding-title span {
        color: var(--color-gold, #c5a059);
        background: linear-gradient(135deg, #e6ca85 0%, #c5a059 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.branding-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #a3b8aa);
    line-height: 1.6;
    margin-bottom: 30px;
}

.trust-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.trust-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .trust-feature-item .feature-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(197, 160, 89, 0.1);
        border: 1px solid rgba(197, 160, 89, 0.2);
        color: var(--color-gold, #c5a059);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .trust-feature-item .feature-text {
        display: flex;
        flex-direction: column;
    }

        .trust-feature-item .feature-text strong {
            font-size: 0.88rem;
            color: #ffffff;
            font-weight: 600;
        }

        .trust-feature-item .feature-text span {
            font-size: 0.78rem;
            color: var(--text-muted, #7c9484);
        }

.branding-footer-badge {
    font-size: 0.78rem;
    color: var(--color-gold, #c5a059);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right Form Panel */
.login-form-panel {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(12, 23, 16, 0.65);
}

.login-role-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin-bottom: 25px;
}

.role-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted, #7c9484);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .role-tab.active {
        background: linear-gradient(135deg, rgba(197, 160, 89, 0.3) 0%, rgba(42, 78, 53, 0.5) 100%);
        color: #ffffff;
        border: 1px solid rgba(197, 160, 89, 0.35);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.login-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted, #7c9484);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-secondary, #a3b8aa);
        margin-bottom: 8px;
    }

.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper > i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-gold, #c5a059);
        z-index: 2;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }

    .input-icon-wrapper input {
        width: 100%;
        padding: 13px 45px 13px 45px;
        background: rgba(6, 14, 9, 0.6);
        border: 1px solid rgba(197, 160, 89, 0.22);
        border-radius: 10px;
        color: #ffffff;
        font-size: 0.92rem;
        outline: none;
        transition: all 0.3s ease;
    }

        .input-icon-wrapper input:focus {
            border-color: var(--color-gold, #c5a059);
            box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
            background: rgba(10, 22, 15, 0.85);
        }

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #7c9484);
    cursor: pointer;
    padding: 6px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    z-index: 3;
}

    .password-toggle-btn:hover {
        color: var(--color-gold, #c5a059);
    }

.login-remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.82rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #a3b8aa);
    cursor: pointer;
    user-select: none;
}

    .remember-me-label input[type="checkbox"] {
        accent-color: var(--color-gold, #c5a059);
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

.forgot-link {
    color: var(--color-gold, #c5a059);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: #e6ca85;
        text-decoration: underline;
    }

.login-submit-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
    transition: all 0.3s ease;
}

    .login-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(197, 160, 89, 0.4);
    }

    .login-submit-btn i {
        transition: transform 0.3s ease;
    }

    .login-submit-btn:hover i {
        transform: translateX(4px);
    }

.demo-credentials-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(197, 160, 89, 0.22);
}

.demo-credentials-title {
    font-size: 0.72rem;
    color: var(--color-gold, #c5a059);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demo-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .demo-chip i {
        font-size: 1.1rem;
        color: var(--color-gold, #c5a059);
    }

    .demo-chip .chip-text {
        display: flex;
        flex-direction: column;
    }

    .demo-chip .chip-title {
        font-size: 0.8rem;
        font-weight: 600;
        color: #ffffff;
    }

    .demo-chip small {
        font-size: 0.7rem;
        color: var(--text-muted, #7c9484);
    }

    .demo-chip:hover {
        background: rgba(197, 160, 89, 0.15);
        border-color: var(--color-gold, #c5a059);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

.form-error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.82rem;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-8px);
    }

    40%, 80% {
        transform: translateX(8px);
    }
}

/* Modal for Password Reset Info */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal-box {
    max-width: 460px;
    width: 100%;
    background: rgba(15, 29, 20, 0.95);
    border: 1px solid var(--color-gold, #c5a059);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .login-modal-header h4 {
        font-size: 1.2rem;
        color: var(--color-gold, #c5a059);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #7c9484);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

    .modal-close-btn:hover {
        color: #ffffff;
    }

.modal-contact-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

    .modal-contact-card i {
        color: var(--color-gold, #c5a059);
        margin-right: 6px;
    }

.login-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 868px) {
    .login-split-card {
        grid-template-columns: 1fr;
    }

    .login-branding-panel {
        padding: 35px 25px;
        border-right: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    }

    .login-form-panel {
        padding: 35px 25px;
    }

    .branding-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   PORTAL DASHBOARDS LAYOUT (ADMIN & USER)
   ========================================================================== */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
}

/* Sidebar Styling */
.dashboard-sidebar {
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    z-index: 40;
}

.db-user-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 25px 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.db-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(217, 119, 6, 0.08);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border-glass);
}

.db-badge-info h4 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.db-badge-info span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.db-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.db-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

    .db-menu-item i {
        width: 18px;
        text-align: center;
        font-size: 0.95rem;
    }

    .db-menu-item:hover,
    .db-menu-item.active {
        background-color: rgba(197, 160, 89, 0.1);
        color: var(--text-primary);
    }

    .db-menu-item.active {
        border-left-color: var(--color-accent);
        font-weight: 600;
    }

    .db-menu-item .badge {
        background-color: var(--color-accent);
        color: #ffffff;
        font-size: 0.7rem;
        padding: 2px 7px;
        border-radius: 10px;
        margin-left: auto;
        font-weight: 700;
    }

.db-menu .logout-li {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 15px;
}

/* Dashboard Content Main Area */
.dashboard-main-content {
    padding: 40px;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
}

.db-content-widget {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

    .db-content-widget.active {
        display: block;
    }

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

    .dashboard-header-bar h2 {
        font-size: 1.85rem;
    }

.active-fy-badge {
    background-color: rgba(217, 119, 6, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--color-accent-light);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Master Form Fields Grid Helper (Desktop) */
@media (min-width: 769px) {
    .master-fields-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
    .form-group-grid {
        display: grid;
        grid-template-columns: 160px 1fr;
        align-items: center;
        gap: 15px;
        margin-bottom: 14px;
    }
}

/* Dashboard Stats Boxes Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.db-stat-card {
    background-color: rgba(15, 56, 42, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

/* Desktop grid layout */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Circular icon badge inside each stat card */
.stat-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Text info container inside each stat card */
.stat-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.stat-card-info span {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
}

.stat-card-info h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}


.db-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

    .db-stat-icon.red-glow {
        background-color: rgba(239, 68, 68, 0.08);
        color: #f87171;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .db-stat-icon.gold-glow {
        background-color: rgba(217, 119, 6, 0.08);
        color: var(--color-accent-light);
        border: 1px solid rgba(217, 119, 6, 0.2);
    }

    .db-stat-icon.blue-glow {
        background-color: rgba(0, 180, 255, 0.08);
        color: #38bdf8;
        border: 1px solid rgba(0, 180, 255, 0.2);
    }

.db-stat-content h4 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.db-stat-content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Multi column panel layout */
.dashboard-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: start;
}

.db-panel {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.panel-header {
    background-color: rgba(255, 255, 255, 0.005);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        font-size: 1.1rem;
        font-family: var(--font-body);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.panel-body {
    padding: 24px;
}

/* Inquiries & Masters Tables */
.inquiry-table-wrapper {
    overflow-x: auto;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

    .db-table th {
        border-bottom: 2px solid rgba(255, 255, 255, 0.08);
        padding: 12px 16px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .db-table td {
        border-bottom: 1px solid rgba(197, 160, 89, 0.15);
        padding: 14px 16px;
        vertical-align: middle;
        color: var(--text-secondary);
    }

    .db-table tr:hover td {
        background-color: rgba(197, 160, 89, 0.06);
        color: var(--text-primary);
    }

    .db-table td strong {
        color: var(--text-primary);
    }

    .db-table .col-date {
        white-space: nowrap;
    }

.empty-table-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    display: none;
}

    .empty-table-state i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

/* Shared Member list thumbnail photo */
.td-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-accent);
}

/* Helper buttons mock avatares */
.btn-member-photo-helper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-accent-light);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
}

    .btn-member-photo-helper:hover {
        background-color: rgba(217, 119, 6, 0.08);
        border-color: var(--border-glass);
    }

.url-helpers {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-url-helper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-accent-light);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
}

    .btn-url-helper:hover {
        background-color: rgba(217, 119, 6, 0.08);
        border-color: var(--border-glass);
    }

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-glass);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.35rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 35px;
        height: 2px;
        background-color: var(--color-accent);
    }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.heritage-crest-sm {
    width: 48px;
    height: 48px;
}

.f-logo-text h3 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    margin-bottom: 0;
    line-height: 1;
}

    .f-logo-text h3::after {
        display: none;
    }

.f-logo-text span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    display: block;
    margin-top: 3px;
}

.footer-desc {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

    .footer-socials a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

        .footer-socials a:hover {
            background-color: var(--color-accent);
            color: #ffffff;
            border-color: var(--color-accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 1rem;
    color: var(--text-secondary);
}

    .footer-links a:hover {
        color: var(--color-accent-light);
        padding-left: 4px;
    }

.col-newsletter p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
}

    .newsletter-form input {
        flex-grow: 1;
        background-color: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
        padding: 14px 18px;
        color: #ffffff;
        font-family: var(--font-body);
        font-size: 1rem;
        border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
        transition: var(--transition);
    }

        .newsletter-form input:focus {
            outline: none;
            border-color: var(--color-accent);
            background-color: rgba(255, 255, 255, 0.04);
        }

    .newsletter-form button {
        background-color: #c5a059;
        border: none;
        color: #ffffff;
        padding: 0 28px;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
        transition: var(--transition);
    }

        .newsletter-form button:hover {
            background-color: #b48e48;
            box-shadow: 0 0 25px rgba(197, 160, 89, 0.45);
        }

.footer-bottom {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 28px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom a {
    color: var(--text-muted);
}

    .footer-bottom a:hover {
        color: var(--color-accent-light);
    }

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.1);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }

    80%, 100% {
        transform: scale(1);
    }
}

@keyframes CrestPulse {
    from {
        filter: drop-shadow(0 0 2px rgba(217, 119, 6, 0.25));
    }

    to {
        filter: drop-shadow(0 0 7px rgba(217, 119, 6, 0.6));
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 200px 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
    }

    .col-newsletter {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* ── Navbar ── */
    .logo-icon {
        height: 58px !important;
        width: 58px !important;
        padding: 3px !important;
    }

    .logo-text h1 {
        font-size: 1.6rem !important;
    }

    .logo-text span {
        font-size: 0.78rem !important;
        letter-spacing: 0.2em !important;
    }

    .header-container {
        padding: 0 16px !important;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-panel);
        border-top: 1px solid var(--border-glass);
        transition: 0.4s ease;
        z-index: 90;
    }

        .nav-menu.active {
            left: 0;
        }

        .nav-menu ul {
            flex-direction: column;
            align-items: center;
            padding: 60px 0;
            gap: 30px;
        }

    .nav-link {
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }

    /* ── Hero ── */
    .hero-section {
        height: auto;
        min-height: 460px;
        padding-top: calc(var(--header-height) + 36px);
        padding-bottom: 50px;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        padding: 5px 14px;
        letter-spacing: 0.12em;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.4rem;
        max-width: 100%;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .hero-container {
        text-align: center;
        align-items: center;
        padding: 0 16px;
    }

    /* ── Sections ── */
    .section-title h2 {
        font-size: 2.2rem;
    }

    /* ── Pillar Cards ── */
    .pillar-card h3 {
        font-size: 1.3rem;
    }

    .pillar-card p {
        font-size: 0.95rem;
    }

    /* ── Footer ── */
    .footer-col h3 {
        font-size: 1.2rem;
    }

    .footer-desc {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .col-newsletter p {
        font-size: 0.95rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.95rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
        text-align: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .dashboard-main-content {
        padding: 24px;
        height: auto;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .col-newsletter {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    /* ── Hero ── */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* ── Sections ── */
    .section-title h2 {
        font-size: 1.9rem;
    }

    /* ── Pillar Cards ── */
    .pillar-card h3 {
        font-size: 1.2rem;
    }

    /* ── Footer ── */
    .footer-col h3 {
        font-size: 1.1rem;
    }

    .footer-desc,
    .footer-links a,
    .col-newsletter p,
    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* ── Buttons ── */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .vision-mission-cards {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   ALL-PAGE MOBILE CORRECTIONS — appended
   ========================================================================== */

/* ── Sub-hero (About / Gallery / Contact header) ── */
@media (max-width: 768px) {
    .sub-hero {
        height: 180px;
        padding-top: var(--header-height);
    }

    .sub-hero-container h2 {
        font-size: 2rem;
    }

    .sub-hero-container p {
        font-size: 1rem;
    }

    /* ── About Page ── */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image-wrapper {
        height: 260px;
    }

    .about-text-wrapper h2 {
        font-size: 1.75rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .vision-mission-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vm-card h4 {
        font-size: 1.1rem;
    }

    .vm-card p {
        font-size: 0.95rem;
    }

    .trustee-card h3 {
        font-size: 1.1rem;
    }

    .trustee-role {
        font-size: 0.8rem;
    }

    .trustee-card p {
        font-size: 0.9rem;
    }

    /* ── Gallery Page ── */
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* ── Contact Page ── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-info-block h3,
    .contact-form-block h3 {
        font-size: 1.4rem;
    }

    .contact-info-block p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.95rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 12px 14px;
    }

    /* ── General containers ── */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pad-y {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* ── Section tags ── */
    .section-tag {
        font-size: 0.9rem;
    }
}

/* ── 480px extra-small ── */
@media (max-width: 480px) {
    .sub-hero {
        height: 155px;
    }

    .sub-hero-container h2 {
        font-size: 1.6rem;
    }

    .sub-hero-container p {
        font-size: 0.9rem;
    }

    .about-image-wrapper {
        height: 220px;
    }

    .about-text-wrapper h2 {
        font-size: 1.5rem;
    }

    .contact-info-block h3,
    .contact-form-block h3 {
        font-size: 1.25rem;
    }

    .trustee-card {
        padding: 22px 16px;
    }

    .trustee-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }

    .vm-card {
        padding: 18px 16px;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 7px 13px;
    }
}
