/* ===== RESET & BASE STYLES ===== */
/* Add these styles to board.css */
.vps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

/* For mobile, adjust VP layout */
@media (max-width: 768px) {
    .vps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .vps-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* Updated VP order for mobile layout */
.mobile-layout .board-member.vp:nth-child(1) { order: 5; }
.mobile-layout .board-member.vp:nth-child(2) { order: 6; }
.mobile-layout .board-member.vp:nth-child(3) { order: 7; }
.mobile-layout .board-member.vp:nth-child(4) { order: 8; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html,body{
    overflow-x: hidden;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1;
    color: #333;
    background-color: #ffffff; /* Changed to white */
    padding-top: 0;
    font-size: larger;
    position: relative;
    overflow-x: hidden;
}
/* ===== ANIMATED BUBBLES BACKGROUND ===== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background-color: rgba(41, 91, 120, 0.15); /* Current blue color with transparency */
    border-radius: 50%;
    animation: float 15s infinite ease-in;
    opacity: 0.7;
}

/* Left side bubbles */
.bubble.left-1 {
    width: 40px;
    height: 40px;
    left: 5%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.bubble.left-2 {
    width: 60px;
    height: 60px;
    left: 8%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.bubble.left-3 {
    width: 30px;
    height: 30px;
    left: 3%;
    animation-duration: 22s;
    animation-delay: 4s;
}

.bubble.left-4 {
    width: 50px;
    height: 50px;
    left: 10%;
    animation-duration: 19s;
    animation-delay: 3s;
}

.bubble.left-5 {
    width: 35px;
    height: 35px;
    left: 6%;
    animation-duration: 24s;
    animation-delay: 6s;
}

/* Right side bubbles */
.bubble.right-1 {
    width: 80px;
    height: 80px;
    left: 92%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.bubble.right-2 {
    width: 45px;
    height: 45px;
    left: 95%;
    animation-duration: 21s;
    animation-delay: 5s;
}

.bubble.right-3 {
    width: 70px;
    height: 70px;
    left: 88%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.bubble.right-4 {
    width: 55px;
    height: 55px;
    left: 90%;
    animation-duration: 20s;
    animation-delay: 7s;
}

.bubble.right-5 {
    width: 65px;
    height: 65px;
    left: 85%;
    animation-duration: 18s;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-200px) translateX(10px) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-400px) translateX(-5px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-600px) translateX(8px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-800px) translateX(0) rotate(360deg);
        opacity: 0;
    }
}
/* ===== USER ICON PLACEHOLDER STYLES ===== */
.img-wrapper .fas.fa-user {
    font-size: 2rem;
    color: #ffffff;
}

/* Ensure proper styling for user icon placeholders */
.img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Add different background colors based on position */
.lp .img-wrapper:has(.fa-user),
.ipp .img-wrapper:has(.fa-user) {
    background-color: #7da0b2 !important;
}

.tr .img-wrapper:has(.fa-user),
.sg .img-wrapper:has(.fa-user) {
    background-color: #7da0b2  !important;
}

.vp .img-wrapper:has(.fa-user) {
    background-color: #7da0b2 !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-buttons a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #F2C94C;
    transition: width 0.3s ease;
}
.dropbtn:hover{
    border-color: #F2C94C;
    transform: translateY(-3px);
    box-shadow: 0 0 75px rgba(242, 201, 76, 0.5);
}
.nav-buttons a:hover::after, .dropbtn:hover::after {
    width: 100%;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height:auto;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
    position: relative;
    top: 3px; 
}

.nav-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-buttons a, .dropbtn {
    padding: 12px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-buttons a:hover, 
.dropbtn:hover {
    
    transform: translateY(-2px);
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #34495e;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
   
    padding-left: 25px;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1002;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-button i {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-button.active i {
    color: #ffffff;
}

.mobile-menu-button:hover {
    background: #e0e0e0;
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

/* ===== BOARD PAGE STRUCTURE ===== */
.section {
    padding: 100px 0 10px;
    min-height: auto;
    background: linear-gradient(135deg, #1a3a5f 0%, #295b78 50%, #1a3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-container {
    max-width: 1200px;
    padding: 1px;
    margin: 0 auto;
    width: 100%;
    backdrop-filter: blur(10px);
}

.year-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.year-header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.3rem;
    position: relative;
    padding: 0px 10px;
    right: 1%;
}

.year-header::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F2C94C;
    border-radius: 2px;
}

.board-hierarchy {
   display: flex;
    position: relative;
    width: 100%;
    min-height: 500px;
    padding-left: 0;
    margin-left: 0;
}

.left-section {
    width: 18%;
    display: none;
    justify-content: flex-end;
    padding-right: 20px;
    position: relative;
}

.right-section {
    width: 82%;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-left: -30px;
}

/* ===== BOARD MEMBER CARDS ===== */
.board-member {
    text-align: center;
    padding: 0px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.board-member:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.img-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.board-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.board-member:hover img {
    transform: scale(1.05);
}

.member-info {
    padding: 8px;
}

.board-member h3 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.board-member p {
    color: #F2C94C;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== BOARD HIERARCHY POSITIONING ===== */
.lp {
    position: relative;
    z-index: 10;
}

.lp .img-wrapper {
    border-color: #ffffff;
    width: 110px;
    height: 110px;
}

.leadership-pair {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    max-width: 500px;
    margin: 15px 0;
}

.tr .img-wrapper {
    border-color: #ffffff;
}

.sg .img-wrapper {
    border-color: #ffffff;
}

.vps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.vp .img-wrapper {
    border-color: #ffffff;
}

/* Animation delays */
.board-member.lp { animation-delay: 0.05s; }
.board-member.ipp { animation-delay: 0.15s; }
.board-member.tr { animation-delay: 0.25s; }
.board-member.sg { animation-delay: 0.35s; }
.board-member.vp:nth-child(1) { animation-delay: 0.45s; }
.board-member.vp:nth-child(2) { animation-delay: 0.55s; }
.board-member.vp:nth-child(3) { animation-delay: 0.65s; }
.board-member.vp:nth-child(4) { animation-delay: 0.75s; }

.top-leadership {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; 
    width: 100%;
    margin-bottom: 10px; 
}

.board-member.ipp {
    position: relative;
    z-index: 10;
    animation-delay: 0.1s;
}

.ipp .img-wrapper {
    border-color: #ffffff;
    width: 110px;
    height: 110px;
}

.level {
    display: flex;
    justify-content: center;
    width: 100%;
}

.board-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 500px;
    position: relative;
    padding-top: 0px;
}

.left-section, .right-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.level-1 {
    margin-bottom: 10px;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Position the IPP to the left of LP */
.board-member.ipp {
    position: absolute;
    left: 4%;
    top: 100px;
    z-index: 5;
}

/* Style for the second level (TR & SG) */
.level-2 {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

/* Style for the third level (VPs) */
.level-3 {
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.vps-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large Tablets */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }
    
    .nav-buttons {
        gap: 15px;
    }
}
 @media(max-width:820px) {
    .board-member.lp {
        max-width: 190px;
        width: 190px;
    }
    
    /* Level 2: IPP (single centered square) */
    .level-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .board-member.ipp {
        max-width: 190px;
        width: 190px;
        position: static !important;
        margin: 0;
    }
    
    /* Level 3: TR and SG (two squares side by side) */
    .level-3 {
        display: flex;
        justify-content: center;
        gap: 100px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .leadership-pair {
        display: flex;
        justify-content: center;
        gap: 40px;
        width: auto;
    }
    
    .board-member.tr,
    .board-member.sg {
        max-width: 280px;
        width: 280px;
    }
    
    /* Level 4: VPs (four squares in one row) */
    .level-4 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vps-container {
        display: flex;
        justify-content: center;
        gap: 30px;
        width: auto;
        max-width: 100%; /* Changed from 190px to 100% */
    }
    
    .board-member.vp {
        max-width: 280px; /* Reduced from 190px to fit 4 in a row */
        width: 280px;
     
    }
    
 }
 @media(max-width:912px) {
    .board-member.lp {
        max-width: 190px;
        width: 190px;
    }
    
    /* Level 2: IPP (single centered square) */
    .level-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .board-member.ipp {
        max-width: 190px;
        width: 190px;
        position: static !important;
        margin: 0;
    }
    
    /* Level 3: TR and SG (two squares side by side) */
    .level-3 {
        display: flex;
        justify-content: center;
        gap: 100px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .leadership-pair {
        display: flex;
        justify-content: center;
        gap: 40px;
        width: auto;
    }
    
    .board-member.tr,
    .board-member.sg {
        max-width: 280px;
        width: 280px;
    }
    
    /* Level 4: VPs (four squares in one row) */
    .level-4 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vps-container {
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 30px;
        width: auto;
        max-width: 100%; /* Changed from 190px to 100% */
    }
    
    .board-member.vp {
        max-width: 280px; /* Reduced from 190px to fit 4 in a row */
        width: 280px;
     
    }
    
 }

 @media(max-width:91px) {
    .board-member.lp {
        max-width: 190px;
        width: 190px;
    }
    
    /* Level 2: IPP (single centered square) */
    .level-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .board-member.ipp {
        max-width: 190px;
        width: 190px;
        position: static !important;
        margin: 0;
    }
    
    /* Level 3: TR and SG (two squares side by side) */
    .level-3 {
        display: flex;
        justify-content: center;
        gap: 100px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .leadership-pair {
        display: flex;
        justify-content: center;
        gap: 40px;
        width: auto;
    }
    
    .board-member.tr,
    .board-member.sg {
        max-width: 280px;
        width: 280px;
    }
    
    /* Level 4: VPs (four squares in one row) */
    .level-4 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vps-container {
        display: flex;
        justify-content: center;
        gap: 30px;
        width: auto;
        max-width: 100%; /* Changed from 190px to 100% */
    }
    
    .board-member.vp {
        max-width: 280px; /* Reduced from 190px to fit 4 in a row */
        width: 280px;
     
    }
    
 }
 

/* Tablets */
@media (max-width: 992px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
        height: auto; /* Remove fixed height on mobile */
        min-height: 80px;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
       
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
       
    }
    
    /* Dropdown indicator */
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    /* Prevent hover from opening dropdowns */
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    .board-hierarchy{
        flex-direction: column;
        align-items: center;
        margin: auto 15px;
        gap: 10px;
     }
    
    .section {
        padding: 100px 0 20px;
    }
    
    .board-container {
        padding: 0 15px;
    }
    
    .board-member.ipp {
        display: block;
        position: static;
        align-self: center;
        width: 100%;
        max-width: 280px;
        left: 1%;
    }
    
    .level-1, .level-2, .level-3 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 80%;
        max-width: 300px;
    }
    
    .vps-container {
        grid-template-columns: 1fr;
        max-width: 200%;
        gap: 10px;
        width: 100%;
    }
    
    .board-member {
        width: 100%;
        max-width: 100px;
        margin: 0px auto 15px;
    }
    
    .left-section {
        display: none;
    }

    .mobile-ipp {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 0px;
        width: 80%;
        max-width: 250px;
        margin: 0px auto 15px;
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    
   .year-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.year-header::after {
    content: '';
    position: absolute;
    top:25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F2C94C;
    border-radius: 2px;
}

    .board-member.lp {
        width: 100%;
        max-width: 270px;
        margin: 0 auto 15px;
    }
    
    .board-member h3{
        font-size: 1.1rem;
    }
    
    .board-member p{
        font-size: 0.9rem;
    }
    
    .lp .img-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .board-member.lp h3 {
        font-size: 1.1rem;
    }
    
    .board-member.lp p {
        font-size: 0.9rem;
    }
}

/* Desktop adjustments */
@media (min-width: 993px) {
    .mobile-ipp {
        display: none !important;
    }
    
    .left-section {
        display: flex;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .year-header {
        font-size: 1.8rem;
    }
    
    .vps-container {
        grid-template-columns: 1fr;
    }
    
    .year-section {
        padding: 20px 15px;
    }
    
    
    .board-member.lp {
        max-width: 190px;
        width: 190px;
    }
    
    /* Level 2: IPP (single centered square) */
    .level-2 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .board-member.ipp {
        max-width: 190px;
        width: 190px;
        position: static !important;
        margin: 0;
    }
    
    /* Level 3: TR and SG (two squares side by side) */
    .level-3 {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .leadership-pair {
        display: flex;
        justify-content: center;
        gap: 40px;
        width: auto;
    }
    
    .board-member.tr,
    .board-member.sg {
        max-width: 190px;
        width: 190px;
    }
    
    /* Level 4: VPs (four squares in one row) */
    .level-4 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vps-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: auto;
        max-width: 100%; /* Changed from 190px to 100% */
    }
    
    .board-member.vp {
        max-width: 190px; /* Reduced from 190px to fit 4 in a row */
        width: 190px;
        aspect-ratio: 1 / 1; /* Ensure VPs are square */
        height: 220px;
    }
    
}

/* Mobile Phones - UPDATED ORDER */
@media (max-width: 576px) {
    .board-member {
        max-width: 100%;
    }
    
    .lp .img-wrapper, .ipp .img-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .year-header {
        font-size: 1.5rem;
    }
    
    .board-member h3 {
        font-size: 1.1rem;
    }
    
    .board-member p {
        font-size: 0.9rem;
    }

    .section {
        padding: 90px 0 20px;
    }

    /* NEW: Mobile-specific layout with custom order */
    .board-hierarchy {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .level-1, .level-2, .level-3, .level-4 {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Hide the original IPP in left section on mobile */
    .left-section {
        display: none !important;
    }

    /* Create a new order for mobile */
    .board-hierarchy.mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Ensure all board members are properly styled on mobile */
    .board-member {
        width: 90%;
        max-width: 280px;
        margin: 0 auto;
    }

        /* UPDATED Mobile specific order */
    .mobile-layout .board-member.lp { order: 1; }
    .mobile-layout .board-member.ipp { order: 2; }
    .mobile-layout .board-member.sg { order: 3; }
    .mobile-layout .board-member.tr { order: 4; }
    .mobile-layout .board-member.vp:nth-child(1) { order: 5; } /* VP Individual Development */
    .mobile-layout .board-member.vp:nth-child(2) { order: 6; } /* VP Community Impact */
    .mobile-layout .board-member.vp:nth-child(3) { order: 7; } /* VP International Cooperation */
    .mobile-layout .board-member.vp:nth-child(4) { order: 8; } /* VP Business & Entrepreneurship */
}
/* ===== LINKEDIN ICON STYLES ===== */
.linkedin-icon {
    color:  #005582;
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.board-member:hover .linkedin-icon {
    transform: scale(1.1);
    color: #005582;
}

/* Make LinkedIn icon more visible on hover */
.board-member:hover .fab.fa-linkedin {
    transform: scale(1.2);
    color: #004471;
}

/* Optional: Add tooltip */
.linkedin-link {
    position: relative;
}

.linkedin-link::after {
    content: 'View LinkedIn Profile';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.linkedin-link:hover::after {
    opacity: 1;
}
/* ===== CAST BUTTON STYLES (Refined) ===== */
.cast-button {
    background: linear-gradient(135deg, #F2C94C 0%, #F2994A 100%);
    color: #2c3e50 !important;
    padding: 6px 10px; /* 🔹 صغرنا حجم الزر */
    border-radius: 18px;
    font-size: 0.9rem; /* 🔹 صغرنا النص */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 5px rgba(242, 201, 76, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* 🔹 حتى نحط اللوغو فوق النص */
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cast-button img {
    width: 22px; /* 🔹 حجم اللوغو */
    height: auto;
    display: block;
    margin-bottom: 2px;
}

.cast-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #f2c94c80;
    color: #2c3e50;
}

.cast-button:hover::before {
    left: 100%;
}

.cast-button:active {
    transform: translateY(0);
}


/* ===== CAST BUTTON - MOBILE FIX (LOGO NEXT TO TEXT) ===== */
@media (max-width: 992px) {
    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }

    /* اللوغو */
    .nav-buttons .cast-button img {
        width: 26px;
        height: auto;
        filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
        margin-left: 8px;
    }

    /* عند التمرير عليه */
    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
}
/* Tablets and Mobile Menu - UPDATED TO 1024px */
@media (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
        
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    

}
@media (max-width: 1024px) {
    .nav-buttons .cast-button {
        background: none;
        background-color: rgb(58, 16, 113, 0.1);
        color: #ffffff !important;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row;
    }

    .nav-buttons .cast-button img {
        width: 26px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        margin-left: 8px !important;
    }
    

    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}

@media (max-width: 1280px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
        
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
}
@media (max-width: 1280px) {
    .nav-buttons .cast-button {
        background: none;
        background-color: rgb(58, 16, 113, 0.1);
        color: #ffffff !important;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row;
    }

    .nav-buttons .cast-button img {
        width: 26px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        margin-left: 8px !important;
    }
    

    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}

/* ===== LOADING STATE ===== */
.loading-message {
    text-align: center;
    padding: 100px 100px 100px 100px;
    color: #ffffff;
    font-size: 1.2rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #F2C94C;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-message p {
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 1.1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #F2C94C;
    color: #2c3e50;
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}
/* Add to board.css */
.other-board-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.other-board-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.other-board-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #F2C94C;
    border-radius: 2px;
}

/* Mobile adjustments for other board */
@media (max-width: 992px) {
    .other-board-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}