/* --- FRONTPAGE STYLES (With Variables) --- */

:root {
    /* 🎨 Color Palette */
    --mha-fp-primary: #39624c;       /* Main Brand Color (Dark Green) */
    --mha-fp-secondary: #2d5643;     /* Hover/Active State */
    --mha-fp-accent-gallery: #2d5643;/* Gallery Accent */
    --mha-fp-accent-figures: #3e6752;/* Figures Accent */
    
    --mha-fp-dark: #212529;          /* Dark Text */
    --mha-fp-muted: #6c757d;         /* Muted Text */
    --mha-fp-light: #f8f9fa;         /* Light Backgrounds */
    --mha-fp-border: #e9ecef;        /* Borders */
    
    --mha-fp-card-bg: #fff;          /* Card Background */
    --mha-fp-img-bg: #f0f2f5;        /* Image Placeholder BG */
}

/* Wrapper */
.mha-frontpage-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- THEME OVERRIDES (Force Bootstrap to use your Green) --- */
.mha-frontpage-wrapper .text-primary {
    color: var(--mha-fp-primary) !important;
}

.mha-frontpage-wrapper .btn-primary {
    background-color: var(--mha-fp-primary);
    border-color: var(--mha-fp-primary);
}

.mha-frontpage-wrapper .btn-primary:hover,
.mha-frontpage-wrapper .btn-primary:focus {
    background-color: var(--mha-fp-secondary);
    border-color: var(--mha-fp-secondary);
}

.mha-frontpage-wrapper .btn-outline-primary {
    color: var(--mha-fp-primary);
    border-color: var(--mha-fp-primary);
}

.mha-frontpage-wrapper .btn-outline-primary:hover {
    background-color: var(--mha-fp-primary);
    color: #fff;
}

/* --- HERO HEADER --- */
.mha-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mha-fp-dark);
    margin-bottom: 10px;
}
.mha-hero-subtitle {
    font-size: 1.1rem;
    color: var(--mha-fp-muted);
}

/* --- PARTICIPATION BAR (New) --- */
/* This targets the container with border/shadow we added in PHP */
.mha-frontpage-wrapper .bg-white.border.shadow-sm {
    border-color: var(--mha-fp-border) !important;
    background-color: var(--mha-fp-card-bg) !important;
    transition: transform 0.2s ease;
}

.mha-frontpage-wrapper .bg-white.border.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
}

/* Section Headers */
.mha-fp-section-title {
    font-weight: 700;
    padding-left: 15px; /* RTL fix */
    color: var(--mha-fp-dark);
}
.mha-fp-section-title.gallery { border-left: 5px solid var(--mha-fp-accent-gallery); }
.mha-fp-section-title.figures { border-left: 5px solid var(--mha-fp-accent-figures); }

/* --- CARDS (Gallery & Figures) --- */
.mha-fp-card {
    border: none !important;
    background: var(--mha-fp-card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: 100%;
    border-radius: 12px;
}
.mha-fp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mha-fp-img-wrap {
    height: 180px;
    background: var(--mha-fp-img-bg);
    overflow: hidden;
    position: relative;
}

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

.mha-fp-card:hover .mha-fp-img-wrap img {
    transform: scale(1.1);
}

.mha-fp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mha-fp-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- SIMPLE LISTS (Landmarks & Memory) --- */
.mha-fp-box {
    background: var(--mha-fp-card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--mha-fp-border);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mha-fp-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* 1. Base Padding (so it doesn't jump from 0) */
    padding: 15px 10px; 
    border-bottom: 1px solid var(--mha-fp-border);
    
    /* 2. Pre-set Border Radius */
    border-radius: 8px;
    
    /* 3. ULTRA SMOOTH TRANSITION */
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mha-fp-list-item:last-child {
    border-bottom: none;
}

.mha-fp-list-item:hover {
    background-color: var(--mha-fp-light);
    
    /* 4. Smooth Slide Effect (Increase padding) */
    padding-right: 25px; 
    
    /* Optional: Remove border on hover for cleaner look */
    border-color: transparent; 
}

/* 5. Optional: Animate the small icon/image too */
.mha-fp-list-item .mha-fp-thumb-small {
    transition: transform 0.35s ease;
}

.mha-fp-list-item:hover .mha-fp-thumb-small {
    transform: scale(1.1) rotate(5deg);
}

/* Base Thumb Styles (Unchanged) */
.mha-fp-thumb-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mha-fp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mha-fp-muted);
    font-size: 1.2rem;
}