/* Kuruman Cultural Archive Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Tamil:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-green: #0a4828;
    --sidebar-bg: #0d3b23;
    --sidebar-active: #156237;
    --header-bg: #f4efe1;
    --body-bg: #eef2f5;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #5b6571;
    --border-color: #e2e8f0;

    /* Stat Card Colors */
    --card-green: #12643a;
    --card-orange: #d96b27;
    --card-red: #9e2a1b;
    --card-purple: #5c478a;
    --card-blue: #0b66aa;
    --card-teal: #1f8380;
    --card-magenta: #be2868;
    --card-brown: #8a4d29;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Tamil', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Administrative 5-Stat Banner (Matching User Reference Screenshot) */
.admin-metrics-section {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
}

.admin-metrics-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
    .admin-metrics-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-stat-box {
    border-radius: 16px;
    padding: 24px 16px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    min-height: 140px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.box-blue {
    background: #2563eb;
}

.box-green {
    background: #16a34a;
}

.box-royalblue {
    background: #2563eb;
}

.box-dark {
    background: #0f172a;
}

.box-cyan {
    background: #06b6d4;
}

.admin-stat-label {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.admin-stat-num {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

/* Hero Full Height & Width Carousel Styling */
.home-slider-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 560px;
    min-height: 480px;
    max-height: 700px;
    width: 100%;
}

@media (min-width: 1400px) {
    .hero-carousel {
        height: 620px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 440px;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

@media (max-width: 768px) {
    .hero-slide {
        padding: 0 24px;
    }
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content-container {
    max-width: 820px;
    color: white;
    z-index: 2;
}

.slide-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 28px;
    }
}

.slide-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .slide-subtitle {
        font-size: 16px;
    }
}

.slide-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #f1f5f9;
    margin-bottom: 26px;
    max-width: 680px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .slide-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
    }
}

.btn-slide-action {
    background: #008744;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-slide-action:hover {
    background: #006834;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    border-color: #ffd700;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(10, 72, 40, 0.95);
    border-color: #ffd700;
    transform: translateY(-50%) scale(1.1);
}

.arrow-prev {
    left: 28px;
}

.arrow-next {
    right: 28px;
}

@media (max-width: 768px) {
    .arrow-prev {
        left: 10px;
    }

    .arrow-next {
        right: 10px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Slide Indicators Dots */
.slider-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: #00e676;
    width: 28px;
    border-radius: 10px;
}

/* Tribal Golden Border Banner Bottom */
.tribal-golden-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700, #ff8c00, #ffd700);
    z-index: 5;
}

/* Public Header (Matching Image 1 & Image 3) */
.public-header {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-header-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    min-width: 0;
    flex-shrink: 1;
}

.header-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #ffd700;
    flex-shrink: 0;
}

.header-brand-text {
    min-width: 0;
    flex-shrink: 1;
}

.header-brand-text .main-title,
.main-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.header-brand-text .sub-title,
.sub-title {
    font-size: 11px;
    font-weight: 600;
    color: #a3e635;
    line-height: 1.2;
}

.header-brand-text .motto,
.motto {
    font-size: 9.5px;
    color: #cbd5e1;
    line-height: 1.2;
}

/* Header Navbar Links */
.header-navbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.register-btn-pill {
    background: #eb9a3e !important;
    color: white !important;
    font-weight: bold;
}

.register-btn-pill:hover {
    background: #d88628 !important;
}

.header-right-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-head-login {
    background: #0e351d;
    color: white;
    border: 1px solid #1c5230;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-head-admin {
    background: #0e351d;
    color: white;
    border: 1px solid #1c5230;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-head-members {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 50%, #00e5ff 100%);
    background-size: 200% 200%;
    color: white;
    border: 1px solid #00e5ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    animation: pulseGlow 2.5s infinite ease-in-out, shimmerGradient 4s infinite linear;
    transition: all 0.3s ease;
}

.btn-head-members:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.7);
}

.btn-head-members i {
    animation: iconSubtleBounce 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(0, 188, 212, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 0 24px rgba(0, 188, 212, 0.5);
        transform: scale(1.03);
    }
}

@keyframes shimmerGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes iconSubtleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Page Wrapper */
.page-content-wrapper {
    min-height: calc(100vh - 140px);
}

/* Public Footer */
.public-footer {
    background: #062b18;
    color: white;
    padding: 14px 24px;
    border-top: 2px solid #eb9a3e;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.footer-socials a {
    color: white;
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 0.8;
}

/* Registration Page Layout (Image 1) */
.registration-page-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.page-title-banner {
    background: linear-gradient(rgba(10, 72, 40, 0.85), rgba(10, 72, 40, 0.85)), url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 24px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.banner-overlay-content h1 {
    font-size: 26px;
    font-weight: 800;
}

.banner-overlay-content p {
    font-size: 14px;
    color: #e2e8f0;
    margin-top: 4px;
}

.banner-quote-badge {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
    color: #ffd700;
}

.alert-success-pill {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

@media (max-width: 1100px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }
}

.registration-form-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-header-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.form-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0a4828;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.form-header-badge h2 {
    font-size: 18px;
    color: #0a4828;
    font-weight: 800;
}

.form-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .form-grid-3col {
        grid-template-columns: 1fr;
    }
}

.form-group-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.form-group-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 6px;
    min-height: 32px;
    line-height: 1.3;
}

.form-group-item label i {
    color: #0a4828;
    background: #e6f4ea;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    border: 1px solid #bbf7d0;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border 0.2s;
}

.input-with-icon:focus-within {
    border-color: #0a4828;
    background: white;
}

.input-with-icon i {
    color: #0a4828;
    font-size: 13px;
}

.input-with-icon input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

/* Cultural Questions Grid */
.cultural-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .cultural-questions-grid {
        grid-template-columns: 1fr;
    }
}

.question-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.q-title {
    font-size: 11px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.q-title i {
    color: #0a4828;
    background: #e6f4ea;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    border: 1px solid #bbf7d0;
}

.radio-options {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.btn-register-submit {
    background: #0a4828;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-register-submit:hover {
    background: #12643a;
}

/* Donation Widget Card */
.donation-widget-card {
    background: #f4efe1;
    border: 1px solid #d4c6a6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #d4c6a6;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.donation-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0a4828;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.donation-header h3 {
    font-size: 15px;
    color: #0a4828;
    font-weight: 800;
}

.donation-desc {
    font-size: 11px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.3;
}

.donation-amounts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.amount-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.amount-btn.active {
    background: #0a4828;
    color: white;
    border-color: #0a4828;
}

.btn-donate-now {
    background: #0a4828;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 12px;
}

.payment-methods-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: bold;
    color: #64748b;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Future Plans Widget */
.future-plans-widget-card {
    background: #fdfbf7;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.future-plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.future-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
}

.future-icon {
    color: #0a4828;
    font-size: 14px;
    margin-top: 2px;
}

.future-item .sub {
    font-size: 9px;
    color: #64748b;
}

/* 5 Category Circles - Pure Bootstrap 5 Grid System */
.home-categories-section {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 15px;
}

.category-circle-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 20px 12px;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-circle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.cat-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 8px;
}

@media (max-width: 991.98px) {
    .cat-icon-circle {
        margin: 0 !important;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

.cat-title {
    font-size: 14px;
    font-weight: bold;
    color: #0a4828;
    line-height: 1.25;
}

.cat-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

/* Home Mission Section */
.home-mission-section {
    max-width: 1400px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.mission-card-inner {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.mission-text-side h3 {
    font-size: 22px;
    color: #0a4828;
    font-weight: 800;
    margin-bottom: 12px;
}

.mission-quote {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    font-style: italic;
    background: #f8fafc;
    padding: 16px;
    border-left: 4px solid #0a4828;
    border-radius: 4px;
    margin-bottom: 20px;
}

.btn-mission-more {
    background: #0a4828;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mission-img-side img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Page Containers */
.page-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.page-header-bar {
    background: #0a4828;
    color: white;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-bar h1 {
    font-size: 22px;
    font-weight: 800;
}

.page-header-bar .breadcrumb {
    font-size: 12px;
    color: #a3e635;
    font-weight: 600;
}

.about-mission-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.mission-quote-box {
    background: #f4efe1;
    border: 1px solid #d4c6a6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.section-title {
    font-size: 20px;
    color: #0a4828;
    font-weight: 800;
}

.section-subtitle {
    font-size: 12px;
    color: #64748b;
}

/* Header Banner */
.app-header {
    background-color: var(--header-bg);
    border-bottom: 2px solid #d4c6a6;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-image: radial-gradient(#d6cbaf 1px, transparent 1px);
    background-size: 16px 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo-art {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0a4828;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 24px;
}

.header-titles h1 {
    font-size: 20px;
    font-weight: 800;
    color: #0a4828;
}

.header-titles h2 {
    font-size: 14px;
    font-weight: 600;
    color: #2b5e43;
}

.header-subtitle {
    font-size: 12px;
    color: #617367;
    margin-top: 2px;
    font-weight: 600;
}

.header-banner-illustration {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
}

.header-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: bold;
    color: #0a4828;
    font-size: 13px;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn-badge {
    position: relative;
    background: white;
    border: 1px solid #d4c6a6;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0a4828;
}

.icon-btn-badge .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.admin-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #d4c6a6;
    border-radius: 20px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #0a4828;
    transition: all 0.2s ease;
    user-select: none;
}

.admin-profile-pill:hover {
    background: #f0fdf4;
    border-color: #0a4828;
    box-shadow: 0 2px 8px rgba(10, 72, 40, 0.12);
}

.admin-avatar {
    width: 28px;
    height: 28px;
    background: #0a4828;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Admin Profile Dropdown */
.admin-dropdown-container {
    position: relative;
}

.admin-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #d4c6a6;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(10, 72, 40, 0.15);
    width: 240px;
    z-index: 1050;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-dropdown-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #0a4828 0%, #156237 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar-lg {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffd700;
    flex-shrink: 0;
}

.admin-dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-dropdown-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.admin-dropdown-email {
    font-size: 11px;
    color: #d4c6a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-role-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    width: fit-content;
}

.admin-dropdown-body {
    padding: 6px 0;
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.admin-dropdown-item i {
    width: 18px;
    font-size: 14px;
    color: #0a4828;
    text-align: center;
    transition: color 0.15s ease;
}

.admin-dropdown-item:hover {
    background-color: #f0fdf4;
    color: #0a4828;
    padding-left: 20px;
}

.admin-dropdown-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 6px 0;
}

.admin-dropdown-item.logout-item {
    color: #dc3545;
    font-weight: 600;
}

.admin-dropdown-item.logout-item i {
    color: #dc3545;
}

.admin-dropdown-item.logout-item:hover {
    background-color: #fff2f2;
    color: #b02a37;
    padding-left: 20px;
}

/* Application Layout */
.app-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.app-sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-nav {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #00e676;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-subtext {
    font-size: 10px;
    opacity: 0.8;
    display: block;
}

.sidebar-footer-graphic {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-slogan {
    font-size: 12px;
    font-weight: bold;
    color: #a3e635;
    margin-top: 6px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

/* Top Dashboard Bar */
.dashboard-top-bar {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.dashboard-title-area h2 {
    font-size: 20px;
    color: #0a4828;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-title-area p {
    font-size: 12px;
    color: var(--text-muted);
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.control-select {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

/* Metric Cards Grid (8 Cards) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 1400px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card {
    border-radius: 8px;
    color: white;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 85px;
    transition: transform 0.2s;
}

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

.metric-card-green {
    background: var(--card-green);
}

.metric-card-orange {
    background: var(--card-orange);
}

.metric-card-red {
    background: var(--card-red);
}

.metric-card-purple {
    background: var(--card-purple);
}

.metric-card-blue {
    background: var(--card-blue);
}

.metric-card-teal {
    background: var(--card-teal);
}

.metric-card-magenta {
    background: var(--card-magenta);
}

.metric-card-brown {
    background: var(--card-brown);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-icon {
    font-size: 20px;
    opacity: 0.9;
}

.metric-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.95;
    line-height: 1.2;
}

.metric-sublabel {
    font-size: 9px;
    opacity: 0.8;
}

/* Section Grid (3 Columns) */
.middle-grid {
    display: grid;
    grid-template-columns: 3.5fr 3.5fr 3fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .middle-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0a4828;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header-title i {
    font-size: 16px;
    color: #12643a;
}

/* 5 Year Plan Timeline */
.plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.plan-info {
    flex-grow: 1;
}

.plan-title-text {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.plan-progress-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.plan-progress-bar {
    height: 100%;
    border-radius: 3px;
}

/* Map Section */
.map-container {
    position: relative;
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.tn-map-svg {
    max-width: 100%;
    height: 200px;
}

.map-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: 11px;
    margin-top: 10px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Bottom Grid Sections */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* Cultural Survey Progress list */
.survey-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.survey-bar-bg {
    width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.survey-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Elder Card */
.elder-card-content {
    text-align: center;
}

.elder-img-frame {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #12643a;
    margin: 0 auto 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.elder-counter {
    font-size: 22px;
    font-weight: 800;
    color: #0a4828;
    margin: 6px 0;
}

/* Records List Card */
.record-details-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.record-details-table td {
    padding: 4px 2px;
    border-bottom: 1px dashed #f1f5f9;
}

.record-details-table:not(.data-table) td:first-child {
    font-weight: 600;
    color: #475569;
    width: 45%;
}

.record-details-table.data-table td:first-child,
.data-table td:first-child {
    width: auto !important;
}

/* Button variants */
.btn-action-sm {
    background: #0a4828;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.btn-action-sm:hover {
    background: #12643a;
    color: white;
}

/* Publications Grid */
.publications-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.pub-card {
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 70px;
}

.pub-sub {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.9;
}

.banner-pub-btn {
    background: #9e2a1b;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Digital Museum Dark Card */
.digital-museum-card {
    background: #0f2c1b;
    color: white;
    border-radius: 8px;
    padding: 14px;
}

.museum-yt-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.museum-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
    font-size: 10px;
}

.museum-icon-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.museum-icon-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Government Requests List */
.govt-checklist {
    list-style: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.govt-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #334155;
}

.govt-checklist i {
    color: #198754;
    font-size: 12px;
    margin-top: 2px;
}

/* Footer Banner */
.app-footer {
    background-color: var(--primary-green);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-top: 2px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-motif {
    font-size: 16px;
    color: #ffd700;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    margin: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-title {
    font-size: 17px;
    font-weight: bold;
    color: #0a4828;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
    line-height: 1;
}

/* Map Flex Container */
.map-container-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tn-map-wrapper {
    width: 60%;
}

.map-legend-side {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
}

.legend-pin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Elder Frame Circle */
.elder-frame-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #105933;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.elder-frame-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Folk Arts Checklist */
.folk-arts-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
}

.folk-arts-check-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* Bottom Grid Row 2 (2 Wide Cards) */
.bottom-grid-row2 {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .bottom-grid-row2 {
        grid-template-columns: 1fr;
    }
}

.museum-pub-wide-card {
    padding: 14px;
}

.museum-pub-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .museum-pub-split {
        grid-template-columns: 1fr;
    }
}

.pub-side-box,
.museum-side-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.book-card {
    padding: 10px 8px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-card.b-green {
    background: #105933;
}

.book-card.b-blue {
    background: #0b66aa;
}

.book-card.b-orange {
    background: #d96b27;
}

.book-card.b-purple {
    background: #5e448b;
}

.model-villages-banner {
    background: #a82d1d;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
}

/* Museum Video Preview & Icons */
.museum-video-preview {
    background: #093d22;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.video-preview-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.museum-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    font-size: 10px;
    text-align: center;
}

.mus-icon-item {
    background: #f1f5f9;
    padding: 6px 4px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mus-icon-item:hover {
    background: #e2e8f0;
}

.mus-icon-item i {
    font-size: 14px;
    color: #105933;
}

/* Govt Requests Card */
.govt-requests-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.govt-requests-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.govt-requests-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #0a4828;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

/* ==========================================================================
   Admin Sub-Pages Dashboard Styling (Metric Cards, Tables, Buttons & Cards)
   ========================================================================== */

.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dashboard-title-area h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0a4828;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title-area p {
    font-size: 13px;
    color: #64748b;
}

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.metric-card .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.metric-card.gold .metric-icon {
    background: #fef3c7;
    color: #d97706;
}

.metric-card.emerald .metric-icon {
    background: #d1fae5;
    color: #059669;
}

.metric-card.blue .metric-icon {
    background: #dbeafe;
    color: #2563eb;
}

.metric-card.purple .metric-icon {
    background: #f3e8ff;
    color: #7c3aed;
}

.metric-card .metric-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    line-height: 1.3;
}

.metric-card .metric-info .value {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.dashboard-table th {
    background: #f8fafc;
    color: #0a4828;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.btn-action-sm {
    background: #12643a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-action-sm:hover {
    background: #0a4828;
}

/* ==========================================================================
   Homepage 2-Column Layout, Future Events, Birthday Sidebar & ID Card Styles
   ========================================================================== */

.home-main-layout-container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .home-main-layout-container {
        grid-template-columns: 1fr;
    }
}

.home-section-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.section-title-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.section-title-badge h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0a4828;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title-badge h3 i {
    color: #12643a;
    font-size: 20px;
}

/* Future Events Grid */
.future-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .future-events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0a4828;
}

.event-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-img-wrap img {
    transform: scale(1.06);
}

.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0a4828;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-date-badge .day {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-category-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.event-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title {
    font-size: 15px;
    font-weight: 800;
    color: #0a4828;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-meta-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
}

.btn-event-register {
    background: #0a4828;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-event-register:hover {
    background: #12643a;
}

/* Birthday Wishes Right Sidebar Widget - Enhanced Animations */
.birthday-sidebar-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 50%, #fefce8 100%);
    border-radius: 18px;
    border: 2.5px solid #fde047;
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.18), 0 0 15px rgba(253, 224, 71, 0.2);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.birthday-sidebar-card:hover {
    box-shadow: 0 12px 36px rgba(234, 179, 8, 0.28), 0 0 25px rgba(234, 179, 8, 0.35);
}

.birthday-header-banner {
    background: linear-gradient(-45deg, #7c2d12, #9a3412, #ea580c, #d97706, #b45309);
    background-size: 300% 300%;
    animation: birthdayHeaderShimmer 8s ease infinite;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.birthday-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shineSweep 4s infinite;
}

@keyframes birthdayHeaderShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.birthday-header-banner h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.birthday-header-banner h4 i {
    animation: iconSparkle 2s ease-in-out infinite alternate;
}

@keyframes iconSparkle {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 2px #fef08a);
    }

    100% {
        transform: scale(1.2) rotate(15deg);
        filter: drop-shadow(0 0 8px #fde047);
    }
}

.birthday-header-banner .cake-badge {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #854d0e;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 10px rgba(253, 224, 71, 0.6);
    z-index: 1;
    animation: giftBounce 2.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    cursor: pointer;
}

@keyframes giftBounce {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    10% {
        transform: translateY(-6px) scale(1.1) rotate(-8deg);
    }

    20% {
        transform: translateY(0) scale(1) rotate(8deg);
    }

    30% {
        transform: translateY(-4px) scale(1.05) rotate(-4deg);
    }

    40% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.birthday-members-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.birthday-member-item {
    background: white;
    border-radius: 14px;
    border: 1.5px solid #fef08a;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: cardItemStagger 0.6s ease-out backwards;
}

.birthday-member-item:nth-child(1) {
    animation-delay: 0.1s;
}

.birthday-member-item:nth-child(2) {
    animation-delay: 0.25s;
}

.birthday-member-item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cardItemStagger {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.birthday-member-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 22px rgba(234, 179, 8, 0.24), 0 0 12px rgba(234, 179, 8, 0.15);
    border-color: #d97706;
}

.birthday-profile-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.birthday-avatar-frame {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
}

.birthday-avatar-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#fde047, #d97706, #ca8a04, #fef08a, #fde047);
    animation: goldenAvatarRotate 4s linear infinite;
    z-index: 0;
}

@keyframes goldenAvatarRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.birthday-avatar-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.birthday-crown-icon {
    position: absolute;
    top: -9px;
    right: -5px;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #a16207;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    border: 1.5px solid #ca8a04;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    0% {
        transform: translateY(0) rotate(-6deg);
    }

    100% {
        transform: translateY(-4px) rotate(6deg);
    }
}

.birthday-info {
    flex-grow: 1;
}

.birthday-name {
    font-size: 14px;
    font-weight: 800;
    color: #0a4828;
    line-height: 1.3;
}

.birthday-details {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.btn-send-wish {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #b45309 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-send-wish:hover {
    background-position: 100% 0;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5), 0 0 10px rgba(253, 224, 71, 0.4);
}

.btn-send-wish:active {
    transform: translateY(0) scale(0.97);
}

.btn-send-wish i {
    animation: magicWandPulse 1.8s ease-in-out infinite;
}

@keyframes magicWandPulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-15deg) scale(1.2);
    }
}

/* Digital ID Showcase Homepage Section */
.id-showcase-card {
    background: linear-gradient(135deg, #0a4828 0%, #0d3b23 100%);
    border-radius: 16px;
    color: white;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(10, 72, 40, 0.25);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.id-showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .id-showcase-layout {
        grid-template-columns: 1fr;
    }
}

.id-text-area h3 {
    font-size: 22px;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.id-text-area p {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.id-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #f8fafc;
}

.id-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-features-list i {
    color: #a3e635;
}

.id-cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-get-id {
    background: #eb9a3e;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(235, 154, 62, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-get-id:hover {
    background: #d88628;
    transform: translateY(-2px);
}

.btn-view-id {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-view-id:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Floating Confetti Particle Effect */
.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    animation: confettiFall 2.5s linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

/* Toast Feedback Notification Container (Hidden by default) */
.toast-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: #0a4828;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border: 1.5px solid #a3e635;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ==========================================
   Dashboard Metric Cards Styles
   ========================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.metric-icon {
    font-size: 24px;
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.metric-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.metric-sublabel {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

/* Color Variant Accents */
.metric-card-green {
    border-left: 5px solid #16a34a;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.metric-card-green .metric-icon {
    color: #16a34a;
}

.metric-card-green .metric-value {
    color: #15803d;
}

.metric-card-orange {
    border-left: 5px solid #ea580c;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.metric-card-orange .metric-icon {
    color: #ea580c;
}

.metric-card-orange .metric-value {
    color: #c2410c;
}

.metric-card-red {
    border-left: 5px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.metric-card-red .metric-icon {
    color: #dc2626;
}

.metric-card-red .metric-value {
    color: #b91c1c;
}

.metric-card-purple {
    border-left: 5px solid #9333ea;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.metric-card-purple .metric-icon {
    color: #9333ea;
}

.metric-card-purple .metric-value {
    color: #7e22ce;
}

.metric-card-blue {
    border-left: 5px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.metric-card-blue .metric-icon {
    color: #2563eb;
}

.metric-card-blue .metric-value {
    color: #1d4ed8;
}

.metric-card-teal {
    border-left: 5px solid #0d9488;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.metric-card-teal .metric-icon {
    color: #0d9488;
}

.metric-card-teal .metric-value {
    color: #0f766e;
}

.metric-card-magenta {
    border-left: 5px solid #d946ef;
    background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);
}

.metric-card-magenta .metric-icon {
    color: #d946ef;
}

.metric-card-magenta .metric-value {
    color: #c026d3;
}

.metric-card-brown {
    border-left: 5px solid #b45309;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.metric-card-brown .metric-icon {
    color: #b45309;
}

.metric-card-brown .metric-value {
    color: #92400e;
}

/* Select2 Custom Green Theme Override */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding-left: 0 !important;
    line-height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    right: 4px !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.select2-search--dropdown {
    padding: 8px !important;
    background: #f8fafc !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    outline: none !important;
    font-size: 12px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #0a4828 !important;
    box-shadow: 0 0 0 2px rgba(10, 72, 40, 0.1) !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #0a4828 !important;
    color: white !important;
}

.select2-results__option {
    font-size: 12px !important;
    padding: 8px 12px !important;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN BREAKPOINTS (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* --- 1. Desktop & Large Screens (> 1280px) --- */
@media (min-width: 1281px) {
    .container, .admin-metrics-section, .public-header-inner {
        max-width: 1400px;
        margin: 0 auto;
    }
    .admin-metrics-container {
        grid-template-columns: repeat(5, 1fr);
    }
    .modal-box {
        max-width: 900px;
    }
}

/* --- 2. Laptop Breakpoint (1025px - 1280px) --- */
@media (max-width: 1280px) and (min-width: 1025px) {
    .admin-metrics-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 20px;
    }
    .public-header-inner {
        padding: 10px 24px;
    }
    .header-brand-text .main-title {
        font-size: 16px;
    }
    .header-brand-text .sub-title {
        font-size: 12px;
    }
    .header-navbar {
        gap: 12px;
    }
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* --- 3. Tablet Breakpoint (769px - 1024px) --- */
@media (max-width: 1024px) {
    .public-header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
        justify-content: space-between;
    }
    .header-brand-link {
        gap: 10px;
    }
    .header-brand-text .main-title {
        font-size: 14px;
        line-height: 1.3;
    }
    .header-brand-text .sub-title {
        font-size: 11px;
    }
    .header-brand-text .motto {
        font-size: 9px;
    }
    .header-navbar {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-metrics-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 16px;
        gap: 12px;
    }
    .admin-stat-box {
        min-height: 110px;
        padding: 16px 10px;
    }
    .admin-stat-num {
        font-size: 28px;
    }
    .admin-stat-label {
        font-size: 13px;
    }
    .modal-box {
        width: 90% !important;
        max-width: 720px !important;
        max-height: 85vh !important;
    }
    .dashboard-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --- 4. Mobile Devices (< 768px) --- */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    .public-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }
    .header-brand-link {
        justify-content: center;
        text-align: center;
    }
    .header-brand-text .main-title {
        font-size: 13px;
        word-wrap: break-word;
    }
    .header-brand-text .sub-title {
        font-size: 10px;
    }
    .header-brand-text .motto {
        display: none;
    }
    .header-navbar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 4px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-link {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 4px;
    }
    .header-user-actions {
        justify-content: center;
        width: 100%;
        margin-top: 4px;
    }
    .admin-metrics-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 8px;
        border-radius: 10px;
    }
    .admin-stat-box {
        min-height: 95px;
        padding: 12px 8px;
        border-radius: 10px;
    }
    .admin-stat-num {
        font-size: 24px;
    }
    .admin-stat-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .record-details-table, table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .modal-box {
        width: 95% !important;
        margin: 10px auto !important;
        max-height: 90vh !important;
        border-radius: 10px !important;
    }
    .modal-header {
        padding: 12px 14px !important;
    }
    .modal-title {
        font-size: 14px !important;
    }
    .btn-action-sm, button {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    /* Grid system adjustment for mobile forms */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- 5. Small Mobile Screen (< 480px) --- */
@media (max-width: 480px) {
    .admin-metrics-container {
        grid-template-columns: 1fr;
    }
    .admin-stat-box {
        min-height: 80px;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 20px;
    }
    .admin-stat-label {
        margin-bottom: 0;
    }
    .admin-stat-num {
        font-size: 26px;
    }
}

/* ==========================================================
   BOOTSTRAP 5 COMPATIBILITY & RESPONSIVE DESIGN ENHANCEMENTS
   ========================================================== */

/* Header & Navbar Fixes */
.public-header {
    background-color: var(--primary-green, #0a4828);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1030;
}

.public-header .navbar-nav .nav-link,
.public-header .header-navbar .nav-link {
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-header .navbar-nav .nav-link:hover,
.public-header .header-navbar .nav-link:hover,
.public-header .header-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.register-btn-pill {
    background: #ffd700 !important;
    color: #0a4828 !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
}

.register-btn-pill:hover {
    background: #ffe033 !important;
    color: #052615 !important;
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Card & Container Spacing for Devices */
@media (max-width: 991.98px) {
    .public-header .navbar-collapse {
        background-color: #083b21;
        padding: 16px;
        border-radius: 10px;
        margin-top: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }

    .home-main-layout-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .hero-carousel {
        height: 400px;
    }

    .slide-title {
        font-size: 26px;
    }

    .slide-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel {
        height: 320px;
    }

    .hero-slide {
        padding: 0 16px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-subtitle {
        font-size: 13px;
    }

    .slide-desc {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-slide-action {
        padding: 6px 14px;
        font-size: 12px;
    }

    .header-logo-circle {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .main-title {
        font-size: 12.5px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .sub-title {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 400px) {
    .header-logo-circle {
        width: 32px;
        height: 32px;
    }
    .main-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .sub-title {
        font-size: 8.5px !important;
    }
}

/* Login, Registration & Dashboard Responsiveness */
@media (max-width: 991.98px) {
    .login-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .registration-page-container {
        padding: 16px !important;
        margin: 10px auto !important;
    }

    .id-showcase-layout {
        flex-direction: column !important;
    }

    .id-preview-graphics {
        margin-top: 16px;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 50%;
    }

    .page-title-banner {
        padding: 16px 20px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .banner-quote-badge {
        display: none !important;
    }
}

/* Mobile Sidebar & Header Layout Enhancements */
.mobile-sidebar-toggle-btn {
    background: #0a4828;
    border: 1px solid #ffd700;
    color: #ffffff;
    font-size: 16px;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.mobile-sidebar-toggle-btn:hover {
    background: #12643a;
    color: #ffd700;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Row2 & Split Grid Layouts */
.bottom-grid-row2 {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.museum-pub-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Customer Portal Dashboard & ID Card Responsiveness */
@media (max-width: 991.98px) {
    .header-slogan-box {
        display: none !important;
    }

    .header-banner-illustration {
        display: none !important;
    }

    .app-header {
        padding: 10px 14px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .header-titles h1 {
        font-size: 15px !important;
    }

    .header-titles h2 {
        font-size: 12px !important;
    }

    .header-subtitle {
        font-size: 10px !important;
    }

    .app-container {
        flex-direction: column !important;
        position: relative;
    }

    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        bottom: 0 !important;
        width: 270px !important;
        height: 100vh !important;
        z-index: 1050 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 25px rgba(0,0,0,0.3) !important;
        overflow-y: auto !important;
    }

    .app-sidebar.show {
        left: 0 !important;
    }

    .main-content {
        padding: 14px 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .dashboard-top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .dashboard-controls {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .middle-grid {
        grid-template-columns: 1fr !important;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .bottom-grid-row2 {
        grid-template-columns: 1fr !important;
    }

    #id-card-printable-area {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    #id-card-printable-area > div {
        width: 100% !important;
        max-width: 420px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 767.98px) {
    .museum-pub-split {
        grid-template-columns: 1fr !important;
    }

    .bottom-grid {
        grid-template-columns: 1fr !important;
    }

    .metric-sublabel {
        font-size: 8.5px !important;
    }
}

@media (max-width: 575.98px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .metric-card {
        padding: 10px 8px !important;
        min-height: 80px !important;
    }

    .metric-value {
        font-size: 16px !important;
    }

    .metric-label {
        font-size: 10px !important;
    }

    .header-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 400px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================
   GLOBAL RESPONSIVE MODAL SYSTEM FOR ALL PAGES & DEVICES
   ========================================================== */

/* Universal overlay backdrop scrolling and padding */
.modal-overlay,
div[id*="Modal"],
div[id*="modal"] {
    box-sizing: border-box !important;
}

.modal-overlay {
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Universal modal box dialog responsive scaling */
/* Universal modal box dialog responsive scaling */
.modal-box,
.modal-overlay > div:not(.modal-dialog),
div[id*="Modal"] > div,
div[id*="modal"] > div {
    width: 100% !important;
    max-width: 760px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: auto !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================
   DESKTOP MODAL FORM 2-COLUMN GRID SYSTEM (min-width: 768px)
   ========================================================== */
@media (min-width: 768px) {
    /* Modal form 2-column side-by-side grid layout on desktop screens */
    .modal-box form:not(.single-col-form),
    div[id*="Modal"] form:not(.single-col-form),
    div[id*="modal"] form:not(.single-col-form) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 18px !important;
        align-items: start !important;
    }

    /* Span both columns for textareas, file uploads, headers, full-width classes, and action buttons */
    .modal-box form:not(.single-col-form) > .full-width,
    .modal-box form:not(.single-col-form) > div.full-width,
    .modal-box form:not(.single-col-form) > div:has(textarea),
    .modal-box form:not(.single-col-form) > div:has(input[type="file"]),
    .modal-box form:not(.single-col-form) > div:last-child,
    div[id*="Modal"] form:not(.single-col-form) > .full-width,
    div[id*="Modal"] form:not(.single-col-form) > div.full-width,
    div[id*="Modal"] form:not(.single-col-form) > div:has(textarea),
    div[id*="Modal"] form:not(.single-col-form) > div:has(input[type="file"]),
    div[id*="Modal"] form:not(.single-col-form) > div:last-child,
    div[id*="modal"] form:not(.single-col-form) > div:last-child {
        grid-column: 1 / -1 !important;
    }

    /* Hide CSRF tokens from taking grid space */
    .modal-box form > input[name="_token"],
    .modal-box form > input[name="_method"],
    div[id*="Modal"] form > input[name="_token"],
    div[id*="Modal"] form > input[name="_method"] {
        display: none !important;
    }
}

/* Sticky Modal Headers */
.modal-header {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
}

/* Mobile Devices (< 768px) Modal Overrides */
@media (max-width: 767.98px) {
    .modal-overlay {
        padding: 8px !important;
    }

    .modal-box,
    .modal-overlay > div:not(.modal-dialog),
    div[id*="Modal"] > div,
    div[id*="modal"] > div {
        max-width: 96vw !important;
        max-height: 90vh !important;
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .modal-title,
    .modal-header h3,
    .modal-header h4 {
        font-size: 15px !important;
    }

    .modal-header {
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    /* Modal input fields & labels mobile scaling */
    .modal-box input[type="text"],
    .modal-box input[type="number"],
    .modal-box input[type="email"],
    .modal-box input[type="file"],
    .modal-box select,
    .modal-box textarea,
    div[id*="Modal"] input,
    div[id*="Modal"] select,
    div[id*="Modal"] textarea {
        font-size: 13px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    /* Multi-column grid forms inside modals collapse to single column */
    .modal-box div[style*="grid-template-columns"],
    div[id*="Modal"] div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Modal action buttons container wrapping */
    .modal-box form > div:last-child,
    div[id*="Modal"] form > div:last-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .modal-box form button,
    div[id*="Modal"] form button {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }
}

@media (max-width: 480px) {
    .modal-box,
    .modal-overlay > div:not(.modal-dialog),
    div[id*="Modal"] > div,
    div[id*="modal"] > div {
        max-width: 98vw !important;
        padding: 12px !important;
    }
}

/* Modal Table Horizontal Scroll for Mobile */
.modal-box table,
div[id*="Modal"] table,
div[id*="modal"] table {
    display: block !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   GALLERY GRID CARD STYLES
   ========================================================================== */

.gallery-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* Fixed-height image area — all thumbnails same height regardless of source dimensions */
.gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

/* Hover zoom-in overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 72, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 26px;
    color: #ffffff;
}

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

/* Card bottom info strip */
.gallery-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.gallery-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0a4828;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-card-badge {
    display: inline-block;
    background: #e6f4ea;
    color: #0a4828;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid #a3e635;
    width: fit-content;
}

/* Responsive image height adjustments */
@media (max-width: 575.98px) {
    .gallery-img-wrap {
        height: 130px;
    }
    .gallery-card-title {
        font-size: 11.5px;
    }
}

@media (min-width: 992px) {
    .gallery-img-wrap {
        height: 175px;
    }
}

@media (min-width: 1400px) {
    .gallery-img-wrap {
        height: 195px;
    }
}