/* Global Font Family */
body, 
.navbar,
.footer-modern,
.footer-brand-name,
.footer-tagline,
.footer-links a,
.footer-support-title,
.footer-link,
h1, h2, h3, h4, h5, h6,
p {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

::placeholder   {
    color: #c0bdbd !important;
    font-size: 14px !important;
}

.navbar {
    padding: 20px 20px; /* Increased padding for larger devices */
    transition: all 0.3s ease;
}
.navbar.nav-sticky {
    padding: 15px 20px;
}

/* Improve navbar brand positioning */
.navbar .navbar-brand {
    color: rgb(221, 212, 212); 
}
.header-dark{
   color: #1a1a1a;
}

section.page-bg-vbs {
    max-height: 300px;
}

.page-title-custom  {
    color: #00000030 !important;
  text-stroke: 5px #6ba85b;
  -webkit-text-stroke: 2px #6ba85b;
  background: #0000008a;
  padding: 0 5px 0 10px;
  border-radius: 10px;
  word-spacing: 15px;
  letter-spacing: 5px !important;
}

nav.navbar.navbar-default ul.nav > li > a   {
    padding: 0 !important;
}

nav.navbar.navbar-default .custom-dropdown::before  {
    content: none;
    display: none;
}


.footer-modern {
    background-color: #1a1a1a;
  
    display: flex;
    align-items: center;
}

.footer-top {
    margin-bottom: 20px;
    border-bottom: 0.5px solid #8aca73; /* Add this line for the border */
    padding-bottom: 10px; /* Ensure space between tagline and footer links */
}

.footer-brand-name {
    font-size: 24px;
    color: #8aca73;
    font-weight: bold;
    margin-bottom:5px;
}

.footer-tagline {
    color: #999;
    font-size: 14px;
}

.footer-links .col {
    margin-bottom: 15px;
}

.footer-links a {
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.footer-links a:hover {
    color: #8aca73;
}

.footer-support-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.footer-second {
    color: #8aca73;
}

.footer-vision-logo {
    width: 190px;
    margin-top: 10px;
}

/* .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 12px;
    color: #666;
} */
.red-text a, .red-text { /* Change navbar text color to red */
    color: #fff !important;
}

.black-text a, .black-text { /* Change navbar text color to black */
    color: black !important;
}
.icon-bar{
    color: black !important;
}
.footer-link {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Adjust spacing for a balanced look */
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: left; /* Aligns text consistently in all columns */
    padding-left: 5px; /* Add uniform padding for cleaner alignment */
    margin-bottom: 5px; /* Adjust margin between links */
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
    
}

.footer-links ul li {
    margin: 0;
    padding: 0;
}

.footer-tagline {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.07em;
}

/* .footer-bottom {
    font-size: 14px;
    letter-spacing: 0.04em;
} */

.subheadings{
color: #383838;
}

.feature-box{
height: 300px;
}
.dark-gray-600{
    color: #404040;
}
.dark-gray-550{
    color: #4d4d4d;
}
.feature-box-image img{
    border-radius:10px;
}
.footerlinks{
    font-size: 14px;
}
.firstvertic{
    height:214px !important;
    width:360px !important;

}
.clients-img{
    height:auto;
    width: 350px !important;
}
.client-divider {
    border: 0;
    height: 1px;
    background-color: #ccc; /* You can change this to your desired color */
    margin: 30px 0; /* Adjust the spacing as needed */
}

/* Enhanced Navigation Styles - Updated */
.navbar {
    padding: 20px 20px; /* Increased padding for larger devices */
    transition: all 0.3s ease;
}

.navbar.nav-sticky {
    padding: 15px 20px;
}

/* Improve navbar brand positioning */
.navbar .navbar-brand {
    color: rgb(221, 212, 212); 
}

/* Better hover effects for navigation */
.dropdown a:hover {
    color: #8aca73 !important;
    transition: all 0.3s ease;
}

/* contact us page */
.contact-five .thm-btn2 {
    padding: 0;
}

.contact-five .thm-btn2 a {
    padding: 12px 30px;
    line-height: 54px;
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 15px !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        z-index: 1050 !important; /* Ensure navbar is above sliders */
    }
    
    .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
        background: linear-gradient(135deg, rgba(138, 202, 115, 0.95) 0%, rgba(110, 165, 93, 0.95) 100%);
        backdrop-filter: blur(10px);
        position: fixed !important;
        z-index: 1045 !important;
    }
    
    .mobile-drawer-logo,
    .mobile-tagline,
    .mobile-flag {
        animation: fadeInUp 0.4s ease;
    }
    
    /* Ensure content stays below navigation */
    .hero-section,
    .main-content,
    section:first-of-type,
    #rev_slider_1078_1_wrapper,
    .tp-banner-container,
    .rev_slider {
        z-index: 1 !important;
        position: relative;
    }
    
    /* Mobile menu overlay for better UX */
    .mobile-menu-overlay {
        backdrop-filter: blur(5px);
    }
}

/* Mobile Navigation Z-Index Fixes and Enhanced Positioning */
@media (max-width: 991px) {
    /* Ensure navbar is above all content including sliders */
    .navbar {
        z-index: 1050 !important;
    }
    
    /* Ensure mobile drawer positioning */
    .navbar-collapse {
        z-index: 1045 !important;
        position: fixed !important;
    }
    
    /* Force content below navigation */
    .hero-section,
    .main-content,
    section:first-of-type,
    #rev_slider_1078_1_wrapper,
    .tp-banner-container,
    .rev_slider,
    .tp-revslider-mainul {
        z-index: 1 !important;
        position: relative;
    }
    
    /* Mobile hamburger button accessibility */
    .navbar-toggler {
        z-index: 1051 !important;
    }
    
    /* Mobile menu overlay styling */
    .mobile-menu-overlay {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    /* Smooth mobile animations */
    .mobile-drawer-logo,
    .mobile-tagline,
    .mobile-flag {
        animation: slideInDown 0.4s ease;
    }
    
    /* Prevent body scroll when menu is open */
    body.drawer-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}

/* Animation keyframes for mobile elements */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced logo positioning for larger screens */
@media (min-width: 992px) {
    .center-logo {
        flex: 0 0 auto;
        margin: 0 30px;
    }
    
    .tagline {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* Better alignment for navigation items */
.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Enhanced dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.1);
}

.footer-top {
    margin-bottom: 20px;
    border-bottom: 0.5px solid #8aca73; /* Add this line for the border */
    padding-bottom: 10px; /* Ensure space between tagline and footer links */
}

.footer-brand-name {
    font-size: 24px;
    color: #8aca73;
    font-weight: bold;
    margin-bottom:5px;
}

.footer-tagline {
    color: #999;
    font-size: 14px;
}

.footer-links .col {
    margin-bottom: 15px;
}

.footer-links a {
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.footer-links a:hover {
    color: #8aca73;
}

.footer-support-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.footer-second {
    color: #8aca73;
}

.footer-vision-logo {
    width: 190px;
    margin-top: 10px;
}

/* .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 12px;
    color: #666;
} */
.red-text a, .red-text { /* Change navbar text color to red */
    color: #fff !important;
}

.black-text a, .black-text { /* Change navbar text color to black */
    color: black !important;
}
.icon-bar{
    color: black !important;
}
.footer-link {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Adjust spacing for a balanced look */
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: left; /* Aligns text consistently in all columns */
    padding-left: 5px; /* Add uniform padding for cleaner alignment */
    margin-bottom: 5px; /* Adjust margin between links */
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
    
}

.footer-links ul li {
    margin: 0;
    padding: 0;
}

.footer-tagline {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.07em;
}
/* 
.footer-bottom {
    font-size: 14px;
    letter-spacing: 0.04em;
} */

.subheadings{
color: #383838;
}

.feature-box{
height: 300px;
}
.dark-gray-600{
    color: #404040;
}
.dark-gray-550{
    color: #4d4d4d;
}
.feature-box-image img{
    border-radius:10px;
}
.footerlinks{
    font-size: 14px;
}
.firstvertic{
    height:214px !important;
    width:360px !important;

}
.clients-img{
    height:auto;
    width: 350px !important;
}
.client-divider {
    border: 0;
    height: 1px;
    background-color: #ccc; /* You can change this to your desired color */
    margin: 30px 0; /* Adjust the spacing as needed */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    .footer-links .col {
        margin-bottom: 20px;
    }
    .bahrain-flag-mark {
        display: none;
    }

    .footer-links a {
        font-size: 16px;
    }

    .footer-support-title {
        font-size: 18px;
    }

    .footer-vision-logo {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .footer-top h2 {
        font-size: 20px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .footer-support-title {
        font-size: 14px;
    }

    .footer-vision-logo {
        width: 100px;
    }

    .footer-links .col {
        text-align: center;
    }


    .footer-links a {
        font-size: 14px;
    }

    .footer-vision-logo {
        width: 140px;
        margin-top: 10px;
    }
    .feature-box{
        height: 250px;
        }
}

.myBox:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tagline {
    position: absolute;
    /* left: -100px; Adjust spacing from the left edge */
    top: 50%; /* Vertically center */
    transform: translateY(-50%);
    padding: 5px 10px; /* Optional padding */
    font-size: 16px; /* Adjust font size */
    color: white; /* Text color */
    

    /* Animation */
    /* animation: bounce 2s infinite; */

    
}

@media (max-width: 576px) {
    .tagline{
       display: none;
    }
    .bahrain-flag-mark {
        display: none;
    }
}




@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0); /* Default position */
    }
    50% {
        transform: translateY(-60%) translateX(0); /* Move slightly upward */
    }
}

.bahrain-flag-mark {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
}



.bahrain-flag-icon {
    height: 40px; /* Adjust the size of the flag */
    width: auto;
    object-fit: contain;
    border-radius: 3px; /* Optional: Add rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for a modern look */
}

/* Optional responsive adjustment */
@media (max-width: 576px) {
    .bahrain-flag-icon {
        height: 20px; /* Reduce size on smaller screens */
    }
}

.contacmob{
    box-shadow: 0px 12px 25px -10px rgba(33, 188, 255, 0.57) !important;
    border-radius: 12px;
}
.containercontct{
    background-image: url('images/bahrain.jpg');
}


.breadcrumbD{
    padding-top: 100px;
}


@media (max-width: 991px) {
   
    .navbar-collapse {
        background-color: #333;
        border-radius: 4px;
        margin-top: 10px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: #fff !important;
    }

    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu .dropdown-item {
        color: #fff;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #4CAF50;
    }
}


.custom-title {
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }
  
  @media screen and (max-width: 1200px) {
    .custom-title {
      font-size: 36px !important;
      line-height: 46px !important;
    }
  }
  
  @media screen and (max-width: 991px) {
    .custom-title {
      font-size: 32px !important;
      line-height: 42px !important;
      max-width: 95%;
    }
  }
  
  @media screen and (max-width: 768px) {
    .custom-title {
      font-size: 28px !important;
      line-height: 36px !important;
      white-space: normal !important;
      padding: 0 20px;
      max-width: 100%;
    }
  }
  
  @media screen and (max-width: 576px) {
    .custom-title {
      font-size: 24px !important;
      line-height: 32px !important;
      white-space: normal !important;
      text-align: center !important;
      padding: 0 15px;
      max-width: 100%;
    }
  }
  
  @media screen and (max-width: 480px) {
    .custom-title {
      font-size: 20px !important;
      line-height: 28px !important;
      padding: 0 10px;
    }
  }

/* Revolution Slider Responsive Improvements */
#rev_slider_1078_1_wrapper {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Responsive slider heights */
#rev_slider_1078_1_wrapper {
    height: 500px !important; /* Default desktop height */
}

/* Large screens */
@media (min-width: 1200px) {
    #rev_slider_1078_1_wrapper {
        height: 550px !important;
    }
}

/* Medium screens */
@media (max-width: 1199px) and (min-width: 992px) {
    #rev_slider_1078_1_wrapper {
        height: 450px !important;
    }
}

/* Tablets */
@media (max-width: 991px) and (min-width: 768px) {
    #rev_slider_1078_1_wrapper {
        height: 400px !important;
    }
    
    .tp-caption.custom-title {
        font-size: 32px !important;
        line-height: 42px !important;
        text-align: center !important;
        width: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Mobile landscape */
@media (max-width: 767px) and (min-width: 576px) {
    #rev_slider_1078_1_wrapper {
        height: 350px !important;
    }
    
    .tp-caption.custom-title {
        font-size: 28px !important;
        line-height: 36px !important;
        padding: 0 20px !important;
        text-align: center !important;
        width: 95% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        white-space: normal !important;
    }
}

/* Mobile portrait */
@media (max-width: 575px) {
    #rev_slider_1078_1_wrapper {
        height: 300px !important;
    }
    
    .tp-caption.custom-title {
        font-size: 24px !important;
        line-height: 32px !important;
        padding: 0 15px !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Enhanced text animations for Revolution Slider */
.tp-caption.custom-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    letter-spacing: 1px !important;
    white-space: nowrap;
    text-align: center !important;
    width: 80% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 42px !important;
    line-height: 52px !important;
    color: #ffffff !important;
    z-index: 10 !important;
}

/* Large desktop screens */
@media (min-width: 1200px) {
    .tp-caption.custom-title {
        font-size: 46px !important;
        line-height: 56px !important;
        width: 70% !important;
    }
}

/* Medium desktop screens */
@media (max-width: 1199px) and (min-width: 992px) {
    .tp-caption.custom-title {
        font-size: 38px !important;
        line-height: 48px !important;
        width: 80% !important;
    }
}

/* Slider background overlay enhancement */
.rev_slider .opacity-extra-medium {
    opacity: 0.4 !important;
    transition: opacity 0.3s ease-in-out;
}

/* Navigation arrows responsive */
@media (max-width: 768px) {
    .tp-leftarrow, .tp-rightarrow {
        display: none !important;
    }
}

/* Bullet navigation responsive */
@media (max-width: 480px) {
    .tp-bullets {
        display: none !important;
    }
}

/* Smooth transitions for all slider elements */
.rev_slider .tp-revslider-slidesli {
    transition: all 0.4s ease-in-out !important;
}

/* Additional enhancements for fast slide transitions */
.rev_slider .tp-caption {
    transition: all 0.3s ease-in-out !important;
}

/* Optimize for 400ms auto-change timing */
.tp-caption.custom-title[data-frames] {
    animation-duration: 0.3s !important;
}

/* Additional responsive improvements for very small screens */
@media (max-width: 480px) {
    .tp-caption.custom-title {
        font-size: 20px !important;
        line-height: 28px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 360px) {
    .tp-caption.custom-title {
        font-size: 18px !important;
        line-height: 26px !important;
        padding: 0 5px !important;
    }
}

/* Ensure proper vertical centering */
.tp-caption.custom-title[data-y="center"] {
    top: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
}

/* Ensure smooth fade transitions between slides */
.rev_slider .tp-revslider-slidesli.active-revslide {
    z-index: 20 !important;
}

.rev_slider .tp-revslider-slidesli.processing-revslide {
    z-index: 18 !important;
}

/* Improved loading performance */
#rev_slider_1078_1_wrapper .tp-loader {
    display: none !important;
}

/* Enhanced mobile touch experience */
@media (max-width: 768px) {
    #rev_slider_1078_1_wrapper {
        touch-action: pan-y pinch-zoom !important;
    }
}

/* Ensure proper aspect ratio maintenance */
.rev_slider .rev-slidebg {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Minimal Brand Section Styles */
.brand-intro-section {
    padding: 60px 0;
    background: #fafafa;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto 50px;
}

.brand-logo-inline {
    vertical-align: baseline;
    height: 28px;
    margin-right: 2px;
}

/* Values Cards */
.values-grid {
    margin-top: 40px;
}

.value-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8aca73, #478131);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #8aca73;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8aca73, #478131);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.value-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.value-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    font-weight: 300;
}

/* Vision/Mission Section */
.vision-mission-section {
    padding: 80px 0;
    background: #fff;
}

.vision-item {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.vision-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8aca73, #478131);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-item:hover .vision-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.vision-icon {
    font-size: 24px;
    color: #fff;
}

.vision-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.vision-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .value-card {
        margin-bottom: 15px;
    }
    
    .vision-mission-section {
        padding: 60px 0;
    }
    
    .vision-item {
        margin-bottom: 40px;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger animation delays */
.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

/* Partners/Certifications Section */
.partners-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.partners-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    position: relative;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8aca73, #478131);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.certification-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8aca73, #478131);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: #8aca73;
}

.certification-item:hover::before {
    transform: scaleX(1);
}

.certification-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3);
}

.certification-item:hover .certification-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .certification-item {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .certification-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .certification-item {
        padding: 15px 10px;
        min-height: 90px;
    }
    
    .certification-logo {
        max-height: 50px;
    }
}

/* Animation classes for scroll triggers */
.fade-in-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.certification-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #f8f9fa;
    position: relative;
}

.section-heading {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #8aca73, #6ab45d);
    border-radius: 2px;
} */

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.gallery-swiper {
    padding: 20px 0 60px 0;
    position: relative;
}

.gallery-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 280px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 202, 115, 0.85), rgba(106, 180, 93, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-icon {
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-icon:hover {
    transform: scale(1.2);
}

/* Swiper Pagination */
.gallery-swiper .swiper-pagination {
    bottom: 20px;
    position: relative;
    margin-top: 30px;
}

.gallery-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: #8aca73;
    transform: scale(1.2);
}

.highlight {
  color: #8bc975;
}

/* Modal Improvements */
#brochureModal .modal-dialog {
    max-width: 800px;
}

#brochureModal .modal-dialog .mb-3 {
    width: calc(50% - .5rem);
}

#brochureModal .modal-body  {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 1.5rem;
    background: #fafafa !important;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
    justify-content: center;
}

.form-label {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(139, 200, 114, 0.25);
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #8bc872 !important;
    border-color: #8bc872 !important;
}

.btn-success:hover {
    background-color: #6fa85b;
    border-color: #6fa85b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal-body .contact-five__input-box    {
    margin-bottom: 0;
}

.modal-body .contact-five__input-box input, .modal-body .contact-five__input-box select {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-image-wrapper {
        height: 220px;
    }
    
    .gallery-swiper .swiper-pagination {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-image-wrapper {
        height: 200px;
    }
    
    .gallery-card {
        border-radius: 15px;
    }
    
    .gallery-image-wrapper,
    .gallery-image,
    .gallery-overlay {
        border-radius: 15px;
    }
}

/* Main Content Section - Responsive Grid */
.main-content-section {
    padding: 4rem 0;
    background: #ffffff;
}

.main-content-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.product-showcase-card {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-showcase-card .main-product-image {
    width: 100%;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
}

.product-showcase-card .main-product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.product-showcase-card .product-details {
    padding: 1.5rem 2rem;
}

.product-showcase-card .product-title {
    font-size: 1.25rem;
    color: #16171a;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-showcase-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.product-showcase-card .features-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #4a4a4a;
    font-size: 0.9rem;
}

.product-showcase-card .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-showcase-card .product-sku {
    color: #666;
    font-size: 0.85rem;
}

.product-showcase-card .contact-info a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-showcase-card .contact-info a:hover {
    color: #388E3C;
}

@media (max-width: 767px) {
    .main-content-section .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 366px;
    }
    
    .product-showcase-card .product-details {
        padding: 1.25rem 1.5rem;
    }
}

@media (min-width: 1200px) and (max-width: 1270px)  {
    .nav-loaded header nav.menu-logo-center .navbar-nav > li > a {margin: 0 0;}
}

@media (min-width: 993px) and (max-width: 1199px)  {
    .d-lg-none  {display: inline-block !important;}
    
    .mobile-drawer-logo {
        width: fit-content !important;
        text-align: center;
        order: 2;
    }
    #navbar-collapse-toggle-1 .d-lg-flex    {
        order: 4;
    }
    .mobile-brand-chip  {
        width: fit-content !important;
        order: 1;
    }
    .mobile-flag    {
        width: fit-content !important;
        order: 3;
        margin-top: 0 !important;
        padding-top: 0 !important;
        right: 100px;
    }
    .mobile-flag-text   {display: none;}
}










