/* Premium Organizational Structure Styling */

/* --- Intro Section --- */
.structure-intro {
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.structure-intro p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* --- Hierarchy Lines (Optional Decorative) --- */
/* We can use ::before/::after on sections to simulate tree connections if needed, 
   but for responsive cleanliness, we'll focus on distinctly styled tiers. */

/* --- Tier 1: Top Leadership (The Apex) --- */
.leadership-section {
    padding: 60px 0 80px;
    background: #fff;
    position: relative;
    text-align: center;
}

.leadership-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.leadership-card {
    background: #fff;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Deep soft shadow */
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    border-top: 5px solid var(--brand-primary);
    /* Red Top */
}

/* President Card - Distinguish it */
.leadership-card.president-card {
    transform: scale(1.1);
    /* Slightly larger */
    border-top-color: var(--brand-accent);
    /* Gold Top */
    z-index: 2;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    /* Golden Glow */
}

.leadership-card:hover {
    /* Hover effect for normal cards */
    transform: translateY(-10px);
}

.leadership-card.president-card:hover {
    transform: scale(1.1) translateY(-10px);
}

.leader-avatar-box {
    width: 120px;
    height: 120px;
    margin: 40px auto 20px;
    border-radius: 50%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #ccc;
    font-size: 3rem;
}

.president-card .leader-avatar-box {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    background: #fffdf5;
}

.leader-details {
    padding: 0 20px 40px;
}

.leader-details h3 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 800;
}

.leader-details span {
    display: block;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Tier 2: Secretariats (The Engine) --- */
.secretariats-section {
    background-color: #fcfcfc;
    padding: 80px 0;
    position: relative;
    border-top: 1px solid #eee;
}

.secretariats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.secretariat-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secretariat-card::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: right;
}

.secretariat-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.secretariat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sec-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 0, 0, 0.05);
    color: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.secretariat-card:hover .sec-icon {
    background: var(--brand-primary);
    color: #fff;
}

.secretariat-card h4 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.secretariat-card p {
    /* If we add descriptions later */
    font-size: 0.9rem;
    color: #777;
}

/* --- Tier 3: Committees (The Support) --- */
.committees-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* 4 cards easily fit */
    gap: 30px;
    margin-top: 40px;
}

.committee-card {
    background: #fff;
    border: 2px solid #f4f4f4;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.committee-card:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comm-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fffdf0;
    /* Light gold tint */
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.committee-cardWrapper {
    /* For text stacking */
}

.committee-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .leadership-card.president-card {
        transform: none;
        order: -1;
        /* Keep top on mobile */
        width: 100%;
        max-width: 350px;
    }

    .leadership-card {
        width: 100%;
        max-width: 350px;
    }

    .leadership-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .leadership-card.president-card:hover {
        transform: translateY(-5px);
    }
}