/* =============================================
   Custom Styles - Product Image Uniform Size
   ============================================= */

/* Products Section (Home & Product Details page) - Team Slider Cards */
.team-card-item .team-image {
    height: 340px;
    background: #fff;
}

.team-card-item .team-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    display: block;
    padding: 10px;
}

/* Product Details Page - Related Products Slider */
.team-card-items-2 .team-image {
    height: 340px;
    background: #fff;
}

.team-card-items-2 .team-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    display: block;
    padding: 10px;
}

/* Product Listing Page (product.php) - Service Cards */
.service-card-items-2 .service-image {
    height: 350px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.service-card-items-2 .service-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 5px;
}

/* Product Details Page - Main Product Image */
.service-top-img {
    overflow: hidden;
    width: 100%;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-top-img img {
    width: 900px !important;
    height: 850px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
    background: transparent;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .team-card-item .team-image,
    .team-card-items-2 .team-image {
        height: 260px;
    }

    .service-card-items-2 .service-image {
        height: 300px;
    }

    .service-top-img img {
        width: 100% !important;
        height: 300px !important;
    }
}

@media (max-width: 767px) {
    .service-card-items-2 .service-image {
        height: 250px;
    }

    .service-top-img img {
        width: 100% !important;
        height: 260px !important;
    }
}

@media (max-width: 575px) {

    .team-card-item .team-image,
    .team-card-items-2 .team-image {
        height: 200px;
    }

    .service-card-items-2 .service-image {
        height: 220px;
    }

    .service-top-img img {
        width: 100% !important;
        height: 220px !important;
    }
}

/* Ensure the pill header is clearly visible on inner pages with light backgrounds */
.header-1.header-2 .header-main {
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Letter Image Section - Responsive Font Fix Only
   ============================================= */

/* Original design restore - no overrides needed */

/* =============================================
   Hero Slider - Full Width Fix
   ============================================= */

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

#smooth-wrapper,
#smooth-content {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.hero-section.hero-3 {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.hero3-swiper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.hero3-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.hero3-slide-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.hero3-slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.hero3-video-slide .hero3-slide-img {
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.hero3-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    min-width: unset !important;
    min-height: unset !important;
}

@media (max-width: 991px) {

    .hero3-slide-img,
    .hero3-video-slide .hero3-slide-img {
        height: 60vh !important;
    }
}

@media (max-width: 575px) {

    .hero3-slide-img,
    .hero3-video-slide .hero3-slide-img {
        height: 50vh !important;
    }
}

@media (max-width: 400px) {

    .hero3-slide-img,
    .hero3-video-slide .hero3-slide-img {
        height: 40vh !important;
    }
}

/* =============================================
   Header Products Submenu - Scrollable
   ============================================= */

.header-main .main-menu ul li .submenu {
    max-height: 320px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar styling */
.header-main .main-menu ul li .submenu::-webkit-scrollbar {
    width: 4px;
}

.header-main .main-menu ul li .submenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.header-main .main-menu ul li .submenu::-webkit-scrollbar-thumb {
    background: var(--theme3);
    border-radius: 4px;
}

/* =============================================
   Footer Products List - Scrollable
   ============================================= */

.footer-widget-wrapper .single-footer-widget .list-area {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.footer-widget-wrapper .single-footer-widget .list-area::-webkit-scrollbar {
    width: 4px;
}

.footer-widget-wrapper .single-footer-widget .list-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.footer-widget-wrapper .single-footer-widget .list-area::-webkit-scrollbar-thumb {
    background: var(--theme3);
    border-radius: 4px;
}

/* =============================================
   FAQ Section - Drone Shape Size Fix
   ============================================= */

.faq-section-3 .drone-shape {
    right: 0px !important;
    bottom: 0px !important;
    max-width: 480px !important;
    opacity: 1;
}

.faq-section-3 .drone-shape img {
    width: 150% !important;
    height: auto !important;
}

@media (max-width: 1600px) {
    .faq-section-3 .drone-shape {
        max-width: 420px !important;
        right: 0px !important;
    }
}

@media (max-width: 1399px) {
    .faq-section-3 .drone-shape {
        display: none !important;
    }
}

/* =============================================
   Our Philosophy Section - Responsive Image Fix
   ============================================= */

/* Laptop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .our-history-section-3 .our-history-wrapper .history-image {
        flex: 0 0 550px;
        max-width: 550px;
        min-height: 460px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        width: 100%;
        height: 100%;
        min-height: 460px;
        object-fit: cover;
        object-position: center;
        display: block;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
}

/* Large desktop (>=1400px) */
@media (min-width: 1400px) {
    .our-history-section-3 .our-history-wrapper .history-image {
        flex: 0 0 600px;
        max-width: 600px;
        min-height: 480px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        width: 100%;
        height: 100%;
        min-height: 480px;
        object-fit: cover;
        object-position: center;
        display: block;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
}

/* Tablet (<=1399px) - already wraps via main.css, make image full width */
@media (max-width: 1399px) {
    .our-history-section-3 .our-history-wrapper .history-image {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 340px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        min-height: 340px;
        border-radius: 16px;
    }
}

/* Medium tablet */
@media (max-width: 991px) {
    .our-history-section-3 .our-history-wrapper .history-image {
        min-height: 280px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        min-height: 280px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .our-history-section-3 .our-history-wrapper {
        padding: 20px !important;
        gap: 20px !important;
    }

    .our-history-section-3 .our-history-wrapper .history-image {
        min-height: 220px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        min-height: 220px;
        border-radius: 12px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .our-history-section-3 .our-history-wrapper .history-image {
        min-height: 200px;
    }

    .our-history-section-3 .our-history-wrapper .history-image img {
        min-height: 200px;
        border-radius: 10px;
    }

    .our-history-wrapper .our-history-content .nav {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .our-history-wrapper .our-history-content .nav li .nav-link {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

/* =============================================
   Header - Transparent Background (Remove green overlay)
   ============================================= */

/* Hide the green gradient overlay shape */
.header-1.header-2 .header-main .overlay-shape {
    display: none !important;
}

/* =============================================
   Header - Clean Navbar (No Glass Blur)
   ============================================= */

/* Hide the green gradient overlay shape */
.header-1.header-2 .header-main .overlay-shape {
    display: none !important;
}

/* Clean semi-transparent dark navbar */
.header-1.header-2 .header-main {
    background: rgba(239, 244, 214, 0.90) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.20) !important;
    border: 1px solid rgba(152, 198, 71, 0.30) !important;
    border-radius: 14px !important;
    position: relative !important;
    overflow: visible !important;
}

/* Remove pseudo elements */
.header-1.header-2 .header-main::before,
.header-1.header-2 .header-main::after {
    display: none !important;
}

/* Logo - fully clear and visible */
.header-1.header-2 .header-main .header-left {
    position: relative !important;
    z-index: 10 !important;
}

.header-1.header-2 .header-main .header-left .logo img {
    filter: none !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Header right above everything */
.header-1.header-2 .header-main .header-right {
    position: relative !important;
    z-index: 10 !important;
}

/* Nav links - white, clean */
.header-1.header-2 .header-main .main-menu ul li a {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 500 !important;
}

.header-1.header-2 .header-main .main-menu ul li a:hover {
    color: #98c647 !important;
}

/* Sticky - white solid background */
.sticky.header-2 .header-main {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10) !important;
    border: 1px solid rgba(152, 198, 71, 0.20) !important;
    border-radius: 14px !important;
}

.sticky.header-2 .header-main::before,
.sticky.header-2 .header-main::after {
    display: none !important;
}

/* Sticky nav links - dark */
.sticky.header-2 .header-main .main-menu ul li a {
    color: #1e3a2f !important;
    text-shadow: none !important;
}

.sticky.header-2 .header-main .main-menu ul li a:hover {
    color: #98c647 !important;
}

/* =============================================
   About Section - Left Shape Visible on All Screens
   ============================================= */

/* Also set z-index on all screens */
.about-section .left-shape {
    z-index: 9 !important;
}

/* Override main.css display:none at 1600px */
@media (max-width: 1600px) {
    .about-section .left-shape {
        display: block !important;
        z-index: 9 !important;
    }
}

/* Adjust size on smaller screens so it doesn't overflow */
@media (max-width: 1600px) {
    .about-section .left-shape img {
        height: 180px !important;
    }
}

@media (max-width: 1199px) {
    .about-section .left-shape img {
        height: 140px !important;
    }
}

@media (max-width: 991px) {
    .about-section .left-shape img {
        height: 110px !important;
    }
}

@media (max-width: 767px) {
    .about-section .left-shape img {
        height: 90px !important;
    }
}

/* =============================================
   Our History Section - Cabage Shape Visible All Screens
   ============================================= */

/* Remove overflow hidden so shape shows above card */
.our-history-section-3 {
    overflow: visible !important;
}

.our-history-section-3 .cabage-shape {
    display: block !important;
    z-index: 10 !important;
    position: absolute !important;
}

/* Desktop default - right side top */
@media (min-width: 1400px) {
    .our-history-section-3 .cabage-shape {
        right: 50px !important;
        top: -230px !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 360px !important;
    }
}

/* Laptop 1200-1399px */
@media (max-width: 1399px) {
    .our-history-section-3 .cabage-shape {
        display: block !important;
        right: 10px !important;
        top: -115px !important;
        z-index: 10 !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 240px !important;
    }
}

/* Tablet 992-1199px */
@media (max-width: 1199px) {
    .our-history-section-3 .cabage-shape {
        right: 0px !important;
        top: -75px !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 180px !important;
    }
}

/* Small tablet 768-991px */
@media (max-width: 991px) {
    .our-history-section-3 .cabage-shape {
        right: 0px !important;
        top: -60px !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 140px !important;
    }
}

/* Mobile 576-767px */
@media (max-width: 767px) {
    .our-history-section-3 .cabage-shape {
        right: 0px !important;
        top: -30px !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 110px !important;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .our-history-section-3 .cabage-shape {
        right: 0px !important;
        top: -15px !important;
    }

    .our-history-section-3 .cabage-shape img {
        height: 90px !important;
    }
}

/* =============================================
   Testimonial Section - Cabage Shape Visible All Screens
   ============================================= */

.testimonial-section-3 {
    overflow: visible !important;
}

.testimonial-section-3 .cabage-shape {
    display: block !important;
    z-index: 10 !important;
    position: absolute !important;
    right: 0 !important;
    bottom: -31px !important;
}

/* Desktop >=1400px */
@media (min-width: 1400px) {
    .testimonial-section-3 .cabage-shape img {
        height: 410px !important;
    }
}

/* Laptop 1200-1399px */
@media (max-width: 1399px) {
    .testimonial-section-3 .cabage-shape {
        display: block !important;
    }

    .testimonial-section-3 .cabage-shape img {
        height: 300px !important;
    }
}

/* Tablet 992-1199px */
@media (max-width: 1199px) {
    .testimonial-section-3 .cabage-shape img {
        height: 230px !important;
    }
}

/* Small tablet 768-991px */
@media (max-width: 991px) {
    .testimonial-section-3 .cabage-shape img {
        height: 180px !important;
    }
}

/* Mobile 576-767px */
@media (max-width: 767px) {
    .testimonial-section-3 .cabage-shape {
        right: 0 !important;
        bottom: 0 !important;
    }

    .testimonial-section-3 .cabage-shape img {
        height: 130px !important;
    }
}

/* Small mobile <=575px */
@media (max-width: 575px) {
    .testimonial-section-3 .cabage-shape {
        right: 0 !important;
        bottom: 0 !important;
    }

    .testimonial-section-3 .cabage-shape img {
        height: 100px !important;
    }
}
/* FAQ Accordion Fix */
.faq-wrapper-3 .faq-box .faq-items .accordion .accordion-button { padding-right: 60px !important; }

