/* =========================================================
   YCC 247 — responsive fix (loads after styles.css)
   Mobile-first overrides for readable type + stable layout
   ========================================================= */

:root {
  --ycc-navy: #06163c;
  --ycc-navy-soft: #0f3691;
  --ycc-accent: #ff4500;
  --ycc-page: #f7fafc;
  --ycc-max: 1120px;
  --ycc-header-h: 64px;
  --ycc-radius: 16px;
  --ycc-shadow: 0 12px 40px rgba(6, 22, 60, 0.12);
}

html {
  box-sizing: border-box;
  scroll-padding-top: calc(var(--ycc-header-h) + 12px);
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: #1a2332;
  background: var(--ycc-page);
  -webkit-font-smoothing: antialiased;
}

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

/* Urdu page: RTL content, LTR chrome (header stays LTR via header rule) */
body.page-ur main,
body.page-ur .ycc-notice {
  direction: rtl;
}

/* Footer stays LTR for addresses/phones; brand line can still read cleanly */
body.page-ur .site-footer {
  direction: ltr;
}

/* Kill vw-based type from text.css / urdu-text.css */
body,
body * {
  font-size: inherit;
}

body {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Notice banner (replaces alert) ---------- */
.ycc-notice {
  position: sticky;
  top: var(--ycc-header-h);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fff1e0;
  color: #3d1a00;
  border-bottom: 1px solid rgba(255, 69, 0, 0.35);
  font-size: 0.95rem;
  line-height: 1.55;
  direction: rtl;
}

.ycc-notice[hidden] {
  display: none !important;
}

.ycc-notice__text {
  flex: 1;
}

.ycc-notice__text a {
  color: var(--ycc-accent);
  font-weight: 700;
  white-space: nowrap;
}

.ycc-notice__close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* ---------- WhatsApp FAB ---------- */
.ycc-wa {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ycc-wa:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.ycc-wa svg {
  width: 28px;
  height: 28px;
  position: static;
  bottom: auto;
}

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  height: var(--ycc-header-h) !important;
  min-height: var(--ycc-header-h);
  padding: 0 12px 0 8px;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  direction: ltr; /* keep logo left / links right even on Urdu pages */
}

.nav-logo {
  flex: 0 0 auto;
  width: auto !important;
  height: 44px !important;
  margin: 0 !important;
  background: none !important;
  text-indent: 0 !important;
  overflow: visible;
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.nav-items {
  float: none !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none;
  align-items: center;
  gap: 4px;
}

#nav_icon,
#cross_icon {
  display: none;
  cursor: pointer;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: #fff !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#nav_icon img,
#cross_icon img {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  object-fit: contain;
}

.nav-item {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-item.nav-cta {
  color: #fff !important;
  background: var(--ycc-accent) !important;
  border: 2px solid #ff8c00 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
}

#enLink,
#urLink {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
  padding: 0 !important;
}

/* ---------- Hero ---------- */
.initial-wrapper,
#home {
  overflow: hidden;
}

.home-main {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0;
}

.home-wrapper {
  width: 100% !important;
  height: auto !important;
  min-height: clamp(420px, 78vh, 720px);
  position: relative;
  display: block !important;
}

.home-scene {
  position: absolute;
  inset: 0 auto auto 0;
  width: 55vw;
  max-width: 640px;
  height: min(88vh, 720px);
  pointer-events: none;
}

.home-scene > img,
.home-wrapper > img {
  margin-left: 0 !important;
  pointer-events: none;
  user-select: none;
  position: absolute;
  object-fit: contain;
}

.home-text {
  z-index: 6;
  background: linear-gradient(165deg, rgba(6, 22, 60, 0.92), rgba(15, 54, 145, 0.88)) !important;
  backdrop-filter: blur(6px);
}

.home-text .special-bold,
.home-text h1.special-bold {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.15 !important;
  margin: 0;
}

.home-text h3 {
  width: auto !important;
  max-width: 100%;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  margin: 14px auto 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 8px;
}

.home-text p {
  font-size: 0.95rem !important;
  margin-top: 12px;
  opacity: 0.95;
}

/* ---------- Services ---------- */
#services {
  clip-path: none !important;
}

.services-main {
  width: 100% !important;
  padding: 48px 0 64px !important;
  background-attachment: scroll !important;
}

.services-wrapper {
  width: min(96vw, 1180px) !important;
  padding-top: 0 !important;
  position: relative;
}

.services-wrapper > article {
  width: 100% !important;
  max-width: 720px;
  padding-top: 24px !important;
}

.services-wrapper > article h5 {
  font-size: clamp(1rem, 2.4vw, 1.25rem) !important;
  line-height: 1.8;
  font-weight: 600;
}

#additional-data ul {
  display: grid;
  gap: 8px;
  padding: 16px 0 8px;
  margin: 0;
}

#additional-data li,
#additional-data h6 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  margin: 0 !important;
}

/* ---------- Service package cards (replaces broken absolute carousel) ---------- */
.services-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  gap: 10px;
  margin: 32px 0 8px;
  width: 100%;
  direction: ltr; /* keep visual order women → kids → ultrasound */
}

body.page-ur .services-card-text {
  direction: rtl;
}

.services-cards-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  height: auto !important;
  width: 100% !important;
  margin: 0 !important;
  right: auto !important;
  overflow: visible;
  align-items: stretch;
}

.services-card,
.services-card.first-card,
.services-card.second-card,
.services-card.third-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 20px 16px 22px !important;
  opacity: 1 !important;
  z-index: 1 !important;
  border: 2px dashed rgba(0, 0, 0, 0.4) !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 28px rgba(6, 22, 60, 0.12);
  overflow: hidden;
  background-color: transparent;
}

.services-card img,
.first-card img,
.second-card img,
.third-card img {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: min(48%, 120px) !important;
  height: auto !important;
  max-height: 110px;
  padding: 0 !important;
  margin: 0 auto 10px !important;
  display: block;
  clip-path: none !important;
  visibility: visible !important;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
  animation: none !important;
}

.services-card-wrapper {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

.services-card-text {
  padding-top: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.services-card-text > h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
  line-height: 1.45 !important;
  margin: 0 0 6px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: 0 !important;
}

.services-card-note {
  margin: 0 0 10px !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  opacity: 0.9;
  color: inherit;
}

.services-card-price {
  margin: 0 0 14px !important;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem) !important;
  font-weight: 700;
  line-height: 1.2;
  font-family: "IBM Plex Sans Arabic", "Raleway", sans-serif;
}

.services-card-price span,
.services-card-price small {
  font-size: 0.75em;
  font-weight: 600;
}

.services-card-text > ul {
  display: block !important;
  list-style: none !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
  width: 100%;
  text-align: start;
}

.services-card-text > ul > li {
  position: relative;
  padding: 6px 0 6px 1.6em !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  list-style: none !important;
}

.services-card-text > ul > li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 6px;
  color: #0a7a3e;
  font-size: 0.9em;
}

body.page-ur .services-card-text > ul > li {
  padding: 6px 1.6em 6px 0 !important;
  text-align: right;
}

body.page-ur .services-card-text > ul > li::before {
  left: auto;
  right: 0;
}

.services-carousel .left-click,
.services-carousel .right-click,
.services-wrapper button.left-click,
.services-wrapper button.right-click {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  align-self: center;
  z-index: 5;
  width: 44px !important;
  height: 44px !important;
  font-size: 1.6rem !important;
  line-height: 1;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid rgba(6, 22, 60, 0.2) !important;
  background: #fff !important;
  color: var(--ycc-navy);
  box-shadow: var(--ycc-shadow);
  cursor: pointer;
  animation: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.services-carousel .left-click:hover,
.services-carousel .right-click:hover {
  background: var(--ycc-navy) !important;
  color: #fff;
  border-color: var(--ycc-navy) !important;
}

@media screen and (min-width: 991px) {
  /* All three packages visible — arrows not needed */
  .services-carousel {
    grid-template-columns: 1fr;
  }

  .services-carousel .left-click,
  .services-carousel .right-click {
    display: none !important;
  }
}

/* ---------- Specialty tabs ---------- */
#wrapper {
  margin-bottom: 48px !important;
  padding: 0 16px;
}

#wrapper.content,
.content {
  max-width: 720px !important;
  width: 100% !important;
  margin: 24px auto !important;
}

.wrapper_tabcontent {
  width: 100% !important;
  max-width: 100%;
}

.tabs {
  height: auto !important;
  min-height: 52px;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
}

.tablinks {
  flex: 1 1 auto;
  min-width: 90px;
}

.tabcontent h3 {
  font-size: 1.35rem !important;
}

.tabcontent p,
.tabcontent li {
  font-size: 1rem !important;
  line-height: 1.6;
}

/* ---------- Facilities / About — kill broken scale tricks on small screens ---------- */
.facilities-main,
.about-main {
  width: 100% !important;
  max-width: 100%;
  scale: 1 !important;
  transform: none !important;
  animation: none !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  border-radius: 0 !important;
  position: relative !important;
  padding: 48px 16px !important;
}

.facilities-wrapper > h1,
.about-wrapper > h1,
.blogs-wrapper > h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
  letter-spacing: 0 !important;
  text-align: center;
  width: min(92vw, 720px) !important;
  margin: 0 auto 16px !important;
}

.about-wrapper > p,
.blogs-wrapper > p {
  width: min(92vw, 720px) !important;
  max-width: 100%;
  margin: 0 auto 28px !important;
  padding: 0 8px;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem) !important;
  line-height: 1.9 !important;
  letter-spacing: 0 !important;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.facilities-cards,
.about-cards,
.blogs-cards {
  width: min(92vw, var(--ycc-max)) !important;
  margin: 0 auto !important;
}

.facilities-card-wrapper,
.about-card-wrapper {
  width: 100% !important;
  height: auto !important;
  margin: 0 auto 28px !important;
}

.facilities-card,
.about-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.facilities-card img,
.facilities-card.odd img,
.about-card img {
  float: none !important;
  width: 100% !important;
  max-width: 420px;
  height: auto !important;
  min-height: 200px;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--ycc-radius) !important;
  margin: 0 auto !important;
  display: block;
}

.facilities-text,
.facilities-text.odd,
.about-card p,
.about-text {
  float: none !important;
  width: 100% !important;
  max-width: 520px;
  height: auto !important;
  margin: 0 auto !important;
  text-align: center;
  padding: 8px 4px 16px;
}

.facilities-text h3 {
  margin: 8px auto 12px !important;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem) !important;
}

.facilities-text p,
.about-card p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

.blogs-card-wrapper {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  justify-items: center;
}

.blogs-card img {
  width: 100% !important;
  max-width: 180px;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px !important;
  margin: 0 !important;
}

/* ---------- Footer (redesign) ---------- */
.site-footer,
footer.site-footer {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  color: #e8eef8;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(15, 54, 145, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(255, 69, 0, 0.12), transparent 50%),
    linear-gradient(165deg, #04102c 0%, #06163c 45%, #0a1f4d 100%);
  overflow: hidden;
  direction: ltr;
  font-family: "Raleway", "IBM Plex Sans Arabic", sans-serif;
}

.site-footer *,
.site-footer a,
.site-footer p,
.site-footer h2,
.site-footer h3 {
  text-decoration: none !important;
}

.footer-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6a2b 20%, #4db8ff 50%, #ff6a2b 80%, transparent);
  opacity: 0.9;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 1.15fr);
  gap: 32px 28px;
  align-items: start;
}

.footer-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.footer-title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-lead {
  margin: 0 0 20px;
  max-width: 32ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(232, 238, 248, 0.78);
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #25d366;
  color: #062814 !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.38);
  color: #04180c !important;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.footer-social img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}

.site-footer h3,
.footer-col h3,
.footer-map h3 {
  margin: 0 0 14px;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec5ff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(232, 238, 248, 0.88) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-list a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(125, 180, 255, 0.35);
  color: #fff !important;
}

.footer-list-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb087;
}

.footer-list--contact a {
  font-variant-numeric: tabular-nums;
}

.footer-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: #0a1a3a;
  aspect-ratio: 4 / 3;
}

.footer-map-frame iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px;
  border: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem !important;
  color: rgba(232, 238, 248, 0.55);
}

.footer-bottom a {
  color: #9ec5ff !important;
  text-decoration: none !important;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.contacts-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 18px 0;
  padding: 10px 16px !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

.page-contacts {
  min-height: 100vh;
  background: #04102c;
}

.page-contacts .site-footer {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-contacts .footer-inner {
  width: min(1140px, calc(100% - 32px));
}

/* =========================================================
   TABLET + PHONE (≤990px)
   ========================================================= */
@media screen and (max-width: 990px) {
  header {
    height: var(--ycc-header-h) !important;
  }

  .nav-logo {
    height: 40px !important;
  }

  .nav-logo img {
    height: 32px;
    max-width: 140px;
  }

  #nav_icon {
    display: flex !important;
  }

  #cross_icon {
    display: none;
  }

  header.is-nav-open #nav_icon {
    display: none !important;
  }

  header.is-nav-open #cross_icon {
    display: flex !important;
  }

  .nav-items {
    position: static;
    width: auto !important;
  }

  .nav-items > .nav-item,
  #enLink,
  #urLink {
    display: none !important;
    margin: 0 !important;
  }

  header.is-nav-open .nav-items {
    position: fixed;
    top: var(--ycc-header-h);
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 16px 22px;
    background: rgba(6, 22, 60, 0.98);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--ycc-shadow);
    z-index: 1100;
  }

  header.is-nav-open .nav-items > .nav-item,
  header.is-nav-open #enLink,
  header.is-nav-open #urLink {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 14px;
    line-height: 1.4 !important;
    font-size: 1.05rem !important;
    border-radius: 10px;
    width: auto !important;
    height: auto !important;
  }

  header.is-nav-open #enLink,
  header.is-nav-open #urLink {
    width: 40px !important;
    height: 40px !important;
    margin: 8px auto 0 !important;
    border-radius: 50% !important;
  }

  header.is-nav-open .nav-items > .nav-item:hover,
  header.is-nav-open .nav-items > .nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Hero: scaled composite scene + copy below */
  .home-wrapper {
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 16px 36px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    direction: ltr;
  }

  .home-scene {
    position: relative !important;
    inset: auto !important;
    width: min(92vw, 420px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1.05;
    margin: 0 auto 8px;
    order: 1;
    filter: drop-shadow(0 16px 28px rgba(6, 22, 60, 0.22));
  }

  .home-scene > img {
    position: absolute !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
  }

  #home-img-1 {
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0;
  }

  #home-img-2 {
    width: 18% !important;
    top: 14% !important;
    left: 8% !important;
    z-index: 1;
  }

  #home-img-3 {
    width: 86% !important;
    top: 18% !important;
    left: 4% !important;
    z-index: 2;
  }

  #home-img-4 {
    width: 11% !important;
    top: 20% !important;
    left: 58% !important;
    z-index: 3;
  }

  #home-img-5 {
    width: 18% !important;
    top: 55% !important;
    left: 70% !important;
    z-index: 5;
  }

  .home-wrapper > aside {
    order: 2;
    width: 100%;
    margin-top: 4px;
    position: relative;
    z-index: 6;
  }

  .home-text {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: min(92vw, 440px);
    margin: 0 auto !important;
    padding: 20px 16px 18px !important;
    box-shadow: 5px 5px 0 #06163c !important;
    box-sizing: border-box;
  }

  /* Services: swipeable equal cards */
  .services-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
    margin-top: 24px;
  }

  .services-cards-wrapper {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 14px;
    scrollbar-width: none;
  }

  .services-cards-wrapper::-webkit-scrollbar {
    display: none;
  }

  .services-card,
  .services-card.first-card,
  .services-card.second-card,
  .services-card.third-card {
    flex: 0 0 min(78vw, 290px);
    width: min(78vw, 290px) !important;
    max-width: none;
    scroll-snap-align: center;
    min-height: 0 !important;
  }

  .services-carousel .left-click,
  .services-carousel .right-click {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5rem !important;
  }

  .facilities-card,
  .facilities-card.odd {
    flex-direction: column;
  }

  .about-card {
    flex-direction: column;
  }

  .about-card img[style*="float"] {
    float: none !important;
  }

  .about-card p[style*="float"] {
    float: none !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand,
  .footer-map {
    grid-column: 1 / -1;
  }

  .footer-lead {
    max-width: none;
  }

  .footer-map-frame {
    aspect-ratio: 16 / 10;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-map {
    grid-column: auto;
  }

  .footer-inner {
    padding: 40px 0 24px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */
@media screen and (max-width: 480px) {
  :root {
    --ycc-header-h: 58px;
  }

  .ycc-notice {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .home-text {
    box-shadow: 4px 4px 0 #06163c !important;
    border-width: 2px !important;
  }

  .blogs-card-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ycc-wa {
    right: 12px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

/* =========================================================
   DESKTOP polish (≥991px)
   ========================================================= */
@media screen and (min-width: 991px) {
  #nav_icon,
  #cross_icon {
    display: none !important;
  }

  .nav-items {
    width: auto !important;
    max-width: 70%;
    justify-content: flex-end;
    gap: 2px;
  }

  .nav-items > .nav-item {
    display: block !important;
    margin: 0 2px !important;
  }

  .home-wrapper {
    min-height: min(88vh, 760px);
    direction: ltr; /* illustration left, copy right */
  }

  .home-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 55vw;
    max-width: 640px;
    height: min(88vh, 760px);
  }

  #home-img-1 {
    width: 90% !important;
    top: 4% !important;
    left: 2% !important;
    z-index: 0;
  }

  #home-img-2 {
    width: 18% !important;
    top: 16% !important;
    left: 8% !important;
    z-index: 1;
  }

  #home-img-3 {
    width: 80% !important;
    top: 22% !important;
    left: 6% !important;
    z-index: 2;
  }

  #home-img-4 {
    width: 10% !important;
    top: 24% !important;
    left: 58% !important;
    z-index: 3;
  }

  #home-img-5 {
    width: 16% !important;
    top: 58% !important;
    left: 72% !important;
    z-index: 5;
  }

  .home-wrapper > aside {
    position: absolute;
    top: clamp(72px, 16vh, 160px);
    right: clamp(24px, 6vw, 80px);
    left: auto;
    width: min(36vw, 440px);
    z-index: 6;
  }

  .home-text {
    width: 100% !important;
    margin-top: 0 !important;
    left: auto !important;
    top: auto !important;
    position: relative !important;
    padding: 28px 24px 24px;
  }

  /* Soften broken scale-from-tiny scroll effect */
  .facilities-main {
    scale: 1 !important;
    border-radius: 0 !important;
    padding: 72px 24px !important;
    animation: none !important;
  }

  .about-main {
    scale: 1 !important;
    border-radius: 0 !important;
    padding: 64px 24px !important;
    left: 0 !important;
    bottom: auto !important;
    animation: none !important;
  }

  .facilities-card,
  .facilities-card.odd {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 32px;
  }

  .facilities-card.odd {
    flex-direction: row-reverse;
  }

  .facilities-card img,
  .facilities-card.odd img {
    width: min(38vw, 420px) !important;
    max-height: 360px;
  }

  .facilities-text,
  .facilities-text.odd {
    text-align: start;
    max-width: 360px;
  }

  .about-card {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
  }

  .about-card img {
    width: min(28vw, 280px) !important;
    max-height: 320px;
  }

  .about-card p,
  .about-text {
    text-align: start;
    max-width: 360px;
  }

  .blogs-card-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  }

  .services-carousel {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .services-carousel > .left-click,
  .services-carousel > .right-click {
    display: none !important;
  }

  .services-cards-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .services-card,
  .services-card.first-card,
  .services-card.second-card,
  .services-card.third-card {
    width: 100% !important;
    flex: none !important;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Seven-fix layer: lang dialog, hero/pkg carousels,
   specialty tabs, blog tiles, larger condition type
   ========================================================= */

.nav-lang {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  padding: 6px 14px;
}

.nav-lang:hover,
.nav-lang:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

/* Language gate dialog */
.lang-dialog[hidden] {
  display: none !important;
}

.lang-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lang-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 32, 0.72);
  backdrop-filter: blur(6px);
}

.lang-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, #0a1f4d, #06163c 60%, #0f3691);
  color: #f4f7ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  direction: ltr;
}

.lang-dialog__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.lang-dialog__panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.35;
}

.lang-dialog__hint {
  margin: 0 0 22px;
  font-size: 0.92rem;
  opacity: 0.85;
}

.lang-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.lang-btn--ur {
  background: #fff;
  color: #06163c;
  font-family: "IBM Plex Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
}

.lang-btn--en {
  background: linear-gradient(135deg, #ff6a2b, #ff4500);
  color: #fff;
}

body.lang-locked {
  overflow: hidden;
}

/* Bigger condition list */
.services-intro h5,
.services-wrapper > article h5 {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem) !important;
  line-height: 1.9 !important;
}

.condition-list,
#additional-data .condition-list,
#additional-data ul {
  list-style: none;
  padding: 18px 0 8px !important;
  margin: 0;
  display: grid;
  gap: 14px;
}

.condition-list li,
#additional-data .condition-list li,
#additional-data ul li {
  font-size: clamp(1.28rem, 3.2vw, 1.6rem) !important;
  line-height: 1.6 !important;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(6, 22, 60, 0.06);
  border: 1px solid rgba(6, 22, 60, 0.08);
}

body.page-ur .condition-list li {
  font-family: "IBM Plex Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
}

/* Hero carousel */
.home-text.hero-carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 220px;
  padding: 22px 20px 18px !important;
}

.hero-slides {
  position: relative;
  min-height: 160px;
}

.hero-slide {
  display: none;
  animation: yccFadeIn 0.45s ease;
}

.hero-slide.is-active {
  display: block;
}

@keyframes yccFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

/* Package carousel */
.pkg-carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 36px auto 8px;
  direction: ltr;
}

.pkg-track {
  position: relative;
  min-height: 420px;
}

.pkg-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 24px;
  border-radius: 22px;
  background: var(--pkg-bg, #e8f7ff);
  box-shadow: var(--ycc-shadow);
  animation: yccFadeIn 0.4s ease;
}

.pkg-slide.is-active {
  display: flex;
}

.pkg-slide img {
  width: min(58%, 200px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 12px;
}

.pkg-slide h3 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 3vw, 1.35rem) !important;
  line-height: 1.45;
  font-family: "IBM Plex Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
}

.pkg-note {
  margin: 0;
  font-size: 0.92rem !important;
  opacity: 0.85;
}

.pkg-price {
  margin: 10px 0 14px;
  font-size: 1.65rem !important;
  font-weight: 800;
  color: var(--ycc-navy);
}

.pkg-price span,
.pkg-price small {
  font-size: 0.85rem !important;
  font-weight: 600;
}

.pkg-slide ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}

.pkg-slide li {
  font-size: 1.05rem !important;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  font-family: "IBM Plex Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
}

.pkg-slide[style*="color:#fff"] .pkg-price,
.pkg-slide[style*="color:#fff"] li {
  color: #fff;
}

.pkg-slide[style*="color:#fff"] li {
  background: rgba(255, 255, 255, 0.12);
}

.pkg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #06163c;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 22, 60, 0.25);
}

.pkg-nav--prev { left: -8px; }
.pkg-nav--next { right: -8px; }

.pkg-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.pkg-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(6, 22, 60, 0.25);
  cursor: pointer;
}

.pkg-dots button.is-active {
  background: var(--ycc-navy);
  width: 22px;
  border-radius: 999px;
}

@media (min-width: 760px) {
  .pkg-carousel {
    max-width: 920px;
  }

  .pkg-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-height: 0;
  }

  .pkg-slide {
    display: flex !important;
    animation: none;
  }

  .pkg-nav {
    display: none;
  }

  .pkg-dots {
    display: none;
  }
}

/* Specialty tabs — modern app UI */
.specialty-section {
  padding: 24px 16px 56px;
}

.specialty-card {
  width: min(96vw, 760px);
  margin: 0 auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ycc-shadow);
  overflow: hidden;
  border: 1px solid rgba(6, 22, 60, 0.08);
  direction: ltr;
  text-align: left;
}

.specialty-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: #f0f4fb;
}

.specialty-tab {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #44506a;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.specialty-tab.is-active {
  background: #fff;
  color: var(--ycc-navy);
  box-shadow: 0 4px 14px rgba(6, 22, 60, 0.12);
}

.specialty-panels {
  padding: 22px 20px 26px;
}

.specialty-panel[hidden] {
  display: none !important;
}

.specialty-panel h3 {
  margin: 0 0 10px;
  font-size: 1.45rem !important;
  color: var(--ycc-navy);
}

.specialty-panel p {
  margin: 0 0 16px;
  font-size: 1.02rem !important;
  line-height: 1.7;
  color: #3a465c;
}

.specialty-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specialty-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--ycc-navy);
  font-size: 0.92rem !important;
  font-weight: 600;
  border: 1px solid rgba(15, 54, 145, 0.12);
}

/* Blog tiles — fixed aspect ratio */
.blogs-grid {
  width: min(92vw, var(--ycc-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.blog-tile {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 22, 60, 0.1);
  border: 1px solid rgba(6, 22, 60, 0.06);
}

.blog-tile img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 10;
  object-fit: contain !important;
  object-position: center;
  background: #d62828;
  margin: 0 !important;
  border-radius: 0 !important;
}

.blog-tile h3 {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 1.05rem !important;
  text-align: center;
  color: var(--ycc-navy);
}

@media (min-width: 640px) {
  .blogs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 990px) {
  .pkg-carousel {
    margin-top: 48px;
  }

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