/**
 * Website responsive styles – tablet & laptop
 * Breakpoints: 1200px (lg), 992px (md), 768px (sm), 576px (xs)
 */

/* ----- Header four: topbar language switcher ----- */
.header-topbar .topbar-lang-switcher {
  display: inline-block;
}
.header-topbar .topbar-lang-select {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  padding: 6px 26px 6px 10px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%23fff%22 d=%22M6 8L1 3h10z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
  max-width: 160px;
}
.header-topbar .topbar-lang-select:hover,
.header-topbar .topbar-lang-select:focus {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

/* ----- Header: reduce top padding and height ----- */

/* Small / mid laptop (approx. 12–15" screens, desktop nav still active):
 * keep header on one line by making language + buttons more compact,
 * and tightening menu spacing.
 * Applies between lg and below large desktop (~1500px).
 */
@media screen and (max-width: 1500px) and (min-width: 1200px) {
  /* Reduce gap between menu items so header fits */
  .header-two .main-menu > ul > li {
    margin: 0 10px;
  }
  .header-two .main-menu > ul > li > a {
    font-size: 14px;
  }

  /* Make language switcher a small, compact pill button */
  .header-two .nav-right-item .lang-switcher-dropdown .lang-select {
    max-width: 110px;
    padding: 6px 22px 6px 10px !important;
    font-size: 12px !important;
  }

  /* Keep Join Our Panel, but slightly smaller */
  .header-two .nav-right-item .theme-btn.style-one {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Keep main row on a single line */
  .header-two .header-navigation .primary-menu {
    flex-wrap: nowrap;
  }
  .header-two .main-menu > ul {
    white-space: nowrap;
  }
}

/* ----- Laptop (992px - 1199px) ----- */
@media screen and (max-width: 1199.98px) {
  .header-two .container-fluid,
  .header-area .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-navigation .primary-menu {
    flex-wrap: nowrap;
  }
  .nav-right-item {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }
  .nav-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end;
  }
  .nav-right-item .theme-btn {
    padding: 12px 24px;
    margin-left: 0;
    font-size: 14px;
  }
  .lang-switcher-dropdown .lang-select {
    max-width: 140px;
    padding: 8px 26px 8px 10px !important;
    font-size: 13px !important;
  }
}

/* ----- Tablet (768px - 991px) ----- */
@media screen and (max-width: 991.98px) {
  .header-two .container-fluid,
  .header-area .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  .nav-buttons {
    gap: 8px !important;
  }
  .nav-right-item .theme-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .lang-switcher-dropdown .lang-select {
    max-width: 130px;
    padding: 6px 24px 6px 8px !important;
    font-size: 12px !important;
  }
}

/* ----- Small tablet / large phone (576px - 767px) ----- */
@media screen and (max-width: 767.98px) {
  .header-navigation .site-branding {
    max-width: 140px;
  }
  .header-navigation .site-branding .brand-logo img {
    max-height: 40px;
  }
  .header-two .container-fluid,
  .header-area .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ----- Mobile menu: language switcher (inside offcanvas) ----- */
@media screen and (max-width: 1199.98px) {
  .theme-nav-menu .lang-switcher-mobile {
    margin: 20px 0;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--border-color, #eee);
  }
  .theme-nav-menu .lang-switcher-mobile label {
    display: block;
    font-size: 14px;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .theme-nav-menu .lang-switcher-mobile .lang-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 15px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    background: #fff;
    color: var(--heading-color);
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%23333%22 d=%22M6 8L1 3h10z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
}

/* ----- General: container & sections ----- */
@media screen and (max-width: 1199.98px) {
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 991.98px) {
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media screen and (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ----- Prevent horizontal overflow ----- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ----- Hero: ensure responsive text (override inline if needed) ----- */
@media screen and (max-width: 991.98px) {
  .axis-hero .hero-content h1.text-anm {
    font-size: 2.8rem !important;
  }
}
@media screen and (max-width: 767.98px) {
  .axis-hero .hero-content h1.text-anm {
    font-size: 2rem !important;
  }
}

/* ----- Mobile only: center and responsive hero (desktop unchanged) ----- */
@media screen and (max-width: 767.98px) {
  /* Hero section padding */
  .axis-hero .hero-wrapper_two {
    padding: 70px 16px 50px !important;
  }

  /* Center all hero content */
  .axis-hero .hero-content,
  .hero-wrapper_two .hero-content {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Tagline: remove line, smaller font, centered */
  .axis-hero .hero-content .tag-line,
  .hero-wrapper_two .hero-content .tag-line {
    display: block !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.875rem !important;
    line-height: 1.35;
  }
  .axis-hero .hero-content .tag-line:before,
  .hero-wrapper_two .hero-content .tag-line:before {
    display: none !important;
  }

  /* Text box: center paragraphs, comfortable width */
  .axis-hero .hero-content .text-box,
  .hero-wrapper_two .hero-content .text-box {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    padding: 0 8px;
  }
  .axis-hero .hero-content .text-box p,
  .hero-wrapper_two .hero-content .text-box p,
  .axis-hero .hero-content .sub-headline,
  .axis-hero .hero-content .impact-line,
  .hero-wrapper_two .hero-content .sub-headline,
  .hero-wrapper_two .hero-content .impact-line {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  .hero-wrapper_two .hero-content p {
    text-align: center !important;
  }

  /* Center CTA buttons */
  .axis-hero .hero-content .axis-button-wrap,
  .hero-wrapper_two .hero-content .axis-button-wrap {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 12px;
  }
  .axis-hero .hero-content .axis-button-wrap .theme-btn,
  .hero-wrapper_two .hero-content .axis-button-wrap .theme-btn {
    margin-left: 0;
    margin-right: 0;
  }

  /* Stats box: centered, full width on small screens */
  .axis-hero .axis-avatar-box,
  .hero-wrapper_two .axis-avatar-box {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 16px !important;
  }
}
