/* ✅ Background Image - No Overlay Effect */
body {
    background: url('/assets/images/meeting\ page\ background.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* ✅ Ensure Text & Images Appear Above the Background */
.executives {
    position: relative;
    z-index: 1;
}

/* ✅ Remove Any Overlay Effect */
.overlay {
    display: none !important;
    background: transparent !important;
}

/* ✅ Image Wrappers */
.image-wrapper {
    position: relative;
}

.text-overlay {
    position: relative;
    bottom: 10px;
    left: 10px;
    padding: 10px;
}

.section-heading {
    background-color: transparent;
}


.section-heading h2 {
    font-size: 50px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
    padding: 50px;
}

/* Card Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    width: 110%;
}

/* Individual Card */
.card-wrapper {
    display: flex;
    justify-content: center;
    padding: 15px;
    width: 100%; /* Full width by default */
    max-width: 400px; /* Prevents excessive stretching */
}

.expert-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    cursor: pointer;
    padding: 20px;
    height: 550px;
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.img-container img {
    width: 100%;
    height: auto;
    border-radius: 1%;
}

/* Expand Section */
.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expanded .expand-content {
    max-height: 150px;
    padding: 10px;
}

/* Expanded Card Container */
.expanded-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2%;
    min-height: 5px;
    transition: 0.5s;
}

/* Add smooth sliding animation */
.moved {
    width: 800px !important;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50px); /* Slide down effect */
    opacity: 1;
}

/* Animation when returning to the original position */
.card-wrapper {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    margin-bottom: 20px;
}

/* Hide moved card before placing it below */
.hidden {
    opacity: 0;
    transform: translateY(-50px); /* Slide-up effect */
}


.view-more-btn {
    display: none; /* Hides it initially */
    width: 100%;
    padding: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s ease-in-out;
}

.view-more-btn {
    display: block; /* Dati ay none, ngayon naka-block */
}

.view-more-btn:hover {
    background-color: #0056b3;
}

.expanded .view-more-btn {
    display: block;
    opacity: 1;
}

/* Gallery Container */
.gallery-container {
    width: 100%;
    max-width: 1240px;
    padding: 15px;
    background: rgb(0,0,0, .3);
    border-radius: 20px;
    margin: 50px auto;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 700px;
}
/* 📱 Mobile Responsive */

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards */
        width: 110%;
        padding: 10px;
    }

    .card-wrapper {
        width: 100%; /* Ensures full width */
        max-width: 100%; /* Prevents shrinking */
        padding: 10px;
    }

    .expert-card {
        width: 100%; /* Ensures it takes up full width */
        max-width: 90%; /* Leaves some margin */
    }
}

.gallery-wrapper {
    display: flex;
    justify-content: flex-start;  /* Centers items horizontally */
    align-items: center;      /* Centers items vertically */
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    width: 100%;
    padding: 10px 0;
    gap: 20px;
    scrollbar-width: none;
    height: 700px;
}


/* Hide scrollbar for Webkit browsers */
.gallery-wrapper::-webkit-scrollbar {
    display: none;
}

/* Gallery Items */
.gallery-item {
    flex: 0 0 auto;
    width: clamp(300px, 30vw, 300px);
    height: clamp(500px, 35vw, 650px);
    padding: 5px;
    border-radius: 20px;
    overflow: visible; /* Allow the image to overflow */
    transition: transform 0.3s ease-in-out;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative; /* Ensure the image can overflow without clipping */
}

.gallery-item img {
    width: 95%;
    height: 80%;
    object-fit: contain; /* Ensures the full image is visible */
    text-align: center;
    transition: transform 0.3s ease; /* Smooth transition */
}

.center img {
    transform: scale(1.2); /* Scale the image */
    transition: transform 0.3s ease; /* Smooth transition */
    object-fit: contain; /* Ensure the image fits inside without clipping */
}

/* Center Image Scaling Effect */
.gallery-wrapper:has(.gallery-item:focus) .gallery-item:focus {
    transform: scale(1.2); /* Adjust scale size */
    filter: brightness(1.2); /* Optional: Add brightness or other effects */
    z-index: 10; /* Ensure the centered image is on top */
}

/* Prevents other images from being affected */
.gallery-item:not(:focus) {
    transform: scale(1); /* Normal size for non-centered images */
}
/* Increase size on smaller screens */
@media (max-width: 768px) {
    .gallery-item img {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .gallery-item img {
        width: 90%;
        
    }
}

/* Navigation Buttons */

/* Position Navigation Buttons */
.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(185, 0, 0, 0.658);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s ease;
}

.gallery-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Hide scrollbar but allow scrolling */
.gallery-wrapper::-webkit-scrollbar {
    display: none;
}


.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 🔥 Zoom Effect (Popup) */
.zoom-overlay {
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translate(-50%, -50%); /* Shift back by half of its width and height */
}

.zoom-overlay img {
    max-width: 20%;
    max-height: 70%;
    border-radius: 10px;
}

/* Mobile-specific zoom overlay styles */
@media (max-width: 768px) {
    .zoom-overlay img {
        max-width: 90%; /* Much larger on mobile */
        max-height: 80vh; /* Slightly smaller than viewport height */
        object-fit: contain; /* Ensures image maintains aspect ratio */
    }
}


/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: red;
    color: white;
    font-size: 20px;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

.close-btn:hover {
    background: darkred;
}


/* Hover Effect */
.gallery-item:hover {
    transform: scale(1.1);
}

/* Optional: Custom Scrollbar for a Sleek Look */
.gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: #ddd;
}


 /* ceo / / coo */
/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');

/* New Parent Container */
.team-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adds space between images */
    flex-wrap: wrap; /* Ensures responsiveness */
    width: 100%;
}

/* Parent Container */
.text-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.text-image-section1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.text-image-section img{
    padding-bottom: 50px;
    padding-top: 50px;
    padding-left: 400px;
    padding-right: 400px;
    margin-right: 60%;
    display: flex;
    justify-content: justify;
}
.text-image-section1 img{
    padding-bottom: 50px;
    padding-top: 50px;
    padding-right: 400px;
    padding-left: 400px;
    margin-left: 60%;
    display: flex;
    justify-content: justify;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 550px; /* Adjusted width for better layout */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image Styling */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

/* 📱 Responsive Adjustments */
@media (max-width: 1200px) { /* Large tablets & small desktops */
    .team-section {
        flex-direction: column;
        gap: 10px;
    }
}
    .image-wrapper {
        width: 90%;
        height: auto;
    }
    
@media (max-width: 1024px) { /* Tablets */
    .text-image-section, .text-image-section1 {
        padding: 15px;
    }

    .image-wrapper {
        width: 85%;
        height: auto;
    }
}

@media (max-width: 768px) { /* Mobile */
    .team-section {
        flex-direction: column;
        align-items: center;
    }

    .image-wrapper {
        width: 95%;
        height: auto;
    }
    
    .text-image-section img, .text-image-section1 img {
        padding: 25px;
    }
    .image-wrapper img {
        margin-left: 60%;
    }
    .img-containers img{
        margin-right: 60%;
    }
    .text-image-section1 img {
        margin-right: 60%;
    }
    .text-image-section img, .text-image-section1 img {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }
   
}


/* Responsive Layout */
.text-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 1150px;
    height: 543px;
    border-radius: 10px;
    overflow: hidden;
}

/* Image Styling */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply; /* Blends out white background */
}

/* Text Overlay */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: black;
    text-align: center;
    animation: fade-in 1s ease-in-out forwards;
}

/* Default: Hidden Before Scroll */
.text-overlay p {
    opacity: 0;
    transition: all 1s ease-in-out;
}

/* === Animation for Position (Slide from Top) === */
.text-overlay .position,
.text-overlay .positions {
    font-family: "Georgia";
    font-size: 30px;
    margin-top: 5%;
    transform: translateY(-50px); /* Start above */
}

.text-overlay .position.animate,
.text-overlay .positions.animate {
    opacity: 1;
    transform: translateY(0);
}

/* === Animation for Name (Fade & Scale) === */
.text-overlay .name,
.text-overlay .names {
    font-family: "Montserrat";
    font-size: 60px;
    font-weight: bold;
    padding: 5px 10px;
    margin-top: 3%;
    transform: scale(0.8); /* Start smaller */
}

.text-overlay .name.animate,
.text-overlay .names.animate {
    opacity: 1;
    transform: scale(1);
}

/* === Animation for Description (Slide from Bottom) === */
.text-overlay .description,
.text-overlay .descriptions {
    font-family: "Arial", sans-serif;
    font-size: 14px;
    text-align: justify;
    padding: 10px;
    margin-top: 5%;
    max-width: 65%;
    transform: translateY(50px); /* Start below */
}

.text-overlay .description.animate,
.text-overlay .descriptions.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 📱 Mobile & Tablet View (Stacked Format) */
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .image-wrapper {
        width: 100%;
        height: auto;
    }

    .text-overlay {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .text-overlay .position,
    .text-overlay .positions {
        font-size: 20px;
        margin-top: 20px;
    }

    .text-overlay .name,
    .text-overlay .names {
        font-size: 25px;
        margin-top: 10px;
    }

    .text-overlay .description,
    .text-overlay .descriptions {
        font-size: 14px;
        max-width: 90%;
        text-align: center;
        margin-top: 15px;
        text-align: justify;
    }
    

    
    
}

/* 🖥️ Large Screens (Keep Same Layout) */
@media (min-width: 769px) {
    .text-overlay {
        position: absolute;
    }

    .text-overlay .position {
        margin-left: 40%;
    }

    .text-overlay .positions {
        margin-right: 40%;
    }

    .text-overlay .name {
        margin-left: 40%;
    }

    .text-overlay .names {
        margin-right: 40%;
    }

    .text-overlay .description {
        margin-left: 40%;
    }

    .text-overlay .descriptions {
        margin-right: 40%;
    }
}


/* Bullet Navigation */
.bullet-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    padding: 10px;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.bullet.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Ensure bullets are visible on any background */
.bullet:hover {
    background-color: #fff;
    transform: scale(1.1);
}