/* Board Page Specific Styles - Following About Page Pattern */
/* Board Hero with Background Image - UPDATED PADDING */
.board-hero {
    height: 70vh;
    min-height: 500px;
    background: 
        linear-gradient(rgba(37, 99, 235, 0.7), rgba(59, 130, 246, 0.6)),
        url('../images/Stock/11.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px; /* Increased top padding from 100px to 120px */
    overflow-x: hidden;
    position: relative;
}

.board-hero .hero-content h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px; /* Added margin */
}

.board-hero .hero-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 10px;
    line-height: 1.6; /* Added line height */
}

.board-hero .hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px; /* Added margin */
}

.board-hero .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.board-hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.board-hero .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.board-hero .btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Executive Board Section - UPDATED IMAGE POSITIONING */
.executive-board {
    background: var(--bg-white);
    padding: 80px 0;
    overflow-x: hidden;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Clean board card design */
.board-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

/* Clean image container - UPDATED FOR BETTER HEAD POSITIONING */
.member-image-container,
.functionary-image-container {
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-image,
.functionary-image,
.council-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    background: white;
    position: relative;
    margin-bottom: 0;
}

/* UPDATED: Better image positioning to avoid head cutting */
.member-image img,
.functionary-image img,
.council-image img {
    width: 110%; /* Slightly larger to ensure full head coverage */
    height: 110%; /* Slightly larger to ensure full head coverage */
    object-fit: cover;
    object-position: center 20%; /* Adjusted to focus on face/head */
    position: relative;
    top: -5%; /* Shift up to show more head */
}

.member-info {
    padding: 25px 30px 30px;
    width: 100%;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.member-info .position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    display: block;
}

.member-info .description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Functionaries Section - UPDATED IMAGE POSITIONING */
.functionaries {
    background: var(--bg-light);
    padding: 80px 0;
    overflow-x: hidden;
}

.functionaries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    overflow: hidden;
}

/* Clean functionary card */
.functionary-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.functionary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.functionary-image-container {
    width: 100%;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.functionary-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    background: white;
    position: relative;
}

/* UPDATED: Better image positioning to avoid head cutting */
.functionary-image img {
    width: 110%; /* Slightly larger to ensure full head coverage */
    height: 110%; /* Slightly larger to ensure full head coverage */
    object-fit: cover;
    object-position: center 20%; /* Adjusted to focus on face/head */
    position: relative;
    top: -5%; /* Shift up to show more head */
}

.functionary-info {
    padding: 25px 30px 30px;
    width: 100%;
}

.functionary-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.functionary-info .position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: block;
}

.functionary-info .description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Governing Council Section - UPDATED IMAGE POSITIONING */
.governing-council {
    background: var(--bg-white);
    padding: 80px 0;
    overflow-x: hidden;
}

.council-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    overflow: hidden;
}

/* Clean council card */
.council-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px 25px;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.council-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.council-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    background: white;
    position: relative;
}

/* UPDATED: Better image positioning to avoid head cutting */
.council-image img {
    width: 110%; /* Slightly larger to ensure full head coverage */
    height: 110%; /* Slightly larger to ensure full head coverage */
    object-fit: cover;
    object-position: center 20%; /* Adjusted to focus on face/head */
    position: relative;
    top: -5%; /* Shift up to show more head */
}

.council-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.council-info .position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: block;
}

.council-info .description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* Board Mission Section */
.board-mission {
    background: var(--bg-light);
    padding: 80px 0;
    overflow-x: hidden;
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.mission-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.mission-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 500;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mission-stat {
    text-align: center;
}

.mission-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.mission-stat p {
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

/* Board CTA Section */
.board-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    overflow-x: hidden;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.board-cta .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.board-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.board-cta .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.board-cta .btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* Horizontal Scroll Prevention */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    overflow-x: hidden;
}

/* ===== BOARD PAGE PERFORMANCE OPTIMIZATION ===== */
/* Hardware acceleration for board page elements */
.board-hero, .board-card, .functionary-card, 
.council-card, .member-image, .council-image,
.functionary-image {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce repaints */
.board-grid, .functionaries-grid, .council-grid {
    contain: layout style paint;
}

/* Mobile header optimization for board page */
@media (max-width: 1023px) {
    .desktop-join-btn {
        display: none !important;
    }
    
    .header-right {
        gap: 12px;
    }
}

/* Desktop Styles */
@media (min-width: 1200px) {
    .board-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .council-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .mission-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile Optimization - UPDATED HERO PADDING */
@media (max-width: 767px) {
    .board-hero {
        height: 60vh;
        min-height: 400px;
        padding: 100px 20px 40px; /* Increased top padding for mobile */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Executive Board Mobile */
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    /* UPDATED: Mobile image positioning */
    .member-image img {
        width: 115%; /* Slightly larger on mobile */
        height: 115%; /* Slightly larger on mobile */
        object-position: center 25%; /* Adjusted for mobile */
    }

    .member-info {
        padding: 20px 25px 25px;
    }

    .member-image img {
        width: 115%; /* Slightly larger on mobile */
        height: 115%; /* Slightly larger on mobile */
        object-position: center 25%; /* Adjusted for mobile */
    }

    .mission-content h2 {
        font-size: 2rem;
    }

    .mission-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 200px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .board-hero {
        padding: 90px 15px 30px; /* Even more top padding for very small screens */
    }
    
    .board-hero .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .board-hero .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .board-hero .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}