/* Leadership Page Styles - Professional Edition */
:root {
    --primary-color: #5B0000;
    --secondary-color: #C18E11;
    --bg-color-light: #f8f5ec;
    --bg-color-dark: #2D0000;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}
@media (max-width: 768px) {
  .page-hero {
    min-height: 300px;
    height: 40vh;
    background-attachment: scroll;
    /* Disable parallax on mobile for better performance */
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .page-hero .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 250px;
    height: 35vh;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}
/* Leadership Section */
.leadership-section {
    padding: 40px 8%;
    position: relative;
}

.container{
    max-width: 1400px;
    margin: 0 auto;
}

.leadership-section.bg-light {
    background-color: var(--bg-light);
    padding-top: 5px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

/* Centered Row for Chairman and Deputy GM */
.centered-row {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.center-leader {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.center-leader:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.center-leader .member-image {
    height: 150px;
    width: 150px;
    margin: 30px auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.center-leader .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.center-leader:hover .member-image img {
    transform: scale(1.03);
}

.center-leader .member-info {
    padding: 0 30px 30px;
}

.center-leader .member-name {
    font-size: 1.375rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.center-leader .member-title {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.center-leader .member-role {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Directors Row (4 Board Directors) */
.directors-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
}

.director-card {
    flex: 0 0 calc(25% - 25px);
    max-width: calc(25% - 25px);
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.director-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.director-card .member-image {
    height: 120px;
    width: 120px;
    margin: 25px auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.director-card .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.director-card:hover .member-image img {
    transform: scale(1.03);
}

.director-card .member-info {
    padding: 0 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.director-card .member-name {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.director-card .member-title {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    font-weight: 500;
}

/* AGM Row (3 Assistant GMs) */
.agm-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
}

.agm-card {
    flex: 0 0 calc(33.333% - 25px);
    max-width: calc(33.333% - 25px);
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.agm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.agm-card .member-image {
    height: 120px;
    width: 120px;
    margin: 25px auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.agm-card .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.agm-card:hover .member-image img {
    transform: scale(1.03);
}

.agm-card .member-info {
    padding: 0 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.agm-card .member-name {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.agm-card .member-title {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.agm-card .member-role {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

/* View Profile Button */
.btn-view-profile {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    width: auto;
    min-width: 140px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-profile:hover {
    background: var(--primary-color);
}

.btn-view-profile:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Modal Styles */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    margin: 7.5vh auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
    line-height: 1.3;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    border-radius: 4px;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:focus {
    outline: 2px solid var(--white);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.modal-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-description {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .director-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    
    .agm-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 992px) {
    .leadership-section {
        padding: 60px 4%;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .centered-row {
        margin-bottom: 50px;
    }
    
    .center-leader {
        max-width: 400px;
    }
    
    .center-leader .member-image {
        height: 140px;
        width: 140px;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 50px 4%;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .centered-row {
        margin-bottom: 40px;
    }
    
    .center-leader {
        max-width: 360px;
    }
    
    .center-leader .member-image {
        height: 130px;
        width: 130px;
    }
    
    .director-card,
    .agm-card {
        flex: 0 0 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .modal-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-image {
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .leadership-section {
        padding: 40px 4%;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .center-leader .member-image {
        height: 120px;
        width: 120px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5vh auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}