/* ============================================================
   Serenity Psychiatry Clinic — custom design layer
   Loaded after main.css; all branding/overrides live here.
   ============================================================ */

/* ---------- Buttons (template never defined .btn-get-started) ---------- */
.btn-get-started,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--accent-color);
  transition: all .25s ease;
  cursor: pointer;
}
.btn-get-started {
  background: var(--accent-color);
  color: #fff !important;
}
.btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), #000 12%);
  border-color: color-mix(in srgb, var(--accent-color), #000 12%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color), transparent 60%);
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  color: var(--accent-color) !important;
}
.btn-outline:hover {
  background: var(--accent-color);
  color: #fff !important;
  transform: translateY(-2px);
}
.btn-get-started.btn-sm, .btn-outline.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Header / navbar ---------- */
/* The template ships the header transparent (rgba(255,255,255,0)) — on scroll the page
   showed through it. Make it solid white in every state. */
.header { --background-color: #ffffff; background-color: #ffffff !important; }
.header .branding { box-shadow: 0 2px 18px rgba(13, 148, 136, .08); background: #ffffff; }
.header .logo { display: flex; align-items: center; line-height: 1.2 !important; }
.header .logo .sitename { font-size: 24px !important; }
.header .logo .logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), #14b8a6);
  color: #fff; font-size: 22px; margin-inline-end: 10px; flex-shrink: 0;
}
.header .logo .sitename { color: var(--heading-color); line-height: 1.15; margin-bottom: 2px !important; }
.header .logo .logo-sub {
  display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-color); font-weight: 600; margin-top: 4px; line-height: 1.3;
}
[dir="rtl"] .header .logo .logo-sub { letter-spacing: 0; font-size: 11.5px; }
.navmenu a { position: relative; }
.navmenu > ul > li > a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent-color); transition: width .25s ease;
}
.navmenu > ul > li > a:hover::after,
.navmenu > ul > li > a.active::after { width: 100%; }
.nav-cta { margin-inline-start: 14px; }
.nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  color: var(--accent-color) !important; border-radius: 50px;
  padding: 7px 14px !important; font-weight: 700; font-size: 13px !important;
  transition: all .25s ease;
}
.nav-lang:hover { background: var(--accent-color); color: #fff !important; }
.nav-lang::after { display: none !important; }
/* Nav item icons: hidden on desktop, shown inside the mobile drawer */
.navmenu .nav-ic { display: none; }
@media (max-width: 1199px) {
  .navmenu .nav-ic { display: inline-block !important; color: var(--accent-color); }
}

/* ---------- Page titles (fix fixed-header overlap + modernize) ---------- */
.page-title {
  padding: 150px 0 34px 0 !important;
  background: linear-gradient(135deg, #f0faf8 0%, #e2f5f1 60%, #d5efe9 100%);
}
.page-title h1 {
  font-size: 36px; font-weight: 700; color: var(--heading-color); margin-bottom: 6px;
}
.page-title .breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
  margin: 0; padding: 0; font-size: 14px; color: #6b7f7b;
}
.page-title .breadcrumbs a { color: var(--accent-color); text-decoration: none; }
.page-title .breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #9db5b0; }

/* ---------- Section titles ---------- */
.section-title { text-align: center; padding-bottom: 36px; }
.section-title h2 {
  font-size: 30px; font-weight: 700; color: var(--heading-color);
  position: relative; display: inline-block; padding-bottom: 12px; margin-bottom: 6px;
}
.section-title h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-color), #5eead4);
}
.section-title p { color: #6b7f7b; margin: 0; }

/* ---------- Service cards ---------- */
.svc-card {
  position: relative; background: var(--surface-color); border-radius: 18px;
  padding: 28px 24px; height: 100%;
  border: 1px solid #e4efec;
  box-shadow: 0 4px 14px rgba(16, 63, 57, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(13, 148, 136, .16);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
}
.svc-card .svc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: var(--accent-color); font-size: 26px; margin-bottom: 16px;
}
.svc-card h3 { font-size: 18px; font-weight: 700; color: var(--heading-color); margin-bottom: 6px; }
.svc-card .svc-cat {
  position: absolute; top: 20px; inset-inline-end: 20px;
  background: #f0faf8; color: var(--accent-color);
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  border-radius: 50px; padding: 4px 12px; text-transform: uppercase;
}
.svc-card p.svc-desc { color: #6b7f7b; font-size: 14px; flex: 1; }
.svc-card .svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.svc-card .svc-price { font-weight: 800; color: var(--heading-color); }
.svc-card .svc-price small { color: #8aa39e; font-weight: 500; }

/* ---------- Specialty chips ---------- */
.spec-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 14px;
  padding: 16px 18px; font-weight: 600; color: var(--heading-color);
  text-decoration: none; height: 100%;
  transition: all .22s ease;
  box-shadow: 0 3px 10px rgba(16, 63, 57, .04);
}
.spec-chip i { font-size: 22px; color: var(--accent-color); }
.spec-chip:hover {
  border-color: var(--accent-color); color: var(--accent-color);
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 148, 136, .14);
}

/* ---------- How it works ---------- */
.hiw-card { text-align: center; padding: 30px 22px; height: 100%; }
.hiw-num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), #14b8a6);
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px rgba(13, 148, 136, .3);
}
.hiw-card h4 { font-size: 17px; font-weight: 700; color: var(--heading-color); }
.hiw-card p { color: #6b7f7b; font-size: 14px; margin: 0; }
.hiw-wrap { position: relative; }
@media (min-width: 992px) {
  .hiw-wrap::before {
    content: ""; position: absolute; top: 56px; left: 18%; right: 18%;
    border-top: 2px dashed color-mix(in srgb, var(--accent-color), transparent 60%);
  }
  .hiw-card { position: relative; z-index: 1; }
}

/* ---------- About stats ---------- */
.stat-card { transition: transform .25s ease, box-shadow .25s ease; }
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(13, 148, 136, .14); }
.stat-card i { display: inline-block; transition: transform .3s ease; }
.stat-card:hover i { transform: scale(1.18) rotate(-6deg); }
.stat-card h3 { font-weight: 800; color: var(--heading-color); font-size: 30px; }

/* ---------- Member benefits ---------- */
.benefit-card {
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 20px;
  padding: 34px 26px; height: 100%; text-align: center;
  box-shadow: 0 4px 14px rgba(16, 63, 57, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(13, 148, 136, .15); }
.benefit-card .b-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: var(--accent-color);
  transform: rotate(-4deg);
}
.benefit-card:hover .b-icon { transform: rotate(0deg) scale(1.06); transition: transform .25s ease; }
.benefit-card h4 { font-size: 18px; font-weight: 800; color: var(--heading-color); margin-bottom: 10px; }
.benefit-card p { color: #6b7f7b; font-size: 14.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface-color); border-radius: 18px; padding: 26px;
  border: 1px solid #e4efec; box-shadow: 0 4px 14px rgba(16, 63, 57, .05);
  height: 100%;
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 10px; }
.testimonial-card p.quote { color: #46605b; font-size: 15px; font-style: italic; }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testimonial-card .who .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-color); font-weight: 800;
}
.testimonial-card .who .name { font-weight: 700; color: var(--heading-color); font-size: 14px; }
.testimonial-card .who .to { font-size: 12px; color: #8aa39e; }

/* ---------- Doctor cards + profile ---------- */
.doctor-card { transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; display: block; }
a.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(13, 148, 136, .16) !important; }
.doctor-card .doc-view {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  color: var(--accent-color); font-weight: 600; font-size: 14px;
}
.doc-hero {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-radius: 22px; color: #fff; padding: 36px;
}
.doc-hero img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); }
.doc-hero .badge-soft {
  background: rgba(255,255,255,.16); color: #fff; border-radius: 50px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; display: inline-block;
}
.doc-info-card {
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 18px; padding: 26px;
  box-shadow: 0 4px 14px rgba(16, 63, 57, .05);
}
.doc-info-card h5 { font-weight: 700; color: var(--heading-color); display: flex; align-items: center; gap: 8px; }
.doc-info-card h5 i { color: var(--accent-color); }
.doc-info-card ul { list-style: none; padding: 0; margin: 0; }
.doc-info-card ul li { padding: 8px 0; border-bottom: 1px dashed #e4efec; color: #46605b; font-size: 15px; }
.doc-info-card ul li:last-child { border-bottom: none; }
.doc-info-card ul li i { color: var(--accent-color); margin-inline-end: 8px; }

/* ---------- CTA band ---------- */
.call-to-action { padding: 64px 0; }
.call-to-action h3 { font-weight: 800; }

/* ---------- Footer (modern) ---------- */
.footer {
  background: linear-gradient(160deg, #0b201d 0%, #10312c 100%) !important;
  color: #b9cfca; font-size: 14.5px;
}
.footer .footer-top { padding: 56px 0 32px; }
.footer .sitename { color: #fff; font-size: 20px; font-weight: 800; }
.footer h4 {
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.footer h4::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--accent-color); border-radius: 2px;
}
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links ul li { padding: 5px 0; }
.footer .footer-links ul a { color: #b9cfca; text-decoration: none; transition: all .2s; }
.footer .footer-links ul a:hover { color: #5eead4; padding-inline-start: 4px; }
.footer .footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer .footer-contact i {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(94, 234, 212, .12); color: #5eead4;
}
.footer .social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #d3e7e3; font-size: 15px;
  margin-inline-end: 8px; text-decoration: none; transition: all .25s ease;
}
.footer .social-links a:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; margin-top: 26px; text-align: center; font-size: 14px;
}
.footer .copyright a { color: #5eead4; font-weight: 700; text-decoration: none; }
.footer .copyright a:hover { text-decoration: underline; }
.footer .copyright .heart { color: #f87171; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  /* physical right so it sits in the same spot in EN and AR */
  position: fixed; right: 15px; bottom: 75px; z-index: 9998;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff !important; font-size: 24px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ---------- Reviews / star ratings ---------- */
.stars-ro { color: #f59e0b; font-size: 14px; white-space: nowrap; }
.stars-ro .off { color: #d8e3e0; }
.rate-modal { border: none; border-radius: 22px; overflow: hidden; }
.rate-modal .rm-head {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff; text-align: center; padding: 28px 24px 22px; position: relative;
}
.rate-modal .rm-head .btn-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.rate-modal .rm-head h5 { color: #fff; font-weight: 800; margin: 0; }
.rate-modal .rm-head p { color: #ccfbf1; font-size: 13px; margin: 6px 0 0; }
.rate-modal .rm-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); font-size: 28px; color: #fde68a;
}
.rate-modal .rm-body { padding: 24px 26px 26px; text-align: center; }
.star-input-lg { justify-content: center; gap: 8px; width: 100%; }
.star-input-lg label { font-size: 38px; transition: color .12s, transform .12s; }
.star-input-lg label:hover { transform: scale(1.15); }
.rate-modal .rm-hint { min-height: 20px; color: var(--accent-color); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 3px; }
.star-input input { display: none; }
.star-input label { font-size: 22px; color: #d8e3e0; cursor: pointer; transition: color .12s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f59e0b; }
.doc-rating-badge { color: #f59e0b; font-weight: 700; }
.doc-rating-badge .bi { margin-inline-end: 2px; }

/* ---------- Booking form ---------- */
.booking-card {
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 22px;
  box-shadow: 0 10px 34px rgba(16, 63, 57, .08); overflow: hidden;
}
.booking-card .bk-head {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff; padding: 22px 28px;
}
.booking-card .bk-head h4 { color: #fff; font-weight: 800; margin: 0; }
.booking-card .bk-head p { color: #ccfbf1; margin: 4px 0 0; font-size: 14px; }
.booking-card .bk-body { padding: 28px; }
.bk-section {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--heading-color); font-size: 15px;
  margin: 4px 0 14px;
}
.bk-section .n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: var(--accent-color);
  font-size: 14px; font-weight: 800;
}
.bk-divider { border-top: 1px dashed #e4efec; margin: 22px 0; }
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: #9db5b0; font-size: 15px; pointer-events: none;
}
.input-icon .form-control, .input-icon .form-select { padding-inline-start: 40px; }
.form-control, .form-select { border-radius: 12px; border-color: #dcebe7; padding-top: .6rem; padding-bottom: .6rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; }
.slot-grid .slot-chip input { display: none; }
.slot-grid .slot-chip span {
  display: inline-block; padding: 9px 16px; border-radius: 50px; cursor: pointer;
  border: 1.5px solid #dcebe7; color: #46605b; font-weight: 600; font-size: 14px;
  transition: all .15s ease; background: #fff;
}
.slot-grid .slot-chip span:hover { border-color: var(--accent-color); color: var(--accent-color); }
.slot-grid .slot-chip input:checked + span {
  background: var(--accent-color); border-color: var(--accent-color); color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, .3);
}
.slot-empty {
  width: 100%; text-align: center; color: #8aa39e; font-size: 14px;
  background: #f6faf9; border: 1px dashed #dcebe7; border-radius: 12px; padding: 14px;
}
.bk-summary {
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  background: #f0faf8; border: 1px solid #cdeee8; border-radius: 14px;
  padding: 12px 18px; margin-top: 18px; font-weight: 700; color: var(--heading-color);
}
.bk-summary.show { display: flex; }
.bk-summary .price { color: var(--accent-color); font-size: 18px; }
.bk-side {
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 18px;
  padding: 24px; box-shadow: 0 4px 14px rgba(16, 63, 57, .05);
}
.bk-side h6 { font-weight: 800; color: var(--heading-color); display: flex; align-items: center; gap: 8px; }
.bk-side h6 i { color: var(--accent-color); }
.bk-side ul { list-style: none; padding: 0; margin: 10px 0 0; }
.bk-side ul li { display: flex; gap: 10px; padding: 7px 0; color: #46605b; font-size: 14px; }
.bk-side ul li i { color: var(--accent-color); margin-top: 2px; }
.wl-card summary {
  cursor: pointer; font-weight: 800; color: var(--heading-color);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.wl-card summary::-webkit-details-marker { display: none; }
.wl-card summary i.chev { margin-inline-start: auto; transition: transform .2s; color: #9db5b0; }
.wl-card[open] summary i.chev { transform: rotate(180deg); }

/* ---------- Booking / forms polish ---------- */
.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}
.text-accent { color: var(--accent-color) !important; }

/* ---------- Blog ---------- */
.blog-hero {
  position: relative; border-radius: 22px; overflow: hidden; color: #fff;
  min-height: 340px; display: flex; align-items: center;
}
.blog-hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.blog-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 40, 36, .88) 0%, rgba(6, 40, 36, .55) 60%, rgba(6, 40, 36, .25) 100%);
}
[dir="rtl"] .blog-hero::after {
  background: linear-gradient(270deg, rgba(6, 40, 36, .88) 0%, rgba(6, 40, 36, .55) 60%, rgba(6, 40, 36, .25) 100%);
}
.blog-hero .inner { position: relative; z-index: 1; padding: 44px; max-width: 720px; }
.blog-hero h2 { color: #fff; font-weight: 800; font-size: 30px; }
.blog-hero .meta { display: flex; flex-wrap: wrap; gap: 18px; color: #cfe8e3; font-size: 14px; margin: 14px 0 20px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cats a {
  border: 1.5px solid #dcebe7; border-radius: 50px; padding: 7px 18px;
  color: #46605b; font-weight: 600; font-size: 14px; text-decoration: none; transition: all .2s;
}
.blog-cats a:hover, .blog-cats a.active {
  background: var(--accent-color); border-color: var(--accent-color); color: #fff;
}
.post-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 18px;
  padding: 20px; transition: all .22s ease; text-decoration: none;
  box-shadow: 0 3px 10px rgba(16, 63, 57, .04);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 148, 136, .13); border-color: color-mix(in srgb, var(--accent-color), transparent 55%); }
.post-card img { width: 170px; height: 120px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.post-card h4 { color: var(--heading-color); font-weight: 700; font-size: 18px; }
.post-card .meta { color: #8aa39e; font-size: 13px; margin-bottom: 6px; }
.post-card .meta .cat { color: var(--accent-color); font-weight: 700; }
.post-card p { color: #6b7f7b; font-size: 14px; margin: 0; }
.blog-side {
  background: var(--surface-color); border: 1px solid #e4efec; border-radius: 18px; padding: 22px;
  box-shadow: 0 3px 10px rgba(16, 63, 57, .04);
}
.blog-side h5 { font-weight: 800; color: var(--heading-color); margin-bottom: 14px; }
.blog-side .side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed #e4efec; text-decoration: none;
}
.blog-side .side-item:last-child { border-bottom: none; }
.blog-side .side-item img { width: 62px; height: 52px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.blog-side .side-item .t { color: var(--accent-color); font-weight: 700; font-size: 14px; display: block; line-height: 1.35; }
.blog-side .side-item .d { color: #8aa39e; font-size: 12px; display: block; margin-top: 2px; }
.blog-side .side-item:hover .t { text-decoration: underline; }
.post-body { color: #3d5450; font-size: 16.5px; line-height: 1.85; }
.post-body p { margin-bottom: 18px; }
.post-body h4 { color: var(--heading-color); font-weight: 700; margin: 26px 0 10px; }

@media (max-width: 767px) {
  .post-card { flex-direction: column; }
  .post-card img { width: 100%; height: 170px; }
  .blog-hero .inner { padding: 26px; }
}

/* ---------- RTL tweaks ---------- */
[dir="rtl"] .navmenu > ul > li > a::after { inset-inline-start: auto; inset-inline-end: 0; }
[dir="rtl"] .hero-content, [dir="rtl"] .section-title p { letter-spacing: 0; }

/* ---------- Responsive ---------- */
/* ===== Modern mobile navigation (overrides the template's basic floating box) ===== */
@media (max-width: 1199px) {
  /* Hamburger: a tidy rounded button instead of a bare icon */
  .mobile-nav-toggle {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1.5px solid #dcebe7; background: #fff;
    display: inline-flex !important; align-items: center; justify-content: center;
    color: var(--accent-color) !important; font-size: 22px !important;
    margin: 0 !important; transition: all .2s ease;
  }
  .mobile-nav-toggle:hover { background: #f0faf8; border-color: var(--accent-color); }

  /* Dim + blur the page behind the drawer */
  .mobile-nav-active .navmenu {
    background: rgba(6, 32, 28, .55) !important;
    backdrop-filter: blur(3px);
  }

  /* Close button floats above the drawer header band */
  .mobile-nav-active .mobile-nav-toggle {
    position: fixed !important; top: 12px !important; right: 12px !important;
    z-index: 10000; color: #fff !important;
    background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35);
  }

  /* The drawer itself: right-side panel with a teal header band */
  .mobile-nav-active .navmenu > ul {
    display: block;
    position: fixed; inset: 0 0 0 auto;
    width: min(330px, 86vw);
    border: none; border-radius: 0;
    padding: 84px 14px 24px;
    background: linear-gradient(135deg, #0d9488, #0f766e) top / 100% 68px no-repeat, #ffffff;
    box-shadow: -18px 0 50px rgba(6, 40, 36, .3);
    overflow-y: auto;
    animation: navSlideIn .28s ease;
  }
  @keyframes navSlideIn { from { transform: translateX(100%); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

  /* Menu items: big touch targets, rounded hover, clean active state */
  .navmenu > ul > li { margin: 3px 0; }
  .navmenu a, .navmenu a:focus {
    padding: 13px 14px !important; border-radius: 12px;
    font-size: 15.5px !important; font-weight: 600 !important;
    color: #33504b !important; justify-content: flex-start !important; gap: 10px;
  }
  .navmenu a:hover, .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus {
    background: #f0faf8 !important; color: var(--accent-color) !important;
  }
  .navmenu > ul > li > a::after { display: none; }   /* no desktop underline in the drawer */
  .navmenu a i, .navmenu a:focus i {
    width: auto !important; height: auto !important; margin: 0 !important;
    background: transparent !important; font-size: 17px !important; color: inherit;
  }

  /* Language pill + Book CTA inside the drawer */
  .navmenu .nav-lang {
    margin: 12px 0 0 !important; width: 100%;
    justify-content: center !important; border-width: 1.5px;
  }
  .nav-cta { margin: 12px 0 0 !important; padding-top: 12px; border-top: 1px dashed #e4efec; }
  .nav-cta a.btn-get-started {
    width: 100%; justify-content: center !important;
    color: #fff !important; background: var(--accent-color) !important;
    padding: 13px 20px !important; font-size: 15px !important;
  }
}

/* RTL: drawer + close button slide from the left instead */
@media (max-width: 1199px) {
  [dir="rtl"] .mobile-nav-active .navmenu > ul { inset: 0 auto 0 0; animation-name: navSlideInRtl; box-shadow: 18px 0 50px rgba(6, 40, 36, .3); }
  [dir="rtl"] .mobile-nav-active .mobile-nav-toggle { right: auto !important; left: 12px !important; }
  @keyframes navSlideInRtl { from { transform: translateX(-100%); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
}

@media (max-width: 575px) {
  /* Topbar: keep only the phone on very small screens */
  .header .topbar .contact-info i:first-child { display: none !important; }
}

@media (max-width: 991px) {
  .page-title { padding: 128px 0 26px !important; }
  .doc-hero { padding: 26px; }
}

@media (max-width: 767px) {
  .page-title { padding: 118px 0 22px !important; }
  .page-title h1 { font-size: 25px; }
  .section-title h2 { font-size: 23px; }
  .hero h1 { font-size: 27px !important; }
  .hero .hero-image { margin-top: 18px; }
  .header .logo .sitename { font-size: 21px !important; }
  .header .logo .logo-mark { width: 36px; height: 36px; font-size: 18px; }
  .doc-hero { padding: 22px; text-align: center; }
  .doc-hero img { width: 110px; height: 110px; }
  .doc-hero .d-flex { justify-content: center; }
  .blog-hero { min-height: 250px; }
  .blog-hero h2 { font-size: 21px; }
  .blog-hero .inner { padding: 22px; }
  .call-to-action { padding: 44px 0; }
  .svc-card { padding: 22px 18px; }
  .benefit-card { padding: 26px 20px; }
  .footer .footer-top { padding: 40px 0 20px; }
  .btn-get-started, .btn-outline { padding: 11px 22px; font-size: 14px; }
  .whatsapp-float { width: 42px; height: 42px; font-size: 22px; bottom: 68px; }
}

@media (max-width: 420px) {
  .header .topbar .contact-info { font-size: 12px; }
  .page-title h1 { font-size: 22px; }
}
