﻿.authority-wrapper {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: rgb(0 0 0 / 25%) 0px 54px 55px, rgb(0 0 0 / 12%) 0px -12px 30px, rgb(0 0 0 / 12%) 0px 4px 6px, rgb(0 0 0 / 17%) 0px 12px 13px, rgb(0 0 0 / 9%) 0px -3px 5px;
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Heading */
.authority-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1c7c54;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
}

    .authority-heading::after {
        content: "";
        display: block;
        width: 100px;
        height: 3px;
        background: #ffd700;
        margin: 12px auto 0;
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .authority-heading:hover::after {
        width: 140px;
    }

/* Chairman card (full width, centered) */
.chairman-card {
    max-width: 400px;
    margin: 0 auto 40px auto;
    background: linear-gradient(135deg, #ffffff, #f9f6ef);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #d4af37;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

    .chairman-card:hover {
        transform: translateY(-6px) scale(1.02);
        border: 2px solid #d4af37;
        box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    }

/* Grid for members */
.authority-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

/* Member cards */
.authority-card {
    background: linear-gradient(135deg, #ffffff, #f9f6ef);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #d4af37;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

    .authority-card:hover {
        transform: translateY(-6px) scale(1.02);
        border: 2px solid #d4af37;
        box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    }

/* Image (same size for all) */
.authority-img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* ✅ shows full picture */
    background: #f9f9f9;
    padding: 10px;
    border-bottom: 3px solid #d4af37;
}

/* Info */
.authority-info {
    padding: 15px;
}

.authority-name {
    font-size: 18px;
    font-weight: 600;
    color: #1c4e80;
    margin-bottom: 6px;
}

.authority-role {
    font-size: 14px;
    color: #555;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .authority-img {
        height: 200px;
    }
}
