/* =========================================================
   CIDEV HEADER
   Override layer for FlexStart
   ========================================================= */

:root {
  --cidev-dark: #00384d;
  --cidev-primary: #075d7d;
  --cidev-accent: #f6c400;
  --cidev-cyan: #00a6d6;
  --cidev-white: #ffffff;
  --cidev-text: #333333;
}

/* ---------------------------------------------------------
   TOP BAR
   --------------------------------------------------------- */

body > .bg-dark.text-light.py-2.small {
  background: var(--cidev-dark) !important;
  border-top: 3px solid var(--cidev-cyan);
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  font-size: 13px !important;
}

body > .bg-dark.text-light.py-2.small .container {
  max-width: 1320px;
}

body > .bg-dark.text-light.py-2.small a {
  color: var(--cidev-white) !important;
  text-decoration: none;
}

body > .bg-dark.text-light.py-2.small a:hover {
  color: var(--cidev-accent) !important;
}

/* ---------------------------------------------------------
   MAIN HEADER
   --------------------------------------------------------- */

#header.header {
  height: 100px;
  min-height: 100px;
  padding: 0 !important;
  background: var(--cidev-primary) !important;
  transition:
    height 0.35s ease,
    min-height 0.35s ease,
    box-shadow 0.35s ease;
}

#header.header .container-fluid.container-xl {
  height: 100%;
  max-width: 1320px;
}

/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

#header .logo {
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: auto;
}

#header .logo img {
    max-height: 60px;
    width: auto;
    transition: max-height 0.35s ease;
}

#header .logo h1 {
  margin: 0;
}

/* ---------------------------------------------------------
   MAIN NAVIGATION
   --------------------------------------------------------- */

#navmenu {
  display: flex;
  align-items: center;
}

#navmenu > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navmenu > ul > li {
  position: relative;
}

#navmenu > ul > li > a {
  display: flex;
  align-items: center;

  height: 100px;
  padding: 0 16px;

  color: var(--cidev-white) !important;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  text-transform: uppercase;
  text-decoration: none;

  background: transparent !important;

  transition: color 0.2s ease, height 0.3s ease;
}

#navmenu > ul > li > a:hover,
#navmenu > ul > li > a.active {
  color: var(--cidev-accent) !important;
}

/* ---------------------------------------------------------
   DROPDOWN ARROWS
   --------------------------------------------------------- */

#navmenu > ul > li > a .toggle-dropdown {
  margin-left: 6px;
  font-size: 11px;
}

/* ---------------------------------------------------------
   DROPDOWNS
   --------------------------------------------------------- */

#navmenu .dropdown > ul {
  position: absolute;

  top: 100%;
  left: 0;

  min-width: 240px;

  margin: 0;
  padding: 10px 0;

  background: var(--cidev-white);

  border-top: 3px solid var(--cidev-accent);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

  list-style: none;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

#navmenu .dropdown:hover > ul,
#navmenu .dropdown > ul.dropdown-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#navmenu .dropdown > ul a {
  display: block;

  padding: 9px 18px;

  color: var(--cidev-text) !important;

  font-size: 14px;
  font-weight: 400;

  text-decoration: none;

  background: transparent !important;
}

#navmenu .dropdown > ul a:hover {
  color: var(--cidev-primary) !important;
  background: #f4f4f4 !important;
}

/* ---------------------------------------------------------
   REMOVE FLEXSTART GET STARTED BUTTON
   --------------------------------------------------------- */

#header .btn-getstarted {
  display: none !important;
}

/* ---------------------------------------------------------
   MOBILE TOGGLE
   --------------------------------------------------------- */

#header .mobile-nav-toggle {
  color: var(--cidev-white) !important;
  font-size: 30px;
}

/* ---------------------------------------------------------
   SCROLLED / SHRUNK HEADER
   Uses FlexStart's existing body.scrolled mechanism
   --------------------------------------------------------- */

body.scrolled #header.header {
  height: 70px;
  min-height: 70px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

body.scrolled #header .logo img {
  max-height: 45px;
}

body.scrolled #navmenu > ul > li > a {
  height: 70px;
}

/* ---------------------------------------------------------
   MOBILE
   Leave FlexStart's mobile navigation behavior intact
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {
  #header.header {
    height: 80px;
    min-height: 80px;
  }

  #header .logo img {
    max-height: 50px;
  }

  body.scrolled #header.header {
    height: 70px;
    min-height: 70px;
  }

  #navmenu > ul > li > a {
    height: auto;
  }
}

/* =========================================================
   CIDEV MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 1199.98px) {
  /* Keep FlexStart's native mobile menu mechanism */

  #navmenu > ul {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 0;
    background: var(--cidev-primary);
  }

  #navmenu > ul > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #navmenu > ul > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 10px 20px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    background: transparent !important;
  }

  #navmenu > ul > li > a:hover,
  #navmenu > ul > li > a.active {
    color: var(--cidev-accent) !important;
  }

  /* Dropdowns */

  #navmenu .dropdown > ul {
    position: static;

    display: none;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #navmenu .dropdown > ul.dropdown-active {
    display: block;
  }

  #navmenu .dropdown > ul a {
    padding: 10px 35px;

    color: #ffffff !important;
    background: transparent !important;
  }

  #navmenu .dropdown > ul a:hover {
    color: var(--cidev-accent) !important;
  }
}

/* =========================================================
   CIDEV PAGE HEADER
   ========================================================= */

.cidev-page-header {
  background: #00384d;
  padding: 48px 0 44px;
  border-bottom: 4px solid #d9dfe2;
}

.cidev-page-header .container {
  max-width: 1320px;
}

.cidev-page-header h1 {
  margin: 0;

  color: #ffffff;

  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.cidev-page-header nav {
  margin: 0;
}

.cidev-page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin: 0;
  padding: 0;

  list-style: none;

  font-size: 14px;
}

.cidev-page-header .breadcrumb-item {
  color: #ffffff;
}

.cidev-page-header .breadcrumb-item a {
  color: #00a6d6;
  text-decoration: none;
}

.cidev-page-header .breadcrumb-item a:hover {
  color: #f6c400;
}

.cidev-page-header .breadcrumb-item.active {
  color: #ffffff;
}

.cidev-page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "›";

  padding: 0 10px;

  color: rgba(255, 255, 255, 0.65);
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {
  .cidev-page-header {
    padding: 30px 0;
  }

  .cidev-page-header h1 {
    font-size: 28px;
  }

  .cidev-page-header nav {
    margin-top: 12px;
  }

  .cidev-page-header .breadcrumb {
    justify-content: flex-start;
  }
}

/* =========================================================
   CIDEV FOOTER
   ========================================================= */

.cidev-footer {
    color: #ffffff;
}


/* ---------------------------------------------------------
   MAIN
   --------------------------------------------------------- */

.cidev-footer-main {
    background: #00384d;
    padding: 1px 0 0;
}

.cidev-footer-main > .container {
    position: relative;
}


/* ---------------------------------------------------------
   RIBBON
   --------------------------------------------------------- */

.cidev-footer-ribbon {
    position: absolute;
    top: 4px;
    left: 0;
    transform: translateY(-50%);
    background: #00a6d6;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.cidev-footer-ribbon::before {
    content: "";

    position: absolute;
    top: 0;
    left: -9px;

    width: 10px;
    height: 18px;

    background: #008fc5;

    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.cidev-footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.cidev-footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.cidev-footer-description {
    max-width: 500px;

    margin: 0 0 12px;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   MORE ABOUT
   --------------------------------------------------------- */

.cidev-footer-more {
    display: inline-flex;
    align-items: center;

    color: #ffffff;

    font-size: 14px;

    text-decoration: none;
}

.cidev-footer-more span {
    margin-left: 8px;

    font-size: 22px;
    line-height: 1;
}

.cidev-footer-more:hover {
    color: #f6c400;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.cidev-footer-title {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.cidev-footer-contact {
    margin: 0;
}

.cidev-footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.5;
}

.cidev-footer-contact-item i {
    flex: 0 0 16px;

    color: #00a6d6;
}

.cidev-footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.cidev-footer-contact-item a:hover {
    color: #f6c400;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

.cidev-footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.cidev-footer-links li {
    margin-bottom: 10px;
}

.cidev-footer-links a {
    color: #ffffff;

    font-size: 14px;

    text-decoration: none;
}

.cidev-footer-links a::before {
    content: "›";

    margin-right: 10px;

    color: #00a6d6;
}

.cidev-footer-links a:hover {
    color: #f6c400;
}


/* ---------------------------------------------------------
   COPYRIGHT
   --------------------------------------------------------- */

.cidev-footer-bottom {
    background: #00a6d6;
}

.cidev-footer-bottom p {
    margin: 0;

    color: #ffffff;

    font-size: 13px;

    text-align: center;
}

.cidev-footer-bottom a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .cidev-footer-ribbon {
        left: 15px;
    }

    .cidev-footer-main {
        padding-top: 1px;
    }

    .cidev-footer-about,
    .cidev-footer-column {
        margin-bottom: 30px;
    }
}

/* =========================================================
   HERO VIDEO BACKGROUND
   ========================================================= */

.hero-video {
    position: relative;
    min-height: 650px;

    overflow: hidden;

    display: flex;
    align-items: center;
}


/* ---------------------------------------------------------
   VIDEO
   --------------------------------------------------------- */

.hero-video-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}


/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */

.hero-video-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 24, 32, 0.4);

    z-index: 1;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.hero-video-content {
    position: relative;

    z-index: 2;

    color: #ffffff;
}

.hero-video-content h1 {
    color: #ffffff;
}

.hero-video-content p {
    color: #ffffff;
}

/* Clients / Embla */

.embla {
    overflow: hidden;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
    align-items: center;
}

.embla__slide {
    flex: 0 0 50%;
    min-width: 0;
    padding: 0 20px;
}

.embla__slide img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: contain;
}

@media (min-width: 480px) {
    .embla__slide {
        flex-basis: 33.333333%;
    }
}

@media (min-width: 640px) {
    .embla__slide {
        flex-basis: 25%;
    }
}

@media (min-width: 992px) {
    .embla__slide {
        flex-basis: 16.666667%;
    }
}

/* Testimonials / Embla */

/*--------------------------------------------------------------
# Testimonials - Embla
--------------------------------------------------------------*/

#testimonials .embla {
    overflow: hidden;
}

#testimonials .embla__viewport {
    overflow: hidden;
}

#testimonials .embla__container {
    display: flex;
    align-items: stretch;
}

#testimonials .embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 40px 30px;
    box-sizing: border-box;
}

#testimonials .testimonial-item {
    background-color: var(--surface-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;

    padding: 30px;
    margin: 0;

    min-height: 320px;

    display: flex;
    flex-direction: column;
    text-align: center;

    transition: 0.3s;
}

#testimonials .testimonial-item .stars {
    margin-bottom: 15px;
}

#testimonials .testimonial-item .stars i {
    color: #ffc107;
    margin: 0 1px;
}

#testimonials .testimonial-item .testimonial-img {
    width: 90px;
    border-radius: 50%;
    border: 4px solid var(--background-color);
    margin: 0 auto;
}

#testimonials .testimonial-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px;
}

#testimonials .testimonial-item h4 {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    margin: 0;
}

#testimonials .testimonial-item p {
    font-style: italic;
    margin: 0 auto 15px;
}

#testimonials .embla__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

#testimonials .embla__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: color-mix(
        in srgb,
        var(--default-color),
        transparent 85%
    );
    opacity: 1;
    cursor: pointer;
}

#testimonials .embla__dot.is-selected {
    background-color: var(--accent-color);
}

@media (max-width: 1199px) {

    #testimonials .embla__slide {
        padding: 40px 20px;
    }

    #testimonials .embla__pagination {
        margin-top: 0;
    }

}

@media (min-width: 1200px) {

    #testimonials .embla__slide {
        flex: 0 0 33.333333%;
    }

}

/*--------------------------------------------------------------
# Content Gallery - Embla
--------------------------------------------------------------*/

.content-gallery {
    width: 100%;
}

.content-gallery .embla__viewport {
    overflow: hidden;
}

.content-gallery .embla__container {
    display: flex;
}

.content-gallery .embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.content-gallery .embla__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.content-gallery .embla__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.content-gallery .embla__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5d9;
    cursor: pointer;
}

.content-gallery .embla__dot.is-selected {
    background: var(--accent-color);
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

.team {
    padding: 60px 0;
}

.team-member {
    height: 100%;
    border: 1px solid #e2e6e8;
    background: #fff;
    overflow: hidden;
}

.team-member-image {
    position: relative;
    overflow: hidden;
}

.team-member-image > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member-image:hover > img {
    transform: scale(1.08);
}

.team-member-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 55px;
}

.team-member-flag img {
    display: block;
    width: 100%;
    height: auto;
}

.team-member-name {
    position: absolute;
    left: 0;
    bottom: 15px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.8);
}

.team-member-name h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.team-member-title {
    min-height: 72px;
    padding: 14px 15px;
    background: var(--cidev-primary);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-contact {
    padding: 8px 15px 15px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 7px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.team-contact-item:last-child {
    border-bottom: 0;
}

.team-contact-item i {
    flex: 0 0 20px;
    font-size: 19px;
    color: var(--cidev-primary);
}

.team-contact-item a {
    color: #078bd0;
    text-decoration: none;
}

.team-contact-item a:hover {
    color: var(--cidev-primary);
}

/* Prevent card hover transform */
.team-member,
.team-member:hover {
    transform: none !important;
    scale: none !important;
}

/* Hover effect only on profile image */
.team-member-image > img {
    transition: transform 0.4s ease;
}

.team-member-image:hover > img {
    transform: scale(1.08) !important;
}