/********** Template CSS **********/
:root {
    --primary: #55022f; /*#16486b*/
    --light: #F5F5F5;
    --dark: #353535;
    --darkgrey: #1d1515;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

  h3{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    color: #000;
    font-size: 25px;
  }
  h3 span { font-size: 30px; }


  @media screen and (max-width: 768px) {
    h3{
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        color: #000;
        font-size: 17px;
      }
      h3 span { font-size: 20px; }
  }


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-grow {
    color: var(--primary) !important; /* target the spinner directly */
}



/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}



.btn-contact {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
    /* White contour */
  border: 1px solid rgba(255, 255, 255, 1);
}

.btn-contact:hover {
  background: linear-gradient(90deg, #6e0636 20%, var(--primary) 90%); /*#55022f*/
  background-size: 200% 100%;
  background-position: left;
  color: #fff;
}

.btn-sm {
  padding-top: 0.475rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.75;
  display: flex;              /* ADD THIS */
  align-items: center;        /* ADD THIS */
  justify-content: center;    /* optional */
}


/*** Navbar ***/
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100; /* Make navbar above page content */
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

/* Remove shadow on mobile */
@media (max-width: 767.98px) {
    .navbar {
        box-shadow: none;
    }
}

/* Logo and burger toggler always on top */
.navbar-toggler,
.navbar-brand {
    position: relative;
    z-index: 1200; /* Above navbar collapse */
}

/* Dropdown arrow style */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Nav link hover/active colors */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Active/focus/visited states without hover */
.navbar-light .navbar-nav .nav-link:focus:not(:hover),
.navbar-light .navbar-nav .nav-link:active:not(:hover),
.navbar-light .navbar-nav .nav-link:visited:not(:hover) {
    color: #000000;
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

/* Nav link padding and margin on smaller screens */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* Brand height */
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

/* Nav link styles */
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

/* Sticky top transition fix - optional */
.navbar-light.sticky-top {
    top: 0;
    transition: .5s;
}

/* Dropdown menu - standard single column */

.dropdown-menu.dropdown-standard {
    display: none; /* Hide by default */
    padding: 1rem;
    min-width: 250px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.dropdown-menu.dropdown-standard.show {
    display: block; /* Show when toggled */
}

.dropdown-menu.dropdown-standard .dropdown-item {
    white-space: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #000000;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-menu.dropdown-standard .dropdown-item:hover {
    color: var(--primary);
    background-color: #f8f9fa;
}

/* Multi-column dropdown */
.dropdown-menu.dropdown-multicolumn {
    display: none; /* Hide by default */
    gap: 2rem;
    padding: 1rem;
    width: 600px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.dropdown-multicolumn.show {
    display: flex; /* Show when toggled */
}

.dropdown-menu.dropdown-multicolumn .dropdown-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dropdown-menu.dropdown-multicolumn .dropdown-item {
    white-space: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #000000;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-menu.dropdown-multicolumn .dropdown-item:hover {
    color: var(--primary);
    background-color: #f8f9fa;
}

/* Column titles */
.dropdown-column-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0.75rem;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 4px;
}

/* Dropdown item hover */
.dropdown-menu .dropdown-item:hover {
    color: var(--primary) !important;
    background-color: #f8f9fa;
    border: 1px solid #dcdcdc; /* light grey contour */
    border-radius: 4px; /* optional, makes it look smoother */
}


/* Show dropdown on hover for large screens */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block; /* Override Bootstrap's display:none */
        border: none;
        margin-top: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    }

    /* Keep collapse menu in flow to avoid wrapping */
    #navbarCollapse {
        position: static !important;
        top: auto !important;
        box-shadow: none !important;
    }
}

/* Logo sizing */
.logo {
    height: 50px;
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 33px;
    }
}

/* Small screens: fixed, scrollable collapse menu */
@media (max-width: 991.98px) {
    #navbarCollapse {
        position: fixed; /* Fix in viewport */
        top: 75px; /* Below navbar */
        left: 0;
        right: 0;
        bottom: 0; /* Fill down */
        background: #fff;
        z-index: 1150;
        overflow-y: auto; /* Scroll inside */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Hide when collapsed */
    .collapse:not(.show) {
        display: none !important;
    }

    /* Stack multi-column dropdown vertically */
    .dropdown-menu.dropdown-multicolumn {
        width: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dropdown-menu.dropdown-multicolumn.show {
        display: block; /* stack columns vertically when shown */
    }

    .dropdown-menu.dropdown-multicolumn .dropdown-column {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Large screens: multi-column dropdown */
@media (min-width: 992px) {
    .dropdown-menu.dropdown-multicolumn {
        display: flex !important;
        gap: 2rem;
        padding: 1rem;
        width: 600px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu.dropdown-multicolumn .dropdown-column {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
}

#langDropdown .dropdown-item {
    padding-top: 10px;
    padding-bottom: 10px;
}

#langDropdown .dropdown-menu {
    padding: 1rem; /* same as standard dropdown */
}




/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 600px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

@media (min-width: 769px) {
    /* General Styles for Larger Screens */
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 90vh; /* Set height as 90% of the viewport height */
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure images fill the container */
    }
}



.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/

/*** Section Title ***/

/* Shared base */
.section-title h1,
.section-title h2 {
  position: relative;
  display: inline-block;
}

/* h1 keeps the side lines */
.section-title h1 {
  padding: 0 60px;
}

.section-title.text-start h1 {
  padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
  position: absolute;
  content: "";
  width: 45px;
  height: 5px;
  bottom: 0;
  background: var(--dark);
}

.section-title h1::before {
  left: 0;
}

.section-title h1::after {
  right: 0;
}

.section-title.text-start h1::before {
  display: none;
}

/* h2 gets a single line BELOW, left aligned */
.section-title h2::after {
  content: "";
  display: block;
  width: 80px;                     /* length of the divider */
  height: 5px;                     /* thickness */
  margin-top: 8px;                 /* spacing from title */
  background: var(--primary);      /* blue line */
  border-radius: 2px;              /* optional rounded edges */
  text-align: left;                /* ensure it sticks left */
}



/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.about-text p {
    text-align: justify; /* Justifies the text */
}

.clients-blue {
    color: var(--primary);
}

.ratings-gold {
    color: #ffcc00;
}



.service-item2 {
    display: flex;
    flex-direction: row;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-item2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-item2 .overflow-hidden {
    width: 40%;
    max-height: 100%;
    overflow: hidden;
}

.service-item2 img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    transition: transform 0.5s;
}

.service-item2:hover img {
    transform: scale(1.1);
}

.service-item2 .p-4 {
    width: 60%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    color: var(--darkgrey);
}

.service-item2 .p-4 h4 {
    text-align: left;
}

/* Optional: style video if you ever include it */
.service-item2 video {
    height: 370px;
    width: auto;
}

/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
    .service-item2 {
        flex-direction: column;
    }

    .service-item2 .overflow-hidden,
    .service-item2 .p-4 {
        width: 100%;
    }

    .service-item2 img {
        border-radius: 1rem 1rem 0 0;
    }
}



/*** Lab ***/
.fixed-size2 {
    height: 530px; /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing between elements */
}

.fixed-size2 .overflow-hidden {
    height: 300px; /* Fixed height for the image container */
    overflow: hidden; /* Ensures the image doesn’t exceed this container */
}

.fixed-size2 img {
    width: 100%; /* Ensure the image scales to fit the width */
    height: 300px; /* Set a consistent height */
    object-fit: cover; /* Maintain proportions, fill the container */
    transition: transform 0.5s; /* Smooth scaling effect */
}

.fixed-size2:hover img {
    transform: scale(1.1); /* Zoom in on hover */
}

.fixed-size2 .p-4 {
    height: 230px; /* set a fixed height for all text areas */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* heading at top, text below */
    text-align: justify;
}


.fixed-size2 .p-4 h4 {
    text-align: left;
}


.service-item video {
    height: 370px;  /* Adjust height */
    width: auto;    /* Maintain aspect ratio */
}

/* Rounded corners and shadow */
.service-item {
    border-radius: 1rem; /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Soft shadow */
    overflow: hidden; /* Clip inner content to border radius */
    background: #fff; /* Optional: give boxes a white background */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Deeper shadow */
}

/* Optional: match rounded corners for image and text container */
.service-item img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.service-item .p-4 {
    border: none; /* Optional: remove inner border if redundant */
    color: var(--darkgrey);
}


/*** Cards ***/
.angled-section-right {
  position: relative;
  background: transparent;
  padding-top: 2rem;
  padding-bottom: 4rem;
  color: white;
  display: flex;
  justify-content: center;

  /* normal layout: no margin tricks */
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1;
}

/* Pseudo-element for border */
.angled-section-right::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw; /* overflow the left side */
  right: 20pt;  /* stop border 50pt before right edge */
  border: 4px solid rgba(58, 78, 120, 0.8);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  pointer-events: none; /* so it doesn't block clicks */
  z-index: -1; /* behind content */
}




.angled-section-left {
  position: relative;
  background: transparent;
  padding-top: 2rem;
  padding-bottom: 4rem;
  color: white;
  display: flex;
  justify-content: center;

  /* normal layout: no margin tricks */
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1;
}

/* Pseudo-element for border */
.angled-section-left::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -100vw; /* overflow the left side */
  left: 20pt;  /* stop border 50pt before right edge */
  border: 4px solid rgba(58, 78, 120, 0.8);
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  pointer-events: none; /* so it doesn't block clicks */
  z-index: -1; /* behind content */
}

@media (max-width: 768px) {
  .angled-section-right::before {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .angled-section-left::before {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
}



.card-wrapper {
  max-width: 1000px; /* or whatever suits your 3-card layout width + margin */
  margin: 0 auto;
  padding: 0 2rem; /* ensures spacing at small widths */
  position: relative;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}




/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}

.team-item p {
    text-align: justify; /* Justifies the text */
    margin-top: 20px; /* Adds space below the paragraph */
}



/*** Clients ***/
.clients-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.clients-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .clients-carousel::before,
    .clients-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .clients-carousel::before,
    .clients-carousel::after {
        width: 300px;
    }
}

.clients-carousel .owl-item .testimonial-text {
    border: 0px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.clients-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.clients-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.clients-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.clients-carousel .owl-nav .owl-prev,
.clients-carousel .owl-nav .owl-next {
    position: relative;
    color: #b9bbbd;
    font-size: 45px;
    transition: .5s;
}

.clients-carousel .owl-nav .owl-prev:hover,
.clients-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
}

.testimonial-text a {
    color: var(--primary); /* your normal link color */
    text-decoration: none; /* remove default underline */
}

.testimonial-text a:hover {
    text-decoration: underline; /* add underline on hover */
    text-decoration-color: var(--primary); /* set underline color to your primary color */
}



/*** Development Carousel ***/

/* Remove left/right gradient overlays */
.development-carousel::before,
.development-carousel::after {
    content: none;
}

/* Testimonial item container */
.development-carousel .owl-item .testimonial-item {
    text-align: center;
    transition: transform 0.5s;
    cursor: pointer; /* make entire item clickable */
}

/* Images inside testimonial items */
.development-carousel .owl-item .testimonial-item img {
    width: 90px;
    height: 90px;
    transition: transform 0.5s;
}

/* Default smaller size */
.development-carousel .owl-item .testimonial-item {
    transform: scale(0.6);
    transition: transform 0.5s, color 0.5s;
}

/* Text inside testimonial items */
.development-carousel .owl-item .testimonial-text {
    transition: transform 0.5s, color 0.5s;
    color: inherit;
}

/* Hover effect for NON-center items */
.development-carousel .owl-item:not(.center) .testimonial-item:hover img,
.development-carousel .owl-item:not(.center) .testimonial-item:hover .testimonial-text {
    transform: scale(1.2);
    color: var(--primary);
}

/* Center item default larger size */
.development-carousel .owl-item.center .testimonial-item {
    transform: scale(0.95);
}

/* Navigation arrows container */
.development-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s, width 0.5s;
    z-index: 1;
}

/* Show arrows on hover */
.development-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

/* Arrow styles */
.development-carousel .owl-nav .owl-prev,
.development-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: color 0.5s;
}

/* Arrow hover effect */
.development-carousel .owl-nav .owl-prev:hover,
.development-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .gallery-section {
        display: none !important;
    }
}

.development-carousel .owl-item.center .testimonial-item h5 {
    color: var(--primary) !important;
}

.development-carousel .owl-item:not(.center) .testimonial-item:hover h5 {
    color: var(--primary) !important;
}






/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 0px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item .testimonial-text p {
    text-align: justify; /* Justify paragraph text */
}


.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
    pointer-events: none; /* Prevent the nav container itself from blocking clicks */
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    pointer-events: auto; /* Allow clicks only on the arrows */
    color: #b9bbbd;
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
}


/*** Contact ***/

.map-responsive {
    overflow:hidden;
    padding-bottom:30%;
    position:relative;
    height:0;
   }
   .map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
   }


@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}



/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)),
                url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

/* Social buttons */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

/* Footer text links */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
}

/* Arrow */
.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* Text span */
.footer .btn.btn-link span {
    text-decoration: none;
}

/* Hover effect: underline ONLY text */
.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link:hover span {
    text-decoration: underline;
}

.footer .btn.btn-link:focus,
.footer .btn.btn-link:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Copyright */
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--light);
    text-decoration: underline;
}




/* Adjust 80px to your fixed header height */
[id] {
  scroll-margin-top: 80px;
}

/* Cookier banner */

.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: calc(100% - 32px);
  z-index: 9999;
  font-family: system-ui, Arial, sans-serif;
}

.consent-banner strong {
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

.consent-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

button.primary {
  background: #378d3a ;
  color: white;
}

button.primary:hover {
  background: #256d47; 
}

button.secondary {
  background: #f2f2f2;
  color: #333;
}

button.secondary:hover {
  background: #e0e0e0;
}

.hidden {
  display: none;
}

/*** Safran caroussel ***/

    .safran-container {
      display: flex;
      gap: 10px; /* horizontal and vertical spacing */
      height: 50vh;
      width: 90vw;
      margin: 0 auto; /* centers horizontally */
    }

    .safran-card {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px; /* Add this line */
    }

    .safran-card:hover {
      flex: 1.2;
    }

    .safran-card.active {
      flex: 3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }

    .safran-veil {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      transition: background 0.5s ease;
      z-index: 1;
    }

    .safran-card.active .safran-veil {
      background: rgba(0, 0, 0, 0.7);
    }

    .safran-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centered in collapsed state */
    width: 60px;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    }

    .safran-card.active .safran-icon {
    opacity: 0; /* stays visible */
    }

    /* Active icon shown when card is active */
    .safran-icon-active {
    width: 60px;           /* or your preferred size */
    height: 60px;          /* optional, keeps aspect ratio */
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;   /* spacing from content */
    opacity: 0;            /* initially hidden */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 3;
    }

    /* Show active icon when card is active */
    .safran-card.active .safran-icon-active {
    opacity: 1;
    transform: translateY(0);
    }

    .safran-title {
    position: absolute;
    top: calc(50% + 40px);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;         /* keep on one line by default */
    overflow: hidden;            /* hide overflow */
    text-overflow: ellipsis;     /* show "..." if it’s too long */
    line-height: 1.2;
    max-width: 90%;              /* ensure it doesn’t exceed card width */
    }

    /* Allow wrapping only when card is active (expanded) */
    .safran-card.active .safran-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    }

    .safran-card.active .safran-title {
      opacity: 0;
    }

    .safran-content {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.0s ease, visibility 0s linear 0.5s;
      max-width: 400px;
      text-align: left;
      z-index: 2;
      color:white;
    }

    .safran-card.active .safran-content {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.5s ease, visibility 0s linear 0s;
    }

    .safran-content h2 {
      margin: 0 0 10px;
      font-size: 24px;
      color: white;
    }

    .safran-content p {
      font-size: 16px;
      line-height: 1.4;
      margin-bottom: 20px;
    }

    .safran-btn {
    background-color: var(--primary); /* Same as .btn-contact */
    color: #fff;
    padding: 0.5rem 1.5rem;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 0.375rem; /* Same rounded corners */
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none; /* Optional if it's a <button> */
    }

    .safran-btn:hover {
    background-color: var(--primary);
    color: #fff;
    }

    .safran-divider {
        width: 80%; /* full width of the content */
        height: 1px; /* thickness of the line */
        background-color: rgba(255, 255, 255, 1); /* fully opaque white */
        margin: 10px 0 10px 0; /* top 0, right 0, bottom 15px, left 0 -> left-aligned with padding below */
        opacity: 0; /* hidden by default */
        transition: opacity 0.5s ease;
    }

    .safran-card.active .safran-divider {
        opacity: 1; /* visible when card is active */
    }





/* =========================
   VISIBILITY CONTROL
   ========================= */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* =========================
   MOBILE STYLES
   ========================= */
@media (max-width: 768px) {

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .safran-mobile-section {
    padding: 2rem 1rem;
  }

  .safran-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .safran-mobile-card {
    position: relative;
    height: 150px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-decoration: none;
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);

    transition: transform 0.1s ease;
  }

  /* Prevent browser link color changes */
  .safran-mobile-card,
  .safran-mobile-card:link,
  .safran-mobile-card:visited,
  .safran-mobile-card:hover,
  .safran-mobile-card:active {
    color: white !important;
    text-decoration: none !important;
  }

  /* Dark overlay for readability */
  .safran-mobile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
  }

  .safran-mobile-card img {
    width: 42px;
    z-index: 2;
  }

  .safran-mobile-card span {
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
    text-decoration: none; /* no underline by default */
  }

  /* Tap effect: scale card slightly */
  .safran-mobile-card:active {
    transform: scale(0.97);
  }

  /* Underline title only on tap */
  .safran-mobile-card:active span {
    text-decoration: underline;
  }
}






    /* Section titles */

.section-title {
  text-align: left;       /* left-align */
  margin-left: 0vh;      /* adjust as needed */
}

.section-title .section-heading {
  color: #000000;
  font-size: 16px;        /* same as nav links */
  font-weight: 500;
  text-transform: uppercase;
  font-family: inherit;   /* will match nav font */
  text-align: center;
  margin: 0;              /* remove extra spacing */
  padding: 5px 0;         /* subtle padding */
  letter-spacing: 0.5em; /* controls spacing between all letters */
}



/* Contact wrapper: centers form and adds background image */
.contact-wrapper {
  display: flex;
  justify-content: center;   /* Horizontal center */
  align-items: center;       /* Vertical center */
  height: 100vh;             /* Full viewport height */
  padding: 20px;
  position: relative;

  /* Background image */
  background-image: url('../img/pcb.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay over the background image */
.contact-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Adjust opacity for darkness */
  z-index: 0; /* Behind the form */
}

/* Contact form container */
.contact-wrapper .contact-form {
  position: relative;  /* above the overlay */
  z-index: 1;
  background: #fff;    /* solid white */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 80%;          /* Wider by default */
  max-width: 600px;
  min-width: 300px;
  box-sizing: border-box;
}

.contact-wrapper .contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;

  resize: vertical;      /* or none */
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
}


/* Form heading */
.contact-wrapper .contact-form h2 {
  margin-bottom: 25px;
  color: var(--dark);
  text-align: left;
  font-size: 1.4rem;
}

/* Inputs and textarea */
.contact-wrapper .contact-form input,
.contact-wrapper .contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}



/* Submit button styled like your .btn-contact */
.contact-wrapper .contact-form button {
  width: 100%;
  padding: 12px 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-position 0.3s ease;
  background-image: linear-gradient(90deg, var(--primary) 0%, var(--primary) 100%);
  background-size: 200% 100%;
  background-position: left;
}

/* Hover effect for button */
.contact-wrapper .contact-form button:hover {
  background-image: linear-gradient(90deg, #6e0636 20%, var(--primary) 90%);
  background-size: 200% 100%;
  background-position: right;
  color: #fff;
}

/* Success / error messages */
.contact-wrapper .contact-form .success-message,
.contact-wrapper .contact-form .error-message {
  text-align: center;
  margin-top: 15px;
  display: none;
  font-size: 1rem;
}

.contact-wrapper .contact-form .success-message {
  color: green;
}

.contact-wrapper .contact-form .error-message {
  color: red;
}

/* Responsive tweaks for mobile */
@media (max-width: 500px) {
  .contact-wrapper {
    align-items: flex-start;   /* start from top */
    height: auto;              /* let height grow naturally */
    min-height: 100vh;         /* optional: still fill viewport if content is small */
    padding: 40px 20px;        /* top/bottom padding */
  }

  .contact-wrapper .contact-form {
    padding: 30px 20px;
    width: 95%;
    margin: 20px 0;            /* extra spacing top & bottom */
  }
}




















