/* Administrative Body Page Styles */

/* --- Main Layout --- */
.admin-body-section {
    padding: 30px 0;
    /* Reduced top padding to pull content up */
    min-height: 80vh;
    /* Dark Theme Gradient (Teal) - Good for eyes & matches Theme */
    background-color: var(--primary-teal);
    background-image: linear-gradient(180deg, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
}

/* --- Section Header --- */
.admin-body-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.admin-body-section .section-header h2 {
    color: var(--white);
    /* White text for contrast on dark bg */
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-body-section .section-header p {
    color: var(--primary-teal-ultra-light);
    /* Light text */
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* --- Grid Layout --- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns in one row for Desktop */
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Card Styling --- */
.admin-card {
    background: var(--accent-gold);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-gold);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    border-color: var(--navbar-border);
}

/* Inner Layout */
.admin-card-inner {
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* --- Image Styling --- */
.admin-image-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--cream-warm);
}

.admin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

/* Card Hover Interactions */
.admin-card:hover .admin-image-wrapper {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(232, 165, 32, 0.2);
}

.admin-card:hover .admin-image {
    transform: scale(1.1);
}

/* --- Typography --- */
.admin-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-maroon);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.admin-card:hover .admin-name {
    color: var(--secondary-maroon);
}

.admin-post {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--secondary-maroon-dark);
    background: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-card:hover .admin-post {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
}

/* --- Footer Wave Override --- */
.custom-shape-divider-top .shape-fill {
    fill: var(--primary-teal) !important;
}

/* --- Responsive Design --- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 Grid */
        gap: 1.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row on mobile */
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .admin-card {
        max-width: none;
        margin: 0;
        width: 100%;
    }

    /* Adjust image size for 2-column layout on mobile */
    .admin-image-wrapper {
        width: 130px;
        height: 130px;
        margin-bottom: 1.5rem;
        border-width: 4px;
    }

    .admin-card-inner {
        padding: 1.5rem 0.5rem;
    }

    .admin-name {
        font-size: 1.05rem;
    }

    .admin-post {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}