/* About Us Section */
/* Overall page designs, fonts and colors */
:root {
    --primary: #000000; /* Black from the text */
    --secondary: #f5edea; /* Light beige from the background of the figure */
    --green: #8B8D77; /* Subtle greenish tint for a neutral tone */
    --secondary-light: #F5F0ED; /* Lighter shade of beige */
    --secondary-light-2: #F9F7F5; /* Very light, almost white tone */
    --white: #FFFFFF; /* Pure white */
    --black: #000000; /* Black, for text and accents */
    --shadow: 0px 2px 8px 0px var(--green); /* Subtle shadow effect */
  }

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    list-style-type: none;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif; /* Body text */
}


.how-it-started {
    width: 100%;
    height: auto;
    display: flex;
    align-items: c;
    padding: 80px 0px 0px 0px;
    background-color: var(--white);
    position: relative; /* Add relative positioning to the parent */
}
/* Font settings for "How It Started" section */
.how-it-started .text-box h1 {
    font-family: 'Lora', serif; /* Heading font */
    font-size: 2.5rem; /* Adjusted font size for better visibility */
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.how-it-started .text-box p {
    font-family: 'Roboto', sans-serif; /* Paragraph font */
    font-size: 1rem;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 20px;
}

.how-it-started .text-box {
    flex: 1;
    padding: 10px 20px 30px 40px;
    color: var(--black);
    background-color: var(--secondary-light-2);
    border-radius: 10px;
    z-index: 0; 
}
/* Image Box Styling */
.how-it-started .image-box {
    position: relative;
    margin-top: -5px;
    overflow: hidden; 
    width: 800px;
    height: 735px;
    z-index: 0; 
}

/* Carousel Styling */
.how-it-started .image-box .carousel {
    position: relative; 
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition for manual navigation */
    width: 800px;
    height: 710px;
}

/* Navigation Buttons Styling */
.how-it-started .image-box .buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.how-it-started .image-box .buttons button {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 8px 10px;
    margin: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.how-it-started .image-box .buttons button:hover {
    background-color: var(--green);
}
/* Carousel Image Styling */
.how-it-started .image-box .carousel img {
    width: 100%; /* Ensure all images fit perfectly */
    flex-shrink: 0;
    position: relative; /* Necessary for pseudo-elements */
}

/* Transparent Overlay */
.how-it-started .image-box .carousel img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Static Image on Top of Overlay */
.how-it-started .image-box .static-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30; /* Ensure it stays above the overlay */
    width: 200px; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    pointer-events: none; /* Prevent interaction */
}

/* Static Image on Top of Overlay */
.how-it-started .image-box .static-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Ensure it stays above the overlay */
    width: 100%; /* Adjust as needed */
    height: 100%; /* Maintain aspect ratio */
    pointer-events: none; /* Prevent interaction */
    opacity: 0.3; 
}

/* Focus Areas Section */
.focus-areas {
    background-color: var(--green);
    padding: 60px 0px;
    text-align: center;
    color: var(--white);
}

.focus-areas h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.focus-cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Card Wrapper */
.focus-card {
    width: 200px;
    height: 250px;
    perspective: 1000px; /* Enables 3D flip effect */
    position: relative; /* Prevents layout shifts */
    margin: 0; /* Remove any extra margins */
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s ease-in-out;
    /* Keep the rotation centered */
    transform-origin: center;
}

.focus-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hides the back face */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Front Face */
.card-front {
    background-color: var(--secondary-light);
    position: absolute;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-front .overlay-text {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    padding: 10px;
    border-radius: 8px;
}

/* Back Face */
.card-back {
    background-color: var(--secondary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
    /* border: 2px solid var(--black); 
    border-radius: 8px;  */

}

.card-back img {
    width: 150px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.card-back p {
    font-size: 0.8rem;
    color:#545546;
    font-weight: 400;
    text-align: justify;
    padding: 0px;

}

/* Fix Parent Alignment */
.focus-cards {
    display: flex;
    justify-content: center;
    align-items: center; /* Align cards properly */
    gap: 20px; /* Adjust spacing */
}


/* Our Team Section */
/* Styling for the Heading */
.team-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 40px; /* Creates space between the heading and the team cards */
    color: #8B8D77;
}

.our-team h1 {
    font-size: 2rem; /* Adjust size as needed */
    font-weight: 700;
    color: var(--primary-color); /* Your theme color */
    text-transform: uppercase; /* Optional */
}

.our-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 20px;
    background-color: var(--white);
}

.team-member {
    background-color: var(--secondary-light);
    margin: 1rem;
    padding: 20px;
    border-radius: 10px;
    width: calc(33% - 2rem);
    text-align: center;
    box-shadow: var(--green);
    transition: transform 0.5s;
    border: 1px transparent var(--green);
    border-radius: 10px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.team-member h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 600;
}

.team-member p {
    text-align: justify;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    padding: 10px;
}

.image-box {
    display: block;
    font-size: 1.8rem;
    padding-right: 30px;
    cursor: pointer;
    color: var(--black);
}

/* Media Queries for Responsiveness */

/* For Tablets and Smaller Screens */
@media (max-width: 768px) {
    .team-member {
        width: calc(50% - 2rem); /* Two team members per row on tablet screens */
    }
    .our-team {
        padding: 30px 10px; /* Less padding on smaller screens */
    }
    .our-team h1 {
        font-size: 1.8rem; /* Adjust heading size for smaller screens */
    }
    .team-member img {
        width: 150px; /* Smaller images for tablets */
        height: 150px;
    }
    .team-member h1 {
        font-size: 1rem; /* Smaller heading for team member */
    }
}

/* For Mobile Devices */
@media (max-width: 480px) {
    .team-member {
        width: 100%; /* One team member per row on mobile screens */
        margin: 1rem 0; /* Adjust margin for smaller screens */
    }
    .our-team {
        padding: 20px 5px; /* Less padding on mobile */
    }
    .our-team h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
    }
    .team-member img {
        width: 120px; /* Smaller images for mobile */
        height: 120px;
    }
    .team-member h1 {
        font-size: 1rem; /* Smaller text for team member name */
    }
}


@media only screen and (max-width: 600px) {

    .image-box{
        display: none;
    }
    
}