/* NEW ADDED CSS JUNE 28, 2025 SA REGISTRATION FORM NI! */
    .form-label-minimal {
      display: block;
      font-size: 0.75rem;
      color: #555;
      margin-bottom: 6px;
      margin-top: 12px;
      font-weight: 500;
      letter-spacing: 0.01em;
    }

    .form-input {
      width: 100%;
      font-size: 0.95rem;
      padding: 10px 12px;
      height: 42px;
      border: 1px solid #d1d5db;
      border-radius: 5px;
      background-color: white;
      box-sizing: border-box;
      transition: all 0.25s ease;
    }

    /* Hover effect */
    .form-input:hover {
      background-color: #f3f4f6;
      border-color: #9ca3af;
    }

    /* Focus effect */
    .form-input:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
      background-color: #fff;
    }

    .form-input select {
      appearance: none;
      background: #fafafa;
      border-radius: 8px;
    }

    .registration-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 7px 20px; /* smaller vertical (10px) and horizontal (20px) gap */
    }

    @media (max-width: 1200px) {
      .registration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
      }
    }

    @media (max-width: 700px) {
      .registration-grid {
        grid-template-columns: 1fr;
        gap: 8px;
      }
    }

    /* Submit button container */
    .submit-btn-container {
      grid-column: span 4;
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    /* Button style */
    .submit-btn {
      background: linear-gradient(135deg, #2563eb, #1e40af);
      color: white;
      padding: 14px 48px;
      border: none;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
      transition: all 0.3s ease;
      width: 100%;
      max-width: 320px;
    }

    /* Hover effect */
    .submit-btn:hover {
      background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
    }

    /* Active (clicked) effect */
    .submit-btn:active {
      transform: translateY(1px);
    }

    /* Mobile: button full width */
    @media (max-width: 700px) {
      .submit-btn {
        max-width: none;
        width: 100%;
      }
    }


    /* Responsive Registration Form Grid */
    .registration-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px 20px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    @media (max-width: 1200px) {
      .registration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
      }
    }


    @media (max-width: 700px) {
      .registration-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 4vw;
      }
      #registration-form h2 {
        font-size: 1.3rem;
        margin-bottom: 18px;
      }
      .reg-note p {
        font-size: 13px;
      }
    }

    /* Make form container responsive */
    #registration-form {
      padding: 40px 10px;
    }
    @media (max-width: 700px) {
      #registration-form {
        padding: 24px 0;
      }
    }

    /* Make submit button full width on mobile */
    .submit-btn-container {
      grid-column: span 4;
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }
    @media (max-width: 1200px) {
      .submit-btn-container {
        grid-column: span 2;
      }
    }
    @media (max-width: 700px) {
      .submit-btn-container {
        grid-column: span 1;
        width: 100%;
        padding: 0;
      }
      .submit-btn {
        width: 100%;
        max-width: none;
        font-size: 1rem;
        padding: 12px 0;
      }
    }

    /* smaller logo in mobile phone */
    @media (max-width: 600px) {
      #hero .col-lg-5 img {
        max-width: 200px !important;
        max-height: 200px !important;
        width: 80vw !important;
        height: auto !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }

      .hero h2{
        font-size: 30px;
        text-align: center;
      }
    }


    .form-row .form-input {
      margin-bottom: 0 !important;
    }
    @media (max-width: 600px) {
      .form-row {
        flex-direction: column !important;
        gap: 0 !important;
      }
    }


/* Password strength bar styles */
.strength-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 5px;
  overflow: hidden;
}
.strength-line {
  height: 100%;
  width: 0%;
  background: red;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}

 /* Officials — card like your reference */
      .official-card {
        width: 100%;
        max-width: 360px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(21,36,66,0.08);
        border: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        margin: 0;
      }

      
      .official-img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
        background: #f2f4f6;
      }

      .official-card .card-body {
        padding: 1.25rem;
        text-align: center;
      }

      .official-card .card-title {
        color: #043058;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
      }

      .official-position {
        color: #0d6efd;
        font-weight: 600;
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
      }

      .official-desc {
        color: #6c757d;
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
      }

      /* center slides and add spacing */
      .swiper-slide {
        display: flex;
        justify-content: center;
        padding: 18px 0;
      }

      /* Swiper arrows (circular) */
      .officials-swiper .swiper-button-prev,
      .officials-swiper .swiper-button-next {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #17a2a8; /* teal */
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(23,162,168,0.12);
        top: 48%;
      }
      .officials-swiper .swiper-button-prev::after,
      .officials-swiper .swiper-button-next::after {
        font-size: 1.1rem;
      }
      .officials-swiper .swiper-button-prev { left: 6px; }
      .officials-swiper .swiper-button-next { right: 6px; }

      /* Pagination style */
      .officials-swiper .swiper-pagination {
        margin-top: 14px;
        text-align: center;
      }
      .officials-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: #cfeff0;
        opacity: 1;
        margin: 0 6px;
      }
      .officials-swiper .swiper-pagination-bullet-active {
        background: #17a2a8;
        width: 22px;
        border-radius: 10px;
      }
      

      /* small screens tweak */
      @media (max-width: 575px) {
        .official-card { max-width: 92%; }
        .official-img { height: 220px; }
        .officials-swiper .swiper-button-prev,
        .officials-swiper .swiper-button-next { display: none; }
      }



  
/* OLD CSS */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;

  --background-color: #ffffff;
  --default-color: #222222;
  --heading-color: #172a28;
  --accent-color: #4169E1;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #ffffff;
  --nav-hover-color: #fff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #01433c;
  --nav-dropdown-hover-color: #008374;
  scroll-behavior: smooth;
}


.light-background {
  --background-color: #f2f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #4169E1;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #4169E1;
  --contrast-color: #ffffff;
}


/* General Styling */
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* Header */
.header {
  --background-color: #4169E1;
  --heading-color: #ffffff;
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}
.header .branding {
  min-height: 60px;
  padding: 10px 0;
}
.header .logo {
  line-height: 1;
}
.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}
.header .logo h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}
.header .logo span {
  font-size: 32px;
  margin-left: 2px;
  color: var(--nav-hover-color);
}

/* Navigation Menu */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul {
    margin: 0; padding: 0; display: flex; list-style: none; align-items: center;
  }
  .navmenu li { position: relative; }
  .navmenu>ul>li { white-space: nowrap; padding: 15px 14px; }
  .navmenu>ul>li:last-child { padding-right: 0; }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2.2px !important;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }
  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }
  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-color);
  }
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
  }
  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }
  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }
  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }
  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }
  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }
  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu>ul { display: block; }
}

/* Footer */
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}
.footer .footer-top { padding-top: 50px; }
.footer .footer-about .logo { line-height: 1; margin-bottom: 25px; }
.footer .footer-about .logo img { max-height: 40px; margin-right: 6px; }
.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}
.footer .footer-about p { font-size: 14px; font-family: var(--heading-font); }
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}
.footer .social-links a:hover {
  color: var(--default-color);
  border-color: var(--default-color);
}
.footer h4 { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }
.footer .footer-links { margin-bottom: 30px; }
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links ul li { padding: 10px 0; display: flex; align-items: center; }
.footer .footer-links ul li:first-child { padding-top: 0; }
.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}
.footer .footer-links ul a:hover { color: var(--default-color); }
.footer .footer-contact p { margin-bottom: 5px; }
.footer .copyright {
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.footer .copyright p { margin-bottom: 0; }
.footer .credits { margin-top: 4px; font-size: 13px; }

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.4s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.section-title p { margin-bottom: 0; }

/* Page Title & Breadcrumbs */
.page-title {
  --background-color: var(--accent-color);
  --default-color: #fff;
  --heading-color: #fff;
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}
.page-title .heading {
  padding: 160px 0 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}
.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 92%);
  padding: 20px 0;
}
.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.page-title nav ol a {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.page-title nav ol a:hover { color: var(--default-color); }
.page-title nav ol li+li { padding-left: 10px; }
.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/* Section Layout */
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 112px;
  overflow: clip;
}
@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 100px; }
}

/* Hero Section */
.hero {
  width: 100%;
  position: relative;
  padding: 140px 0 0 0;
}
.hero .container { position: relative; z-index: 3; }
.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h2 .accent { color: var(--contrast-color); }
.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 400;
  margin-bottom: 30px;
}
.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  transition: 0.3s;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
}
.hero .btn-get-started:hover {
  border-color: color-mix(in srgb, var(--default-color), transparent 60%);
}
.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-weight: 600;
  color: var(--default-color);
}
.hero .btn-watch-video i {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}
.hero .btn-watch-video:hover i { color: var(--default-color); }
@media (max-width: 640px) {
  .hero h2 { font-size: 36px; }
  .hero .btn-get-started, .hero .btn-watch-video { font-size: 14px; }
}
.hero .icon-boxes { padding-bottom: 60px; z-index: 4; }
@media (min-width: 1200px) {
  .hero .icon-boxes:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(50% + 20px);
    background-color: var(--default-color);
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }
}
.hero .icon-box {
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
  background: var(--background-color);
  box-shadow: 0 0 29px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  z-index: 1;
  height: 100%;
  width: 100%;
  text-align: center;
}
.hero .icon-box .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}
.hero .icon-box .title a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}
.hero .icon-box .icon {
  margin-bottom: 20px;
  padding-top: 10px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 48px;
  line-height: 1;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.hero .icon-box:hover {
  background-color: color-mix(in srgb, var(--background-color), white 10%);
}
.hero .icon-box:hover .title a,
.hero .icon-box:hover .icon {
  color: var(--contrast-color);
}

/* About Section */
.about h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}
.about .fst-italic {
  color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
}
.about .content ul { list-style: none; padding: 0; }
.about .content ul li {
  padding: 0 0 10px 30px;
  position: relative;
}
.about .content ul i {
  position: absolute;
  font-size: 20px;
  left: 0;
  top: -3px;
  color: var(--accent-color);
}
.about .content p:last-child { margin-bottom: 0; }
.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/* Pulsating Play Button */
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}
.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}
.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}
.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}
@keyframes pulsate-play-btn {
  0% { transform: scale(0.6, 0.6); opacity: 1; }
  100% { transform: scale(1, 1); opacity: 0; }
}

/* Services Section */
.services .service-item {
  background-color: var(--surface-color);
  padding: 48px; /* increased from 40px */
  box-shadow: 0px 0 36px rgba(0, 0, 0, 0.12); /* slightly stronger shadow */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-height: 420px; /* increased from 370px */
}
.services .service-item .icon {
  width: 56px; /* increased from 48px */
  height: 56px;
  position: relative;
  margin-bottom: 56px; /* increased from 50px */
}
.services .service-item .icon i {
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
  font-size: 64px; /* increased from 56px */
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid color-mix(in srgb, var(--heading-color), transparent 90%);
  transition: 0.3s;
}
.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  flex-grow: 1; /* This pushes the button to the bottom */
}
.services .service-item .readmore {
  margin-top: 20px;
  display: block;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: center;
  position: relative;
  background: var(--accent-color);
  color: #fff;
  border-radius: 4px;
  padding: 10px 0;
  font-weight: 500;
  transition: background 0.2s;
}
.services .service-item .readmore:hover {
  background: #27408b; /* Change this to your preferred color */
  color: #fff;
  text-decoration: none;
}
.services .service-item:hover .icon i { 
  color: var(--heading-color); 
}
.services .service-item:hover .icon:before {
  background: color-mix(in srgb, var(--accent-color), transparent 50%);
}
.services .service-item:hover h3 {
  border-color: color-mix(in srgb, var(--accent-color), transparent 10%);
  color: var(--heading-color);
}


/* Testimonials Section */
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  box-sizing: content-box;
  padding: 30px;
  margin: 30px 15px;
  position: relative;
  height: 100%;
}
.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  margin-right: 15px;
}
.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}
.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}
.testimonials .testimonial-item .stars { margin: 10px 0; }
.testimonials .testimonial-item .stars i { color: #ffc107; margin: 0 1px; }
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}
.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}
.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}
.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
}
.testimonials .swiper-wrapper { height: auto; }
.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}
.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}
@media (max-width: 767px) {
  .testimonials .testimonial-wrap { padding-left: 0; }
  .testimonials .testimonial-item { padding: 30px; margin: 15px; }
  .testimonials .testimonial-item .testimonial-img { position: static; left: auto; }
}


/* Blog Posts Section */
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.blog-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}
.blog-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}
.blog-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}
.blog-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}
.blog-posts .title a:hover { color: var(--accent-color); }
.blog-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}
.blog-posts .post-author { font-weight: 600; margin-bottom: 5px; }
.blog-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}


/* Blog Pagination Section */
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}
.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}
.blog-pagination li { margin: 0 5px; transition: 0.3s; }
.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}
.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/* Blog Details Section */
.blog-details {
  padding-bottom: 30px;
}
.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 14px;
}

.blog-details .post-img {
  margin: -30px -30px 24px -30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  /* Remove or adjust max-height if you want to allow tall images */
  max-height: 500px;
}

.blog-details .post-img img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain; /* Show the whole image */
  border-radius: 12px;
  background: #f7f7f7;
  transition: transform 0.3s;
  display: block;
}
.blog-details .post-img img:hover {
  transform: scale(1.03);
}
@media (max-width: 767px) {
  .blog-details .post-img,
  .blog-details .post-img img {
    max-height: 180px;
    border-radius: 8px;
  }
}
.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}
.blog-details .content { margin-top: 20px; }
.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}
.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}
.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}
.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}
.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}
.blog-details .meta-top ul li+li { padding-left: 20px; }
.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}
.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}
.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}
.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}
.blog-details .meta-bottom a:hover { color: var(--accent-color); }
.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}
.blog-details .meta-bottom .cats li { display: inline-block; }
.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}
.blog-details .meta-bottom .tags li { display: inline-block; }
.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}
.blog-details .meta-bottom .share { font-size: 16px; }
.blog-details .meta-bottom .share i { padding-left: 5px; }

@media (max-width: 767px) {
  .blog-details .post-img,
  .blog-details .post-img img {
    max-height: 240px;
    border-radius: 8px;
  }
}

.blog-details-img-wrap {
  width: 100%;
  height: 100%;
  background: #f7f7f7;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 600px;
  margin-bottom: 0;
}

.blog-details-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.3s;
  display: block;
  max-height: 600px;
}



@media (max-width: 991.98px) {
  .blog-details-img-wrap {
    max-height: 260px;
    min-height: 160px;
    border-radius: 10px;
  }
  .blog-details-img-wrap img {
    max-height: 260px;
    border-radius: 10px;
  }
}

@media (max-width: 767.98px) {
  .blog-details-img-wrap {
    max-height: 180px;
    min-height: 120px;
    border-radius: 8px;
    margin-bottom: 18px;
  }
  .blog-details-img-wrap img {
    max-height: 180px;
    border-radius: 8px;
  }
}

/* Remove negative margin for side-by-side layout */
.blog-details .post-img {
  margin: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: none !important;
}

/* Blog Author Section */
.blog-author {
  padding: 10px 0 40px 0;
}
.blog-author .author-container {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.blog-author img { max-width: 120px; margin-right: 20px; }
.blog-author h4 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.blog-author .social-links { margin: 0 10px 10px 0; }
.blog-author .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
}
.blog-author p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

/* Blog Comments Section */
.blog-comments { padding: 10px 0; }
.blog-comments .comments-count { font-weight: bold; }
.blog-comments .comment { margin-top: 30px; position: relative; }
.blog-comments .comment .comment-img { margin-right: 14px; }
.blog-comments .comment .comment-img img { width: 60px; }
.blog-comments .comment h5 { font-size: 16px; margin-bottom: 2px; }
.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}
.blog-comments .comment h5 a:hover { color: var(--accent-color); }
.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.blog-comments .comment h5 .reply i { font-size: 20px; }
.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}
.blog-comments .comment.comment-reply { padding-left: 40px; }

/* Modern Blog Details Card & Image */
.blog-details .article {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.10);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
}
.blog-details .article:hover {
  box-shadow: 0 16px 48px rgba(44,62,80,0.13);
}
.blog-details-img-wrap {
  background: #f4f7fb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  max-height: 700px;
  transition: box-shadow 0.2s;
}
.blog-details-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.3s;
  max-height: 700px;
}
.blog-details-img-wrap img:hover {
  transform: scale(1.03);
}
@media (max-width: 991.98px) {
  .blog-details-img-wrap {
    min-height: 220px;
    max-height: 320px;
    border-radius: 12px;
  }
  .blog-details-img-wrap img {
    border-radius: 12px;
    max-height: 320px;
  }
}
@media (max-width: 767.98px) {
  .blog-details .article {
    padding: 1.2rem 0.5rem;
  }
  .blog-details-img-wrap {
    min-height: 120px;
    max-height: 180px;
    border-radius: 8px;
  }
  .blog-details-img-wrap img {
    border-radius: 8px;
    max-height: 180px;
  }
}

/* Widgets */
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  margin: 60px 0 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}
.widget-item { margin-bottom: 40px; }
.widget-item:last-child { margin-bottom: 0; }
.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}
.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}
.search-widget form input[type=text]:focus { outline: none; }
.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}
.search-widget form button i { line-height: 0; }
.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}
.search-widget form:is(:focus-within) { border-color: var(--accent-color); }
.categories-widget ul { list-style: none; padding: 0; margin: 0; }
.categories-widget ul li { padding-bottom: 10px; }
.categories-widget ul li:last-child { padding-bottom: 0; }
.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}
.categories-widget ul a:hover { color: var(--accent-color); }
.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}
.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}
.recent-posts-widget .post-item:last-child { margin-bottom: 0; }
.recent-posts-widget .post-item img { width: 80px; margin-right: 15px; }
.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}
.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}
.recent-posts-widget .post-item h4 a:hover { color: var(--accent-color); }
.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.tags-widget { margin-bottom: -10px; }
.tags-widget ul { list-style: none; padding: 0; margin: 0; }
.tags-widget ul li { display: inline-block; }
.tags-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
  display: inline-block;
  transition: 0.3s;
}
.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 1px solid var(--accent-color);
}
.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}


/* Fix for Recent Blog Posts section on homepage */
.recent-posts .col-xl-4,
.recent-posts .col-md-6 {
  display: flex;
}

.recent-posts article {
  background: var(--surface-color, #fff);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recent-posts .post-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recent-posts .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-posts .post-category {
  font-size: 14px;
  color: var(--accent-color, #4169E1);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-posts .title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px 0;
  line-height: 1.3;
}
.recent-posts .title a {
  color: var(--heading-color, #172a28);
  transition: color 0.2s;
}
.recent-posts .title a:hover {
  color: var(--accent-color, #4169E1);
  text-decoration: underline;
}

.recent-posts .d-flex.align-items-center {
  margin-top: auto;
  gap: 12px;
}

.recent-posts .post-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.recent-posts .post-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recent-posts .post-author {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--default-color, #222);
}
.recent-posts .post-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 0;
}

#typing-cursor {
  font-weight: bold;
  color: #fff;
  animation: blink 0.8s steps(2, start) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


 /* =====  chatbot floating message ===== */
 #chatbot-floating-tip {
  position: fixed;
  right: 35px;
  bottom: 130px;
  z-index: 10001;
  pointer-events: none;
  animation: fadeInTip 0.7s;
}

@keyframes fadeInTip {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

.typing-indicator {
  background: rgba(65, 105, 225, 0.28);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(65,105,225,0.13);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: #fff;
  opacity: 0.85;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
  animation: typingBounce 1.1s infinite;
}

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0);}
  40% { transform: translateY(-7px);}
}

@media (max-width: 600px) {
  #chatbot-floating-tip {
    right: 12px;
    bottom: 90px;
  }
  .typing-indicator {
    font-size: 13px;
    padding: 10px 12px;
    min-width: 120px;
  }
}
@media (max-width: 600px) {
  #chatbot-floating-tip {
    right: 12px;
    bottom: 120px;
  }
  .typing-indicator {
    font-size: 13px;
    padding: 10px 12px;
    min-width: 120px;
  }
}


 /* =====  chatbot section ===== */
.chatbot-fab {
    position: fixed;
    right: 15px;
    bottom: 70px;
    width: 47px;
    height: 47px;
    background: #0061ff;
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
    z-index: 9999;
}

.chatbot-fab:hover {
    transform: scale(1.06);
    background: #0051d4;
}

/* ===== Chatbot Container ===== */
.chatbot-container {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 380px;
    max-width: 92vw;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    display: none;
    overflow: hidden;
    animation: fadeInUp 0.28s ease;
    z-index: 99999;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Header ===== */
.chatbot-header {
    background: #0061ff;
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #0061ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.chatbot-title {
    font-size: 15px;
    font-weight: 700;
}

.chatbot-sub {
    font-size: 12px;
    opacity: 0.95;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
}

/* ===== Messages Area ===== */
.chatbot-messages {
    height: 330px;
    overflow-y: auto;
    padding: 18px;
    background: #f6f7f9;
    scroll-behavior: smooth;
}

.chat-msg {
    display: flex;
    margin-bottom: 14px;
}

.chat-msg.user {
    justify-content: flex-end;
}

.bubble {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.bot .bubble {
    background: #e5e9f1;
}

.chat-msg.user .bubble {
    background: #0061ff;
    color: #fff;
}

/* ===== Input Area ===== */
/* Chatbot input area layout */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 14px 14px;
    background: #fff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.03);
}

/* Voice, send, and TTS buttons */
.chatbot-input-area button {
    background: #eaf0ff;
    border: none;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    color: #222;
}

#voice-btn {
    background: #eaf0ff;
}
#voice-btn:active, #voice-btn:focus {
    background: #dbeafe;
}

#chatbot-send {
    background: #0061ff;
    color: #fff;
    margin-left: 0;
    font-size: 20px;
    transition: background 0.18s, transform 0.18s;
}
#chatbot-send:hover, #chatbot-send:focus {
    background: #0051d4;
    transform: scale(1.08);
}

#tts-toggle {
    background: #e5ffe8;
    color: #222;
}
#tts-toggle.active, #tts-toggle:active {
    background: #00d46a;
    color: #fff;
}

/* Input field */
#chatbot-input {
    flex: 1;
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 15px;
    resize: none;
    background: transparent;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: none;
    min-height: 42px;
    max-height: 80px;
    margin: 0 4px;
}

#chatbot-input:focus {
    border-color: #b6c7f7;
    background: #f6f8fa;
    outline: none;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .chatbot-input-area {
        padding: 10px 6px 10px 6px;
        gap: 6px;
    }
    #chatbot-input {
        font-size: 14px;
        padding: 8px 8px;
    }
    .chatbot-input-area button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

#chatbot-send {
    background: #0061ff;
    border: none;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 18px;
}

/* ===== Typing Indicator ===== */
.ai-thinking {
    display: flex;
    gap: 5px;
    font-style: italic;
    color: #0061ff;
    align-items: center;
}

.ai-thinking .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0061ff;
    display: inline-block;
    margin-right: 2px;
    animation: wave 1s infinite;
}

.ai-thinking .dot:nth-child(1) { animation-delay: 0s; }
.ai-thinking .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
}

/* ===== Quick Replies ===== */
#quick-replies {
    gap: 8px;
}

.qr {
    background: #f1f3ff;
    border: none;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
}

.qr:hover {
    background: #e1e7ff;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 80px;
        right: 10px;
        width: 94vw;
    }
}


  
/* ============================
   BARANGAY MAP — FINAL PERFECT VERSION
============================ */
#barangayMapModal .modal-content {
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: none;
}

.map-header {
  background: linear-gradient(90deg, #2563eb, #1e40af);
  border-radius: 22px 22px 0 0;
  color: #fff;
}

/* MAP AREA */
.map-wrapper { position: relative; width: 100%; }

#barangayMap {
  border-radius: 18px;
  min-height: 540px;
  height: 76vh;
  max-height: 84vh;
  width: 100%;
  background: #e5f1f7;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin-top: 8px;
}

/* SEARCH BAR */
.map-search-container {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 92%);
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 14px;
  z-index: 2000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.map-search-container input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  font-size: 1rem;
}

/* CONTROL BUTTONS */
.map-controls {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2000;
  display: flex;
  gap: 10px;
}
.map-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 10px 15px;
  border-radius: 12px;
  color: #2563eb;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: all 0.2s;
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* START NAVIGATION BUTTON */
#navControls {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2010;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-big-btn {
  padding: 16px 26px !important;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
}

/* INSTRUCTION BANNER */
.instr-banner {
  position: absolute;
  bottom: 120px;
  right: 18px;
  width: min(340px, 92%);
  z-index: 2015;
  display: none;
}
.instr-box {
  background: rgba(0,0,0,0.80);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* STEP PANEL */
.steps-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  width: min(360px, 92%);
  max-height: 72vh;
  overflow-y: auto;
  z-index: 2020;
  display: none;
}
.steps-box {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.step-item {
  background: #f8fafc;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid #e8edf2;
}

/* LOADING SPINNER */
#mapLoadingSpinner {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.7);
  z-index: 3000;
  border-radius: 18px;
}

/* NEW: VIEW BIGGER MAP BUTTON — BEAUTIFUL & PREMIUM */
#viewBiggerMapBtn {
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem !important;
  transition: all 0.25s ease;
  border: 1.5px solid #3b82f6 !important;
}
#viewBiggerMapBtn:hover {
  transform: translateY(-3px);
  background: #3b82f6 !important;
  color: white !important;
  box-shadow: 0 10px 25px rgba(37,99,235,0.35) !important;
}
#viewBiggerMapBtn i {
  font-size: 1.1rem;
}

/* MOBILE RESPONSIVE — PERFECT ON EVERY PHONE */
@media (max-width: 768px) {
  #barangayMap {
    min-height: 500px !important;
    height: 70vh !important;
    max-height: 78vh !important;
    border-radius: 20px !important;
  }

  .map-search-container {
    top: 12px;
    width: 92%;
  }

  .map-controls {
    bottom: 14px;
    left: 14px;
    gap: 10px;
  }
  #navControls {
    bottom: 14px;
    right: 14px;
  }
  .nav-big-btn {
    padding: 18px 34px !important;
    font-size: 1.22rem;
  }

  .instr-banner {
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
  }
  .steps-panel {
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    top: 74px;
  }

  /* Make the new button look perfect on mobile */
  #viewBiggerMapBtn {
    font-size: 0.98rem;
    padding: 0.65rem 1.5rem !important;
  }
}



.modern-close-btn {
  position: absolute;
  top: 8px;
  right: 14px;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  color: #4169E1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(65,105,225,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  z-index: 20;
}
.modern-close-btn:hover, .modern-close-btn:focus {
  background: #4169E1;
  color: #fff;
  box-shadow: 0 4px 16px rgba(65,105,225,0.18);
  outline: none;
}
.steps-box {
  position: relative;
  padding-top: 18px; /* ensures space for the close button */
}

.steps-panel {
  background: rgba(255,255,255,0.85); /* semi-transparent white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* for Safari */
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(65,105,225,0.08);
}

.pulse-marker {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-marker .pulse-effect {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(220,38,38,0.32); /* bright red, more visible */
  animation: pulse 1.2s infinite;
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(220,38,38,0.35);
}
.pulse-marker img {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.18);
}
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.18;
    box-shadow: 0 0 0 0 rgba(220,38,38,0.10);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 0 18px rgba(220,38,38,0.35);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.18;
    box-shadow: 0 0 0 0 rgba(220,38,38,0.10);
  }
}


.user-profile-marker, .user-profile-marker img, .leaflet-marker-icon.user-profile-marker {
  border-radius: 50%;
  border: 2px solid #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.18);
  object-fit: cover;
  background: #fff;
}

@media (max-width: 500px) {
  .map-search-container {
    width: 70vw !important;
    padding: 5px 8px !important;
    top: 8px !important;
    border-radius: 10px !important;
  }
  .map-search-container input {
    font-size: 0.95rem !important;
    padding: 7px 8px !important;
    border-radius: 8px !important;
    height: 32px !important;
  }
  .map-controls {
    gap: 6px !important;
    left: 8px !important;
    bottom: 8px !important;
  }
  .map-btn {
    padding: 6px 8px !important;
    font-size: 1.05rem !important;
    border-radius: 8px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    width: 32px !important;
    height: 32px !important;
  }
  #navControls {
    bottom: 8px !important;
    right: 8px !important;
    gap: 6px !important;
  }
  .nav-big-btn {
    padding: 10px 16px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    min-width: 90px !important;
    width: auto !important;
  }
}


