/* ==========================================================================
   FAVNOX MOBILE & RESPONSIVE DESIGN SYSTEM
   Optimized for phones (<= 768px), tablets (<= 991px), and desktop views.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & OVERFLOW PREVENTION
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   2. HEADER & TOPBAR (MOBILE / TABLET)
   -------------------------------------------------------------------------- */
.admin-btn {
  background: #ffffff;
  color: #ef5b23 !important;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  line-height: 1.2;
}

.admin-btn:hover {
  background: #f8f9fa;
  color: #020723 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.header-social-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.header-social-link:hover {
  color: #ffffff;
  opacity: 0.85;
  transform: scale(1.1);
}

/* Header container */
.header.-base-sidebar {
  border-bottom: 1px solid #edf2f7;
}

.header__container {
  padding: 12px 20px;
}

/* Hamburger toggle button */
.header__explore button.js-dashboard-home-9-sidebar-toggle,
.header__explore a.header-home-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  background: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1a202c !important;
  font-size: 19px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.header__explore button.js-dashboard-home-9-sidebar-toggle:hover,
.header__explore a.header-home-link:hover {
  background: #edf2f7 !important;
  border-color: #cbd5e0 !important;
}

/* --------------------------------------------------------------------------
   3. LOGO BALANCING & CORRECT PROPORTIONS (NO STRETCHING)
   Favnox logo source is a 120x120px square badge (1:1 ratio).
   -------------------------------------------------------------------------- */
.header__logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.header__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header__logo img,
.header.-base-sidebar .header__logo img {
  width: 86px !important;
  height: 86px !important;
  max-width: 86px !important;
  max-height: 86px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  transition: transform 0.2s ease;
}

html:not(.-dark-mode) .header__logo img.-light-d-none {
  display: none !important;
}

html.-dark-mode .header__logo img.-dark-d-none {
  display: none !important;
}

.header__logo img:hover {
  transform: scale(1.04);
}

/* Keep the enlarged brand mark balanced on laptop-sized screens. */
@media (min-width: 769px) and (max-width: 1199px) {
  .header__container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .header__logo {
    margin-left: 18px !important;
  }

  .header__logo img,
  .header.-base-sidebar .header__logo img {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
  }

  .header__explore button.js-dashboard-home-9-sidebar-toggle {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 768px) {
  .header .bg-purple-1 {
    background-color: #F6A15A !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
  .header .bg-purple-1 .container > .row {
    row-gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .header .bg-purple-1 .text13 {
    font-size: 11px !important;
  }
  .header .bg-purple-1 .text13 a {
    color: #ffffff;
    text-decoration: none;
  }
  .admin-btn {
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-top: 0 !important;
  }
  .header__container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .header__logo {
    margin-left: 14px !important;
  }
  .header__logo img,
  .header.-base-sidebar .header__logo img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }
  /* Hide desktop action icons (moon, maximize) on mobile */
  .header-desktop-actions {
    display: none !important;
  }
  .header .bg-purple-1 .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .header .bg-purple-1 .container > .row > .col-auto:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
  .header .bg-purple-1 .container > .row > .col-auto:last-child {
    display: block !important;
    flex: 0 0 auto;
  }
  .topbar-socials-wrap {
    display: block !important;
  }
  .header .bg-purple-1 .text13,
  .header .bg-purple-1 .text13 a {
    font-size: 10px !important;
    white-space: nowrap;
  }
  .header .bg-purple-1 .fa-envelope {
    margin-right: 5px !important;
  }
  .topbar-socials-wrap .d-flex {
    gap: 2px !important;
  }
  .header-social-link {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .header-social-link i {
    font-size: 14px !important;
  }
  .header-social-x {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .header__logo img,
  .header.-base-sidebar .header__logo img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE SIDEBAR DRAWER & BACKDROP
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .dashboard.-home-9 .dashboard__sidebar {
    transform: translateX(-100%) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 295px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard.-home-9.is-sidebar-open .dashboard__sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
  }

  .dashboard.-home-9.is-sidebar-open ~ .sidebar-backdrop {
    display: block !important;
  }

  .dashboard.-home-9 .dashboard__main {
    padding-left: 0 !important;
    width: 100% !important;
  }

  .dashboard.-home-9 .dashboard__content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Sidebar Drawer Header */
.sidebar__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar__mobile-header img {
  width: 44px !important;
  height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

.sidebar__close-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar__close-btn:hover {
  background: #ef5b23;
  color: #ffffff;
  border-color: #ef5b23;
}

@media (min-width: 992px) {
  .sidebar__mobile-header {
    display: none !important;
  }
}

/* Drawer Accordion buttons & links */
.sidebar .accordion__button {
  padding: 12px 18px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  transition: background 0.2s ease;
}

.sidebar .accordion__button:hover {
  background: #edf2f7 !important;
}

.sidebar .sidebar__links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar .sidebar__links a:hover {
  color: #ef5b23;
  padding-left: 4px;
}

/* --------------------------------------------------------------------------
   5. WHATSAPP FLOATING BUTTON & BACK-TO-TOP COORDINATION
   Crisp inline SVG WhatsApp button, perfectly centered, never overlaps.
   -------------------------------------------------------------------------- */
.wp-float {
  position: fixed;
  width: 52px;
  height: 52px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
  line-height: 1;
  padding: 0;
}

.wp-float:hover {
  transform: scale(1.1);
  background-color: #20ba59;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6), 0 3px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.wp-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  display: block;
}

/* Keep the utility buttons aligned on one horizontal line. */
#top-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #ef5b23;
  color: #ffffff !important;
  width: 44px;
  height: 44px;
  text-align: center;
  border-radius: 50%;
  position: fixed;
  bottom: 25px;
  right: 89px;
  box-shadow: 0 4px 12px rgba(239, 91, 35, 0.35);
  transition: background-color 0.25s ease, opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  cursor: pointer;
  text-decoration: none;
}

#top-button::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
}

#top-button:hover {
  background-color: #020723;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#top-button.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .floating-actions {
    position: fixed !important;
    right: 12px !important;
    bottom: 14px !important;
    z-index: 10000 !important;
    gap: 8px !important;
  }

  .wp-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 20px !important;
    right: 18px !important;
  }
  .wp-float svg {
    width: 25px !important;
    height: 25px !important;
  }
  #top-button {
    bottom: 20px !important;
    right: 78px !important;
    width: 38px !important;
    height: 38px !important;
  }
  #top-button::after {
    font-size: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   6. HERO BANNER / SLIDER (MOBILE OPTIMIZATION)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #slider, 
  .mainSlider .wrap, 
  .mainSlider .slide-content {
    height: clamp(190px, 56vw, 300px) !important;
    min-height: 190px !important;
    max-height: 300px !important;
  }

  .slide-content span {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem) !important;
    padding: 8px 16px !important;
    max-width: 86% !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    text-align: center !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  }

  .dir-control {
    margin-top: -18px !important;
  }

  .dir-control i {
    font-size: 30px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  #dir-control-left {
    left: 8px !important;
    margin-left: 0 !important;
  }

  #dir-control-right {
    right: 8px !important;
    margin-right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   7. SECTION HEADINGS & INTERNAL PAGE HEADERS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Remove excessive desktop 135px padding-top on inner pages */
  .layout-pt-md[style*="padding-top: 135px"],
  .layout-pt-md[style*="padding-top:135px"],
  .layout-pt-lg[style*="padding-top: 135px"],
  .layout-pt-lg[style*="padding-top:135px"],
  .page-header[style*="padding-top: 135px"],
  .page-header[style*="padding-top:135px"],
  section[style*="padding-top: 135px"],
  section[style*="padding-top:135px"] {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* Responsive title font size */
  .page-header__title,
  h1.page-header__title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .sectionTitle__title {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
  }

  .page-header__text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Standardize section spacing */
  .layout-pt-lg {
    padding-top: 40px !important;
  }
  .layout-pb-lg {
    padding-bottom: 40px !important;
  }
  .layout-pt-md {
    padding-top: 30px !important;
  }
  .layout-pb-md {
    padding-bottom: 30px !important;
  }
}

/* --------------------------------------------------------------------------
   8. PRODUCTS GRID & CARDS (MOBILE OPTIMIZATION)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .products-featured-section > .container > .row.justify-between.items-center {
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .products-featured-section > .container > .row.justify-between.items-center > .col-lg-6,
  .products-featured-section > .container > .row.justify-between.items-center > .col-auto {
    width: 100% !important;
    max-width: 100% !important;
  }

  .products-featured-section > .container > .row.justify-between.items-center > .col-auto {
    display: flex;
    justify-content: flex-start;
  }

  .products-featured-section > .container > .row.justify-between.items-center + .pt-60 {
    padding-top: 28px !important;
  }

  .js-featured-products {
    width: 100%;
    overflow: hidden;
  }

  .js-featured-products .swiper-slide {
    width: 100%;
  }

  .js-featured-products .text-center {
    width: 100%;
  }

  .js-featured-products .product-img {
    width: 100%;
    height: 280px !important;
    max-height: 280px !important;
    padding: 0 8px;
    object-fit: contain !important;
  }

  .js-featured-products h5 {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    line-height: 1.3;
    text-align: center !important;
    overflow-wrap: anywhere;
  }

  .products-featured-section .row > [class*="col-"] h5 {
    text-align: center !important;
  }

  .products-container {
    padding: 10px 12px !important;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 25px !important;
  }

  .product-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .product-image-container {
    height: 160px !important;
    margin-bottom: 15px !important;
  }

  .product-image {
    width: 130px !important;
    height: 130px !important;
    object-fit: contain !important;
  }

  .product-name {
    font-size: 18px !important;
    margin-top: 10px !important;
    letter-spacing: normal !important;
    word-break: break-word !important;
  }

  .product-brand {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  .product-dosage {
    font-size: 14px !important;
    margin-top: 6px !important;
  }
}

/* --------------------------------------------------------------------------
   9. DIRECTOR / KEY PERSONNEL, GALLERY, FORMS & TABLES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Director images */
  .director-img-col {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    order: 1 !important;
  }

  .director-text-col {
    order: 2 !important;
    text-align: left;
  }

  .director-img {
    width: 170px !important;
    height: 170px !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
  }

  /* Gallery cards */
  .gallery-img {
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  /* Forms & inputs */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 14px !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
  }

  .tabs__content {
    padding: 20px 14px !important;
  }

  /* Tables responsiveness */
  table {
    width: 100% !important;
    font-size: 13px !important;
  }

  td, th {
    padding: 8px 10px !important;
  }
}

/* --------------------------------------------------------------------------
   10. FOOTER RESPONSIVENESS & CLEAN COLUMN STACKING
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .parent-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .quick-links-section,
  .news-media-section,
  .support-section {
    width: 100% !important;
    margin-bottom: 24px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .quick-links-section a,
  .news-media-section a,
  .support-section div {
    font-size: 14px !important;
    line-height: 1.8 !important;
    text-align: left !important;
  }

  .footer-header-socials {
    margin-top: 25px !important;
  }

  .footer-header-socials__list {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .footer-header-socials__list a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
  }

  .footer-header-socials__list a:hover {
    background: #ef5b23 !important;
    color: #ffffff !important;
  }

  .footer .row.items-center {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer .col-auto {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .footer .x-gap-20 {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px 20px !important;
  }

  .footer .text-13 {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* --------------------------------------------------------------------------
   11. SHARED MOBILE PAGE BASELINE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .content-wrapper,
  .js-content-wrapper,
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .content-wrapper > section,
  .js-content-wrapper > section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .content-wrapper .container,
  .js-content-wrapper .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-header,
  section[style*="padding-top: 135px"],
  section[style*="padding-top:135px"] {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .page-header__content,
  .page-header__text {
    max-width: 100% !important;
  }

  .page-header__title,
  h1.page-header__title {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  .page-header__text,
  .content-wrapper p {
    overflow-wrap: anywhere;
  }

  .content-wrapper .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }

  .content-wrapper .row > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .content-wrapper img[style*="height:240px"],
  .content-wrapper img[style*="height: 240px"] {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: cover !important;
  }

  .content-wrapper iframe,
  .content-wrapper video,
  .content-wrapper table {
    max-width: 100% !important;
  }

  .content-wrapper iframe,
  .content-wrapper video {
    height: auto !important;
    min-height: 220px;
  }

  .content-wrapper table {
    display: table !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap;
  }

  .content-wrapper .content-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #9ed8f5 #edf2f7;
  }

  .content-wrapper table th {
    background: #ef5b23 !important;
    color: #ffffff !important;
    font-weight: 600;
  }

  .content-wrapper table td,
  .content-wrapper table th {
    min-width: 150px;
    padding: 10px 14px !important;
    vertical-align: middle;
    white-space: nowrap;
  }

  .content-wrapper table tr:nth-child(even) {
    background-color: #f1f3f5 !important;
  }

  .content-wrapper table tr:nth-child(odd) {
    background-color: #ffffff !important;
  }

  .content-wrapper .button,
  .content-wrapper .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .content-wrapper [style*="width: 50%"],
  .content-wrapper [style*="width: 40%"],
  .content-wrapper [style*="width: 35%"] {
    width: 100% !important;
  }

  .content-wrapper [style*="padding-left: 40px"],
  .content-wrapper [style*="padding-left:40px"] {
    padding-left: 8px !important;
  }
}

@media (max-width: 480px) {
  .header__container {
    min-height: 58px;
  }

  .layout-pt-lg {
    padding-top: 28px !important;
  }

  .layout-pb-lg,
  .layout-pb-md {
    padding-bottom: 28px !important;
  }

  .content-wrapper .container,
  .js-content-wrapper .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   12. LAPTOP, TABLET & FLUID DESKTOP FINISHING RULES
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .dashboard {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dashboard__main {
    padding-left: 220px !important;
  }

  .dashboard__content {
    padding: 36px !important;
  }

  .container {
    max-width: calc(100% - 40px);
  }

  .row {
    row-gap: 24px;
  }
}

@media (max-width: 991px) {
  .dashboard__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px !important;
    border-radius: 0 !important;
  }

  .dashboard.-home-9 .dashboard__content {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .container,
  .content-wrapper .container,
  .js-content-wrapper .container {
    width: 100%;
    max-width: 100%;
  }

  .row {
    row-gap: 20px;
  }

  .content-wrapper img,
  .content-wrapper svg,
  .content-wrapper video,
  .content-wrapper iframe {
    max-width: 100%;
  }

  .content-wrapper input,
  .content-wrapper select,
  .content-wrapper textarea,
  .content-wrapper button {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .header__container {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .header__logo {
    margin-left: 8px !important;
  }

  .header__logo img,
  .header.-base-sidebar .header__logo img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }

  .floating-actions {
    right: 12px !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   13. DYNAMIC CONTENT & CROSS-PAGE RESPONSIVE SAFETY
   -------------------------------------------------------------------------- */
.content-wrapper .container,
.content-wrapper .row,
.content-wrapper [class*="col-"] {
  min-width: 0;
}

.content-wrapper img,
.content-wrapper iframe,
.content-wrapper video {
  max-width: 100%;
}

.content-wrapper .row > [class*="col-"] > img,
.content-wrapper .row > [class*="col-"] > a > img {
  display: block;
  width: 100%;
  height: auto;
}

.content-wrapper [style*="text-align: justify"],
.content-wrapper .text-justify {
  overflow-wrap: anywhere;
}

.content-wrapper [class*="description"],
.content-wrapper [class*="content"],
.content-wrapper [class*="copy"],
.content-wrapper [class*="bio"] {
  max-width: 100%;
}

.content-wrapper [class*="description"] p,
.content-wrapper [class*="content"] p,
.content-wrapper [class*="copy"] p,
.content-wrapper [class*="bio"] p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.content-wrapper .content-table-scroll,
.content-wrapper .table-responsive,
.content-wrapper .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-wrapper .content-table-scroll table,
.content-wrapper .table-responsive table,
.content-wrapper .table-wrap table {
  min-width: 560px;
}

@media (max-width: 991px) {
  .content-wrapper .row:not(.no-responsive-stack) {
    --bs-gutter-x: 1rem;
  }

  .content-wrapper [class*="col-xl-"],
  .content-wrapper [class*="col-lg-"] {
    min-width: 0;
  }

  .content-wrapper .director-card,
  .content-wrapper .service-page__grid,
  .content-wrapper .collab-hero,
  .content-wrapper .collab-details,
  .content-wrapper .history-origin-row {
    gap: 28px;
  }

  .content-wrapper .director-card__media,
  .content-wrapper .service-page__media,
  .content-wrapper .collab-hero__media {
    max-width: 100%;
  }

  .content-wrapper .director-card__media img,
  .content-wrapper .service-page__media img,
  .content-wrapper .collab-hero__media img {
    height: auto;
    max-height: 440px;
    object-fit: contain;
  }

  .content-wrapper .button,
  .content-wrapper .btn,
  .content-wrapper button {
    min-height: 40px;
  }
}

@media (max-width: 767px) {
  .content-wrapper .container {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .content-wrapper .row {
    row-gap: 18px;
  }

  .content-wrapper h1,
  .content-wrapper h2,
  .content-wrapper h3 {
    overflow-wrap: anywhere;
  }

  .content-wrapper [class*="page-header"] {
    text-align: center;
  }

  .content-wrapper [class*="page-header"] p,
  .content-wrapper .sectionTitle p {
    max-width: 100%;
    text-align: left;
  }

  .content-wrapper [class*="page-header"] h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .content-wrapper .history-card,
  .content-wrapper .director-card,
  .content-wrapper .corporate-content,
  .content-wrapper .service-page__copy,
  .content-wrapper .contact-card,
  .content-wrapper .quality-policy-copy {
    padding: 20px !important;
  }

  .content-wrapper .history-desc,
  .content-wrapper .director-card__bio,
  .content-wrapper .service-page__copy p,
  .content-wrapper .corporate-content p {
    text-align: left !important;
    line-height: 1.7;
  }

  .content-wrapper .content-table-scroll table,
  .content-wrapper .table-responsive table,
  .content-wrapper .table-wrap table {
    min-width: 520px;
  }

  .content-wrapper input,
  .content-wrapper select,
  .content-wrapper textarea {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .content-wrapper .container {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .content-wrapper .history-card,
  .content-wrapper .director-card,
  .content-wrapper .corporate-content,
  .content-wrapper .service-page__copy,
  .content-wrapper .contact-card,
  .content-wrapper .quality-policy-copy {
    padding: 16px !important;
  }

  .content-wrapper .button,
  .content-wrapper .btn {
    width: 100%;
  }
}
