/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#logo
.navbar-logo {
    max-height: 90px;
    width: auto;
}


/* =========================
   NAVBAR BRAND TEXT
========================= */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Company Name */
.brand-name {
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-kanbel {
  color: #0d6efd;
}

.brand-tech {
  color: #ff7a00;
}





/* Logo tweak */
.navbar-logo {
  max-height: 90px;
  width: auto;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 576px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 11px;
    color: #091E3E !important;
  }

  .navbar-logo {
    max-height: 60px;
  }
}


#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 10px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

/* =========================
   BRAND TAGLINE COLOR SYNC
========================= */

.brand-tagline {
  font-size: 11px;   /* reduced from 12px */
  font-weight: 500;
  opacity: 0.85;
}


/* Normal navbar (non-sticky) */
.navbar-dark:not(.sticky-top) .brand-tagline {
    color: #FFFFFF;
}

/* Sticky navbar */
.sticky-top.navbar-dark .brand-tagline {
    color: var(--dark);
}

/* Mobile menu open */
@media (max-width: 991.98px) {
    .navbar-dark .brand-tagline {
        color: var(--dark);
    }
}


.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: none;
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

.navbar-brand{
    height: auto;   /* increase here */
    width: auto;
}

/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}




/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .1s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img {
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
  background:
    radial-gradient(circle at 20% 30%, rgba(11, 94, 215, 0.35), transparent 40%),
    linear-gradient(
      135deg,
      #0b5ed7 0%,
      #0a2540 55%,
      #f97316 100%
    );
  background-size: cover;
  background-position: center;
  padding: 140px 0 110px;
  color: #ffffff;
}


.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}
/* ================= INDUSTRIES SECTION ================= */

.industry-icon-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.75);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.bg-white.rounded {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bg-white.rounded:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(6, 163, 218, 0.3);
}

.bg-white.rounded:hover .industry-icon {
    transform: scale(1.25);
    filter: drop-shadow(0 12px 20px rgba(6, 163, 218, 0.45));
}

.bg-white.rounded:hover h4 {
    color: var(--primary);
}

/* =====================================
   JOIN SECTION
===================================== */

.join-section {
    background: #f6f8fc;
    padding: 80px 0;
}

.join-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
}

.join-image {
    width: 65%;
    margin-left: auto;
}

.join-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 4px;
}

.join-card {
    position: absolute;
    left: 0;
    background: #fff;
    padding: 60px;
    width: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 2;
}

.join-card h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.join-card p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-blue {
    background: #6328b5;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.btn-blue:hover {
    background: #4b1fa0;
}

/* =====================================
   FEATURE CARDS
===================================== */

.feature-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.4s ease;
    height: 100%;
}

.hover-group:hover .feature-card {
    background: linear-gradient(
        90deg,
        #1f7fd4 0%,
        #6fa6c8 50%,
        #e9a04b 100%
    );
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-6px);
}

.hover-group:hover .feature-card h5,
.hover-group:hover .feature-card p {
    color: #ffffff;
}

/* ICON CONSISTENCY */

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.service-icon i {
    font-size: 30px;
    color: #ffffff;
}

/* =====================================
   FORMS
===================================== */

.form-underline,
.form-select.form-underline {
    border: none !important;
    border-bottom: 1px solid #ced4da !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.form-underline:focus {
    border-bottom: 2px solid #0d6efd !important;
}

.btn-send {
    background: #0a0a0a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
}

.btn-send:hover {
    background: #626161;
}

/* =====================================
   LOCATION SECTION
===================================== */

.location-section {
    padding: 200px 0;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.location-container {
    max-width: 1320px;
    margin: auto;
    display: flex;
    gap: 80px;
}

.address-card {
    width: 42%;
    background: #fff;
    border-radius: 26px;
    padding: 50px;
    box-shadow: 0 40px 90px rgba(15,23,42,0.12);
}

.address-list li {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.address-list .icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card {
    width: 58%;
}

.map-frame {
    height: 100%;
    min-height: 350px;
    border-radius: 28px;
    overflow: hidden;
}
/* ===== MAP FINAL FIX ===== */

.map-card {
  width: 58%;
  display: flex;
  flex-direction: column;
}

/* Map container */
.map-frame {
  width: 100%;
  min-height: 450px;   /* Bigger visible map */
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15,23,42,0.25);
}

/* Force iframe to fill container */
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Section padding fix */
.location-section {
  padding: 100px 0;
}

/* Mobile responsive */
@media (max-width: 992px) {
  .map-frame {
    min-height: 300px;
  }
}

/* ================= CONTACT FORM ================= */

.modern-form-container {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-underline,
.form-select.form-underline {
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #ced4da !important;
  background: transparent !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
}

.form-underline:focus {
  border-bottom: 2px solid #0d6efd !important;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #212529;
}

.btn-send {
  background: #0a0a0a;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: bold;
  color: #fff;
  border: none;
}

.btn-send:hover {
  background: #626161;
}

.privacy-text {
  font-size: 0.8rem;
  color: #6c757d;
}
/* --- FIX CUSTOM SELECT DROPDOWN --- */
/* ===== CUSTOM SELECT FINAL VISUAL STYLE ===== */

.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

/* The visible field */
.custom-select .selected {
  border-bottom: 1px solid #ced4da;
  padding: 8px 0;
  font-size: 1rem;
  color: #6c757d;
}

/* On hover */
.custom-select .selected:hover {
  border-bottom: 2px solid #0d6efd;
}

/* Dropdown list box */
.custom-select .options {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  z-index: 99999;
  max-height: 220px;
  overflow-y: auto;
}

/* Show dropdown */
.custom-select.open .options {
  display: block;
}

/* Option items */
.custom-select .options li {
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #334155;
  transition: background 0.2s ease;
}

/* Hover effect */
.custom-select .options li:hover {
  background: #f1f5f9;
  color: #0d6efd;
}

/* When value selected */
.custom-select.filled .selected {
  color: #212529;
  font-weight: 500;
}


/* Validation */
.is-invalid {
  border-bottom: 2px solid #dc3545 !important;
}

.custom-select.is-invalid .selected {
  border-bottom: 2px solid #dc3545;
}
/* FIX: allow dropdown to escape form container */
.modern-form-container {
  overflow: visible !important;
}

/* FIX: dropdown must be above everything */
.custom-select .options {
  z-index: 9999;
}

/* FIX: prevent Bootstrap interference */
.custom-select {
  user-select: none;
}

/* =====================================
   MOBILE RESPONSIVE SUPPORT
   (Safe Overrides – No Desktop Impact)
===================================== */

@media (max-width: 991.98px) {

  /* ---------- GENERAL ---------- */
  body {
    overflow-x: hidden;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  p {
    font-size: 14px;
  }

  /* ---------- NAVBAR ---------- */
  .navbar-brand {
    display: flex;
    align-items: center;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .navbar-logo {
    max-height: 55px;
  }

  .navbar-dark {
    background: #ffffff;
  }

  /* ---------- CAROUSEL ---------- */
  .carousel-caption {
    padding: 20px;
  }

  .carousel-caption h1 {
    font-size: 26px !important;
  }

  .carousel-caption h5 {
    font-size: 13px;
  }


  /* ---------- FEATURE CARDS ---------- */
  .feature-card {
    padding: 18px;
  }

  /* ---------- INDUSTRIES ---------- */
  .industry-icon-wrap {
    width: 90px;
    height: 90px;
  }

  .industry-icon {
    transform: scale(1.4);
  }

  /* ---------- JOIN SECTION ---------- */
  .join-wrapper {
    flex-direction: column;
  }

  .join-image {
    width: 100%;
    margin: 0;
  }

  .join-image img {
    height: 260px;
    border-radius: 6px;
  }

  .join-card {
    position: relative;
    width: 100%;
    padding: 30px;
    margin-top: -40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  .join-card h2 {
    font-size: 26px;
  }

  /* ---------- LOCATION SECTION ---------- */
  .location-container {
    flex-direction: column;
    gap: 40px;
  }

  .address-card,
  .map-card {
    width: 100%;
  }

  .address-card {
    padding: 30px;
  }

  .map-frame {
    min-height: 260px;
    border-radius: 18px;
  }

  /* ---------- FORMS ---------- */
  .modern-form-container {
    padding: 20px;
  }

  .btn-send {
    width: 100%;
    text-align: center;
  }

  /* ---------- BACK TO TOP ---------- */
  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

/* =====================================
   EXTRA SMALL DEVICES (PHONES)
===================================== */

@media (max-width: 576px) {

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  .carousel-caption h1 {
    font-size: 22px !important;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .join-card {
    padding: 24px;
  }

  .address-list li {
    gap: 12px;
  }

  .address-list .icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) {

  /* Fix service section overlapping */
  .service-item {
    text-align: center;
    padding: 25px 15px !important;
  }

  .service-item h4 {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .service-item p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Hide large background decorative icons on mobile */
  .service-icon-bg {
    display: none !important;
  }

  /* Ensure proper spacing between service blocks */
  .service-row {
    gap: 20px;
  }
}

@media (max-width: 576px) {

  .service-item h4 {
    font-size: 17px !important;
  }

  .service-item p {
    font-size: 13px;
  }
}
@media (max-width: 768px){
  .service-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
}
/* =========================================
   FINAL MOBILE FIX FOR SERVICE FLIP CARDS
   (Based on your real desktop CSS)
========================================= */

@media (max-width: 768px) {

  /* Remove 3D flip environment */
  .service-flip {
    height: auto !important;
    perspective: none !important;
  }

  /* Remove absolute positioning + rotations */
  .service-flip .service-item {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    backface-visibility: visible !important;
  }

  /* Ensure both sides are visible */
  .service-front,
  .service-back {
    transform: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Stack them nicely */
  .service-front {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  /* Card appearance */
  .service-item {
    height: auto !important;
    background: #ffffff;
    padding: 22px 16px !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(6,163,218,0.15);
    text-align: center;
  }

  /* Icon */
  .service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
  }

  .service-icon i {
    font-size: 24px;
  }
}
/* ===== FIX MOBILE HEADER OVERLAP ISSUE ===== */

@media (max-width: 991.98px) {

  /* Make navbar take normal space on mobile */
  .navbar-dark {
    position: relative !important;
    background: #ffffff !important;
  }

  /* Push hero/slider content down */
  .carousel,
  .bg-header {
    margin-top: 90px;   /* Adjust if logo height changes */
  }

  /* Fix carousel caption top spacing */
  .carousel-caption {
    top: 90px !important;
  }
}
/* ===== FIX: REMOVE EXTRA WHITE SPACE IN MOBILE NAVBAR ===== */

@media (max-width: 991.98px) {

  /* Reduce navbar vertical padding */
  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Reduce logo size slightly */
  .navbar-logo {
    max-height: 55px !important;
  }

  /* Reduce brand text spacing */
  .navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Remove extra margin from navbar container */
  .navbar > .container,
  .navbar > .container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Fix carousel top margin */
  .carousel,
  .bg-header {
    margin-top: 10px !important;  /* previously too large */
  }

  .carousel-caption {
    top: 70px !important;
  }
}
/* =========================
   FINAL MOBILE NAVBAR FIX
========================= */
@media (max-width: 991.98px) {

  /* Reduce navbar height */
  .navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Fix mobile navbar background */
  .navbar-dark {
    background: #ffffff !important;
  }

  /* Brand text color visible */
  .brand-name {
    font-size: 20px !important;
  }

  .brand-tagline {
    color: #555 !important;
    font-size: 11px !important;
  }

  /* Menu button clean look */
  .navbar-toggler {
    border: 2px solid #06A3DA !important;
    padding: 4px 8px !important;
  }
}


/* =========================
   FINAL MOBILE HERO FIX
========================= */
@media (max-width: 768px) {

  /* Reduce dark overlay intensity */
  .carousel-caption {
    background: rgba(9, 30, 62, 0.45) !important;
  }

  /* Improve text visibility */
  .carousel-caption h1 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .carousel-caption p,
  .carousel-caption h5 {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  /* Ensure hero section height fits content */
  .carousel-item img {
    min-height: 320px;
    object-fit: cover;
  }
}
@media (max-width: 768px) {
  .carousel-caption {
    background: transparent !important;
  }
}
/* ===== FINAL MOBILE HEADER + HERO FIX ===== */

@media (max-width: 768px) {

  /* Navbar layout: logo left, menu icon right */
  .navbar-brand {
    display: flex !important;
    align-items: center !important;
  }

  .navbar-toggler {
    margin-left: auto !important;
    border: none !important;
    padding: 4px 8px !important;
  }

  /* Reduce navbar height */
  .navbar-dark {
    height: 70px !important;
    padding: 5px 12px !important;
    background: #ffffff !important;
  }

  /* Fix logo size */
  .navbar-logo {
    max-height: 50px !important;
  }

  /* Fix tagline color */
  .brand-tagline {
    color: #555 !important;
    font-size: 11px !important;
  }

  /* Push hero fully visible */
  .carousel-caption {
    top: 30px !important;
    padding-top: 20px !important;
  }

  /* Ensure text never hides */
  .carousel-caption h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .carousel-caption p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}
/* ===== FIX: MOBILE MENU HIDING BEHIND HERO IMAGE ===== */

@media (max-width: 991.98px) {

  /* Keep navbar always above hero */
  .navbar {
    position: relative;
    z-index: 9999 !important;
  }

  /* Make dropdown menu appear above everything */
  .navbar-collapse {
    background: #ffffff;
    padding: 10px 15px;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 9999 !important;
  }

  /* Push hero below navbar layer */
  .carousel,
  .bg-header {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 991.98px) {
  .navbar-collapse.show {
    position: absolute;
    top: 65px;   /* Adjust based on navbar height */
    left: 0;
    right: 0;
  }
}
/* ===== FIXED NAVBAR ON MOBILE ===== */
@media (max-width: 991.98px) {

  /* Make navbar fixed */
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: #ffffff !important;
  }

  /* Add space so content does not hide under navbar */
  body {
    padding-top: 70px;   /* Must match navbar height */
  }

  /* Keep dropdown menu visible */
  .navbar-collapse {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
}
