/* ========= ADMIN & ANIMATION GREEN BLEND ========= */

:root {
    /* Main Green Palette */
    --primary: #15803d;      /* Deep Forest */
    --secondary: #10b981;    /* Vibrant Emerald */
    --accent-light: #f0fdf4; /* Mint/Sage Background */
    
    /* Neutrals */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

/* --- ANIMATION HELPER CLASSES --- */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- PAGE LAYOUT --- */

.admin-container {
    background: linear-gradient(to bottom, var(--accent-light) 0%, #ffffff 500px);
    padding-bottom: 80px; /* Reduced for better mobile flow */
}

.admin-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.admin-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.1;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    padding: 0 20px;
}

/* --- THE EXECUTIVE GRID --- */

.card-grid {
    display: grid;
    /* Intelligently fits as many 300px cards as possible per row */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* --- THE FLOATING CARD --- */

.admin-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.admin-card:hover {
    transform: translateY(-20px); 
    box-shadow: 0 25px 50px -12px rgba(21, 128, 61, 0.2); 
    border-color: var(--secondary); 
    z-index: 10;
}

.admin-card:active {
    transform: translateY(-15px) scale(0.98);
}

/* --- CARD CONTENT & OVERLAYS --- */

.image-wrapper {
    position: relative;
    height: 430px; /* Height for desktop */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --- FIX ADDED HERE --- */
    object-position: top center; 
    display: block;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Slightly taller gradient for better text legibility */
    background: linear-gradient(transparent, rgba(2, 44, 34, 0.95)); 
}

.card-info {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px; /* Added right bound for mobile text wrapping */
    z-index: 2;
    text-align: left;
}

.card-info h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 0.5;
}

.role {
    color: #86efac;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- PATRON SECTION STYLES --- */
.patron-section {
    padding: 60px 0 20px;
    background: linear-gradient(to bottom, #f0fdf4, #ffffff); /* Subtle fade */
}

.patron-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

/* Make Patron card slightly distinct */
.patron-card {
    width: 100%;
    max-width: 400px; /* Wider than normal exec cards */
    transform: scale(1.02); /* Subtle prominence */
    box-shadow: 0 15px 40px rgba(21, 128, 61, 0.1);
}

/* 1. Tighten the box itself */
.patron-card .card-info {
    padding-top: 5px;   /* Reduced from 10px */
    padding-bottom: 5px; /* Reduced from 10px */
}

/* 2. Remove invisible gaps around the Name */
.patron-card .card-info h3 {
    margin-top: 0;
    margin-bottom: 4px; /* Tiny gap between name and role */
    line-height: 1.1;   /* Brings lines of text closer together */
}

/* 3. Remove invisible gaps around the Role */
.patron-card .card-info .role {
    margin-bottom: 0;
    line-height: 1.1;
}


.patron-card .image-wrapper {
    height: 430px; /* Taller image for the Patron */
}

/* --- ADVISORS SECTION STYLES --- */
.advisors-section {
    padding: 60px 0 80px;
    background: #f8fafc; /* Light gray bg to separate from execs */
    border-top: 1px solid #e2e8f0;
}

/* Add this to your style.css */
.hidden {
    display: none !important;
}


/* --- CARD BUTTON --- */
.btn-outline-green {
    padding: 12px 30px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* See More Link Styled as a Button */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--primary); /* Deep Forest Green */
    border: 2px solid var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none; /* Removes default link underline */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 60px;
}

.btn-see-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Hover State */
.btn-see-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.2);
}

/* Move the arrow slightly on hover for a "pro" feel */
.btn-see-more:hover i {
    transform: translateX(5px);
}

/* Active/Click State */
.btn-see-more:active {
    transform: translateY(-1px);
}


/* --- CARD FOOTER --- */

.card-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.card-footer a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: color 0.3s;
}

.card-footer a:hover { color: var(--primary); }
.card-footer a i { color: var(--secondary); }

/* --- ANIMATED UNDERLINE --- */

.underlined {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.underlined::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    width: 0;
    animation: loadLine 1.2s ease-out forwards;
    animation-delay: 0.3s; 
}

@keyframes loadLine {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* --- TABLET (Up to 1024px) --- */
@media (max-width: 1024px) {
    .admin-hero h1 { font-size: 3rem; }
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on tablet */
        gap: 20px;
    }
}

/* --- MOBILE (Up to 768px) --- */
@media (max-width: 768px) {
    .admin-hero { padding: 60px 20px 20px; }
    .admin-hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    
    .card-grid { 
        grid-template-columns: 1fr; /* Single column on mobile */
        max-width: 400px; /* Keeps card from becoming too wide on large phones */
    }

    .image-wrapper {
        height: 380px; /* Slightly shorter image for mobile */
    }

    .admin-card:hover { 
        transform: translateY(-10px); /* Less dramatic lift for touch devices */
    }
}

/* --- SMALL MOBILE (Up to 480px) --- */
@media (max-width: 480px) {
    .admin-hero h1 { font-size: 1.8rem; }
    .card-info h3 { font-size: 1.4rem; }
    .image-wrapper { height: 340px; }
}

/* Ensure images maintain the high-quality look from your screenshots */
.admin-card .image-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    /* --- FIX ADDED HERE TOO --- */
    object-position: top center; 
    display: block;
}