/* Add here all your css styles (customizations) */

/* Align navbar brand (logo) vertically and center it */
.header-v6 .navbar-brand {
    height: 93px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-v6 .navbar-brand a {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Ensure smooth transitions for logo container and images */
.header-v6 .navbar-brand,
.header-v6 .navbar-brand a,
.header-v6 .navbar-brand img {
    transition: all 0.4s cubic-bezier(.7, 1, .7, 1) !important;
}

/* Limit maximum height of the logo images in normal (unshrunk) header state */
.header-v6 .navbar-brand img.default-logo,
.header-v6 .navbar-brand img.shrink-logo {
    max-height: 60px !important; /* Elegant height to leave padding top/bottom */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Shrink header state layout */
.header-fixed .header-v6.header-fixed-shrink .navbar-brand {
    height: 70px !important;
}

/* Limit maximum height of the logo images when header is shrunk */
.header-fixed .header-v6.header-fixed-shrink .navbar-brand img.default-logo,
.header-fixed .header-v6.header-fixed-shrink .navbar-brand img.shrink-logo {
    max-height: 44px !important; /* Smaller size when header shrinks */
}

/* On mobile/tablet screens, adjust logo size to prevent overflow */
@media (max-width: 991px) {
    .header-v6 .navbar-brand img.default-logo,
    .header-v6 .navbar-brand img.shrink-logo {
        max-height: 52px !important; /* Elegant size for mobile screens */
    }
}

/* Premium Products Grid & Card Styling */
#grid-container .cbp-item {
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-sizing: border-box !important;
}

#grid-container .cbp-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: #72c02c !important; /* Matches green theme color */
}

#grid-container .cbp-caption {
    background: #fdfdfd !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #f0f0f0 !important;
    position: relative !important;
}

#grid-container .cbp-caption-defaultWrap {
    height: 220px !important; /* Perfect uniform height for product images */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: background 0.3s ease !important;
}

#grid-container .cbp-caption-defaultWrap img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Prevents cropping or stretching of engineering components */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#grid-container .cbp-item:hover .cbp-caption-defaultWrap img {
    transform: scale(1.08) !important; /* Smooth micro-zoom on hover */
}

#grid-container .cbp-title-dark {
    padding: 15px 5px 8px 5px !important;
    text-align: center !important;
    background: transparent !important;
}

#grid-container .cbp-l-grid-agency-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Single line clean truncation */
    font-family: 'Open Sans', sans-serif !important;
    transition: color 0.3s ease !important;
}

#grid-container .cbp-item:hover .cbp-l-grid-agency-title {
    color: #72c02c !important; /* Text changes color to theme green on hover */
}

/* Lightbox/hover styling overrides */
#grid-container .cbp-caption-activeWrap {
    background: rgba(39, 58, 78, 0.85) !important; /* Premium overlay */
    transition: all 0.3s ease !important;
}

#grid-container .link-captions li a i {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 16px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    display: inline-block !important;
}

#grid-container .link-captions li a i:hover {
    background: #72c02c !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Custom Styling for Video Background to improve contrast and layout */
.ms-layers-template {
    border-bottom: 4px solid #f59e0b !important; /* Premium gold accent line at the bottom of the video section */
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

.ms-slide-bgvideocont {
    position: relative !important;
}

.ms-slide-bgvideocont::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 118, 43, 0.42) 0%, rgba(15, 25, 15, 0.72) 100%) !important; /* Premium brand green to dark charcoal green gradient */
    z-index: 2 !important; /* Positions overlay on top of video, below text layers */
    pointer-events: none;
}

/* Ensure slides and containers have a transparent background so the video isn't hidden behind them */
.ms-slide,
.ms-slide-bgvideocont,
.ms-slide-bgvideocont .ms-slide-bg,
.master-slider {
    background: transparent !important;
    background-color: transparent !important;
}

.ms-slide-bgvideocont video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 1 !important;
    /* Prevent 3D stacking context issues on mobile GPU rendering */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Force show video background on mobile screens (overriding Master Slider defaults) */
@media (max-width: 768px) {
    .ms-slide-bgvideocont video {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }
}

/* Force hide Style Switcher and Slider Navigation */
.style-switcher, 
i.style-switcher-btn, 
.ms-nav-next, 
.ms-nav-prev {
    display: none !important;
}

/* Responsive Video HTML5 Fix */
.responsive-video video {
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Floating WhatsApp & Call Buttons styling */
.floating-contact-wrap {
    position: fixed;
    right: 25px;
    bottom: 95px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-contact-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #fff !important;
}

.floating-contact-btn i {
    font-size: 26px;
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.floating-contact-btn:hover i {
    transform: rotate(10deg) scale(1.05);
}

.floating-contact-btn .btn-tooltip {
    position: absolute;
    right: 70px;
    background: #222;
    color: #fff;
    padding: 8px 15px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}

.floating-contact-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #222;
}

.floating-contact-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 64px;
}

.whatsapp-btn {
    background: #25D366 !important;
}

.whatsapp-btn:hover {
    background: #20ba5a !important;
}

.call-btn {
    background: #1565C0 !important;
}

.call-btn:hover {
    background: #0d47a1 !important;
}

@media (max-width: 768px) {
    .floating-contact-wrap {
        right: 15px;
        bottom: 80px;
        gap: 10px;
    }
    .floating-contact-btn {
        width: 46px;
        height: 46px;
    }
    .floating-contact-btn i {
        font-size: 22px;
    }
    .floating-contact-btn .btn-tooltip {
        display: none; /* Hide tooltips on mobile to avoid layout crowding */
    }
}

/* Premium Clientele Page Styling */
.clientele-header {
    text-align: center;
    margin-bottom: 40px;
}

.clientele-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.clientele-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #3f762b; /* Premium brand green */
    border-radius: 2px;
}

.client-hd-showcase {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.client-hd-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.client-hd-showcase img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

/* Modern Client Grid Card */
.client-logo-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 15px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.client-logo-card img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* Premium Org Chart Styles */
.org-chart-container {
    padding: 40px 20px;
    background: #fcfdfe;
    border-radius: 12px;
    border: 1px solid #eef2f5;
    box-shadow: 0 6px 25px rgba(0,0,0,0.03);
    margin-bottom: 50px;
}
.org-director-row {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}
.org-director-card {
    background: #ffffff;
    border: 3px solid #f59e0b; /* Gold border */
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
    text-align: center;
    padding: 15px;
    transition: all 0.3s ease;
}
.org-director-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(245, 158, 11, 0.28);
}
.org-director-card i {
    font-size: 28px;
    color: #f59e0b;
    margin-bottom: 8px;
}
.org-director-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #222;
    text-transform: uppercase;
}
.org-director-card small {
    font-size: 10px;
    color: #f59e0b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.org-dept-header {
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px 8px 0 0;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.org-dept-body {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.org-member-node {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px !important;
    text-align: left !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.org-member-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.org-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
}
.org-member-node h5 {
    font-size: 11px !important;
    font-weight: 700;
    margin: 0 !important;
    color: #333333;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Department Color Variations */
.dept-marketing .org-dept-header { background: #10b981; } /* Emerald Green */
.dept-marketing .org-member-node:hover { border-color: #10b981; background: #ecfdf5; }

.dept-design .org-dept-header { background: #ef4444; } /* Red */
.dept-design .org-member-node:hover { border-color: #ef4444; background: #fef2f2; }

.dept-finance .org-dept-header { background: #18181b; } /* Black */
.dept-finance .org-member-node:hover { border-color: #18181b; background: #fafafa; }

.dept-mfg .org-dept-header { background: #3b82f6; } /* Blue */
.dept-mfg .org-member-node:hover { border-color: #3b82f6; background: #eff6ff; }

.dept-inspection .org-dept-header { background: #06b6d4; } /* Teal */
.dept-inspection .org-member-node:hover { border-color: #06b6d4; background: #ecfeff; }
/* Helper for 5-column responsive grid layout */
@media (min-width: 992px) {
    .col-md-25 {
        width: 20%;
        float: left;
    }
}

/* CEO Specialisation Card Styling */
.ceo-specialisation-card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.ceo-specialisation-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ceo-spec-header {
    background: #3f762b; /* Shubhrah Brand Green */
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 3px solid #f59e0b; /* Gold accent line */
}

.ceo-spec-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-grow: 1;
    margin: 0;
    text-align: center; /* Center align the title */
}

.ceo-spec-body {
    padding: 25px;
    background: #ffffff;
}

.ceo-spec-photo-container {
    padding: 5px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ceo-spec-photo {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.ceo-spec-photo:hover {
    transform: scale(1.02);
}

.ceo-spec-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
    border-left: 3px solid #f59e0b; /* Gold accent bar */
    padding-left: 15px;
}

.ceo-spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.ceo-spec-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 18px;
}

.ceo-spec-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: #3f762b; /* Green bullet matching mockup */
    font-size: 12px;
}

.ceo-spec-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #3f762b; /* Brand green matching mockup */
    margin-bottom: 4px;
}

.ceo-spec-item-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.ceo-spec-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    margin-top: 15px;
}

.ceo-spec-footer strong {
    font-size: 13px;
    color: #3f762b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.ceo-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.ceo-title {
    font-size: 13px;
    color: #4b5563;
    font-style: italic;
}

@media (max-width: 768px) {
    .ceo-spec-header {
        padding: 12px 15px;
    }
    .ceo-spec-title {
        font-size: 15px;
    }
    .ceo-spec-body {
        padding: 15px;
    }
    .ceo-spec-photo-container {
        margin-bottom: 20px;
    }
}

/* Submenu (Dropdown) styling overrides to match brand colors */
.header-v6 .dropdown-menu {
    background: #3f762b !important; /* Brand green background */
    border-top: none !important; /* Remove default top green border */
    border-bottom: 3px solid #f59e0b !important; /* Premium gold bottom border */
    padding: 0 !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

.header-v6 .dropdown-menu li a {
    color: #ffffff !important; /* White text color for readability */
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; /* Subtle dividing lines */
    transition: all 0.25s ease-in-out !important;
}

.header-v6 .dropdown-menu li:last-child a {
    border-bottom: none !important; /* Remove border from last item */
}

/* Hover and active states */
.header-v6 .dropdown-menu li > a:hover,
.header-v6 .dropdown-menu .active > a {
    color: #ffffff !important;
    background: #f59e0b !important; /* Contrast gold background on hover */
}

/* Ensure the dropdown submenu is positioned relatively to its own menu item on desktop */
@media (min-width: 992px) {
    .header-v6 .navbar-nav > li.dropdown {
        position: relative !important;
    }
}

/* Sidebar Nav v1 styling overrides to match brand colors */
.sidebar-nav-v1 > li.active,
.sidebar-nav-v1 > li.active:hover,
.sidebar-nav-v1 > li.active:focus {
    background: #f59e0b !important; /* Brand gold/yellow background for active sidebar item */
    border-color: #f59e0b !important;
}

.sidebar-nav-v1 li.active a,
.sidebar-nav-v1 li.active a:hover,
.sidebar-nav-v1 li.active a:focus,
.sidebar-nav-v1 > li.active > a,
.sidebar-nav-v1 > li.active > a:hover {
    color: #ffffff !important; /* Always solid white text for active menu item, even on hover */
}

.sidebar-nav-v1 li:not(.active) a:hover,
.sidebar-nav-v1 ul li:not(.active):hover a {
    color: #f59e0b !important; /* Brand gold/yellow on hover for non-active links */
}




/* About Section Factory Image styling overrides */
.about-factory-image-container {
    border: 4px solid #3f762b !important; /* Premium brand green border */
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transition: all 0.4s ease-in-out !important;
}

.about-factory-image-container:hover {
    border-color: #f59e0b !important; /* Shifts to brand gold on hover */
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18) !important;
}

.about-factory-image-container img {
    transition: transform 0.5s ease !important;
}

.about-factory-image-container:hover img {
    transform: scale(1.04) !important; /* Elegant zoom on hover */
}

/* Custom premium breadcrumbs styling matching green-gold theme */
.breadcrumbs {
    background: #3f762b !important; /* Solid brand green background */
    border-bottom: 3px solid #f59e0b !important; /* Gold bottom accent border */
    padding: 16px 0 12px !important;
}

.breadcrumbs h1 {
    color: #ffffff !important; /* High contrast white title */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

.breadcrumbs .breadcrumb li,
.breadcrumbs .breadcrumb li a {
    color: rgba(255, 255, 255, 0.85) !important; /* High contrast off-white text for links */
    font-weight: 600 !important;
    transition: color 0.2s ease-in-out !important;
}

.breadcrumbs .breadcrumb li a:hover,
.breadcrumbs .breadcrumb li.active {
    color: #f59e0b !important; /* High contrast gold color for hover/active link */
    text-decoration: none !important;
}

.breadcrumbs .breadcrumb > li + li::before {
    color: rgba(255, 255, 255, 0.5) !important; /* Semi-transparent white breadcrumb slash separator */
}

/* ==========================================================================
   Header v6 Desktop Layout & Alignment Fix
   ========================================================================== */
@media (min-width: 992px) {
    /* Align brand and navbar menu side-by-side */
    .header-v6 .navbar > .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Container holding the logo */
    .header-v6 .navbar > .container > .menu-container {
        display: flex !important;
        align-items: center !important;
        float: none !important;
    }

    /* Navbar Collapse container holding the links */
    .header-v6 .navbar-collapse {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-grow: 1 !important;
        float: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Inner menu container wrapper */
    .header-v6 .navbar-collapse .menu-container {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        width: auto !important;
    }

    /* Ensure horizontal list alignment */
    .header-v6 .navbar-nav {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin: 0 !important;
    }

    .header-v6 .navbar-nav > li {
        float: none !important;
    }
}

/* ==========================================================================
   Header v6 Main Navigation Link Styles (Classic White Header)
   ========================================================================== */
.header-v6.header-classic-white .navbar-nav > li > a {
    color: #444444 !important; /* Premium dark grey for normal state */
    font-weight: 700 !important; /* High contrast bold weight */
    transition: color 0.3s ease !important;
}

/* Fix link disappearing on hover (turning white on white background) */
.header-v6.header-classic-white .navbar-nav > li > a:hover {
    color: #3f762b !important; /* Premium brand green on hover */
    background: transparent !important;
}

/* Active navigation link */
.header-v6.header-classic-white .navbar-nav > .active > a,
.header-v6.header-classic-white .navbar-nav > .active > a:hover,
.header-v6.header-classic-white .navbar-nav > .active > a:focus {
    color: #3f762b !important; /* Premium brand green for active page */
    background: transparent !important;
}

