.hero-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    width: 100%;
    height: 400px;
    top: 0;
    left: 0;
    border-radius: 12px;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Gallery Slider Styles */
.program-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 56px; /* increased separation before About section */
}

.program-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.program-card {
    flex: 0 0 auto;
    width: 100%;
    margin-right: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
}

.program-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.program-card img[src*="plantation"] {
    height: 500px !important;  /* ✅ Keeps slider at 500px */
    object-fit: contain !important;
    background-color: #ffffff;
}


.program-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s ease;
    /* Reset native button visuals to match previous div styling */
    border: none;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.program-slider-arrow:hover:not(.disabled) {
    background-color: rgba(0,0,0,0.8);
}

.program-slider-prev {
    left: 10px;
}

.program-slider-next {
    right: 10px;
}

.program-slider-arrow.disabled {
    background-color: rgba(0,0,0,0.2);
    cursor: default;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .program-card {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .program-card {
        width: 200px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .program-card {
        width: 100%;
        margin-right: 0;
    }
    .program-slider-wrapper {
        overflow-x: auto;
    }
    .program-slider-track {
        transition: none;
    }
    .program-slider-arrow {
        display: none;
    }
}

/* Gallery Slider Styles */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden; /* The "window" effect */
}

.gallery-slider-track {
    display: flex; /* Horizontal layout */
    transition: transform 0.5s ease-in-out; /* The sliding animation */
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    display: block;
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.gallery-slide img[src*="plantation(1).png"] {
    object-fit: contain !important;
    height: auto !important;
    max-height: 500px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    background-color: #ffffff;
    display: block !important;
}


/* Social Icons in Top Header */
.top-header .social-links a {
    color: #ffffff; /* White color for contrast */
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

.follow-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    /* Undo vertical alignment flex */
    /* display: flex;
    align-items: center; */
    line-height: 1;
    /* Move text a bit lower to match horizontal margin with icons */
    position: relative;
    top: 3px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.separator {
    display: inline-block;
    line-height: 1;
    align-self: center;
    color: white;
    padding: 0 5px;
    user-select: none;
}

.header-actions a {
    color: black;
    text-decoration: none;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.header-actions a:hover {
    color: white;
}

.header-actions a {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-actions a {
    position: relative;
    padding-left: 10px;
    color: white;
    text-decoration: none;
}

.header-actions a:not(:first-child) {
    /* border-left: 1px solid white; */
    height: 12px;
    margin-left: 8px;
    margin-right: 8px;
    align-self: center;
}


.top-header .social-links a svg {
    display: block;
    vertical-align: middle;
    margin-top: 2px; /* Adjust as needed for perfect alignment */
}

.top-header .social-links a img.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.top-header .social-links a:hover {
    color: #ffdd57; /* A contrasting yellow/gold on hover */
}

/* Optionally, update icons with a a subtle shadow for better visibility */
.top-header .social-links a i {
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Style for the new X icon image replacing Twitter */
.top-header .social-links a.twitter img.x-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.top-header .social-links a.twitter:hover img.x-icon {
    opacity: 0.85;
}

.gallery-slider-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.gallery-slider-arrow.next { right: 0; border-radius: 3px 0 0 3px; }
.gallery-slider-arrow.prev { left: 0; border-radius: 0 3px 3px 0; }
.gallery-slider-arrow:hover { background-color: rgba(0, 0, 0, 0.8); }
.gallery-slider-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* If gallery arrows are buttons, reset native visuals */
button.gallery-slider-arrow {
    border: none;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* --- Navbar Dropdown on Hover --- */
/* This makes the dropdown menus open on hover for desktop screens */
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* Ensures the menu is flush with the nav item */
    }
}

/* Navbar transition for show/hide on scroll */
.main-nav {
    position: relative;
    width: 100%;
    left: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    transition: none;
    background: #fff !important;
    color: inherit;
}

.main-nav .navbar-nav .nav-link {
    color: #000 !important;
    position: relative;
    transition: color 0.3s ease;
    margin-right: 20px; /* add spacing between nav links */
}

.main-nav .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px; /* thicker underline */
    background-color: #000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
    z-index: 1;
}

.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus {
    color: #000;
}

.top-header {
    position: relative;              /* ensure header is above other layers */
    z-index: 2000;                   /* higher than navbar (1030) */
    height: 48px; /* fixed height for offset */
    background: linear-gradient(90deg, #ffffff 0%, #add8e6 20%, #0072ff 40%, #00c6ff 70%, #90ee90 100%);
}

/* Header Actions - Black text, white on hover (NO BOXES) */
.header-actions a {
    color: #000 !important;          /* Black text */
    background: none !important;     /* No background */
    border: none !important;         /* No borders */
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;               /* Small padding for spacing */
    transition: color 0.3s ease;
}

.header-actions a:hover,
.header-actions a:focus {
    color: #fff !important;          /* White text on hover */
    background: none !important;     /* Keep no background */
    border: none !important;         /* Keep no borders */
}

/* ---- FOLLOW-US ACTION LINKS: keep one straight line ---- */

/* 1.  Make the whole group a flex-row that is always centred */
.header-actions{
    display:flex !important;          /* already present, forces alignment */
    align-items:center !important;    /* vertical centring */
    gap:12px;                         /* even spacing between items        */
    line-height:1;                    /* prevents uneven text height       */
}


/* Navbar toggler visibility */
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar .navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}

/* Social icons alignment overrides */
.top-header .social-links {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
}
.top-header .social-links a {
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.top-header .social-links a svg,
.top-header .social-links a img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}
/* Override any previous SVG nudge */
.top-header .social-links a svg { margin-top: 0 !important; }

/* Ensure X icon matches sizing */
.top-header .social-links a.twitter img.x-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
    mix-blend-mode: darken; /* blend white bg into gradient */
}

/* Header background image styling */
.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


/* Black text for header on pages with background image */
header.position-relative .container {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

header.position-relative h1,
header.position-relative .breadcrumb-item a,
header.position-relative .breadcrumb-item.active {
    color: #fff !important;
    text-shadow: none; /* Remove text-shadow as background provides enough contrast */
}

.logo {
    height: 150px;
    width: auto;
}

section div[style*="background: #fff"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

/* ========================================
   SCROLL ANIMATION - MIND-BLOWING FEATURE #2
   ======================================== */

.team-card {
    opacity: 0;  /* ← BACK TO 0 for scroll animation */
    transform: translateY(50px);  /* ← BACK TO 50px */
    transition: opacity 0.6s ease, transform 0.6s ease;
    perspective: 1000px;
    cursor: pointer;
}

.team-card.animate-in {
    opacity: 1;  /* ← Becomes visible when scrolled */
    transform: translateY(0);
}

/* Stagger animation for each card */
.team-card:nth-child(1) { transition-delay: 0.1s; }
.team-card:nth-child(2) { transition-delay: 0.2s; }
.team-card:nth-child(3) { transition-delay: 0.3s; }
.team-card:nth-child(4) { transition-delay: 0.4s; }
.team-card:nth-child(5) { transition-delay: 0.5s; }
.team-card:nth-child(6) { transition-delay: 0.6s; }
.team-card:nth-child(7) { transition-delay: 0.7s; }
.team-card:nth-child(8) { transition-delay: 0.8s; }
.team-card:nth-child(9) { transition-delay: 0.9s; }
.team-card:nth-child(10) { transition-delay: 1.0s; }
.team-card:nth-child(11) { transition-delay: 1.1s; }
.team-card:nth-child(12) { transition-delay: 1.2s; }


/* ========================================
   CARD FLIP ANIMATION - MIND-BLOWING FEATURE #1
   ======================================== */

.team-card-inner {
    position: relative;
    width: 100%;
    height: 500px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.team-card-front {
    z-index: 2;
}

.team-card-back {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.team-card-back h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.team-card-back p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-card-back .contact-btn {
    background: white;
    color: #0072ff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-card-back .contact-btn:hover {
    background: #90ee90;
    color: #000;
    transform: scale(1.05);
}


/* ========================================
   CIRCULAR CONTACT ICONS BELOW CONTACT BUTTON
   ======================================== */

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #0072ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contact-icon:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Individual icon colors on hover */
.contact-icon:nth-child(1):hover { background: #25D366; color: white; } /* Phone - WhatsApp green */
.contact-icon:nth-child(2):hover { background: #EA4335; color: white; } /* Email - Gmail red */
.contact-icon:nth-child(3):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; } /* Instagram */
.contact-icon:nth-child(4):hover { background: #0A66C2; color: white; } /* LinkedIn */
