/* ==========================================================================
   Leo Executive Board 2026-27 - Red Theme Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --leo-red-primary: #DC143C;
    --leo-red-dark: #8B0000;
    --leo-red-glow: rgba(220, 20, 60, 0.4);
    --leo-gold-primary: #FFD700;
    --leo-gold-light: #FFE57F;
    --leo-gold-gradient: linear-gradient(135deg, #FFF099 0%, #FFD700 50%, #D4AF37 100%);
    --leo-bg-dark: #080306;
    --leo-card-bg: rgba(26, 8, 16, 0.55);
    --leo-card-border: rgba(220, 20, 60, 0.25);
    --leo-card-border-hover: rgba(255, 215, 0, 0.6);
    --leo-text-light: #FFFFFF;
    --leo-text-muted: #E0D0D8;
    --leo-font-heading: 'Cinzel', serif;
    --leo-font-body: 'Poppins', sans-serif;
}

/* Set background color of the wrapper */

/* Container */
.leo-exco-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #080306 url('../images/red-lion-bg.png') center center / cover no-repeat fixed;
    color: var(--leo-text-light);
    font-family: var(--leo-font-body);
    padding: 60px 20px 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark Overlay for optimal readability */
.leo-exco-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(12, 3, 7, 0.4) 0%, rgba(5, 1, 3, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Background Watermark & Lighting */
.leo-exco-bg-glow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, rgba(139, 0, 0, 0.05) 50%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}

.leo-exco-lion-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 15% 50%, rgba(220, 20, 60, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(220, 20, 60, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.leo-exco-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 2;
}

/* Header Section */
.leo-exco-header {
    text-align: center;
    margin-bottom: 50px;
}

.leo-exco-title {
    font-family: var(--leo-font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--leo-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 8px 0;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.leo-exco-subtitle {
    font-family: var(--leo-font-heading);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--leo-gold-primary);
    letter-spacing: 3px;
    margin: 0 0 15px 0;
}

.leo-exco-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--leo-red-primary), var(--leo-gold-primary), var(--leo-red-primary), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Row Grids */
.leo-exco-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 40px;
}

/* Specific Row Sizing */
.leo-exco-row-1 .leo-card {
    width: 275px;
}

.leo-exco-row-2 .leo-card {
    width: min(259px, calc(33.333% - 20px));
}

.leo-exco-row-3 .leo-card,
.leo-exco-row-4 .leo-card {
    width: min(219px, calc(25% - 21px));
}

/* Card Styling */
.leo-card {
    background: var(--leo-card-bg);
    border: 1px solid var(--leo-card-border);
    border-radius: 20px;
    padding: 24px 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.leo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--leo-red-primary), transparent);
    transition: all 0.4s ease;
}

.leo-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--leo-card-border-hover);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.25), 0 0 20px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.leo-card:hover::before {
    width: 90%;
    background: linear-gradient(90deg, transparent, var(--leo-gold-primary), transparent);
}

/* Featured President Card */
.leo-card-president {
    padding: 30px 24px;
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.3), inset 0 1px 0 rgba(255, 215, 0, 0.2);
    background: linear-gradient(180deg, rgba(45, 10, 25, 0.7) 0%, rgba(20, 5, 12, 0.7) 100%);
}

/* Avatar Styling */
.leo-avatar-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 20px;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 3px;
    background: linear-gradient(135deg, var(--leo-red-primary) 0%, rgba(220, 20, 60, 0.4) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.leo-card:hover .leo-avatar-wrapper {
    background: linear-gradient(135deg, var(--leo-gold-primary) 0%, var(--leo-red-primary) 100%);
    box-shadow: 0 12px 30px rgba(220, 20, 60, 0.35), 0 0 20px rgba(255, 215, 0, 0.2);
}

.leo-avatar-img,
.leo-avatar-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 17px !important;
    background-color: #1a0810;
    display: block !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Social Media Overlay */
.leo-social-overlay {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 12px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.leo-card:hover .leo-social-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.leo-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a0810;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.leo-social-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.leo-social-btn:hover {
    background: var(--leo-red-primary);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.5);
}

.leo-social-btn:hover svg {
    transform: scale(1.1);
}

/* Text Content */
.leo-member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--leo-text-light);
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.leo-card-president .leo-member-name {
    font-size: 1.35rem;
}

.leo-member-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--leo-gold-primary);
    margin: 0;
    line-height: 1.3;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.leo-card-president .leo-member-title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {

    .leo-exco-row-2 .leo-card,
    .leo-exco-row-3 .leo-card,
    .leo-exco-row-4 .leo-card {
        width: calc(50% - 15px);
        max-width: 259px;
    }
}

@media screen and (max-width: 640px) {
    .leo-exco-wrapper {
        padding: 40px 15px 50px 15px;
    }

    .leo-exco-row {
        gap: 20px;
    }

    .leo-card,
    .leo-exco-row-1 .leo-card,
    .leo-exco-row-2 .leo-card,
    .leo-exco-row-3 .leo-card,
    .leo-exco-row-4 .leo-card {
        width: 100%;
        max-width: 259px;
    }

    .leo-avatar-wrapper {
        width: 105px;
        height: 105px;
    }

    .leo-card-president .leo-avatar-wrapper {
        width: 121px;
        height: 121px;
    }
}

/* ==========================================================================
   Board of Directors (Units & Avenues)
   ========================================================================== */

.leo-directors-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    position: relative;
}

.leo-category-title-container {
    text-align: center;
    margin-bottom: 35px;
    margin-top: 50px;
}

.leo-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25) 0%, rgba(139, 0, 0, 0.35) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    border-radius: 30px;
    padding: 8px 26px;
}

.leo-category-badge-text {
    font-family: var(--leo-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--leo-gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.leo-directors-grid,
.leo-avenues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 50px;
}

.leo-director-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 580px;
    justify-self: center;
}

.leo-director-card {
    background: var(--leo-card-bg);
    border: 1px solid var(--leo-card-border);
    border-radius: 24px;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.leo-director-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--leo-red-primary), transparent);
    transition: all 0.4s ease;
}

.leo-director-card:hover {
    transform: translateY(-6px);
    border-color: var(--leo-card-border-hover);
    box-shadow: 0 18px 40px rgba(220, 20, 60, 0.25), 0 0 25px rgba(255, 215, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.leo-director-card:hover::before {
    width: 90%;
    background: linear-gradient(90deg, transparent, var(--leo-gold-primary), transparent);
}

.leo-director-card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.leo-director-card-title {
    font-family: var(--leo-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--leo-text-light);
    line-height: 1.35;
    margin: 0;
}

.leo-director-card-sub {
    display: none !important;
}

.leo-directors-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: auto;
}

.leo-director-slot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 280px;
    justify-self: center;
}

.leo-director-slot {
    background: rgba(15, 4, 10, 0.65);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 18px;
    padding: 22px 14px;
    text-align: center;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leo-director-slot:hover {
    background: rgba(35, 10, 22, 0.9);
    border-color: rgba(255, 215, 0, 0.45);
    transform: translateY(-4px) scale(1.03);
}

.leo-director-avatar-mini {
    position: relative;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 4 / 5;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 3px;
    background: linear-gradient(135deg, var(--leo-red-primary) 0%, var(--leo-gold-primary) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(220, 20, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--leo-gold-primary);
    font-weight: 700;
    font-size: 1.6rem;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.leo-director-slot:hover .leo-director-avatar-mini {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), 0 0 20px rgba(220, 20, 60, 0.5);
    transform: scale(1.04);
}

.leo-director-avatar-mini .leo-avatar-img,
.leo-director-avatar-mini img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    background-color: #1a0810;
    display: block !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.leo-director-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--leo-text-light);
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-break: break-word;
}

.leo-director-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--leo-gold-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.95;
}

@media screen and (max-width: 900px) {
    .leo-directors-grid,
    .leo-avenues-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    .leo-directors-list {
        grid-template-columns: 1fr;
    }

    .leo-director-avatar-mini {
        max-width: 140px;
        font-size: 1.2rem;
    }
}