/* Executive Board Section */
.executive-board-section {
    padding: 80px 0;
    background-image: url('../../asset/image/image_selection.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.executive-board-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(180deg, rgba(74, 144, 226, 0.85) 0%, rgba(107, 165, 227, 0.85) 50%, rgba(139, 185, 232, 0.85) 100%); */
    z-index: 1;
}

/* Watermark Container - at section level, not container */
.board-watermark-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    overflow: hidden;
}

.board-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    overflow: hidden;
}

.watermark-row {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 112px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.06;
    mix-blend-mode: overlay;
    white-space: nowrap;
    width: auto;
    text-align: left;
    word-spacing: 30px;
}

.executive-board-section .container {
    position: relative;
    z-index: 2;
}

.board-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.board-header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.board-header .col-md-8 {
    flex: 1;
    padding-right: 30px;
}

.board-header .col-md-4 {
    flex: 0 0 auto;
}

.board-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.board-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 0;
}

.btn-board {
    background: #FFFFFF;
    color: #0066b3;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-board:hover {
    background: #0066b3;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-board .icon-go {
    width: 20px;
    height: 20px;
}

/* Board Levels */
.board-level {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.board-level-1 {
    margin-bottom: 80px;
}

.board-level-2 {
    margin-bottom: 80px;
}

.board-level-3 {
    margin-bottom: 0;
    justify-content: center;
    position: relative;
    padding-top: 0;
}

/* Connecting Lines - Vertical from Level 1 to Level 2 */
.board-level-1::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    z-index: 1;
}

/* Connecting Lines - Vertical from Level 2 to Level 3 */
.board-level-2::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    z-index: 1;
}

/* Horizontal line connecting all level 3 members */
.board-level-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 900px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    z-index: 1;
}

.board-level-3 .row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 50px;
    flex-wrap: wrap;
}

/* Vertical lines from horizontal line to each member */
.board-level-3 .row > div {
    position: relative;
}

/* Make sure the line is visible - using !important for debugging */
.board-level-3 .row > div::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 2px !important;
    z-index: 1 !important;
    display: block !important;
}

/* Alternative selector to ensure all columns get the line */
.board-level-3 [class*="col-"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    z-index: 1;
    display: block;
}

.board-level-3 [class*="col-"] {
    position: relative;
}

/* Board Member */
.board-member {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 2;
    padding-top: 0;
}

.board-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 6px solid #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.board-level-1 .member-avatar {
    width: 200px;
    height: 200px;
    border: 7px solid #FFFFFF;
}

.board-level-2 .member-avatar {
    width: 180px;
    height: 180px;
    border: 6px solid #FFFFFF;
}

.board-member:hover .member-avatar {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-placeholder {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.3) 0%, rgba(203, 213, 225, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.member-placeholder img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    opacity: 0.6;
}

.member-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.board-level-1 .member-name {
    font-size: 20px;
    color: #FFFFFF;
}

.board-level-2 .member-name {
    font-size: 18px;
    color: #FFFFFF;
}

.member-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: 0;
    font-weight: 500;
}

.board-level-1 .member-position {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.board-level-2 .member-position {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 991px) {
    .watermark-row {
        font-size: 72px;
        word-spacing: 20px;
    }
    
    .board-header .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .board-header .col-md-8 {
        flex: 1 1 100%;
        padding-right: 15px;
    }
    
    .board-header .col-md-4 {
        flex: 1 1 100%;
    }
    
    .board-header .text-right {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .board-title {
        font-size: 28px;
    }
    
    .btn-board {
        margin-top: 20px;
    }
    
    .board-level-1 .member-avatar {
        width: 180px;
        height: 180px;
    }
    
    .board-level-2 .member-avatar {
        width: 160px;
        height: 160px;
    }
    
    .member-avatar {
        width: 130px;
        height: 130px;
    }
    
    /* Adjust connecting lines on tablet */
    .board-level-3::before {
        width: 80%;
    }
}

@media (max-width: 767px) {
    .watermark-row {
        font-size: 48px;
        word-spacing: 15px;
    }
    
    .executive-board-section {
        padding: 60px 0;
    }
    
    .board-header {
        margin-bottom: 50px;
    }
    
    .board-title {
        font-size: 24px;
    }
    
    .board-description {
        font-size: 14px;
    }
    
    .board-header .text-right {
        text-align: left !important;
    }
    
    .board-level-1,
    .board-level-2 {
        margin-bottom: 50px;
    }
    
    .board-level-1 .member-avatar {
        width: 150px;
        height: 150px;
    }
    
    .board-level-2 .member-avatar {
        width: 140px;
        height: 140px;
    }
    
    .member-avatar {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
    
    .member-name {
        font-size: 14px;
    }
    
    .board-level-1 .member-name {
        font-size: 16px;
    }
    
    .board-level-2 .member-name {
        font-size: 15px;
    }
    
    .member-position {
        font-size: 12px;
    }
    
    .board-level-1 .member-position {
        font-size: 14px;
    }
    
    .board-level-2 .member-position {
        font-size: 13px;
    }
    
    /* Adjust connecting lines on mobile */
    .board-level-1::after,
    .board-level-2::after {
        height: 50px;
        bottom: -50px;
    }
    
    .board-level-3 .row {
        padding-top: 40px;
    }
    
    .board-level-3 .row > div::before {
        height: 40px;
    }
}

@media (max-width: 575px) {
    .watermark-row {
        font-size: 32px;
        word-spacing: 10px;
    }
    
    .board-level-3 .col-xs-6 {
        width: 50%;
        float: left;
    }
    
    .member-avatar {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 11px;
    }
    
    .member-position {
        font-size: 10px;
    }
    
    /* Hide connecting lines on very small screens for cleaner look */
    .board-level-1::after,
    .board-level-2::after,
    .board-level-3::before,
    .board-level-3 .row > div::before {
        display: none;
    }
}
