/* ==========================================================================
   Amar Daktar - medical tourism template
   Light green + light blue theme. Edit the variables below to retheme.
   ========================================================================== */

:root {
  --ad-green: #3dae7c;
  --ad-green-soft: #8eddb4;
  --ad-green-tint: #eaf8f1;
  --ad-blue: #2f8dcb;
  --ad-blue-soft: #7cc8f2;
  --ad-blue-tint: #e8f5fd;
  --ad-ink: #1d3a4a;
  --ad-text: #3c5563;
  --ad-muted: #6b8590;
  --ad-line: #dbe9ef;
  --ad-bg: #ffffff;
  --ad-bg-alt: #f4fbf9;
  --ad-grad: linear-gradient(135deg, var(--ad-green-soft), var(--ad-blue-soft));
  --ad-grad-strong: linear-gradient(135deg, var(--ad-green), var(--ad-blue));
  --ad-radius: 16px;
  --ad-shadow: 0 6px 24px rgba(29, 58, 74, .08);
  --ad-shadow-hover: 0 14px 34px rgba(29, 58, 74, .14);
  --ad-font: "Poppins", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ad-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--ad-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ad-text);
  background: var(--ad-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ad-blue); text-decoration: none; }
a:hover { color: var(--ad-green); }
h1, h2, h3, h4, h5, h6 { color: var(--ad-ink); line-height: 1.25; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ad-blue-soft); outline-offset: 2px; }

.ad-container { width: 100%; max-width: var(--ad-container); margin: 0 auto; padding: 0 20px; }
.ad-visually-hidden, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ad-skip { position: absolute; left: -999px; top: 0; background: var(--ad-ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.ad-skip:focus { left: 10px; top: 10px; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.ad-btn, .btn, .readmore a, button.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--ad-font); cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.ad-btn--primary, .btn-primary, .readmore a {
  background: var(--ad-grad-strong); color: #fff; box-shadow: 0 6px 18px rgba(47, 141, 203, .28);
}
.ad-btn--primary:hover, .btn-primary:hover, .readmore a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 141, 203, .36); }
.ad-btn--light { background: rgba(255, 255, 255, .95); color: var(--ad-ink); }
.ad-btn--light:hover { background: #fff; color: var(--ad-blue); transform: translateY(-2px); }
.btn-secondary { background: var(--ad-blue-tint); color: var(--ad-ink); }

/* Top bar ---------------------------------------------------------------- */
.ad-topbar { background: var(--ad-ink); color: #d7e8ee; font-size: .85rem; }
.ad-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.ad-topbar a { color: #d7e8ee; }
.ad-topbar a:hover { color: var(--ad-green-soft); }
.ad-topbar__contact, .ad-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.ad-topbar__contact .fa-solid, .ad-topbar__contact .fa-brands { color: var(--ad-green-soft); margin-right: 4px; }
.ad-social { gap: 10px; }
.ad-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); }

/* Header + menu ------------------------------------------------------------ */
.ad-header { background: rgba(255, 255, 255, .97); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--ad-line), 0 6px 20px rgba(29, 58, 74, .05); backdrop-filter: saturate(1.4) blur(6px); }
.ad-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.ad-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.ad-brand img { display: block; width: auto; max-width: 260px; object-fit: contain; }

.ad-nav { display: flex; align-items: center; gap: 18px; }
.ad-nav ul { list-style: none; margin: 0; padding: 0; }
.ad-nav > ul, .ad-nav .mod-menu { display: flex; align-items: center; gap: 4px; }
.ad-nav li { position: relative; }
.ad-nav a, .ad-nav .nav-header, .ad-nav .mod-menu__heading { display: block; padding: 10px 14px; color: var(--ad-ink); font-weight: 500; font-size: .95rem; border-radius: 10px; }
.ad-nav li > a:hover, .ad-nav li.active > a, .ad-nav li.current > a { color: var(--ad-green); background: var(--ad-green-tint); }
.ad-nav li ul, .ad-nav .mod-menu__sub {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; background: #fff;
  border-radius: 12px; box-shadow: var(--ad-shadow-hover); display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 50;
}
.ad-nav li:hover > ul, .ad-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.ad-nav li ul ul { top: 0; left: 100%; }
.ad-nav li.parent > a::after, .ad-nav li.deeper > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 0 .2em .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ad-nav__cta { padding: .65em 1.3em; color: #fff !important; }
.ad-nav-toggle { display: none; background: var(--ad-green-tint); border: 0; color: var(--ad-ink); width: 46px; height: 46px; border-radius: 12px; font-size: 1.25rem; cursor: pointer; }

@media (max-width: 991px) {
  .ad-nav-toggle { display: inline-grid; place-items: center; }
  .ad-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(29, 58, 74, .12); display: none;
  }
  .ad-nav.is-open { display: flex; }
  .ad-nav > ul, .ad-nav .mod-menu { flex-direction: column; align-items: stretch; }
  .ad-nav li ul, .ad-nav .mod-menu__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .ad-brand img { max-width: 200px; height: auto !important; max-height: 50px; }
  .ad-header__inner { min-height: 70px; }
}

/* Slideshow -------------------------------------------------------------- */
.ad-slider { position: relative; overflow: hidden; background: var(--ad-grad); }
.ad-slider__track { display: grid; }
.ad-slide {
  grid-area: 1 / 1; position: relative; min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.ad-slide.is-active { opacity: 1; visibility: visible; }
.ad-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.ad-slide.is-active .ad-slide__bg { transform: scale(1); }
.ad-slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 66, 70, .78) 0%, rgba(30, 110, 130, .45) 55%, rgba(124, 200, 242, .05) 100%); }
.ad-slide__content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 80px; }
.ad-slide__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 720px; margin-bottom: .4em; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.ad-slide__text { color: #eef8fb; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 600px; margin-bottom: 1.6em; }
.ad-slide__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ad-slide.is-active .ad-slide__title, .ad-slide.is-active .ad-slide__text, .ad-slide.is-active .ad-slide__actions { animation: ad-rise .9s both; }
.ad-slide.is-active .ad-slide__text { animation-delay: .15s; }
.ad-slide.is-active .ad-slide__actions { animation-delay: .3s; }
@keyframes ad-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.ad-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1rem; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s;
}
.ad-slider__nav:hover { background: rgba(255, 255, 255, .4); }
.ad-slider__nav--prev { left: 18px; }
.ad-slider__nav--next { right: 18px; }
.ad-slider__dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.ad-slider__dot { width: 11px; height: 11px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.ad-slider__dot.is-active { width: 32px; background: #fff; }
@media (max-width: 640px) { .ad-slider__nav { display: none; } }

/* Sections ---------------------------------------------------------------- */
.ad-section { padding: clamp(56px, 8vw, 96px) 0; }
.ad-section:nth-of-type(even) { background: var(--ad-bg-alt); }
.ad-section--hospitals { background: linear-gradient(180deg, var(--ad-blue-tint), #fff) !important; }
.ad-section--reviews { background: linear-gradient(180deg, var(--ad-green-tint), #fff) !important; }
.ad-section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); }
.ad-section__title { position: relative; padding-bottom: 18px; margin-bottom: 14px; }
.ad-section__title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 4px; background: var(--ad-grad-strong); }
.ad-section__sub { color: var(--ad-muted); font-size: 1.05rem; margin: 0; }

/* Cards ------------------------------------------------------------------- */
.ad-cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ad-card { background: #fff; border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.ad-card:hover { transform: translateY(-6px); box-shadow: var(--ad-shadow-hover); }
.ad-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ad-card__link:hover { color: inherit; }
.ad-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ad-card__title { font-size: 1.15rem; margin-bottom: .45em; }
.ad-card__text { color: var(--ad-muted); font-size: .94rem; flex: 1; }
.ad-card__more { color: var(--ad-blue); font-weight: 600; font-size: .9rem; margin-top: auto; }
.ad-card__more .fa-solid { transition: transform .2s; font-size: .8em; }
.ad-card:hover .ad-card__more .fa-solid { transform: translateX(4px); }

/* Services */
.ad-cards--services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ad-service { text-align: center; border-top: 4px solid transparent; border-image: var(--ad-grad-strong) 1; border-image-slice: 1 0 0 0; }
.ad-service__icon { margin: 32px auto 0; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--ad-grad); color: #fff; font-size: 2.1rem; box-shadow: 0 10px 22px rgba(79, 181, 138, .3); transition: transform .3s; }
.ad-service:hover .ad-service__icon { transform: rotate(-6deg) scale(1.06); }
.ad-service__media { aspect-ratio: 16 / 10; overflow: hidden; }
.ad-service__media img, .ad-hospital__media img, .ad-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ad-card:hover .ad-service__media img, .ad-card:hover .ad-hospital__media img, .ad-card:hover .ad-post__media img { transform: scale(1.06); }

/* Hospitals */
.ad-cards--hospitals { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ad-hospital__media, .ad-post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ad-grad); display: grid; place-items: center; color: #fff; font-size: 3rem; }
.ad-hospital__city { color: var(--ad-green); font-weight: 500; font-size: .9rem; margin-bottom: .5em; }

/* Blog */
.ad-post__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ad-muted); margin-bottom: .5em; }
.ad-post__meta > span { white-space: nowrap; }
.ad-post__meta > span + span::before { content: "•"; margin-right: 14px; color: var(--ad-green-soft); }

/* Reviews */
.ad-cards--reviews { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ad-review .ad-card__body { position: relative; }
.ad-review__quote { position: absolute; top: 18px; right: 22px; font-size: 2.4rem; color: var(--ad-green-tint); }
.ad-review__stars { color: #f5b73b; font-size: .9rem; margin-bottom: .6em; display: flex; gap: 3px; }
.ad-review__text { font-size: .98rem; color: var(--ad-text); flex: 1; }
.ad-review__person { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--ad-line); }
.ad-review__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--ad-green-tint); }
.ad-review__avatar--blank { display: grid; place-items: center; background: var(--ad-grad); color: #fff; font-weight: 700; font-size: 1.2rem; }
.ad-review__name { display: block; color: var(--ad-ink); }
.ad-review__more { font-size: .85rem; }
.ad-review__video { position: relative; aspect-ratio: 16 / 9; background: var(--ad-ink); overflow: hidden; }
.ad-review__video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ad-review__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ad-review__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ad-green); font-size: 1.5rem; padding-left: 5px; cursor: pointer; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); transition: transform .2s;
}
.ad-review__play:hover { transform: translate(-50%, -50%) scale(1.08); }

/* CTA section: put a Custom module in position "cta" */
.ad-section--cta { background: var(--ad-grad-strong) !important; color: #fff; text-align: center; }
.ad-section--cta h2, .ad-section--cta h3, .ad-section--cta .ad-section__title, .ad-section--cta .ad-section__sub { color: #fff; }
.ad-section--cta .ad-section__title::after { background: #fff; }
.ad-section--cta .ad-btn--primary, .ad-section--cta .btn-primary { background: #fff; color: var(--ad-blue); }

/* Main content area -------------------------------------------------------- */
.ad-main { padding: clamp(40px, 6vw, 72px) 0; }
.ad-main--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
@media (max-width: 991px) { .ad-main--sidebar { grid-template-columns: 1fr; } }
.ad-box { background: #fff; border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); padding: 24px; margin-bottom: 24px; }
.ad-box__title { font-size: 1.1rem; padding-bottom: 10px; border-bottom: 2px solid var(--ad-green-tint); }
.ad-box ul { padding-left: 1.1em; }

/* Joomla articles, blog and categories */
.page-header h1, .page-header h2 { margin-bottom: .3em; }
.item-page, .com-content-category-blog, .blog, .com-content-featured { font-size: 1.02rem; }
.item-page img, .blog-item img { border-radius: 12px; }
.item-image, .com-content-article__image { margin-bottom: 1.4em; }
.item-image img { width: 100%; }
.article-info, .article-info-term { font-size: .85rem; color: var(--ad-muted); }
.article-info dd { display: inline-block; margin: 0 14px 0 0; }
.blog-items, .com-content-category-blog__items { display: grid; gap: 28px; }
.blog-items.columns-2, .blog-items.masonry-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-item { background: #fff; border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); padding: 22px; }
.blog-item .item-image { margin: -22px -22px 18px; }
.blog-item .item-image img { border-radius: var(--ad-radius) var(--ad-radius) 0 0; }
.item-content h2, .blog-item h2 { font-size: 1.3rem; }
.item-content h2 a, .blog-item h2 a { color: var(--ad-ink); }
.readmore { margin-top: 12px; }
.icon-chevron-right, .icon-chevron-left { display: none; }
blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--ad-green-tint); border-left: 4px solid var(--ad-green); border-radius: 0 12px 12px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--ad-line); padding: 10px 12px; text-align: left; }
th { background: var(--ad-blue-tint); color: var(--ad-ink); }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pagination .page-link { display: block; padding: 8px 14px; border-radius: 10px; background: #fff; box-shadow: var(--ad-shadow); }
.pagination .active .page-link { background: var(--ad-grad-strong); color: #fff; }
.alert { padding: 14px 18px; border-radius: 12px; background: var(--ad-blue-tint); margin-bottom: 20px; }
.alert-success, joomla-alert[type="success"] { background: var(--ad-green-tint); }
.embed-responsive, .ad-video { position: relative; aspect-ratio: 16 / 9; }
.item-page iframe { max-width: 100%; border: 0; border-radius: 12px; }
.item-page iframe[src*="youtube"], .item-page iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Forms (contact page etc.) */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea, .form-control, .form-select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--ad-line); border-radius: 12px; font: inherit; background: #fff; color: var(--ad-ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--ad-green-soft); outline: 3px solid var(--ad-green-tint); }
.control-group, .mb-3 { margin-bottom: 16px; }
label { display: inline-block; font-weight: 500; color: var(--ad-ink); margin-bottom: 6px; }

/* Footer ------------------------------------------------------------------ */
.ad-footer { background: #13303d; color: #b7cdd6; padding: 64px 0 0; font-size: .94rem; }
.ad-footer a { color: #dcebf0; }
.ad-footer a:hover { color: var(--ad-green-soft); }
.ad-footer__grid { display: grid; gap: 36px; grid-template-columns: minmax(240px, 1.4fr); grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); }
@media (max-width: 767px) { .ad-footer__grid { grid-auto-flow: row; grid-template-columns: 1fr; } }
.ad-brand--footer { background: #fff; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; }
.ad-brand--footer img { height: 46px !important; }
.ad-footer__contact { list-style: none; padding: 0; margin: 0 0 18px; }
.ad-footer__contact li { margin-bottom: 8px; display: flex; gap: 10px; }
.ad-footer__contact .fa-solid { color: var(--ad-green-soft); margin-top: 5px; }
.ad-footer .ad-box { background: transparent; box-shadow: none; padding: 0; margin: 0 0 20px; }
.ad-footer .ad-box__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .1); }
.ad-footer ul.mod-menu, .ad-footer .ad-box ul { list-style: none; padding: 0; }
.ad-footer ul.mod-menu li { margin-bottom: 6px; }
.ad-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding: 20px 0; text-align: center; font-size: .85rem; }
.ad-footer__bottom p { margin: 0; }
.ad-social--footer a { background: rgba(255, 255, 255, .08); }

.ad-whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.ad-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* Error page */
.ad-error { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: var(--ad-grad); }
.ad-error h1 { font-size: 5rem; margin: 20px 0 0; color: #fff; }
.ad-error p { color: var(--ad-ink); }

/* Small screens: keep the top bar to one line */
@media (max-width: 640px) {
  .ad-topbar__contact li:nth-child(n+3), .ad-topbar .ad-social { display: none; }
  .ad-topbar__inner { justify-content: center; }
}
