/* Responsive layout additions for the Arokya Hospital home page. */

html {
  overflow-x: hidden;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

/* The custom drawer is mobile-only. */
.mobile-side-navbar,
.mobile-nav-overlay {
  display: none;
}

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

/* Latest activity: cards remain aligned even when their source images differ. */
.activity-blog-row {
  align-items: stretch;
}

.activity-blog-row > [class*="col-"]:not(.activity-blog-actions) {
  display: flex;
  margin-bottom: 0 !important;
}

.activity-blog-row .blog-card {
  width: 100%;
  height: 100%;
}

.activity-blog-row .blog-card-img-wrap {
  aspect-ratio: 4 / 5;
  height: auto;
  display: grid;
  place-items: center;
}

.activity-blog-row .blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* Latest activity: refreshed card presentation. */
.activity-blog-row .blog-card {
  overflow: hidden;
  border: 1px solid #f0e4da;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(81, 45, 18, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-blog-row .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(81, 45, 18, 0.16);
}

.activity-blog-row .blog-card-img-wrap {
  background: linear-gradient(145deg, #fbf4ee, #efe1d5);
  border-bottom: 1px solid #f0e4da;
}

.activity-blog-row .blog-card-img-wrap > span {
  top: 18px !important;
  left: 18px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 8px !important;
  background: rgba(51, 34, 22, 0.88) !important;
  box-shadow: none !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
}

.activity-blog-row .blog-card-body {
  position: relative;
  padding: 26px;
  background: #fff;
}

.activity-blog-row .blog-card-body::before {
  position: absolute;
  top: 0;
  left: 26px;
  display: none;
  width: 46px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #c36e16;
  content: "";
}

.activity-blog-row .blog-card-title {
  font-size: 20px;
}

.activity-blog-row .blog-card-title a {
  color: #2b2118;
}

.activity-blog-row .blog-card-title a:hover {
  color: #b55e0b;
}

.activity-blog-row .blog-card-link {
  align-self: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #c36e16;
  color: #fff;
  line-height: 1;
}

.activity-blog-row .blog-card-link:hover {
  gap: 14px;
  background: #9f540d;
  color: #fff;
}

.activity-blog-actions {
  display: flex !important;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

/* Contact social links: show both the icon and platform name. */
.footer-contact-social {
  margin-top: 20px;
}

.footer-contact-social h5 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.footer-contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 10px 0;
  color: #fff;
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-contact-social a:hover {
  color: var(--secondary-color);
}

.footer-contact-social i {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

/* Footer content enters progressively as it comes into view. */
.footer-container .footer-column[data-aos] {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 767px) {
  .activity-blog-row .blog-card {
    border-radius: 18px;
  }

  .activity-blog-row .blog-card-body {
    padding: 22px 20px;
  }

  .activity-blog-row .blog-card-body::before {
    left: 20px;
  }

  .activity-blog-row .blog-card-title {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 18px;
  }

  .activity-blog-row .blog-card-img-wrap {
    aspect-ratio: 4 / 5;
  }
}

.about-thumb img {
  display: block;
  width: min(100%, 700px);
  height: auto;
}

/* Hospital banner: preserve the complete 16:9 source images on every screen. */
#home.hospital-hero {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #002856;
}

.hospital-hero .hospital-slide > img {
  object-fit: contain;
  object-position: center;
  background: #002856;
}

.hospital-hero .hospital-slide-mask {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hospital-hero .hospital-swiper-controls,
.hospital-hero .hospital-swiper-controls button {
  pointer-events: auto;
  touch-action: manipulation;
}

/* Header navigation: keep all primary links and action buttons aligned on one row. */
@media (min-width: 992px) {
  .mediic_nav_manu {
    padding: 14px 18px;
  }

  .mediic_nav_manu .row {
    flex-wrap: nowrap;
  }

  .mediic_nav_manu .logo a img {
    width: auto;
    max-width: 180px;
    height: auto;
  }

  nav.mediic_menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-align: left;
  }

  ul.nav_scroll {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
          gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  .mediic_menu > ul > li {
    flex: 0 0 auto;
  }

  .mediic_menu > ul > li > a {
    margin: 13px 0;
    padding: 0 10px;
    font-size: 12px;
  }

  .mediic-right-side {
    float: none;
    flex: 0 0 auto;
    gap: 8px;
  }

  .search-box-btn.search-box-outer {
    display: block;
    flex: 0 0 auto;
  }

  .header-button a {
    margin: 0;
    padding: 12px 16px;
    font-size: 12px;
    white-space: nowrap;
  }
}



@media (min-width: 992px) and (max-width: 1199px) {
  .mediic_nav_manu .container-fluid {
    padding-inline: 0;
  }

  .mediic_nav_manu .logo a img {
    max-width: 145px;
  }

  nav.mediic_menu {
    gap: 6px;
  }

  ul.nav_scroll {
    padding-inline: 6px;
  }

  .mediic_menu > ul > li > a {
    padding-inline: 6px;
    font-size: 12px;
  }

  .mediic-right-side {
    gap: 5px;
  }

  .header-button a {
    padding: 10px 10px;
    font-size: 12px;
  }
}

/* Large tablets and compact desktops */
@media (max-width: 1199px) {
  .mediic_nav_manu {
    padding-inline: 18px;
  }

  .mediic-top-section,
  .service-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .mediic-desc {
    width: 44%;
  }

  .service-section .swiper {
    height: auto;
    min-height: 430px;
  }

  .counter-items {
    gap: 32px;
  }

  .counter-single-box.bx-1 {
    padding-right: 42px;
  }
}

/* The off-canvas navigation is the tablet/mobile navigation. */
@media (max-width: 991px) {
  #sticky-header {
    display: none;
  }

  .mobile-menu-area {
    display: block !important;
    min-height: 64px;
  }

  .mobile-menu-area.sticky {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }





  /* Mobile sidebar design: replaces the previous MeanMenu sidebar. */
  /* FULL OVERRIDE - Mobile Navbar */
.mobile-nav-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    padding: 8px 16px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
  /* FULL OVERRIDE - Mobile Navigation Logo */
.mobile-nav-logo img,
.mobile-side-logo img {
    display: block !important;
    width: 154px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* FULL OVERRIDE - Menu Toggle & Close */
.mobile-menu-toggle,
.mobile-side-close {
    border: 0 !important;
    background: #c36e16 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

/* Menu Toggle */
.mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    font: 700 14px/1 Poppins, sans-serif !important;
}

/* Hover */
.mobile-menu-toggle:hover,
.mobile-side-close:hover {
    background: #f6b21b !important;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: block !important;
    position: fixed !important;
    z-index: 1001 !important;
    inset: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
    transition:
        opacity 0.3s ease,
        visibility 0s linear 0.3s !important;
}
     .mobile-side-navbar {
        display: block;
        position: fixed !important;
        /* z-index: 1002 !important; */
        top: 0;
        right: 0;
        width: min(390px, 100%) !important;
        height: 100dvh !important;
        padding: 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        box-shadow: -14px 0 36px rgba(0, 27, 58, .22) !important;
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.22, .8, .25, 1) !important;
    }
 /* FULL OVERRIDE - Mobile Side Header */
.mobile-side-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #edf0f2 !important;
    box-sizing: border-box !important;
}

/* FULL OVERRIDE - Close Button */
.mobile-side-close {
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    place-items: center !important;
    font-size: 22px !important;
    box-sizing: border-box !important;
}
  .mobile-side-content { padding: 26px 0 10px; }
  .mobile-side-description { margin: 0 0 22px; color: #65717c; font-size: 15px; line-height: 1.65; }
  .mobile-side-links { border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
 .mobile-side-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 0 !IMPORTANT;
        color: #26313b ! IMPORTANT;
        font-size: 17px !important;
        font-weight: 600;
        text-decoration: none;
        transition: color .2s ease, padding-left .2s ease !important;
    }
  .mobile-side-links a + a { border-top: 1px solid #edf0f2; }
  .mobile-side-links a i { color: #a0a8af !important; font-size: 12px; transition: color .2s ease, transform .2s ease; }
  .mobile-side-links a:hover { padding-left: 6px; color: #c36e16; }.mobile-side-links a:hover i { color: #c36e16; transform: translateX(4px); }
  .mobile-side-actions { display: grid; gap: 12px; margin: 24px 0; }.mobile-side-actions a { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }.mobile-side-actions a:hover { transform: translateY(-2px); }
     .mobile-action-primary {
        border: 2px solid #c36e16 !important;
        background: #c36e16 !important;
        color: #fff !important;
    }.mobile-action-primary:hover { background: #f6b21b; color: #fff; }.mobile-action-secondary { border: 2px solid #c36e16; color: #c36e16 !important; }.mobile-action-secondary:hover { background: #c36e16; color: #fff; }
  .mobile-side-social { padding-top: 22px; border-top: 1px solid #edf0f2; }.mobile-side-social h3 { margin: 0 0 12px; color: #111; font-size: 19px; }.mobile-side-social div { display: flex; gap: 10px; }.mobile-side-social a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #111; color: #fff; text-decoration: none; transition: background .2s ease; }.mobile-side-social a:hover { background: #c36e16; }
  .mobile-nav-open { overflow: hidden; position: fixed; width: 100%; }.mobile-nav-open .mobile-nav-overlay { visibility: visible; opacity: 1; transition-delay: 0s; }.mobile-nav-open .mobile-side-navbar { transform: translateX(0); }

  html,
  body {
    height: auto !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior: auto !important;
  }

  #smooth-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  #smooth-content {
    width: 100% !important;
    transform: none !important;
    overflow: visible !important;
  }

  .hospital-hero {
    margin-top: 64px;
  }

  .counter-serction {
    padding: 54px 0 44px;
  }

  .counter-items,
  .counter-left-side,
  .counter-right-side {
    flex-wrap: wrap;
  }

  .counter-items {
    justify-content: center;
  }

  .counter-left-side {
    width: 100%;
    justify-content: center;
  }

  .about-serction,
  .team-section,
  .blog-section {
    padding-block: 72px;
  }

  .mediic-top-section {
    padding-top: 72px;
  }

  .service-section {
    padding-bottom: 72px;
  }

  .mediic-top-section,
  .service-section {
    padding-inline: 32px;
  }

  .mediic-desc {
    width: 48%;
  }

  .about-thumb {
    margin-bottom: 36px;
  }

  .about-thumb img {
    margin-inline: auto;
  }

  .about-serction .mediic-shape,
  .team-section .mediic-shape,
  .footer-thumb,
  .footer-thumb1 {
    display: none;
  }

  .subscribe-content {
    margin-bottom: 28px;
  }

  .mediic-button.text-right {
    text-align: left !important;
  }
}

/* Phones */
@media (max-width: 767px) {
  *,
  *::before,
  *::after {
    min-width: 0;
  }

  .container,
  .container-fluid {
    width: 100%;
    padding-inline: 18px;
  }

  #home.hospital-hero {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hospital-swiper-prev {
    left: 12px;
  }

  .hospital-swiper-next {
    right: 12px;
  }

  .hospital-slide-content h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .counter-serction {
    margin-top: 0;
    padding-block: 40px;
  }

  .counter-items,
  .counter-left-side,
  .counter-right-side {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .counter-left-side {
    gap: 14px;
  }

  .counter-title h2 {
    padding: 0;
    font-size: 27px;
    line-height: 1.25;
  }

  .counter-right-side {
    width: 100%;
    gap: 24px;
  }

  .counter-single-box.bx-1 {
    padding-right: 0;
  }

  .counter-desc p {
    padding-top: 8px;
    font-size: 16px;
  }

  .counter-thumb img {
    width: min(100%, 210px);
    height: auto;
  }

  .about-service-list h4 {
    padding-block: 20px;
    font-size: 17px;
    line-height: 1.55;
  }

  .about-service-list ul {
    padding-left: 0;
  }

  .about-service-list ul li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    padding-block: 13px;
    font-size: 15px;
    line-height: 1.45;
  }

  .about-service-list ul li i {
    padding-top: 3px;
  }

  span.list-pd {
    flex-basis: 100%;
    padding-left: 0;
  }

  .top-mediic-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
  }

  .mediic-section-title h1,
  .mediic-section-title2 h3 {
    font-size:24px!important;
    line-height: 1.05;
  }

  .mediic-top-section,
  .service-section {
    padding-inline: 18px;
  }

  .mediic-top-section {
    padding-top: 56px;
  }

  .mediic-desc {
    width: 100%;
  }

  .service-section .swiper {
    min-height: 0;
    height: 410px;
    overflow: hidden;
  }

  .service-section .swiper-slide {
    width: 100% !important;
    margin-right: 30!important;
  }

  .single-service-box,
  .service-thumb,
  .service-thumb img {
    width: 100%;
  }

  .service-thumb img {
    height: 410px;
    object-fit: cover;
  }

  .service-content {
    left: 22px;
    right: 18px;
    bottom: 22px;
  }

  .service-content h2 a {
    font-size: 22px;
    line-height: 1.15;
  }

  .service-content p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .single-service-box,
  .service-thumb,
  .service-thumb img {
    border-radius: 16px;
  }

  .team-section .swiper {
    padding-top: 24px;
    padding-bottom: 48px;
    overflow: hidden;
  }

  .team-thumb img {
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .team-single-box {
    padding: 20px;
  }

  .blog-content {
    padding-right: 0;
  }

  .blog-single-box,
  .feature-single-box {
    margin-bottom: 28px;
  }

  .blog-thumb img {
    width: 100%;
    height: auto;
  }

  .blogs-category ul li {
    margin-right: 10px;
  }

  .subscribe-content {
    align-items: flex-start;
    gap: 16px;
  }

  .subscribe-icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    line-height: 62px;
    padding-top: 16px !important;
    font-size: 34px;
  }

  .subscribe-title h1 {
    padding-left: 0;
    font-size: 24px;
    line-height: 1.25;
  }

  .footer-section {
    padding: 48px 0 28px;
  }

  .footer-section .widget {
    margin-bottom: 32px;
  }

  .company-logo img {
    height: auto;
    max-height: 82px;
  }

  .company-info-desc p {
    padding-top: 24px;
    font-size: 16px;
    line-height: 1.6;
  }

  .row.footer-btm {
    margin-top: 18px;
  }

.mediic-company-desc.text-center {
    text-align: center !important;
  }

  .mediic-social-icon {
    margin-top: 16px;
  }
}

/* Keep the single-doctor carousel centred on phone screens. */
@media (max-width: 599px) {
  .team-section .swiper {
    width: min(100%, 340px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 390px) {
  #home.hospital-hero {
    min-height: 0;
  }

  .hospital-swiper-controls button {
    width: 34px;
    height: 34px;
  }

  .mediic-btn a,
  .header-button a {
    padding: 13px 20px;
    font-size: 12px;
  }

  .service-section .swiper,
  .service-thumb img {
    height: 360px;
  }
}
