/* leadership/leadership.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

body { font-family: 'Inter', sans-serif !important; line-height: 1.6; color: var(--text-dark); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif !important; font-weight: 700; color: var(--rotary-blue); }

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Page Header */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-color: var(--rotary-blue);
    background-image: url('https://picsum.photos/id/1052/1920/1080');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 36, 108, 0.85);
    z-index: 1;
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 4rem; color: var(--rotary-gold); margin-bottom: 0.5rem; font-weight: 800; }
.page-header p { font-size: 1.2rem; opacity: 0.9; }

/* Section Headers */
.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* President Section */
.president-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.president-img {
    flex: 0 0 40%;
}

.president-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.president-info {
    padding: 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.president-info .badge {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(247, 168, 27, 0.2);
    color: var(--rotary-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--rotary-gold);
}

.president-info h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.president-info .bio { font-size: 1.15rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; line-height: 1.8; text-align: justify; }
.president-info .btn { align-self: flex-start; }

/* Board Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.profile-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition-smooth);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 36, 108, 0.1);
    border-color: var(--rotary-gold);
}

.profile-img {
    height: 250px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-img img { transform: scale(1.05); }

.profile-content { padding: 1.5rem; }
.profile-content h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.profile-content .role { color: var(--rotary-gold); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* Committee Heads Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.list-card {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--rotary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.list-card:hover {
    border-left-color: var(--rotary-gold);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.list-card h4 { font-size: 1.2rem; margin-bottom: 0.2rem; color: var(--text-dark); font-family: 'Inter', sans-serif !important; }
.list-card p { color: var(--rotary-blue); font-weight: 600; font-family: 'Playfair Display', serif !important; font-size: 1.3rem; margin: 0; }

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .president-card { flex-direction: column; }
    .president-img { height: 400px; }
}

@media screen and (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .president-info { padding: 2rem; }
}

/* Failsafe Vanilla Animations */
body.js-active .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
body.js-active .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }