/* ================================================================
   responsive.css — Full-site responsive layout fixes
   Breakpoints: 1400px | 1200px | 992px | 768px | 576px | 480px | 400px
   ================================================================ */

/* ─── BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ─── GENERAL SECTION SPACING ───────────────────────────────────── */
@media (max-width: 992px)  { section { padding: 50px 0; } }
@media (max-width: 768px)  { section { padding: 40px 0; } }
@media (max-width: 480px)  { section { padding: 30px 0; } }

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .section-header { padding-bottom: 40px; }
  .section-header p  { font-size: 32px; line-height: 36px; }
}
@media (max-width: 768px) {
  .section-header { padding-bottom: 35px; }
  .section-header p  { font-size: 26px; line-height: 30px; }
}
@media (max-width: 480px) {
  .section-header p  { font-size: 22px; line-height: 26px; }
  .section-header h2 { font-size: 12px; }
}

/* ─── HEADER / NAVBAR ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .header .logo img { max-height: 60px; }
}
@media (max-width: 992px) {
  .header { padding: 12px 0; }
  .header .logo img { max-height: 52px; }
}
@media (max-width: 768px) {
  .header { padding: 10px 0; }
  .header .logo img { max-height: 46px; }
}
@media (max-width: 480px) {
  .header .logo img { max-height: 40px; }
}

/* ─── MOBILE NAVIGATION — HAMBURGER MENU ─────────────────────────── */

/* Overlay backdrop */
.navbar-mobile {
  background: rgba(1, 20, 58, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9997;
}

/* Close (X) button — circle, fixed top-right */
.navbar-mobile .mobile-nav-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  font-size: 22px;
  color: #fff;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.25s ease;
}
.navbar-mobile .mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* White nav panel — height follows content, not screen */
.navbar-mobile ul {
  display: block;
  position: fixed;
  top: 68px;
  left: 14px;
  right: 14px;
  bottom: auto;
  height: auto;
  max-height: calc(100vh - 90px);
  padding: 0 0 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(1, 41, 112, 0.28);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Panel header strip — brand name inside the white panel */
.navbar-mobile ul::before {
  content: 'The Companies';
  display: block;
  text-align: center;
  padding: 18px 20px 16px;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #012970;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid #eef3ff;
  margin-bottom: 6px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 18px 18px 0 0;
}

/* Divider between items */
.navbar-mobile li {
  margin: 0 10px;
  border-bottom: 1px solid rgba(1, 41, 112, 0.06);
}



/* Every nav link base */
.navbar-mobile a,
.navbar-mobile a:focus {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #012970;
  font-family: "Nunito", sans-serif;
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

/* Hover state */
.navbar-mobile a:hover,
.navbar-mobile li:hover > a {
  color: #1ca9f2;
  background: rgba(28, 169, 242, 0.07);
  border-left-color: #1ca9f2;
  padding-left: 20px;
}

/* ── Active / Selected menu item — gradient pill ── */
.navbar-mobile .active,
.navbar-mobile .active:focus {
  color: #fff !important;
  background: linear-gradient(90deg, #1ca9f2, #86be1b) !important;
  border-left-color: transparent !important;
  border-radius: 10px;
  padding-left: 16px !important;
  box-shadow: 0 4px 14px rgba(28, 169, 242, 0.3);
}
.navbar-mobile .active:hover,
.navbar-mobile li:hover > .active {
  color: #fff !important;
  background: linear-gradient(90deg, #0d9de0, #79b018) !important;
  padding-left: 16px !important;
  border-left-color: transparent !important;
}

/* Kill the desktop underline animation inside mobile nav */
.navbar-mobile a::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* AI Logo item — centred row with label */
.navbar-mobile .ai-logo-wrap {
  border-bottom: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid #eef3ff;
}
body.dark-mode .navbar-mobile .ai-logo-wrap {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.navbar-mobile .ai-logo-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(28, 169, 242, 0.05);
  border-radius: 12px;
  border-left-color: transparent !important;
  padding: 10px 16px !important;
  gap: 10px;
  margin: 0 10px;
}
body.dark-mode .navbar-mobile .ai-logo-container {
  background: rgba(28, 169, 242, 0.12);
}

.navbar-mobile .ai-logo-container::before {
  content: 'THE AI';
  font-size: 13px;
  font-weight: 800;
  color: #012970;
  font-family: "Nunito", sans-serif;
  letter-spacing: 1.5px;
}
body.dark-mode .navbar-mobile .ai-logo-container::before {
  color: #c9d1d9;
}

.navbar-mobile .ai-logo-container:hover {
  background: rgba(28, 169, 242, 0.12) !important;
  padding-left: 16px !important;
  border-left-color: transparent !important;
}
body.dark-mode .navbar-mobile .ai-logo-container:hover {
  background: rgba(28, 169, 242, 0.2) !important;
}

.navbar-mobile .ai-logo-container img {
  height: 42px !important;
  width: 42px !important;
  margin-left: 0 !important;
}

/* Theme Toggle item — centred row with label */
.navbar-mobile .theme-toggle-wrap {
  border-bottom: none;
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 0 10px;
}

.navbar-mobile .theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: rgba(1, 41, 112, 0.04);
  border-radius: 12px;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #012970;
  letter-spacing: 1.5px;
  transition: all 0.22s ease;
  margin-left: 0;
}
body.dark-mode .navbar-mobile .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #c9d1d9;
}

.navbar-mobile .theme-toggle::after {
  content: 'DARK MODE';
  margin-left: 10px;
}
body.dark-mode .navbar-mobile .theme-toggle::after {
  content: 'LIGHT MODE';
}

.navbar-mobile .theme-toggle i {
  font-size: 18px;
  line-height: 0;
}

.navbar-mobile .theme-toggle:hover {
  background: rgba(1, 41, 112, 0.08);
  transform: none !important; /* disable desktop spin scale */
}
body.dark-mode .navbar-mobile .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none !important;
}

/* Mobile Navigation Dark Mode overrides */
body.dark-mode .navbar-mobile ul::before {
  background: #161b27;
  color: #e6edf3;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .navbar-mobile li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Prevent body scroll when menu is open */
body.mobile-nav-active {
  overflow: hidden;
}

/* ─── MARQUEE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ramadan-marquee-container { height: 32px; }
  .ramadan-marquee-content span { font-size: 13px; padding: 0 20px; }
}
@media (max-width: 480px) {
  .ramadan-marquee-container { height: 30px; }
  .ramadan-marquee-content span { font-size: 12px; padding: 0 14px; }
}

/* ─── HERO ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero h1 { font-size: 42px; }
  .hero h2 { font-size: 24px; }
  .hero h4 { font-size: 18px; }
}
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: 100px 0 60px;
    text-align: center;
  }
  .hero .col-lg-6:first-child {
    align-items: center !important;
  }
  .hero h1 { font-size: 36px; }
  .hero h2 { font-size: 20px; }
  .hero h4 { font-size: 16px; line-height: 1.6; }
  .hero .text-center.text-lg-start { text-align: center !important; }
  .hero .btn-get-started {
    margin: 25px auto 0;
    font-size: 15px;
    padding: 13px 35px;
  }
  .hero .hero-img {
    text-align: center !important;
    margin-top: 50px;
  }
  .hero .hero-img img { width: 75%; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero { padding: 85px 0 50px; }
  .hero h1 {
    font-size: 30px;
    /* Restore desktop gradient — override style.css mobile reset */
    background: linear-gradient(135deg, #012970 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
  .hero h2 { font-size: 18px; }
  .hero h4 { font-size: 15px; }
  .hero .hero-img img { width: 85%; }
  .hero .btn-get-started { padding: 12px 30px; font-size: 14px; }
}
@media (max-width: 576px) {
  .hero { padding: 80px 0 40px; }
  .hero h1 {
    font-size: 26px;
    line-height: 1.3;
    background: linear-gradient(135deg, #012970 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
  .hero h2 { font-size: 16px; }
  .hero h4 { font-size: 14px; }
  .hero .hero-img img { width: 95%; }
  .hero .btn-get-started { width: 100%; justify-content: center; padding: 13px 20px; }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 23px;
    background: linear-gradient(135deg, #012970 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
  .hero h2 { font-size: 15px; }
}

/* ─── ABOUT ───────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .about .content { padding: 35px; }
}
@media (max-width: 992px) {
  .about .content { padding: 30px 25px; }
  .about .col-lg-6:last-child { margin-top: 30px; }
  .about .col-lg-6:last-child img { width: 100%; border-radius: 15px; }
}
@media (max-width: 768px) {
  .about .content { padding: 25px 20px; }
  .about h2 { font-size: 24px; line-height: 1.3; }
  .about p  { font-size: 15px; margin: 15px 0 25px; }
  .about .btn-read-more {
    width: 100%;
    justify-content: center;
    padding: 13px 30px;
  }
}
@media (max-width: 576px) {
  .about .content { padding: 20px 16px; }
  .about h2 { font-size: 20px; }
  .about p  { font-size: 14px; margin: 12px 0 20px; }
}

/* ─── VALUES ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .values .box { padding: 35px 25px; }
  .values .box img { width: 100px; }
}
@media (max-width: 768px) {
  .values .box { padding: 28px 20px; }
  .values .box img { width: 90px; }
  .values .box h3 { font-size: 19px; }
  .values .box p  { font-size: 14px; line-height: 24px; }
}
@media (max-width: 576px) {
  .values .box { padding: 24px 16px; }
  .values .box h3 { font-size: 17px; }
}

/* ─── COUNTS ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .counts .count-box i   { font-size: 42px; margin-right: 20px; }
  .counts .count-box span { font-size: 36px; }
}
@media (max-width: 992px) {
  .counts { padding: 55px 0 45px; }
  .counts .count-box { padding: 30px 22px; }
  .counts .count-box i    { font-size: 36px; padding: 12px; margin-right: 18px; }
  .counts .count-box span { font-size: 32px; }
  .counts .count-box p    { font-size: 13px; }
}
@media (max-width: 768px) {
  .counts { padding: 45px 0 35px; }
  .counts .count-box { padding: 24px 18px; }
  .counts .count-box i    { font-size: 32px; padding: 10px; margin-right: 15px; }
  .counts .count-box span { font-size: 28px; }
  .counts .count-box p    { font-size: 12px; letter-spacing: 0.5px; }
}
@media (max-width: 576px) {
  .counts .count-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 15px;
  }
  .counts .count-box i { margin-right: 0; margin-bottom: 12px; }
  .counts .count-box div { display: flex; flex-direction: column; align-items: center; }
}

/* ─── FEATURES ────────────────────────────────────────────────────── */

/* Feature Boxes Row */
@media (max-width: 992px) {
  .features .col-lg-6:first-child img { width: 100%; margin: 0 auto; display: block; }
  .features .col-lg-6.mt-5.mt-lg-0 { margin-top: 30px !important; }
}
@media (max-width: 768px) {
  .features .feature-box { padding: 22px 18px; }
  .features .feature-box h3 { font-size: 16px; }
  .features .feature-box i  { font-size: 22px; padding: 7px; margin-right: 12px; }
}
@media (max-width: 576px) {
  .features .feature-box { padding: 18px 14px; }
  .features .feature-box h3 { font-size: 14px; }
}

/* Feature Tabs */
@media (max-width: 992px) {
  .features .feture-tabs { margin-top: 60px; }
  .features .feture-tabs h3 { font-size: 26px; }
}
@media (max-width: 768px) {
  .features .feture-tabs { margin-top: 40px; }
  .features .feture-tabs h3 { font-size: 22px; margin-bottom: 15px; }
  .features .feture-tabs .nav-pills { flex-wrap: wrap; gap: 6px; border-bottom: none; }
  .features .feture-tabs .nav-link {
    font-size: 13px;
    padding: 9px 20px;
    border: 1px solid rgba(28,169,242,0.25);
    border-radius: 50px;
    margin-bottom: 0;
  }
  .features .feture-tabs .nav-link.active {
    background: linear-gradient(45deg, #1ca9f2, #86be1b);
    color: #fff;
    border-color: transparent;
    border-bottom: none;
  }
  .features .feture-tabs .col-lg-6:last-child { margin-top: 25px; }
  .features .feture-tabs .col-lg-6:last-child img { width: 100%; }
}
@media (max-width: 576px) {
  .features .feture-tabs h3 { font-size: 19px; }
  .features .feture-tabs .tab-content h4 { font-size: 16px; }
  .features .feture-tabs .tab-content p  { font-size: 14px; }
}

/* Feature Icons */
@media (max-width: 1200px) {
  .features .feature-icons { margin-top: 70px; }
  /* col-xl-4 / col-xl-8 become full-width below xl — force side-by-side at lg */
  .features .feature-icons .row > .col-xl-4 {
    flex: 0 0 auto;
    width: 33.3333%;
  }
  .features .feature-icons .row > .col-xl-8 {
    flex: 0 0 auto;
    width: 66.6667%;
  }
}
@media (max-width: 992px) {
  .features .feature-icons { margin-top: 50px; }
  .features .feature-icons h3 { font-size: 24px; }
  /* Stack the image on top at md */
  .features .feature-icons .row > .col-xl-4,
  .features .feature-icons .row > .col-xl-8 {
    width: 100%;
  }
  .features .feature-icons .col-xl-4 img { max-width: 260px; margin: 0 auto 30px; }
}
@media (max-width: 768px) {
  .features .feature-icons { margin-top: 35px; }
  .features .feature-icons h3 { font-size: 20px; margin-bottom: 25px; }
  .features .feature-icons .content .icon-box { padding: 20px 15px; }
  .features .feature-icons .content .icon-box i  { font-size: 38px; line-height: 38px; margin-right: 14px; }
  .features .feature-icons .content .icon-box h4 { font-size: 16px; }
  .features .feature-icons .content .icon-box p  { font-size: 14px; }
}
@media (max-width: 576px) {
  .features .feature-icons h3 { font-size: 18px; }
  .features .feature-icons .content .icon-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px;
  }
  .features .feature-icons .content .icon-box i { margin-right: 0; margin-bottom: 10px; }
  .features .feature-icons .col-xl-4 img { max-width: 200px; }
}

/* ─── SERVICES ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .services .service-box { padding: 45px 22px; }
  .services .service-box h3 { font-size: 20px; }
}
@media (max-width: 768px) {
  .services .service-box { padding: 35px 20px; }
  .services .service-box .icon { width: 78px; height: 78px; font-size: 30px; border-radius: 15px; margin-bottom: 20px; }
  .services .service-box h3 { font-size: 18px; }
  .services .service-box p  { font-size: 14px; line-height: 24px; }
  .services .service-box .read-more { font-size: 13px; padding: 9px 22px; }
}
@media (max-width: 576px) {
  .services .service-box { padding: 28px 16px; }
  .services .service-box h3 { font-size: 17px; }
}

/* ─── FAQ ─────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .faq .accordion-button { font-size: 16px; padding: 18px 22px; }
}
@media (max-width: 768px) {
  .faq .accordion-item { margin-bottom: 12px; }
  .faq .accordion-button { font-size: 14px; padding: 15px 18px; }
  .faq .accordion-body { padding: 0 18px 18px; font-size: 14px; line-height: 1.6; }
  /* Second column stacks below first — add top gap */
  .faq .row .col-lg-6:last-child { margin-top: 0; }
}
@media (max-width: 576px) {
  .faq .accordion-button { font-size: 13px; padding: 13px 14px; }
  .faq .accordion-body { padding: 0 14px 16px; font-size: 13px; }
}

/* ─── PORTFOLIO ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .portfolio #portfolio-flters li { padding: 9px 18px; font-size: 13px; }
}
@media (max-width: 768px) {
  .portfolio #portfolio-flters {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    gap: 6px;
    padding: 10px 12px;
  }
  .portfolio #portfolio-flters li {
    padding: 7px 15px;
    font-size: 12px;
    margin: 0;
    border-radius: 50px;
  }
  .portfolio .portfolio-wrap { border-radius: 12px; }
  .portfolio .portfolio-wrap img { height: auto; }
}
@media (max-width: 576px) {
  .portfolio #portfolio-flters li { padding: 6px 12px; font-size: 11px; }
}

/* ─── TESTIMONIALS ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .testimonials .testimonial-item { padding: 30px 25px; min-height: 280px; margin: 30px 10px; }
  .testimonials .testimonial-item p { font-size: 16px; }
}
@media (max-width: 768px) {
  .testimonials .testimonial-item {
    padding: 25px 20px;
    min-height: auto;
    margin: 20px 5px;
  }
  .testimonials .testimonial-item p { font-size: 15px; }
  .testimonials .testimonial-item h3 { font-size: 17px; }
  .testimonials .testimonial-item h4 { font-size: 12px; }
  .testimonials .testimonial-item .testimonial-img { width: 85px; }
  .testimonials .testimonial-item p::before { left: -5px; }
  .testimonials .testimonial-item p::after  { right: -5px; }
}
@media (max-width: 480px) {
  .testimonials .testimonial-item { padding: 20px 16px; }
  .testimonials .testimonial-item p { font-size: 14px; }
  .testimonials .testimonial-item .testimonial-img { width: 75px; }
}

/* ─── TEAM ────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .team .member .member-info { padding: 10px 20px 22px; }
  .team .member .member-info h4 { font-size: 18px; }
}
@media (max-width: 768px) {
  .team .member .member-info h4 { font-size: 17px; }
  .team .member .member-info span { font-size: 12px; }
  .team .member .member-info p { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 576px) {
  .team .member .member-img { margin: 15px 15px 0; }
  .team .member .member-info { padding: 8px 15px 16px; }
}

/* ─── CLIENTS ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .clients .clients-slider .swiper-slide { padding: 20px; }
  .clients .clients-slider .swiper-slide img { max-height: 45px; object-fit: contain; }
}
@media (max-width: 480px) {
  .clients .clients-slider .swiper-slide img { max-height: 38px; }
}

/* ─── RECENT BLOG POSTS ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .recent-blog-posts .post-box { padding: 24px; }
  .recent-blog-posts .post-box .post-img { margin: -24px -24px 18px; }
  .recent-blog-posts .post-box .post-img img { height: 210px; }
  .recent-blog-posts .post-box .post-title { font-size: 20px; }
}
@media (max-width: 768px) {
  .recent-blog-posts .post-box .post-img img { height: 220px; }
  .recent-blog-posts .post-box .post-title { font-size: 18px; }
  .recent-blog-posts .post-box .post-date  { font-size: 12px; }
  .recent-blog-posts .post-box .readmore   { font-size: 14px; }
}
@media (max-width: 576px) {
  .recent-blog-posts .post-box { padding: 18px; }
  .recent-blog-posts .post-box .post-img { margin: -18px -18px 15px; }
  .recent-blog-posts .post-box .post-img img { height: 200px; }
  .recent-blog-posts .post-box .post-title { font-size: 16px; }
}

/* ─── CONTACT ─────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .contact .info-box { padding: 25px; }
  .contact .php-email-form { padding: 30px; }
}
@media (max-width: 768px) {
  /* Row with info boxes + form stacks: form goes to full width */
  .contact .col-lg-6 { width: 100%; }
  .contact .info-box { padding: 20px 18px; }
  .contact .info-box i   { font-size: 32px; margin-bottom: 14px; }
  .contact .info-box h3  { font-size: 17px; }
  .contact .info-box p   { font-size: 14px; }
  .contact .php-email-form { padding: 25px 20px; margin-top: 10px; }
  .contact .php-email-form button[type=submit] {
    width: 100%;
    padding: 13px 30px;
    font-size: 15px;
  }
}
@media (max-width: 576px) {
  .contact .info-box { padding: 16px 14px; }
  .contact .php-email-form { padding: 20px 14px; }
  .contact .php-email-form input,
  .contact .php-email-form textarea { font-size: 14px; padding: 10px 12px; }
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */

/* Newsletter */
@media (max-width: 992px) {
  .footer .footer-newsletter { padding: 40px 0; }
  .footer .footer-newsletter form { max-width: 520px; margin: 18px auto 0; }
}
@media (max-width: 768px) {
  .footer .footer-newsletter { padding: 32px 0; }
  .footer .footer-newsletter h4  { font-size: 20px; }
  .footer .footer-newsletter p   { font-size: 14px; }
  .footer .footer-newsletter form { max-width: 100%; }
  .footer .footer-newsletter form input[type=email] { font-size: 14px; padding: 9px 12px; }
  .footer .footer-newsletter form input[type=submit] { padding: 0 22px; font-size: 14px; }
}
@media (max-width: 480px) {
  .footer .footer-newsletter form { border-radius: 12px; padding: 8px; }
  .footer .footer-newsletter form input[type=email] {
    width: calc(100% - 105px);
    font-size: 13px;
  }
  .footer .footer-newsletter form input[type=submit] {
    padding: 0 16px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  /* Stack on very small phones */
  .footer .footer-newsletter form {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 10px;
  }
  .footer .footer-newsletter form input[type=email] {
    width: 100%;
    border-radius: 30px;
    margin-bottom: 8px;
    padding: 10px 14px;
  }
  .footer .footer-newsletter form input[type=submit] {
    position: static;
    width: 100%;
    border-radius: 30px;
    margin: 0;
    padding: 10px 20px;
    text-align: center;
  }
}

/* Footer Top columns */
@media (max-width: 992px) {
  .footer .footer-top { padding: 50px 0 20px; }
  .footer .footer-top .footer-info { text-align: center; margin-bottom: 25px; }
  .footer .footer-top .footer-info .logo { justify-content: center; }
  .footer .footer-top .footer-contact { text-align: center !important; }
  .footer .footer-top .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .footer .footer-top { padding: 35px 0 15px; }
  .footer .footer-top h4 { font-size: 15px; margin-top: 18px; padding-bottom: 8px; }
  .footer .footer-top .footer-links ul a { font-size: 14px; }
  .footer .footer-top .footer-links ul li { padding: 8px 0; }
  .footer .footer-top .footer-info img { max-height: 60px; }
  .footer .footer-top .footer-info p { font-size: 14px; }
  .footer .footer-top .footer-contact p { font-size: 14px; line-height: 22px; }
  .footer .footer-top .social-links a { width: 36px; height: 36px; font-size: 17px; }
  .footer .copyright { font-size: 13px; padding-top: 22px; }
  .footer .credits   { font-size: 12px; padding-top: 6px; }
}
@media (max-width: 576px) {
  .footer .footer-top .footer-info img { max-height: 52px; }
  .footer .footer-top .social-links a { width: 34px; height: 34px; font-size: 16px; margin-right: 6px; }
}

/* Footer col-6 links side-by-side on xs */
@media (max-width: 576px) {
  .footer .col-6.footer-links { padding: 0 12px; }
  .footer .col-6.footer-links h4 { margin-top: 20px; }
}

/* ─── BREADCRUMBS ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .breadcrumbs { margin-top: 62px !important; min-height: 110px; padding: 25px 0; }
  .breadcrumbs h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .breadcrumbs { min-height: 95px; padding: 20px 0; }
  .breadcrumbs h2  { font-size: 24px; }
  .breadcrumbs ol  { font-size: 12px; }
  .breadcrumbs ol li+li { padding-left: 8px; }
  .breadcrumbs ol li+li::before { padding-right: 8px; }
}
@media (max-width: 480px) {
  .breadcrumbs h2 { font-size: 20px; }
  .breadcrumbs ol { font-size: 11px; }
}

/* ─── BLOG (List & Single Post Pages) ────────────────────────────── */
@media (max-width: 992px) {
  .blog .entry { padding: 25px; }
  .blog .entry .entry-img { margin: -25px -25px 18px; }
  .blog .entry .entry-img img { height: 320px; }
  .blog .entry .entry-title { font-size: 24px; }
}
@media (max-width: 768px) {
  .blog { padding: 30px 0 15px; }
  .blog .entry { padding: 20px; }
  .blog .entry .entry-img { margin: -20px -20px 15px; }
  .blog .entry .entry-img img { height: 240px; }
  .blog .entry .entry-title { font-size: 20px; }
  .blog .entry .entry-meta ul li { font-size: 13px; padding-right: 12px; }
  .blog .entry .entry-content p { font-size: 15px; line-height: 1.7; }
  .blog .entry .entry-content h3 { font-size: 19px; }
  .blog .entry .entry-content .read-more { text-align-last: center; }
  .blog .entry .entry-content blockquote { padding: 30px 20px; }
  .blog .entry .entry-content blockquote p { font-size: 17px; }
  /* Sidebar stacks below blog entries */
  .blog .sidebar {
    margin: 20px 0 40px 0;
    padding: 22px 18px;
  }
}
@media (max-width: 576px) {
  .blog .entry { padding: 16px; }
  .blog .entry .entry-img { margin: -16px -16px 14px; }
  .blog .entry .entry-img img { height: 200px; }
  .blog .entry .entry-title { font-size: 18px; }
  .blog .entry .entry-content p   { font-size: 14px; }
  .blog .entry .entry-content h3  { font-size: 17px; }
  .blog .entry .entry-content blockquote { padding: 22px 15px; }
  .blog .entry .entry-content blockquote p { font-size: 15px; }
  .blog .sidebar { padding: 18px 14px; }
}
@media (max-width: 480px) {
  .blog .entry .entry-img img { height: 180px; }
  .blog .entry .entry-title { font-size: 16px; }
  .blog .entry .entry-meta ul { flex-direction: column; gap: 4px; }
  .blog .entry .entry-meta ul li { padding-right: 0; }
}

/* Blog sidebar items */
@media (max-width: 768px) {
  .sidebar .sidebar-title { font-size: 17px; }
  .sidebar .recent-posts .post-item img { width: 70px; height: 52px; }
  .sidebar .recent-posts .post-item h4 { font-size: 14px; }
  .sidebar .tags ul a { font-size: 13px; padding: 5px 12px; }
}

/* Blog author */
@media (max-width: 768px) {
  .blog .blog-author { flex-direction: column; align-items: center; text-align: center; }
  .blog .blog-author img { margin-right: 0; margin-bottom: 15px; width: 90px; }
}

/* Blog comments */
@media (max-width: 576px) {
  .blog .blog-comments .comment.comment-reply { padding-left: 20px; }
  .blog .blog-comments .reply-form { padding: 20px 15px; }
  .blog .blog-comments .reply-form h4 { font-size: 18px; }
}

/* Blog pagination */
@media (max-width: 576px) {
  .blog .blog-pagination ul { justify-content: center; flex-wrap: wrap; gap: 4px; }
  .blog .blog-pagination ul li a { padding: 8px 14px; font-size: 14px; }
}

/* ─── INNER PAGES (Privacy / Terms) ────────────────────────────── */
@media (max-width: 768px) {
  .inner-page { padding: 30px 0; }
  .inner-page h3 { font-size: 18px; margin-top: 25px; }
  .inner-page p  { font-size: 15px; line-height: 1.7; }
  .inner-page ul { font-size: 15px; }
}
@media (max-width: 576px) {
  .inner-page h3 { font-size: 16px; }
  .inner-page p  { font-size: 14px; }
  .inner-page ul { font-size: 14px; padding-left: 18px; }
}

/* ─── 404 PAGE ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  #error-404 h1[style] { font-size: 100px !important; }
  #error-404 h2[style] { font-size: 26px !important; }
  #error-404 p[style]  { font-size: 16px !important; }
}
@media (max-width: 768px) {
  #error-404 h1[style] { font-size: 80px !important; }
  #error-404 h2[style] { font-size: 22px !important; }
  #error-404 p[style]  { font-size: 15px !important; }
  #error-404 .btn-get-started { font-size: 14px; padding: 12px 30px; }
}
@media (max-width: 480px) {
  #error-404 h1[style] { font-size: 65px !important; }
  #error-404 h2[style] { font-size: 18px !important; }
  #error-404 p[style]  { font-size: 14px !important; margin-bottom: 22px !important; }
}
@media (max-width: 380px) {
  #error-404 h1[style] { font-size: 55px !important; }
}

/* ─── FLOATING BUTTONS ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .whatsapp-fixed   { width: 45px; height: 45px; bottom: 68px; left: 12px; }
  .fb-messenger-fixed { width: 45px; height: 45px; bottom: 12px; left: 12px; }
  .whatsapp-fixed i, .fb-messenger-fixed i { font-size: 24px; }
  .back-to-top { width: 38px; height: 38px; right: 12px; bottom: 12px; }
  .back-to-top i { font-size: 20px; }
}
@media (max-width: 400px) {
  .whatsapp-fixed   { width: 42px; height: 42px; }
  .fb-messenger-fixed { width: 42px; height: 42px; }
  .back-to-top { width: 36px; height: 36px; }
}

/* ─── ROW GUTTER TIGHTENING ON XS ─────────────────────────────────── */
@media (max-width: 576px) {
  .row { --bs-gutter-x: 1rem; }
}
@media (max-width: 400px) {
  .row { --bs-gutter-x: 0.75rem; }
}

/* ─── CONTAINER PADDING ON XS ─────────────────────────────────────── */
@media (max-width: 480px) {
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }
}

/* ─── AOS OVERFLOW FIX ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  [data-aos] { overflow: visible !important; }
}

/* ─── PREVENT HORIZONTAL SCROLL ───────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

/* ─── DARK MODE MOBILE OVERRIDES ──────────────────────────────────── */
@media (max-width: 768px) {
  body.dark-mode .hero h1 {
    background: linear-gradient(135deg, #e6edf3 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #e6edf3 !important;
  }
}
@media (max-width: 576px) {
  body.dark-mode .hero h1 {
    background: linear-gradient(135deg, #e6edf3 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #e6edf3 !important;
  }
}
@media (max-width: 400px) {
  body.dark-mode .hero h1 {
    background: linear-gradient(135deg, #e6edf3 0%, #1ca9f2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #e6edf3 !important;
  }
}
