/* YCB level dedicated pages — student-friendly layout */

/* Main column = viewport width (no horizontal spill) — EN body.page-ycl-guide + HI pages (:has) */
body.page-ycb .main-content,
main.main-content:has(.ycl-shell) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-ycb .main-content > .container,
main.main-content:has(.ycl-shell) > .container {
  min-width: 0;
  box-sizing: border-box;
}

/* ycb.html hub — was inline max-width; cap to viewport */
body.page-ycb:not(.page-ycl-guide) .main-content > .container.ycb-page-main {
  width: 100%;
  max-width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.page-ycb:not(.page-ycl-guide) .ycb-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-ycl-guide .ycl-shell {
  --ycl-accent: var(--primary-red);
}

.ycl-shell {
  width: 100%;
  max-width: min(var(--ycl-shell-max, 920px), 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 20px) 48px;
  box-sizing: border-box;
}

.ycl-breadcrumb {
  font-size: 14px;
  margin: 18px 0 14px;
  color: #555;
}
.ycl-breadcrumb a {
  color: var(--primary-red);
  font-weight: 600;
}
.ycl-breadcrumb .sep {
  color: #bbb;
  margin: 0 6px;
}

.ycl-hero {
  border-radius: 14px;
  padding: 24px 24px 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #fff 0%, #f6f8fc 100%);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  border-left: 4px solid var(--ycl-accent, var(--primary-red));
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ycl-hero__text {
  flex: 1;
  min-width: 0;
}
.ycl-hero__logo {
  flex-shrink: 0;
  width: 90px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ycl-hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .ycl-hero { flex-direction: column; align-items: stretch; }
  .ycl-hero__logo { width: 60px; align-self: center; order: -1; }
}
.ycl-hero .ycl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 13px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-family: inherit;
}
.ycl-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.22;
  margin: 0 0 12px;
  color: #111827;
  letter-spacing: -0.02em;
}
.ycl-hero .ycl-lead {
  font-size: 1.07rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.ycl-study-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e3a5f;
  background: linear-gradient(90deg, #e8f4fc 0%, #f0f7ff 100%);
  border-radius: 10px;
  border: 1px solid #c5ddf0;
}
.ycl-study-hint i {
  margin-top: 3px;
  color: #1565c0;
  flex-shrink: 0;
}

.ycl-snap {
  display: grid;
  gap: 12px;
  margin: 8px 0 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ycl-snap {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ycl-snap-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ycl-snap-card strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.ycl-section {
  background: #fafbfc;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  border-left: 3px solid transparent;
}
.ycl-section h2 {
  font-size: 1.14rem;
  color: #111827;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ycl-section h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #1a1a1a;
  font-weight: 700;
}
.ycl-section p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.68;
  color: #374151;
}
.ycl-section p:last-child {
  margin-bottom: 0;
}

.ycl-section--fees {
  background: linear-gradient(180deg, #fffefb 0%, #faf8f5 100%);
  border-color: #ebe5dc;
}
.ycl-section--path {
  border-left-color: var(--ycl-accent, var(--primary-red));
  background: #fff;
}

.ycl-fees-grid {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .ycl-fees-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ycl-fees-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
}
.ycl-fees-card h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ycl-fees-card h3 i {
  opacity: 0.9;
}
.ycl-fees-card p {
  font-size: 14px;
  margin: 0;
  color: #444;
  line-height: 1.62;
}
.ycl-fees-card--ycb {
  border-color: #c8e6c9;
  background: #f1fbf1;
}

.ycl-hl-grid {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}
@media (min-width: 560px) {
  .ycl-hl-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ycl-hl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.ycl-hl-ic {
  color: var(--ycl-accent, var(--primary-red));
  margin-top: 2px;
  flex-shrink: 0;
}
.ycl-hl-ic i {
  font-size: 15px;
}

.ycl-help {
  margin: 8px 0 26px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a237e 0%, #283593 55%, #3949ab 100%);
  color: #e8eaf6;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(26, 35, 126, 0.25);
}
.ycl-help p {
  margin: 0;
}
.ycl-help strong {
  color: #fff;
}
.ycl-help a {
  color: #ffecb3 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ycl-help a:hover {
  color: #fff !important;
}

.ycl-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}
.ycl-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #374151;
}
.ycl-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ycl-accent, var(--primary-red));
  font-weight: 700;
  font-size: 13px;
}

.ycl-steps {
  counter-reset: ycl;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ycl-steps li {
  counter-increment: ycl;
  position: relative;
  padding: 13px 14px 13px 46px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.58;
  color: #374151;
}
.ycl-steps li::before {
  content: counter(ycl);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--primary-red);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.ycl-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ycl-links-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary-red);
  color: #fff !important;
}
.ycl-links-row a.ycl-btn-sec {
  background: var(--footer-black);
}

.ycl-siblings {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.ycl-siblings h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: #1a1a1a;
  font-weight: 800;
}
.ycl-siblings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ycl-siblings-grid a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333 !important;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ycl-siblings-grid a:hover {
  border-color: var(--primary-red);
  background: #fff5f5;
}
.ycl-siblings-grid a.is-current {
  border-color: var(--ycl-accent, var(--primary-red));
  color: var(--ycl-accent, var(--primary-red)) !important;
  background: #fff8f8;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.12);
}

.ycl-note {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-top: 14px;
  padding: 14px 16px;
  background: #fffbeb;
  border-radius: 10px;
  border-left: 4px solid #f59e0b;
}

/* Official YCB (AYUSH) + sample certificate — YCB guide pages */
.ycl-official-section {
  border-left-color: #2e7d32;
  background: linear-gradient(180deg, #f1f8f4 0%, #fafcfa 100%);
  border-color: #c8e6c9;
}
.ycl-official-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ycl-official-section h2 i {
  color: #2e7d32;
}
.ycl-official-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ycl-official-links li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.ycl-official-links a {
  color: var(--primary-red) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ycl-official-links a:hover {
  color: var(--accent-red) !important;
}

.ycl-cert-sample {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  border-left: 3px solid var(--ycl-accent, var(--primary-red));
}
.ycl-cert-sample h2 {
  font-size: 1.14rem;
  color: #111827;
  margin: 0 0 10px;
  font-weight: 800;
}
.ycl-cert-sample__note {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 16px;
}
.ycl-cert-sample__figure {
  margin: 0;
}
.ycl-cert-sample__frame {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
  background: #f9fafb;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  max-width: 220px;
}
.ycl-cert-sample__frame:hover {
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.16);
  transform: translateY(-2px);
}
.ycl-cert-sample__frame::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.ycl-cert-sample__frame:hover::after {
  opacity: 1;
}
.ycl-cert-sample__frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.ycl-cert-sample figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
  font-style: italic;
}

/* Lightbox overlay */
.ycl-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.ycl-lightbox.is-open {
  display: flex;
}
.ycl-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.ycl-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ycl-lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}
