/* ============================================================
   LEADERSHIP PAGE — css/leadership.css (ORGANOGRAM STYLE)
   Supports 3 directors side by side with proper connecting lines
   ============================================================ */

/* ---- Section padding ---- */
.page-leadership .section {
    padding: 50px 80px;
}

/* ---- Headings: full width, left-aligned ---- */
.page-leadership .section h2 {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: 28px;
    margin-bottom: 8px;
    text-align: left;
}

.page-leadership .section-subtitle {
    font-size: 1.15rem;
    color: #555;
    text-align: left;
    max-width: 700px;
    margin: -5px 0 40px 0;
    line-height: 1.6;
}

/* ============================================================
   ORGANOGRAM TREE STRUCTURE
   ============================================================ */

.page-leadership .org-container {
    max-width: 1300px;  /* increased to fit 3 directors */
    margin: 0 auto;
    padding: 20px 0 40px 0;
    overflow-x: auto;
}

.page-leadership .org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   CEO LEVEL
   ============================================================ */

.page-leadership .org-level-ceo {
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 60px;
}

/* Vertical line from CEO down */
.page-leadership .org-level-ceo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 60px;
    background: var(--asm-gold, #c9a84c);
}

/* ============================================================
   DIRECTORS LEVEL (3 columns)
   ============================================================ */

.page-leadership .org-level-directors {
    display: flex;
    justify-content: center;
    gap: 30px;           /* reduced from 50px to fit 3 */
    position: relative;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* Horizontal line connecting directors (spans across all 3) */
.page-leadership .org-level-directors::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;           /* wider to span 3 directors */
    width: 80%;          /* wider to span 3 directors */
    max-width: 900px;    /* larger max width for 3 */
    height: 3px;
    background: var(--asm-gold, #c9a84c);
}

/* ============================================================
   INDIVIDUAL DIRECTOR ITEMS
   ============================================================ */

.page-leadership .org-director-item {
    position: relative;
    padding-top: 50px;
    flex: 0 1 280px;     /* smaller to fit 3 */
    max-width: 320px;    /* smaller to fit 3 */
    min-width: 220px;    /* smaller to fit 3 */
    display: flex;
    justify-content: center;
}

/* Vertical line from horizontal bar down to director card */
.page-leadership .org-director-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 50px;
    background: var(--asm-gold, #c9a84c);
}

/* ============================================================
   CEO CARD
   ============================================================ */

.page-leadership .org-card.ceo {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 45px 30px;
    box-shadow: 0 4px 25px rgba(178, 34, 34, 0.15);
    border-top: 5px solid var(--asm-gold, #c9a84c);
    text-align: center;
    max-width: 450px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-leadership .org-card.ceo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(178, 34, 34, 0.2);
}

/* ============================================================
   DIRECTOR CARD
   ============================================================ */

.page-leadership .org-card.director {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px 20px;
    box-shadow: 0 2px 15px rgba(178, 34, 34, 0.08);
    border-top: 4px solid var(--asm-red, #b22222);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    position: relative;
}

.page-leadership .org-card.director:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(178, 34, 34, 0.15);
}

/* ============================================================
   PHOTOS (SMALLER TO FIT 3)
   ============================================================ */

.page-leadership .org-photo {
    width: 110px;        /* reduced from 130px */
    height: 110px;       /* reduced from 130px */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--asm-gold, #c9a84c);
    display: block;
    margin: 0 auto 12px auto;
    background: #f0f0f0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-leadership .org-photo:hover {
    transform: scale(1.05);
    border-color: var(--asm-red, #b22222);
}

.page-leadership .org-card.ceo .org-photo {
    width: 160px;
    height: 160px;
    border-width: 5px;
}

/* ============================================================
   FALLBACK AVATAR (SMALLER TO FIT 3)
   ============================================================ */

.page-leadership .org-avatar {
    width: 110px;        /* reduced from 130px */
    height: 110px;       /* reduced from 130px */
    border-radius: 50%;
    background: var(--asm-red, #b22222);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;     /* reduced from 38px */
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 auto 12px auto;
    border: 4px solid var(--asm-gold, #c9a84c);
}

.page-leadership .org-card.ceo .org-avatar {
    width: 160px;
    height: 160px;
    font-size: 50px;
    border-width: 5px;
}

/* ============================================================
   CARD TEXT
   ============================================================ */

.page-leadership .org-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    color: var(--asm-red, #b22222);
    margin: 0 0 2px 0;
}

.page-leadership .org-card.ceo h3 {
    font-size: 28px;
}

.page-leadership .org-card .org-title {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.page-leadership .org-card.ceo .org-title {
    font-size: 1.1rem;
    color: var(--asm-gold, #c9a84c);
}

.page-leadership .org-card .org-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #111827;
    margin: 0 0 8px 0;
    text-align: left;
}

.page-leadership .org-card .org-bio:last-child {
    margin-bottom: 0;
}

.page-leadership .org-card .org-bio strong {
    color: var(--asm-red, #b22222);
}

/* ============================================================
   ACHIEVEMENTS LIST
   ============================================================ */

.page-leadership .org-achievements {
    list-style: none;
    padding: 0;
    margin: 10px 0 10px 0;
    text-align: left;
}

.page-leadership .org-achievements li {
    padding: 3px 0 3px 22px;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #111827;
}

.page-leadership .org-achievements li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--asm-gold, #c9a84c);
    font-weight: bold;
}

/* ============================================================
   FUTURE PLACEHOLDER
   ============================================================ */

.page-leadership .org-card.future {
    border-top-color: #ccc;
    opacity: 0.6;
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f9f9f9;
}

.page-leadership .org-card.future .org-avatar {
    background: #ccc;
    border-color: #ccc;
    font-size: 30px;
    color: #999;
}

.page-leadership .org-card.future h3 {
    color: #999;
}

.page-leadership .org-card.future .org-title {
    color: #999;
}

.page-leadership .org-card.future .org-bio {
    color: #999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet: 1024px and below (3 directors start to squeeze) --- */
@media (max-width: 1024px) {
    .page-leadership .org-director-item {
        flex: 0 1 260px;   /* even smaller on tablet */
        max-width: 300px;
    }
    .page-leadership .org-level-directors {
        gap: 20px;         /* tighter gap on tablet */
    }
    .page-leadership .org-photo {
        width: 100px;
        height: 100px;
    }
    .page-leadership .org-avatar {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
}

/* --- Mobile: 768px and below (stack vertically) --- */
@media (max-width: 768px) {
    .page-leadership .section {
        padding: 35px 20px;
    }
    
    .page-leadership .section h2 {
        font-size: 24px;
    }
    
    .page-leadership .section-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .page-leadership .org-level-ceo {
        padding-bottom: 40px;
    }
    
    .page-leadership .org-level-ceo::after {
        height: 40px;
    }
    
    .page-leadership .org-level-directors {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0;
    }
    
    .page-leadership .org-level-directors::before {
        display: none;  /* hide horizontal bar on mobile */
    }
    
    .page-leadership .org-director-item {
        padding-top: 40px;
        flex: 0 1 auto;
        width: 100%;
        max-width: 400px;
        min-width: unset;
    }
    
    .page-leadership .org-director-item::before {
        height: 40px;
    }
    
    /* Only show vertical line on first director on mobile */
    .page-leadership .org-director-item:first-child::before {
        height: 40px;
    }
    
    /* Hide lines on other directors on mobile */
    .page-leadership .org-director-item:not(:first-child)::before {
        display: none;
    }
    
    .page-leadership .org-card.ceo {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .page-leadership .org-card.ceo .org-photo {
        width: 130px;
        height: 130px;
    }
    
    .page-leadership .org-card.ceo .org-avatar {
        width: 130px;
        height: 130px;
        font-size: 38px;
    }
    
    .page-leadership .org-card.ceo h3 {
        font-size: 24px;
    }
    
    .page-leadership .org-photo {
        width: 100px;
        height: 100px;
    }
    
    .page-leadership .org-avatar {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
    
    .page-leadership .org-card h3 {
        font-size: 18px;
    }
    
    .page-leadership .org-card .org-bio {
        font-size: 0.9rem;
    }
}

/* --- Small Mobile: 480px and below --- */
@media (max-width: 480px) {
    .page-leadership .section {
        padding: 20px 12px;
    }
    
    .page-leadership .section h2 {
        font-size: 20px;
    }
    
    .page-leadership .org-card {
        padding: 16px 12px;
    }
    
    .page-leadership .org-photo {
        width: 80px;
        height: 80px;
    }
    
    .page-leadership .org-avatar {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
    
    .page-leadership .org-card.ceo .org-photo {
        width: 110px;
        height: 110px;
    }
    
    .page-leadership .org-card.ceo .org-avatar {
        width: 110px;
        height: 110px;
        font-size: 32px;
    }
    
    .page-leadership .org-card h3 {
        font-size: 16px;
    }
    
    .page-leadership .org-card .org-bio {
        font-size: 0.85rem;
    }
}