body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* CONTAINER */
.container {
    width: 90%;
    margin: auto;
}

/* GLOBAL IMAGE FIX */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER */
.header {
    background: linear-gradient(to right, #0f9b0f, #006400);
    color: white;
    padding: 15px 0;
    position: relative;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* keeps header in one line */
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.logo-box h1 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    display: flex;
}

nav a {
    margin: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: yellow;
}

.admin-btn {
    background: orange;
    padding: 6px 12px;
    border-radius: 5px;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
}

/* BUTTON */
.btn-primary {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

/* WHY SECTION */
.why {
    text-align: center;
    padding: 40px;
    background: white;
}

.why-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 18px;
}

/* PRODUCTS */
.products {
    padding: 40px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    display: inline-block;
    margin-top: 10px;
    background: #25D366;
    color: white;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
}

/* EMAIL BUTTON */
.email-btn {
    display: inline-block;
    margin-top: 8px;
    background: #007BFF;
    color: white;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
}

/* CONTACT */
.contact {
    padding: 40px;
    text-align: center;
    background: #fff;
}

.map iframe {
    margin-top: 15px;
    border-radius: 10px;
}

/* FOOTER */
footer {
    background: #006400;
    color: white;
    text-align: center;
    padding: 15px;
}

/* ABOUT */
.about {
    padding: 70px 20px;
    background: #ffffff;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    color: #006400;
    text-align: center; /* COMPANY HEADING CENTER FIX */
}

.about-text h3 {
    color: #0f9b0f;
}

/* DIRECTOR */
.about-director {
    flex: 1;
    display: flex;
    justify-content: center;
}

.director-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    max-width: 260px;
}

.director-card img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 4 / 5;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0f9b0f;
}

/* TEAM */
.team {
    padding: 60px 20px;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.team-card {
    background: #f5f5f5;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* SOCIAL MEDIA */
.social-links {
    margin: 15px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px;
    font-size: 20px;
    color: #006400;
    background: #f1f1f1;
    border-radius: 50%;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .header-flex {
        flex-wrap: nowrap;
    }

    .logo-box h1 {
        font-size: 13px;
        max-width: 180px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #006400;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

    nav a {
        padding: 12px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        height: 70vh;
    }

    .overlay {
        background: rgba(0,0,0,0.55);
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .why-box {
        flex-direction: column;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* SLIDER BUTTONS */
.hero {
    position: relative;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

/* ================= FIX: SLIDER CLICK ISSUE ================= */
.overlay {
    pointer-events: none; /* allow clicking arrows */
}

/* ================= SLIDER BUTTONS (IMPROVED) ================= */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20; /* above overlay */
    transition: 0.3s ease;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background: #0f9b0f;
    transform: translateY(-50%) scale(1.1);
}

/* ================= COMPANY PAGE PROFESSIONAL LOOK ================= */
.company-section {
    padding: 50px 20px;
    background: #ffffff;
    margin: 20px auto;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.company-section h2 {
    text-align: center;
    color: #006400;
    margin-bottom: 20px;
}

.company-section p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: #333;
}

/* GRID FOR MISSION & VISION */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* CARD STYLE */
.card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.card h3 {
    color: #0f9b0f;
    margin-bottom: 10px;
}

/* ================= DIRECTOR IMAGE FIX ================= */
.director-box img {
    width: 100%;
    max-width: 300px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
}

/* ================= MOBILE IMPROVEMENTS ================= */
@media (max-width: 768px) {

    .company-section {
        width: 95%;
        padding: 30px 15px;
    }

    .company-section p {
        font-size: 14px;
    }

    .director-box img {
        height: 260px;
    }
}

.company-section p {
    text-align: center;
    margin: 0 auto;
    max-width: 750px;
    line-height: 1.8;
    font-size: 16px;
}

/* ================= FIX 1: COMPANY NAME CUT ON MOBILE ================= */
.logo-box h1 {
    white-space: normal;       /* allow wrapping */
    font-size: 16px;
}

@media (max-width: 768px) {
    .logo-box h1 {
        font-size: 12px;
        line-height: 1.3;
        max-width: 180px;
        word-break: break-word;
    }
}

/* ================= FIX 2: CENTER "ABOUT OUR COMPANY" ================= */
.company-hero,
.company-hero h2,
.company-hero p {
    text-align: center;
}

/* ================= FIX 3: GALLERY LOOK LIKE DIRECTORS (GRID + CLEAN) ================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery-item {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ================= FIX 4: IF ONLY ONE IMAGE (CENTER IT) ================= */
.gallery:has(.gallery-item:only-child) {
    display: flex;
    justify-content: center;
}

.gallery:has(.gallery-item:only-child) img {
    max-width: 400px;
    height: auto;
}

/* ================= FIX 5: DIRECTOR IMAGE CROPPING FIX ================= */
.director-box img {
    width: 100%;
    max-width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
}

/* ================= MOBILE: DIRECTOR LOOK BETTER ================= */
@media (max-width: 768px) {
    .director-box img {
        height: auto; /* remove crop on phone */
    }
}

/* ================= EXTRA: GENERAL IMAGE BALANCE ================= */
img {
    object-fit: cover;
}

/* ================= FORCE DIRECTORS TO LOOK LIKE GALLERY ================= */

.company-section .team-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    justify-content: center !important;
}

.company-section .team-card {
    background: #fff !important;
    padding: 10px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.company-section .team-card img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
}

/* TEXT */
.company-section .team-card h3 {
    margin-top: 10px;
    font-size: 16px;
}

/* ================= SINGLE IMAGE CENTER FIX ================= */
.company-section .team-grid:has(.team-card:only-child) {
    display: flex !important;
    justify-content: center !important;
}

.company-section .team-grid:has(.team-card:only-child) .team-card {
    max-width: 350px !important;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .company-section .team-card img {
        height: auto !important;
    }
}

/* CENTER IF ONLY ONE DIRECTOR */
.gallery.single {
    display: flex;
    justify-content: center;
}

.gallery.single .gallery-item {
    max-width: 400px;
}

/* ================= POPUP IMAGE VIEW ================= */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* make gallery clickable */
.gallery-item img {
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* ================= FIX DIRECTORS TO MATCH GALLERY ================= */

/* make directors use same layout */
.company-section .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: center;
}

/* fix image container */
.company-section .gallery-item {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

/* 🔥 IMPORTANT: SHOW FULL IMAGE (NO CROPPING) */
.company-section .gallery-item img {
    width: 100%;
    height: auto;              /* remove fixed height */
    max-height: 300px;         /* control size */
    object-fit: contain;       /* show FULL image */
    background: #f5f5f5;       /* fill empty space nicely */
    border-radius: 12px;
}

/* FIX 2 IMAGES LOOK (NO STRETCHING) */
.company-section .gallery {
    justify-content: center;
}

/* FIX SINGLE IMAGE CENTER */
.gallery.single {
    display: flex;
    justify-content: center;
}

.gallery.single .gallery-item {
    max-width: 350px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .company-section .gallery-item img {
        max-height: 250px;
    }
}

/* ================= PREMIUM DIRECTOR / GALLERY STYLE ================= */

.company-section .gallery-item {
    position: relative;
    height: 260px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

/* 🔥 BLURRED BACKGROUND */
.company-section .gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.7);
    transform: scale(1.2);
}

/* 🔥 MAIN IMAGE (FULL, NOT CROPPED) */
.company-section .gallery-item img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ================= FIX NAME BELOW IMAGE ================= */
.company-section .gallery-item {
    height: auto !important;
    background: #fff !important;
    text-align: center;
}

/* IMAGE BOX (KEEP BLUR EFFECT HERE ONLY) */
.company-section .gallery-item .img-box {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 15px;
}

/* BLUR BACKGROUND */
.company-section .gallery-item .img-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.7);
    transform: scale(1.2);
}

/* IMAGE */
.company-section .gallery-item img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ✅ NAME BELOW IMAGE */
.company-section .gallery-item h3 {
    position: static !important;
    color: #333 !important;
    margin: 10px 0;
    font-size: 16px;
}

/* ================= SINGLE IMAGE CENTER ================= */
.gallery.single {
    display: flex;
    justify-content: center;
}

.gallery.single .gallery-item {
    max-width: 350px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .company-section .gallery-item {
        height: 220px;
    }
}

/* FIX: ensure all directors display */
.company-section .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

/* prevent hidden items */
.company-section .gallery-item {
    display: block !important;
    width: 100%;
}

/* ✅ FINAL FIX: SHOW DIRECTOR NAME BELOW IMAGE */

.company-section .gallery-item {
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* keep image box fixed */
.company-section .gallery-item .img-box {
    width: 100%;
    height: 260px;
}

/* ensure name is visible */
.company-section .gallery-item h3 {
    display: block !important;
    position: static !important;
    margin-top: 10px !important;
    color: #333 !important;
}

/* 🔥 FIX: make sure blur stays behind everything */
.company-section .gallery-item::before {
    z-index: 1;
}

/* image should be above blur */
.company-section .gallery-item .img-box img {
    position: relative;
    z-index: 2;
}

/* 🔥 MOST IMPORTANT: name must be above blur */
.company-section .gallery-item h3 {
    position: relative;
    z-index: 3;
}

/* 🔥 FORCE FIX: SHOW DIRECTOR NAME BELOW IMAGE */

/* allow content to expand */
.company-section .gallery-item {
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
}

/* keep image inside fixed box */
.company-section .gallery-item .img-box {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

/* blur stays behind */
.company-section .gallery-item .img-box::before {
    z-index: 1;
}

/* image above blur */
.company-section .gallery-item img {
    position: relative;
    z-index: 2;
}

/* 🔥 NAME ALWAYS VISIBLE */
.company-section .gallery-item h3 {
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
    margin-top: 12px !important;

    color: #FFFFFF !important;   /* strong green brand color */
    font-weight: 600;
    font-size: 16px;
}

/* MULTIPLE DIRECTORS (ABOUT SECTION) */
.multi-directors {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.multi-directors .director-card {
    max-width: 200px;
}

/* ================= HOMEPAGE DIRECTORS ONLY ================= */

.about-directors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
    align-items: start;
}

/* CARD */
.director-card-new {
    background: #fff;
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* IMAGE (OVAL STYLE LIKE YOUR DESIGN) */
.director-card-new img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 50% / 40%;
    border: 3px solid #0f9b0f;
    margin: 0 auto 10px;
}

/* NAME */
.director-card-new h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* ===== FIX HOMEPAGE ABOUT + DIRECTORS LAYOUT ===== */

.about-flex {
    display: flex;
    align-items: flex-start;   /* align top */
    justify-content: space-between;
    gap: 40px;
}

/* TEXT SIDE */
.about-text {
    flex: 1;
}

/* DIRECTORS SIDE */
.about-directors {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 per row */
    gap: 20px;
}

/* RESPONSIVE FIX */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
    }

    .about-directors {
        grid-template-columns: repeat(2, 1fr);
    }
}

