/* Axovia CorePanel — shared front-end base (extended per-template by theme.css) */

:root {
  --tpl-primary: #2563eb;
  --tpl-secondary: #0f172a;
  --tpl-radius: 14px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; } /* safety net: nothing should ever cause horizontal scroll/jiggle on mobile */
body { font-family: var(--tpl-font, 'Jost', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif); color: #1e293b; margin: 0; overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 10px; } /* every image on the site gets soft corners by default — never a hard square, no matter where it's uploaded */
.site-header img, .site-footer img { border-radius: 0; } /* logo stays crisp/square, not rounded */

.container-narrow { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.btn-brand {
  display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--tpl-primary);
  color: #fff; font-weight: 600; border: none; font-size: 15px; transition: filter .15s;
}
.btn-brand:hover { filter: brightness(0.9); color: #fff; }
.btn-outline-brand {
  display: inline-block; padding: 11px 25px; border-radius: 999px; border: 2px solid var(--tpl-primary);
  color: var(--tpl-primary); font-weight: 600; font-size: 15px; background: transparent;
}

.section { padding: 70px 0; }
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 10px; color: var(--tpl-secondary); }
.section-subtitle { color: #64748b; margin-bottom: 40px; max-width: 640px; }

.card-basic {
  background: #fff; border-radius: var(--tpl-radius); box-shadow: 0 6px 24px rgba(15,23,42,0.06);
  padding: 26px; border: 1px solid #eef2f7;
}
/* Equal-height cards only make sense inside a grid of siblings — scoping
   height:100% to .grid-3/.grid-4 prevents a lone .card-basic elsewhere
   (e.g. a sidebar) from stretching to match an unrelated flex sibling's
   height and overflowing into whatever comes after it. */
.grid-3 .card-basic, .grid-4 .card-basic { height: 100%; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 992px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,0.06); }
.site-header .navbar-nav .nav-link { font-weight: 600; color: #334155 !important; }
.site-header .navbar-nav .nav-link:hover { color: var(--tpl-primary) !important; }
.site-header .navbar-toggler { border: none; padding: 6px 10px; border-radius: 8px; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 14px; padding: 16px; background: #fff; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.1); border: 1px solid #f1f5f9;
  }
  .site-header .navbar-nav { gap: 4px; margin-bottom: 12px; }
  .site-header .navbar-nav .nav-link { padding: 10px 8px; border-radius: 8px; }
  .site-header .navbar-nav .nav-link:hover { background: #f8fafc; }
  .site-header .btn-brand { display: block; text-align: center; }
}

.site-footer { background: var(--tpl-secondary); color: #cbd5e1; padding: 60px 0 24px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 16px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #94a3b8; }

.doctor-card img, .service-card img, .blog-card img { border-radius: var(--tpl-radius) !important; height: 210px; width: calc(100% - 20px); margin: 10px 10px 0; object-fit: contain; background: #f1f5f9; overflow: hidden; } /* contain, not cover: show the whole photo, never crop it. Rounded on all sides with a small margin so it reads as a soft photo tile instead of a hard-edged square. !important guards against any future rule accidentally overriding this. */
.is-placeholder-img { object-position: center !important; background: #eff6ff; padding: 20px; } /* generic placeholder icons */
.doctor-card, .service-card, .blog-card { background: #fff; border-radius: var(--tpl-radius); overflow: hidden; box-shadow: 0 6px 24px rgba(15,23,42,0.06); height: 100%; }
.doctor-card .body, .service-card .body, .blog-card .body { padding: 20px; }

.hero-img { aspect-ratio: 4 / 3; background: #f1f5f9; }
.hero-img img { width: calc(100% - 16px); height: calc(100% - 16px); margin: 8px; object-fit: contain; border-radius: 14px; } /* small inset margin + its own rounding so a letterboxed photo reads as a soft tile, not a hard-edged rectangle */

.badge-soft { background: rgba(37,99,235,0.1); color: var(--tpl-primary); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.breadcrumb-bar { background: #f8fafc; padding: 22px 0; border-bottom: 1px solid #eef2f7; }

.rating-stars { color: #f59e0b; }

.appt-form .form-control, .appt-form .form-select { border-radius: 10px; padding: 11px 14px; border: 1px solid #e2e8f0; }

/* ---------------- Custom-styled form controls (not raw browser defaults) ---------------- */
input[type="file"] {
  border-radius: 10px; border: 1px dashed #cbd5e1; padding: 10px 14px; background: #f8fafc; width: 100%;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--tpl-primary); width: 16px; height: 16px; }
select.form-select, .appt-form select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px !important;
}
::selection { background: var(--tpl-primary); color: #fff; }

/* ---------------- Responsive breakpoints ---------------- */
@media (max-width: 992px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 25px; }
  .section-subtitle { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .section-title { font-size: 21px; }
  .section-subtitle { font-size: 14px; margin-bottom: 22px; }
  .btn-brand, .btn-outline-brand { padding: 10px 20px; font-size: 14px; }
  .card-basic { padding: 18px; }
  .doctor-card img, .service-card img, .blog-card img { height: 170px; }
  .cta-band { padding: 34px 22px !important; border-radius: 20px !important; }
  .cta-band h2 { font-size: 22px !important; }
  .site-footer { padding: 40px 0 20px; }
}
