/* ========== Base & Layout ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');


html, body {
    overflow-x: hidden;
    width: 100%;
}



* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #1F2937; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Navigation ========== */
#main-nav {
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1);
  position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-container {   max-width: 100%;
    overflow-x: hidden; display: flex; justify-content: space-between; align-items: center; height: 64px;  margin: 0 auto; padding: 0 20px; }
.logo { height: 50px; width: 200px; }
.nav-menu { display: flex; gap: 0px; }
.nav-link { color: #6B7280; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .3s; }
.nav-link:hover { color: #1E40AF; }
.mobile-menu-btn { display: none; flex-direction: column; background: none; border: 0; cursor: pointer; width: 24px; height: 24px; justify-content: space-between; }
.mobile-menu-btn span { display: block; height: 2px; width: 100%; background: #6B7280; transition: all .3s; }
/* FIX: Mobile drawer should not take full screen height */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #fff;
    border-top: 1px solid #e5e7eb;

    margin: 0;
    padding: 0;

    overflow-x: hidden;   /* Prevent horizontal overflow */
    z-index: 1000;
}


.mobile-nav-link { display: block; padding: 10px 20px; color: #1F2937; text-decoration: none; font-weight: 500; transition: background-color .3s; }
.mobile-nav-link:hover { background: #f3f4f6; }


/* put in your main CSS */
.nav-link,
.mobile-nav-link { position: relative; text-decoration: none; }

.nav-link.active,
.mobile-nav-link.active {
    color: #00aaff;   /* or your highlight color */
    font-weight: bold;
}

.nav-link::after,
.mobile-nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #2563eb;
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
  border-radius: 2px;
}
.nav-link.active::after,
.mobile-nav-link.active::after { transform: scaleX(1); }


@media (max-width: 768px) {
    #videoToggleBtn {
        z-index: 800;    /* below any popups */
    }
    #videoToggleBtn.hidden {
        display: none !important;
    }
}

/* offset headings so they aren’t hidden under fixed nav */
section { scroll-margin-top: 72px; } /* set to your nav height */
/* -----------------------------------
   BEAUTIFUL HOVER BACKGROUND EFFECT
   (Like your video)
------------------------------------*/

.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: 12px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* Expandable background */
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.08);   /* light blue hover bg */
    border-radius: 12px;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #1E3A8A;   /* darker blue */
}

.nav-link:hover::before {
    transform: scale(1);   /* expand animation */
    opacity: 1;
}

/* ACTIVE underline + soft pill bg */
.nav-link.active {
    color: #1E40AF;
    font-weight: 600;
}

.nav-link.active::before {
    background: rgba(37, 99, 235, 0.15);
    opacity: 1;
    transform: scale(1);
}

/* -------------------------------
   MOBILE MENU HOVER (same effect)
--------------------------------*/
.mobile-nav-link {
    position: relative;
    padding: 10px 20px;
    border-radius: 10px;
}

.mobile-nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.10);
    transform: scale(0.7);
    opacity: 0;
    border-radius: 10px;
    transition: all 0.25s ease;
    z-index: -1;
}

.mobile-nav-link:hover::before {
    transform: scale(1);
    opacity: 1;
}

.mobile-nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}


/* ========== Hero ========== */
.hero {
    background: none !important;      /* remove blue background */
    padding: 80px 0;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}/* Force background video to be visible */
.video-hero,
.video-hero.hero {
    background: none !important;
}
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 48px; font-weight: 700; color: #fff; margin-bottom: 24px; line-height: 1.2; }
.hero-highlight { color: #FBBF24; display: block; }
.hero-subtitle { font-size: 20px; color: #BFDBFE; margin: 0 auto 32px; max-width: 600px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: #1E40AF; border: 0; padding: 16px 32px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all .3s; }
.btn-primary:hover { background: #f3f4f6; transform: scale(1.05); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; padding: 16px 32px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all .3s; }
.btn-secondary:hover { background: #fff; color: #1E40AF; }

/* Floating dots */
.floating-dot { position: absolute; border-radius: 50%; animation: pulse 2s infinite; }
.dot-1 { width: 16px; height: 16px; background: #FBBF24; top: 25%; left: 10%; }
.dot-2 { width: 12px; height: 12px; background: #fff; top: 33%; right: 20%; animation-delay: 1s; }
.dot-3 { width: 8px; height: 8px; background: #FBBF24; bottom: 25%; left: 25%; animation-delay: .5s; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ========== Section Headers ========== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-title { font-size: 36px; font-weight: 700; color: #1F2937; margin-bottom: 16px; }
.section-subtitle { font-size: 20px; color: #6B7280; max-width: 600px; margin: 0 auto; }

/* ========== Interlocks / Products ========== */
.interlocks { padding: 80px 0; background: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb; padding: 32px; border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,.05); transition: all .3s; position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.featured-product { border: 2px solid #1E40AF; }
.product-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: #1E40AF; color: #fff; padding: 4px 16px; border-radius: 16px; font-size: 14px; font-weight: 600;
}
.product-header { text-align: center; margin-bottom: 24px; }
.product-icon { margin-bottom: 16px; }
.product-img { max-width: 75%; height: 300px; width: 400px; }
.product-img1 { max-width: 100%; height: 300px; width: 400px; }
.product-name { font-size: 24px; font-weight: 700; color: #1F2937; margin-bottom: 8px; }
.product-category { color: #1E40AF; font-weight: 600; font-size: 18px; }
.product-features { list-style: none; margin-bottom: 32px; }
.product-feature { display: flex; align-items: center; color: #6B7280; margin-bottom: 12px; }
.product-feature:before {
  content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E") no-repeat;
}
.btn-product { width: 100%; background: #1E40AF; color: #fff; border: 0; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .3s; }
.btn-product:hover { background: #1e3a8a; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

.status-badge.available {
    background: #10B981;   /* green */
}
.status-badge.coming-soon {
    background: #F59E0B;   /* yellow/orange */
}
.available { background: #10b981; color: #fff; }
.coming-soon { background: #f59e0b; color: #fff; }
.out-of-stock { background: #ef4444; color: #fff; }



/* Disabled product button look */
.btn-product[disabled] {
  background: #94a3b8;  /* muted */
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}
.btn-product[disabled]:hover { transform: none; }

/* ðŸ”– Diagonal ribbon top-right corner */
.ribbon {
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 160px;
  padding: 8px 0;
  background: linear-gradient(135deg, #dc2626, #b91c1c); /* red gradient */
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transform: rotate(45deg);
  top: 22px;
  right: -40px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* small triangle shadows for folded effect */
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 0;
  border: 0px solid #b91c1c;
}
.ribbon::before {
  left: 0;
  border-top-color: transparent;
  border-left-color: transparent;
}
.ribbon::after {
  right: 0;
  border-top-color: transparent;
  border-right-color: transparent;
}


/* ========== Breathalyzers ========== */
.breathalyzers { padding: 80px 0; background: #f9fafb; }
/* Make grid height equal */
/* FIX: 3 equal columns */
.breathalyzers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: stretch;
}
/* ========== Breathalyzers Section ========== */
.breathalyzer-card {
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    transition: all .3s;
    
    /* FIX: ensure box appears */
    display: flex;
    flex-direction: column;
    min-height: 680px;  /* Perfect height for your design */
}


.breathalyzer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
}
/* Space the header consistently */
/* FIX: header consistent height */
.breathalyzer-header {
    text-align: center;
    margin-bottom: 20px;
    min-height: 170px;
}

.breathalyzer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;            /* spacing between image and badge */
    margin-bottom: 16px;
}
/* Force equal image sizes */
/* FIX: equal image size */
.breathalyzer-img {
    width: 88%;
    height: 382px;        /* SAME HEIGHT FOR ALL IMAGES */
    object-fit: contain;  /* Keeps original proportions */
    display: block;
    margin-top: -30px;
}

.breathalyzer-img-B200 {
    width: 88%;
    height: 450px;        /* SAME HEIGHT FOR ALL IMAGES */
    object-fit: contain;  /* Keeps original proportions */
    display: block;
    margin-top: -30px;
}


.breathalyzer-name { font-size: 28px; font-weight: 700; color: #1F2937; margin-bottom: 8px; }

/* Make category text consistent */
.breathalyzer-category {
    font-weight: 600;
    font-size: 18px;
    min-height: 28px;
}
.breathalyzer-card:nth-child(1) .breathalyzer-category { color: #10B981; }
.breathalyzer-card:nth-child(2) .breathalyzer-category { color: #8B5CF6; }
.breathalyzer-card:nth-child(3) .breathalyzer-category { color: #1FB6BF; }
/* Equalize feature lists */
.breathalyzer-features {
    flex-grow: 1;
    padding-bottom: 20px;
}
/* FIX: features stretch card */
.breathalyzer-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 14px;
}
.breathalyzer-feature::before {
    content: "✔";
    color: #10B981;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;   /* vertically centers icon */
}
/* Align buttons perfectly at bottom */
/* FIX: align button at bottom */
.btn-breathalyzer {
    width: 100%;
    border: 0;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #1E40AF;
    color: #fff;
    transition: all .3s;
    margin-top: auto;
}
.btn-breathalyzer:hover {
    background: #16338F;
}

.breathalyzer-card:nth-child(1) .btn-breathalyzer { background: #1E40AF; color: #fff; }
.breathalyzer-card:nth-child(1) .btn-breathalyzer:hover { background: #1E40AF; }
.breathalyzer-card:nth-child(2) .btn-breathalyzer { background: #1E40AF; color: #fff; }
.breathalyzer-card:nth-child(2) .btn-breathalyzer:hover { background: #1E40AF; }
.breathalyzer-card:nth-child(3) .btn-breathalyzer { background: #1E40AF; color: #fff; }
.breathalyzer-card:nth-child(3) .btn-breathalyzer:hover { background: #1E40AF; }

/* ========== Features (incl. Certifications) ========== */
.features { padding: 80px 0; background: #f9fafb; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; justify-items: center; }
.feature-card {
  background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,.05);
  transition: all .3s ease; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.feature-icon { margin-bottom: 24px; display: flex; justify-content: center; align-items: center; height: 200px; width: 100%; }
.feature-img { width: 250px; height: 250px; border-radius: 8px; object-fit: contain; padding: 0px; }
.feature-title { font-size: 24px; font-weight: 600; color: #1F2937; margin-bottom: 16px; }
.feature-description { color: #6B7280; line-height: 1.6; }

/* ========== Clients & Partners â€“ marquee scroller ========== */
#clients { --logo-height: 96px; --gap: 28px; --fade: 56px; --speed: 180; padding: 60px 0; }

/* fill width and let JS wrap images into two tracks for seamless loop */
#clients .client-section,
#clients .client-section > div,
#clients .client-section + div { width: 100%; max-width: 100%; margin: 0; }

/* per-group speed hints (used by your JS) */
#clients .client-section > div { --speed: 240; }   /* faster for Clients */
#clients #partners { --speed: 80; }                /* slower for Partners */

/* headings */
#clients .client-section > div > h1,
#clients .client-section + div > h1 { margin: 0 0 12px; font-size: 1.6rem; font-weight: 700; }

/* viewport with edge fade */
#clients .logo-scroller {
  position: relative; overflow: hidden; width: 100%; height: var(--logo-height); margin: 0 0 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}

/* tracks (JS applies per-track keyframes for rightâ†’left loop) */
#clients .logo-track {
  position: relative; display: inline-flex; align-items: center; gap: var(--gap); height: 100%;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

/* pause on hover */
#clients .logo-scroller:hover .logo-track { animation-play-state: paused; }

/* logos */
#clients img.client-img {
  height: var(--logo-height); width: auto; max-width: 100%; object-fit: contain; display: block;
  padding: 0 6px; transition: transform .2s ease;
}
#clients img.client-img:hover { transform: translateY(-2px); }

/* AA Interlock bigger (single consolidated rule) */
#clients img.client-img[src*="aainterlock"] {
  height: calc(var(--logo-height) * 2.2) !important;
  transform: scale(1.1);
  max-height: none;
}

#clients img.client-img[src*="5000"] {
  height: calc(var(--logo-height) * 2.2) !important;
  transform: scale(1.1);
  max-height: none;
}
/* ========== Stats ========== */
.stats { padding: 80px 0; background: #1F2937; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item { color: #fff; }
.stat-number { font-size: 36px; font-weight: 700; color: #FBBF24; margin-bottom: 8px; }
.stat-label { font-size: 18px; }

/* ========== About ========== */
.about { padding: 80px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.about-title { font-size: 36px; font-weight: 700; color: #1F2937; margin-bottom: 24px; }
.about-text { font-size: 18px; color: #6B7280; margin-bottom: 24px; }
.about-features { display: flex; flex-direction: column; gap: 16px; }
.about-feature { display: flex; align-items: center; }
.feature-bullet { width: 12px; height: 12px; background: #1E40AF; border-radius: 50%; margin-right: 16px; }
.feature-text { color: #6B7280; }
.mission-card { background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%); border-radius: 16px; padding: 32px; color: #fff; }
.mission-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.mission-text { color: #BFDBFE; margin-bottom: 24px; }
.mission-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
.mission-number { font-size: 28px; font-weight: 700; color: #FBBF24; }
.mission-label { font-size: 14px; color: #BFDBFE; }

/* ========== Contact ========== */
.contact { padding: 80px 0; background: #f9fafb; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.contact-title { font-size: 24px; font-weight: 600; color: #1F2937; margin-bottom: 24px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; }
.contact-icon { width: 48px; height: 48px; background: #1E40AF; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 16px; }
.contact-icon svg { width: 24px; height: 24px; fill: #fff; }
.contact-label { font-weight: 600; color: #1F2937; }
.contact-link { color: #1E40AF; text-decoration: none; }
.contact-link:hover { color: #1e3a8a; }
.contact-value { color: #6B7280; }
.contact-form-container { background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,.05); }
.form-notice { background: #FEF3C7; border: 1px solid #FBBF24; border-radius: 8px; padding: 16px; margin-bottom: 24px; display: flex; align-items: flex-start; }
.notice-icon { margin-right: 12px; }
.notice-icon svg { width: 20px; height: 20px; fill: #D97706; }
.notice-title { font-weight: 600; color: #92400E; }
.notice-text { font-size: 14px; color: #92400E; margin-top: 4px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-input, .form-select, .form-textarea {
  padding: 12px 16px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 16px;
  transition: border-color .3s, box-shadow .3s;
}


/* ================================
   RESPONSIVE FIXES FOR CONTACT SECTION
   ================================ */
@media (max-width: 1024px) {
  .contact-grid {
      grid-template-columns: 1fr;   /* 2 → 1 column on tablets */
      gap: 32px;
  }
}

@media (max-width: 768px) {

  .contact {
      padding: 40px 0; /* reduce padding for mobile */
  }

  .contact-grid {
      grid-template-columns: 1fr; /* Full width */
      gap: 28px;
  }

  .contact-title {
      text-align: center;
  }

  .contact-item {
      align-items: flex-start;
  }

  .contact-icon {
      width: 42px;
      height: 42px;
      margin-right: 12px;
  }

  .form-row {
      grid-template-columns: 1fr; /* First/Last name stack vertically */
      gap: 12px;
  }

  .phone-row {
      grid-template-columns: 1fr; /* Country code & mobile in one column */
      gap: 12px;
  }

  #countryCode {
      max-width: 100%; /* Full width dropdown on mobile */
  }

  .contact-form {
      padding: 0 5px;
  }

  /* Reduce font sizes for mobile */
  .form-input, .form-select, .form-textarea {
      font-size: 15px;
      padding: 10px 14px;
  }

  /* Social bar responsive */
  .social-bar {
      width: 100%;
      justify-content: center;
      gap: 20px;
      padding: 14px;
      border-radius: 20px;
      flex-wrap: wrap;
  }

  .social-bar img {
      width: 32px;
      height: 32px;
  }
}

@media (max-width: 480px) {

  /* smaller phones */
  .contact {
      padding: 30px 0;
  }

  .section-title {
      font-size: 22px;
      text-align: center;
  }

  .section-subtitle {
      font-size: 14px;
      text-align: center;
  }

  .social-bar img {
      width: 28px;
      height: 28px;
  }
}

.phone-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: #1E40AF; box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
.full-width { width: 100%; }
.btn-submit { background: #1E40AF; color: #fff; border: 0; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .3s; }
.btn-submit:hover { background: #1e3a8a; }

/* ========== Footer (incl. address blocks) ========== */
.footer {
  background: #1F2937;
  color: #fff;
  padding: 48px 0 24px;
}

/* 🔥 FIXED GRID */
.footer-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr 1fr; /* Address wider */
  gap: 32px;
  margin-bottom: 32px;
  align-items: flex-start;
}

/* Prevent shrinking / wrapping issues */
.footer-col {
  min-width: 0;
}

.footer-logo {
  height: 50px;
  width: 200px;
  margin-bottom: 16px;
}

.footer-text {
  color: #9CA3AF;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #9CA3AF;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color .3s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  color: #9CA3AF;
  font-size: 14px;
}

/* ========== Address Section ========== */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: #f1f5f9;
}

.footer-address {
  color: #e2e8f0;
  font-size: .95rem;
  line-height: 1.6;
}

.address-block {
  margin-bottom: 1rem;
}

.flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.country-name {
  font-weight: 600;
  color: #fff;
}

.address-text {
  margin: 0;
  font-size: .9rem;
  color: #cbd5e1;
}

.address-text a {
  color: #60a5fa;
  text-decoration: none;
}

.address-text a:hover {
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Animations helpers ========== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp .6s ease forwards; }
.stagger-1 { animation-delay: .2s; }
.stagger-2 { animation-delay: .4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ========== Pricing Modal (single, modern, scrollable) ========== */
.modal { position: fixed; inset: 0; display: none; z-index: 2000; backdrop-filter: blur(6px); }
.modal.open { display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(3px); }
.modal-content {
  position: relative; background: #fff; border-radius: 20px; box-shadow: 0 25px 70px rgba(0,0,0,.25);
  max-width: 580px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 28px; animation: slideUp .3s ease;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 #f8fafc;
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.modal-title { font-size: 1.4rem; font-weight: 700; color: #0f172a; margin-bottom: 1rem; text-align: center; letter-spacing: .3px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 1.5rem; font-weight: 600;
  background: #f1f5f9; border: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: #334155; transition: all .25s ease;
}
.modal-close:hover { background: #e2e8f0; transform: scale(1.1); }

/* Tabs inside modal */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid #cbd5e1; background: #f8fafc;
  cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .25s ease;
}
.tab:hover { background: #eff6ff; color: #2563eb; }
.tab.active { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 0 10px rgba(37,99,235,.2); }
.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }

/* Rows & helpers in modal */
.plan-head { font-weight: 700; font-size: 1rem; color: #1e293b; margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: .95rem; color: #334155; }
.divider { height: 1px; background: #e2e8f0; margin: 12px 0; }
.inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; color: #1e293b; }
.inline input { width: 80px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.inline input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.25); }
.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; border-radius: 10px;
  padding: 10px 16px; font-weight: 600; cursor: pointer; transition: background .3s, transform .2s;
}
.btn.primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-2px); }
.btn.primary::after,
.btn.primary::before,
button::after,
button::before {
    content: none !important;
}
.subnote { margin: -4px 0 8px; font-size: .85rem; color: #64748b; }
.includes-list { list-style: none; padding: 0; margin: 6px 0 0; }
.includes-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: #334155; font-size: .95rem; }
.includes-list li::before {
  content: "✔";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  line-height: 1.1em;
  text-align: center;
  font-weight: 700;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ========== Responsive ========== */


/* Mobile override */
@media (max-width: 768px) {
    .hero-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
}
@media (max-width: 1024px) {
  .features-grid, .products-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .breathalyzers-grid { grid-template-columns: 1fr; max-width: 500px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu.active { display: block; }
  .hero-title { font-size: 36px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .features-grid, .products-grid, .stats-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .modal-content { width: 95%; padding: 20px; max-height: 85vh; border-radius: 16px; }
  .modal-title { font-size: 1.2rem; }
  .tab { padding: 8px 14px; font-size: .85rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title, .section-title { font-size: 28px; }
  .feature-card, .product-card, .breathalyzer-card { padding: 24px; }
}

@media (max-width: 768px) {
  /* dropdown sits under fixed header */
  .mobile-menu {
    position: absolute;
    top: 64px;       /* same as .nav-container height */
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    z-index: 1001;   /* above content, below top bar */
  }
  .mobile-menu.active { display: block; }

  .mobile-nav-link {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
  }
  .mobile-nav-link:last-child { border-bottom: 0; }
  .mobile-nav-link:hover { background: #f9fafb; }

  /* optional: lock body scroll when menu open */
  body.menu-open { overflow: hidden; }
}
/* viewport already has position:relative in your CSS; ensure it if not */
#clients .logo-scroller { position: relative; }

/* absolute tracks and single line content */
#clients .logo-track {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0,0,0);
}


/*youtube popup Css*/

/* === Modal Base === */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yt-modal.active {
  display: flex;
  opacity: 1;
}

/* === Modal Content === */
.yt-content {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  width: 80%;
  max-width: 800px;
  animation: popupZoom 0.3s ease;
}

@keyframes popupZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === YouTube iframe === */
.yt-content iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* === Close button === */
.yt-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.yt-close:hover { color: #ff4444; }

/* === Responsive === */
@media (max-width: 600px) {
  .yt-content iframe {
    height: 240px;
  }
}

/* ===========================
   NAVBAR RESPONSIVE TWEAKS
   (append at end of your CSS)
   =========================== */

/* Keep layout stable and give the menu room to breathe on medium screens */
/* Default navbar (transparent on home section) */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 2000;
}


/* On hover: white navbar */
#main-nav:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Navbar inside normal sections */
#main-nav.scrolled {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


#main-nav.scrolled .nav-link {
    color: #1F2937 !important;
}


#main-nav .nav-link {
    color: #ffffff !important;
}
/* Hover color while navbar is still transparent */
#main-nav .nav-link:hover {
    color: #FBBF24 !important; /* gold highlight */
}
/* Keep links dark when navbar becomes white */
#main-nav:hover .nav-link {
    color: #1F2937 !important;  /* dark gray/black */
}
/* Between desktop and tablet, gently scale down logo + spacing + font size */
@media (max-width: 1200px) and (min-width: 769px) {
  /* Soften logo size (your earlier .logo is 200x50; override here) */
  #main-nav .nav-container .logo {
    width: auto;            /* let width follow intrinsic aspect */
    height: 48px;           /* slightly smaller */
    max-width: 180px;       /* safety cap so it can’t sprawl */
    object-fit: contain;
  }

  /* Let the link row compress gracefully */
  .nav-menu { gap: 18px; }

  /* Slightly smaller, responsive text size for tighter widths */
  .nav-link {
    font-size: clamp(12px, 1.25vw, 14px);
    white-space: nowrap;    /* keep labels on one line */
  }
}

/* Narrower laptops / large tablets (still above your mobile breakpoint 768px) */
@media (max-width: 992px) and (min-width: 769px) {
  #main-nav .nav-container { padding: 0 16px; }

  #main-nav .nav-container .logo {
    height: 44px;
    max-width: 160px;
  }

  .nav-menu { gap: 14px; }
  .nav-link { font-size: clamp(12px, 1.6vw, 13px); }
}

/* Very small devices already use your mobile menu; but shrink logo a touch */
@media (max-width: 480px) {
  #main-nav .nav-container .logo {
    height: 40px;
    max-width: 140px;
  }
}

/* Ensure underline stays visible even when links get smaller */
.nav-link.active::after,
.mobile-nav-link.active::after {
  bottom: -4px;   /* was -6px; lift a bit for compact nav heights */
}
/* youtube button ticks  */

.video-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    /* Needed for tick */
    position: relative;
    padding-left: 40px;
}
.video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

    /* Active state with tick mark */
 .video-btn.active {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}
    /* Tick mark inside active button */
/* Tick mark on active button */
.video-btn.active::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    font-weight: 800;
    color: white;
}

/* Text spacing */
.video-btn span {
    padding-left: 10px;
}
/*========== Social Media ========== */
.social-media-block {
    margin-top: 12px;
}

.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: 0.25s ease;
}

.social-img:hover {
    transform: scale(1.15);
}
.social-bar {
    display: flex;
    gap: 40px;
    padding: 18px 35px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0px 10px 30px rgba(0, 50, 130, 0.08);
    width: fit-content;
    margin-left: 0px;
    align-items: center;
}

.social-bar img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: none;        /* FIX: Prevents black boxes */
    transition: 0.3s ease;
}

.social-bar img:hover {
    transform: scale(1.12);
}



/* HERO VIDEO BACKGROUND */
.video-hero {
    margin-top: -64px !important; /* navbar height */
    background: none !important; /* ensure video is visible */
}
/* Video fills full hero section */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    overflow: hidden;
}

/* Soft overlay for better text visibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: #1134A6;  /* Dark transparent overlay */
    z-index: 0;
}

/* Move hero content above video */
.video-hero .hero-container,
.video-hero .floating-dot {
    position: relative;
    z-index: 5;
}
/* Adjust hero content so text isn’t hidden under navbar */
.video-hero .hero-container {
    position: relative;
    z-index: 5;
    padding-top: 120px !important;
}
/* Floating play/pause button on hero video */
.video-toggle-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 4000;
}

.video-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

#videoToggleIcon {
    font-size: 22px;
    color: #0f172a; /* dark navy */
    pointer-events: none;
}




/* On mobile, prevent heavy video issues */
@media (max-width: 768px) {
    .hero-video {
        display: block !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .video-hero {
        background: none !important;
    }
}
/* ===============================
   VIDEO LANGUAGE BUTTONS (FIXED)
   =============================== */

#demoVideo .video-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    /* Required for tick */
    position: relative !important;
    padding-left: 40px !important;
}

#demoVideo .video-btn.active {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    box-shadow: 0 6px 18px rgba(59,130,246,0.45);
}

/* ✔ Tick Mark */
#demoVideo .video-btn.active::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    font-weight: 800;
    color: white;
}

/* Text inside button */
#demoVideo .video-btn span {
    padding-left: 10px;
}

/* FORCE tick mark for demo video language buttons */
#demoVideo button.video-btn.active::before {
    content: "✓" !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #fff !important;
    display: inline-block !important;
    line-height: 1 !important;
    z-index: 5 !important;
}

/* Force button layout to allow tick */
#demoVideo button.video-btn {
    position: relative !important;
    padding-left: 40px !important;
}
/* Logn Css code */
/* Base modal layout */
      #loginModal.modal {
        position: fixed;
        inset: 0;
        display: none;                /* default hidden; JS sets display:flex */
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        background: radial-gradient(circle at top, rgba(15,118,210,0.35), rgba(15,23,42,0.92));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
      }
      /* When JS sets aria-hidden="false", we can also force flex (fallback) */
      #loginModal[aria-hidden="false"] {
        display: flex;
      }

      #loginModal .modal-backdrop {
        position: absolute;
        inset: 0;
        cursor: pointer;
      }

      #loginModal .modal-content {
        position: relative;
        max-width: 380px;
        width: 100%;
        background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(15,23,42,0.94));
        border-radius: 20px;
        padding: 2.1rem 1.9rem 1.8rem;
        box-shadow: 0 24px 60px rgba(15,23,42,0.85);
        border: 1px solid rgba(148,163,184,0.6);
        color: #e5e7eb;
        z-index: 1001;
      }

      #loginModal .modal-title {
        margin: 0 0 1.4rem;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-align: center;
        color: #f9fafb;
      }

      #loginModal .modal-title::after {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin: 0.6rem auto 0;
        border-radius: 999px;
        background: linear-gradient(to right, #0ea5e9, #22c55e);
      }

      #loginModal .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15,23,42,0.7);
        color: #e5e7eb;
        cursor: pointer;
        font-size: 1.3rem;
        line-height: 1;
        box-shadow: 0 0 0 1px rgba(148,163,184,0.5);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
        z-index: 2;
      }

      #loginModal .modal-close:hover {
        background: rgba(30,64,175,0.9);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(59,130,246,0.7);
      }

      #loginModal .contact-form {
        margin-top: 0.4rem;
      }

      #loginModal .form-group {
        margin-bottom: 1rem;
      }

      #loginModal .form-input.full-width,
      #loginModal .form-input {
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(148,163,184,0.75);
        background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
        color: #e5e7eb;
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      }

      #loginModal .form-input::placeholder {
        color: #9ca3af;
      }

      #loginModal .form-input:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 1px rgba(14,165,233,0.9), 0 0 0 6px rgba(56,189,248,0.25);
        background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,1));
      }

      #loginModal .btn.primary {
        border: none;
        border-radius: 999px;
        padding: 0.75rem 1.4rem;
        font-weight: 600;
        font-size: 0.98rem;
        cursor: pointer;
        background: linear-gradient(135deg, #0f7abf, #0ea5e9);
        color: #f9fafb;
        box-shadow: 0 14px 35px rgba(37,99,235,0.45);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
      }

      #loginModal .btn.primary::after {
        content: "тЖТ";
        font-size: 0.95rem;
        opacity: 0.9;
      }

      #loginModal .btn.primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 40px rgba(37,99,235,0.65);
        filter: brightness(1.05);
      }

      #loginModal .btn.primary:active {
        transform: translateY(0);
        box-shadow: 0 10px 26px rgba(30,64,175,0.7);
      }

      /* Small helper if viewport is tiny */
      @media (max-width: 480px) {
        #loginModal .modal-content {
          padding: 1.7rem 1.3rem 1.4rem;
        }
      }

      /* poster borucher's */

      /* Brochure grid */
.brochure-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.brochure-thumb {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.brochure-thumb:hover {
  transform: scale(1.05);
}

.brochure-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.brochure-thumb {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.brochure-thumb:hover {
  transform: scale(1.05);
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-content {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
.school-safety-section {
  padding: 80px 20px;
  background: #f9fbfc;
}

.school-safety-section .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.school-safety-section h2 {
  font-size: 36px;
  color: #0a1f44;
  margin-bottom: 15px;
}

.school-safety-section p {
  font-size: 18px;
  color: #555;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.safety-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.safety-card h3 {
  color: #00a3a3;
  margin-bottom: 15px;
}

.safety-card ul {
  padding-left: 18px;
}

.safety-card ul li {
  margin-bottom: 10px;
  color: #333;
}

.cta-box {
  text-align: center;
  margin-top: 60px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #00a3a3;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
}

.cta-btn:hover {
  background: #008c8c;
}
#school-safety {
  scroll-margin-top: 90px; /* adjust to your header height */
}

html {
  scroll-behavior: smooth;
}

/* ==============================
   SMART VENDING – MOBILE STYLES
   ============================== */

#smart-vending {
  padding: 40px 15px;
  background: #f8fafc;
}

#smart-vending .section-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 8px;
}

#smart-vending .section-subtitle {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Grid Layout */
#smart-vending .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Card */
#smart-vending .feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

#smart-vending .feature-card:hover {
  transform: translateY(-3px);
}

#smart-vending .feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1e40af;
}

#smart-vending .feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* Bottom CTA */
#smart-vending h3 {
  font-size: 18px;
  margin-top: 20px;
}

#smart-vending p {
  font-size: 14px;
}

#smart-vending .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: #1e40af;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
}

/* ==============================
   TABLET VIEW
   ============================== */
@media (min-width: 768px) {
  #smart-vending {
    padding: 60px 30px;
  }

  #smart-vending .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #smart-vending .section-title {
    font-size: 26px;
  }
}

/* ==============================
   DESKTOP VIEW
   ============================== */
@media (min-width: 1024px) {
  #smart-vending {
    padding: 80px 0;
  }

  #smart-vending .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  #smart-vending .feature-card {
    padding: 22px;
  }

  #smart-vending .section-title {
    font-size: 30px;
  }
}

/* Map location CSS */
.office-map-section{
    margin-top:40px;
}

.map-heading{
    font-size:22px;
    font-weight:600;
    margin-bottom:15px;
    color:#1e293b;
}

.map-container{
    width:100%;
    overflow:hidden;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}




/* ===== NEW MODERN SECTION ===== */

.attendance-coming-new {
  padding: 70px 20px;
  background: #f8fafc; /* light white background */
}

/* Card */
.attendance-card {
  max-width: 750px;
  margin: auto;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.attendance-card:hover {
  transform: translateY(-5px);
}

/* Title */
.attendance-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}

/* 🔥 Center blinking badge */
.coming-center {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: blinkNew 1s infinite;
}

@keyframes blinkNew {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Description */
.attendance-desc {
  font-size: 16px;
  color: #475569;
  margin-bottom: 25px;
}

/* Flow */
.attendance-flow {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e293b;
}

.attendance-flow .arrow {
  margin: 0 10px;
  color: #64748b;
}

/* PASS FAIL */
.attendance-result .pass {
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 5px;
}

.attendance-result .fail {
  color: #ef4444;
  font-weight: 600;
}

/* AAMS badge positioning */
.aams-link {
  position: relative;
  padding-right: 20px; /* space for badge */
}

/* 🔴 Red badge */
.aams-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  animation: blinkAAMS 1s infinite;
}

/* Blinking effect */
@keyframes blinkAAMS {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
  
  
}
/* ================= OFFER BANNER ABOVE HEADING ================= */
.offer-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.offer-banner {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* ================= CONTAINER (ANIMATION APPLIED HERE) ================= */
.offer-container {
  position: relative;
  display: inline-block;
  width: 100%;

  animation: cardZoom 2s infinite ease-in-out;
}

/* ================= SMALL CORNER CROSS RIBBON ================= */
.offer-ribbon {
  position: absolute;
  top: 6px;          /* closer to corner */
  right: -32px;      /* adjusted for smaller size */

  width: 90px;       /* ✅ smaller width */
  text-align: center;

  background: #e11d48;
  color: #fff;

  font-size: 10px;   /* smaller text */
  font-weight: bold;
  padding: 4px 0;

  transform: rotate(45deg);
  z-index: 2;

  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ================= CARD ================= */
.offer-banner {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
}

/* ================= ANIMATION ================= */
@keyframes cardZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
  .offer-ribbon {
    width: 80px;

    top: -5px;        /* 🔼 move up */
    right: -30px;     /* ➡️ push more outside */

    font-size: 9px;
  }
  

  .offer-banner {
    font-size: 13px;
    padding: 12px 10px 10px 10px; /* little extra top spacing */
  }
}