/* =========================================================
   CNK inner pages (courses, about, facilities, contact)
   Builds on the shared tokens/components in home.css
   ========================================================= */

/* ---------- page banner ---------- */
.page-hero {
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
  overflow: hidden;
  background: #14123a;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: page-hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes page-hero-zoom { to { transform: scale(1.14); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 18, 58, .95) 0%, rgba(20, 18, 58, .82) 50%, rgba(20, 18, 58, .45) 100%),
    radial-gradient(500px 260px at 10% 100%, rgba(208, 60, 30, .5), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; z-index: -1;
  width: 380px; height: 380px; border-radius: 50%;
  border: 2px dashed rgba(255, 204, 0, .25);
  animation: ring-spin 40s linear infinite;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: var(--c-yellow); }
.crumbs .sep { color: rgba(255, 255, 255, .4); }
.crumbs .current { color: var(--c-yellow); font-weight: 600; }
.page-hero h1 { color: #fff; font-size: 44px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; max-width: 900px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 17px; margin: 0; max-width: 680px; }
.page-hero .hero-anim { animation-duration: .8s; }

/* ---------- generic cards ---------- */
.ip-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 40px -34px rgba(20, 18, 58, .45);
}
.ip-card + .ip-card { margin-top: 22px; }
.ip-card h2 { color: var(--c-ink); font-size: 22px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.ip-card h2 .ip-ico {
  flex: 0 0 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff1ec; color: var(--c-red); font-size: 22px;
}
.ip-card p { font-size: 15.5px; line-height: 1.75; }
.ip-card p:last-child { margin-bottom: 0; }

/* check-style lists */
.ip-list { list-style: none; padding: 0; margin: 0; }
.ip-card ul { list-style: none; padding: 0; margin: 0; }
.ip-card ul li, .ip-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 15px; line-height: 1.6; color: var(--c-text);
}
.ip-card ul li:last-child, .ip-list li:last-child { border-bottom: 0; }
.ip-card ul li::before, .ip-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e8f7ee; color: var(--c-green);
  font-size: 12px; font-weight: 700;
}
.ip-card.docs ul li::before { content: "\2192"; background: #fff1ec; color: var(--c-red); }
.ip-card.exam ul li::before { content: "\2022"; background: #ecebff; color: var(--c-navy); font-size: 18px; }

/* ---------- course page ---------- */
.course-page { padding: 56px 0 72px; background: linear-gradient(180deg, var(--c-soft) 0%, #fff 420px); }
.course-overview { padding: 32px; }
.course-overview .cnk-eyebrow { margin-bottom: 12px; }
.course-overview h2.course-title { display: block; font-size: 30px; line-height: 1.25; margin-bottom: 14px; }
.course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 24px;
}
.course-fact {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: var(--c-soft); border: 1px solid var(--c-line);
  transition: transform .25s ease, border-color .25s ease;
}
.course-fact:hover { transform: translateY(-3px); border-color: rgba(208, 60, 30, .35); }
.course-fact > span {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-red), var(--c-orange)); color: #fff; font-size: 20px;
}
.course-fact small { display: block; color: var(--c-muted); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.course-fact strong { display: block; color: var(--c-ink); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cnk-btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid var(--c-line); color: var(--c-ink); font-weight: 700; font-size: 15px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.cnk-btn-ghost-dark:hover { border-color: var(--c-red); color: var(--c-red); transform: translateY(-2px); }
.course-media { margin-top: 22px; border-radius: 20px; overflow: hidden; position: relative; }
.course-media img { width: 100%; height: 360px; object-fit: cover; display: block; transition: transform .8s ease; }
.course-media:hover img { transform: scale(1.04); }
.course-note {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8e1; border: 1px solid #ffe8a3; color: #6b5200; font-size: 14.5px; line-height: 1.6;
}
.course-note span { color: #c99700; font-size: 20px; line-height: 1.2; }

/* sidebar: the column stretches to the row height; only the help card follows the scroll */
.course-page .row > .col-lg-4 { display: flex; flex-direction: column; }
.course-sidebar { flex: 1; display: flex; flex-direction: column; }
.sidebar-sticky { position: sticky; top: 104px; margin-top: 20px; }
.side-card { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: 24px; box-shadow: 0 20px 40px -34px rgba(20, 18, 58, .45); }
.side-card + .side-card { margin-top: 20px; }
.side-card h3 { color: var(--c-ink); font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.side-card > p { color: var(--c-muted); font-size: 14px; margin: 0 0 16px; }
.side-form .form-group { margin-bottom: 12px; }
.side-form .form-control {
  height: 48px !important; border-radius: 12px !important;
  border: 1.5px solid var(--c-line) !important; background: var(--c-soft) !important;
  color: var(--c-ink) !important; font-size: 14.5px !important; padding: 0 14px !important;
}
.side-form textarea.form-control { height: 120px !important; padding: 12px 14px !important; }
.side-form .form-control:focus { border-color: var(--c-red) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(208, 60, 30, .12) !important; }
.side-form .cnk-btn-solid { width: 100%; border: 0; margin-top: 4px; }
.side-form .thankyou_message { padding: 14px; border-radius: 12px; background: #e8f7ee; color: var(--c-green); font-weight: 600; }
.side-courses .grp { margin-top: 14px; }
.side-courses .grp:first-of-type { margin-top: 6px; }
.side-courses .grp-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.side-courses .grp-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c-red)); }
.side-courses .grp.allied { --dot: #16a34a; }
.side-courses .grp.physio { --dot: #4b3fc4; }
.side-courses a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 10px;
  color: var(--c-text); font-size: 14.5px; font-weight: 500;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.side-courses a::after { content: "\203A"; font-size: 18px; color: #c4c8d2; transition: transform .2s ease, color .2s ease; }
.side-courses a:hover, .side-courses a.active { background: #fff1ec; color: var(--c-red); padding-left: 16px; }
.side-courses a:hover::after, .side-courses a.active::after { color: var(--c-red); transform: translateX(3px); }
.side-help {
  background: linear-gradient(135deg, #14123a, #211883); color: rgba(255, 255, 255, .8); border: 0;
  position: relative; overflow: hidden;
}
.side-help h3 { color: #fff; }
.side-help > p { color: rgba(255, 255, 255, .75); }
.side-help::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed rgba(255, 204, 0, .3); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 18px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(37, 211, 102, .8); transition: transform .2s ease;
}
.btn-wa span { font-size: 20px; }
.btn-wa:hover { color: #fff; transform: translateY(-2px); }
.side-help .side-call { display: block; text-align: center; margin-top: 12px; color: #fff; font-weight: 600; }
.side-help .side-call:hover { color: var(--c-yellow); }

/* ---------- about page ---------- */
.ab-intro { padding: 64px 0; }
.ab-intro p { font-size: 16px; line-height: 1.8; }
.ab-collage { position: relative; padding: 0 0 60px 40px; }
.ab-collage .a1 { width: 100%; height: 400px; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(20, 18, 58, .5); }
.ab-collage .a2 { position: absolute; left: 0; bottom: 0; width: 48%; height: 200px; object-fit: cover; border-radius: 18px; border: 7px solid #fff; box-shadow: 0 24px 48px -24px rgba(20, 18, 58, .55); }
.ab-collage .ab-chip {
  position: absolute; right: 18px; bottom: 30px;
  padding: 14px 18px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px -20px rgba(20, 18, 58, .5);
  animation: badge-bob 4s ease-in-out infinite;
}
.ab-chip span { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c-red), var(--c-orange)); color: #fff; font-size: 22px; }
.ab-chip strong { display: block; color: var(--c-ink); font-size: 18px; line-height: 1.1; }
.ab-chip small { color: var(--c-muted); font-size: 12.5px; }
.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.ab-values div { padding: 16px; border-radius: 16px; background: var(--c-soft); border: 1px solid var(--c-line); text-align: center; transition: transform .25s ease, background .25s ease; }
.ab-values div:hover { transform: translateY(-4px); background: #fff1ec; }
.ab-values span { font-size: 26px; color: var(--c-red); }
.ab-values strong { display: block; color: var(--c-ink); font-size: 15px; margin-top: 4px; }

.ab-trust { padding: 0 0 64px; }
.ab-trust-box {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 44px;
  background: linear-gradient(135deg, #14123a 0%, #211883 100%);
  color: rgba(255, 255, 255, .82);
}
.ab-trust-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed rgba(255, 204, 0, .3); animation: ring-spin 30s linear infinite; }
.ab-trust-box blockquote { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.3; margin: 12px 0 14px; }
.ab-trust-box blockquote span { color: var(--c-yellow); }
.ab-trust-box p { font-size: 16px; line-height: 1.8; margin: 0; }
.ab-vision { margin-top: 0; height: 100%; background: #fff; border-radius: 22px; padding: 30px; color: var(--c-text); border: 1px solid rgba(255, 255, 255, .2); }
.ab-vision h3 { color: var(--c-ink); font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ab-vision h3 span { color: var(--c-red); font-size: 26px; }
.ab-vision p { font-size: 15px; line-height: 1.75; color: var(--c-text); }

.ab-chairman { padding: 64px 0; background: var(--c-soft); }
.ab-chair-photo { position: relative; max-width: 380px; margin: 0 auto; }
.ab-chair-photo img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(20, 18, 58, .5); position: relative; z-index: 1; }
.ab-chair-photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: 24px; background: linear-gradient(135deg, var(--c-red), var(--c-orange)); opacity: .9; }
.ab-chair-name { margin-top: 34px; text-align: center; }
.ab-chair-name strong { display: block; color: var(--c-ink); font-size: 18px; }
.ab-chair-name span { color: var(--c-red); font-weight: 600; font-size: 14px; }
.ab-message { position: relative; }
.ab-message .qmark { font-size: 80px; line-height: .6; color: rgba(208, 60, 30, .15); font-family: Georgia, serif; display: block; height: 40px; }
.ab-message p { font-size: 17px; line-height: 1.85; color: var(--c-text); }

/* ---------- facilities page ---------- */
.fac-strip { padding: 48px 0 8px; }
.fac-pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fac-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line);
  color: var(--c-ink); font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 30px -28px rgba(20, 18, 58, .5);
  transition: transform .25s ease, border-color .25s ease;
}
.fac-pill:hover { transform: translateY(-4px); border-color: rgba(208, 60, 30, .35); }
.fac-pill span { flex: 0 0 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff1ec; color: var(--c-red); font-size: 22px; transition: background .25s ease, color .25s ease, transform .25s ease; }
.fac-pill:hover span { background: linear-gradient(135deg, var(--c-red), var(--c-orange)); color: #fff; transform: rotate(-8deg); }

.fac-row { padding: 36px 0; }
.fac-row + .fac-row { border-top: 1px dashed var(--c-line); }
.fac-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 28px 56px -32px rgba(20, 18, 58, .55); }
.fac-img img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .8s ease; }
.fac-img:hover img { transform: scale(1.06); }
.fac-img .fac-num { position: absolute; left: 18px; top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--c-red); font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.fac-text h2 { color: var(--c-ink); font-size: 30px; font-weight: 700; margin: 10px 0 12px; }
.fac-text p { font-size: 16px; line-height: 1.8; }
.fac-rules { padding: 56px 0 72px; background: var(--c-soft); }

/* ---------- clinical page ---------- */
.clin-intro { padding: 56px 0 24px; }
.clin-grid { padding: 8px 0 72px; }
.hosp-card {
  position: relative; display: block; height: 100%;
  border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--c-line);
  box-shadow: 0 20px 40px -32px rgba(20, 18, 58, .5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.hosp-card:hover { transform: translateY(-8px); box-shadow: 0 30px 56px -30px rgba(20, 18, 58, .55); }
.hosp-img { height: 190px; overflow: hidden; position: relative; }
.hosp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hosp-card:hover .hosp-img img { transform: scale(1.08); }
.hosp-img .hosp-badge { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(20, 18, 58, .75); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.hosp-body { padding: 18px 20px 20px; display: flex; gap: 12px; align-items: flex-start; }
.hosp-body > span { flex: 0 0 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff1ec; color: var(--c-red); font-size: 20px; }
.hosp-body h3 { color: var(--c-ink); font-size: 16.5px; font-weight: 700; line-height: 1.4; margin: 0; }

/* ---------- contact page ---------- */
.ct-cards { padding: 56px 0 24px; }
.ct-card {
  height: 100%; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--c-line);
  box-shadow: 0 20px 40px -34px rgba(20, 18, 58, .45);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.ct-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c-red), var(--c-orange)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.ct-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(20, 18, 58, .5); }
.ct-card:hover::after { transform: scaleX(1); }
.ct-card > span { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff1ec; color: var(--c-red); font-size: 26px; margin-bottom: 16px; }
.ct-card.wa > span { background: #e8f9ef; color: #25d366; }
.ct-card h3 { color: var(--c-ink); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ct-card p, .ct-card a { color: var(--c-text); font-size: 15px; line-height: 1.7; margin: 0; }
.ct-card a:hover { color: var(--c-red); }
.ct-main { padding: 24px 0 72px; }
.ct-map { height: 100%; min-height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 20px 40px -34px rgba(20, 18, 58, .45); }
.ct-map iframe { width: 100% !important; height: 100% !important; min-height: 420px; display: block; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 34px; }
  .course-sidebar { margin-top: 30px; }
  .sidebar-sticky { position: static; }
  .ab-collage { padding-left: 24px; margin-top: 30px; }
  .ab-vision { margin-top: 24px; height: auto; }
  .fac-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-row .fac-text { margin-top: 22px; }
  .ct-map { margin-top: 24px; }
}
@media (max-width: 767.98px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 15px; }
  .crumbs { font-size: 12px; }
  .page-hero::after { width: 220px; height: 220px; right: -90px; top: -90px; }
  .course-page { padding: 32px 0 48px; }
  .ip-card, .course-overview { padding: 20px; border-radius: 16px; }
  .course-overview h2.course-title { font-size: 22px; }
  .ip-card h2 { font-size: 19px; }
  .ip-card h2 .ip-ico { flex-basis: 36px; height: 36px; font-size: 19px; }
  .course-facts { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 18px; }
  .course-actions > a { flex: 1 1 100%; justify-content: center; }
  .course-media img { height: 220px; }
  .side-card { padding: 20px; }
  .ab-intro, .ab-chairman { padding: 40px 0; }
  .ab-collage .a1 { height: 260px; }
  .ab-collage .a2 { height: 130px; }
  .ab-values { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ab-values div { padding: 12px 6px; }
  .ab-values strong { font-size: 13px; }
  .ab-trust { padding-bottom: 40px; }
  .ab-trust-box { padding: 26px 20px; border-radius: 20px; }
  .ab-trust-box blockquote { font-size: 22px; }
  .ab-vision { padding: 22px; }
  .ab-message p { font-size: 15.5px; }
  .fac-strip { padding-top: 32px; }
  .fac-pill { padding: 12px; font-size: 13.5px; gap: 10px; }
  .fac-pill span { flex-basis: 36px; height: 36px; font-size: 18px; }
  .fac-row { padding: 26px 0; }
  .fac-img img { height: 220px; }
  .fac-text h2 { font-size: 23px; }
  .fac-rules { padding: 40px 0 48px; }
  .hosp-img { height: 170px; }
  .ct-cards { padding-top: 32px; }
  .ct-map, .ct-map iframe { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-bg, .page-hero::after, .ab-trust-box::after, .ab-collage .ab-chip { animation: none; }
}

/* clinical page: photos from the wards */
.clin-photos { padding: 16px 0 40px; }
.clin-photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 210px 210px; gap: 16px; }
.clin-photo-grid a { position: relative; display: block; overflow: hidden; border-radius: 20px; box-shadow: 0 24px 48px -30px rgba(20, 18, 58, .6); }
.clin-photo-grid .cp-big { grid-row: span 2; }
.clin-photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.clin-photo-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 18, 58, .8)); }
.clin-photo-grid span { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-weight: 700; font-size: 16px; }
.clin-photo-grid a:hover img { transform: scale(1.06); }
@media (max-width: 767.98px) {
  .clin-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px; gap: 10px; }
  .clin-photo-grid .cp-big { grid-column: span 2; grid-row: span 1; }
  .clin-photo-grid a { border-radius: 14px; }
  .clin-photo-grid span { font-size: 13px; left: 12px; bottom: 10px; }
}

/* contact: map + directions button */
.ct-map-wrap { height: 100%; display: flex; flex-direction: column; gap: 14px; }
.ct-map-wrap .ct-map { flex: 1; }
.ct-dir {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--c-line); color: var(--c-ink); font-weight: 700;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ct-dir span { color: var(--c-red); font-size: 20px; }
.ct-dir:hover { border-color: var(--c-red); color: var(--c-red); transform: translateY(-2px); }
@media (max-width: 991.98px) { .ct-map-wrap { margin-top: 24px; } .ct-map-wrap .ct-map { margin-top: 0; } }
