/* ============================================================
   HEADER & NAVIGATION — REBUILT FROM SCRATCH
   ============================================================ */

/* ── Site Header ── */
.ryn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #004476;
}

/* ── Top Bar ── */
.ryn-topbar {
  background: #002f4f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ryn-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0.45rem 3rem;
}
.ryn-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.ryn-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.ryn-topbar__link:hover { color: #fff; }
.ryn-topbar__right { display: flex; align-items: center; }

.ryn-social { display: flex; align-items: center; gap: 0.4rem; }
.ryn-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ryn-social__link:hover {
  background: #9F2E2B;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Main Nav ── */
.ryn-nav {
  background: #004476;
  position: relative;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}
.ryn-nav__inner {
  display: flex;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0.8rem 3rem;
}

.ryn-nav__logo { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.ryn-nav__logo img { height: 4rem; width: auto; display: block; }

/* Desktop nav list — margin-left:auto pushes it to the right */
.ryn-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.ryn-nav__item { position: relative; }

.ryn-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.ryn-nav__btn:hover,
.ryn-nav__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ryn-caret {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
}
.ryn-nav__btn[aria-expanded="true"] .ryn-caret { transform: rotate(180deg); }

.ryn-nav__sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 0.6rem;
  flex-shrink: 0;
}

.ryn-nav__outline {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.ryn-nav__outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ryn-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #A02F2A 0%, #CD4B21 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(160, 47, 42, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.ryn-nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(160, 47, 42, 0.55);
  filter: brightness(1.08);
  color: #fff;
}

/* ── Dropdowns ── */
.ryn-has-drop { position: relative; }

.ryn-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 500;
}
.ryn-has-drop:hover .ryn-drop,
.ryn-has-drop:focus-within .ryn-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ryn-drop__link {
  display: block;
  padding: 0.65rem 1rem;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}
.ryn-drop__link:hover,
.ryn-drop__link.active {
  background: #FFF3F3;
  color: #9F2E2B;
  padding-left: 1.35rem;
}

/* ── Mega Menu ── */
.ryn-has-mega { position: static; }

.ryn-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(760px, calc(100vw - 4rem));
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.13), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 500;
}
.ryn-has-mega:hover .ryn-mega,
.ryn-has-mega:focus-within .ryn-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ryn-mega__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(135deg, #004476 0%, #005fa0 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: filter 0.2s;
}
.ryn-mega__all:hover { filter: brightness(1.1); color: #fff; }
.ryn-mega__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}
.ryn-mega__label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9F2E2B;
  padding: 0.2rem 0.75rem 0.45rem;
  margin-bottom: 0.15rem;
  position: relative;
  display: block;
}
.ryn-mega__label::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, #9F2E2B, #CD4B21);
  border-radius: 2px;
}
.ryn-mega__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.ryn-mega__link:hover { background: #FFF3F3; transform: translateX(3px); }
.ryn-mega__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2b3c;
  display: block;
}
.ryn-mega__link:hover .ryn-mega__title { color: #9F2E2B; }
.ryn-mega__desc {
  font-size: 11.5px;
  color: #999;
  line-height: 1.3;
  display: block;
}

/* ── Hamburger ── */
.ryn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  margin-left: 1.25rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ryn-hamburger:hover { background: rgba(255, 255, 255, 0.18); }
.ryn-hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.25s, width 0.3s;
  transform-origin: center;
}
.ryn-hamburger.open .ryn-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ryn-hamburger.open .ryn-hamburger__bar:nth-child(2) { opacity: 0; width: 0; }
.ryn-hamburger.open .ryn-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Drawer ── */
.ryn-mob-nav {
  position: fixed;
  top: 0;
  right: -110%;
  width: min(340px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 2000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}
.ryn-mob-nav.open { right: 0; }

.ryn-mob-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #004476;
  flex-shrink: 0;
}
.ryn-mob-nav__head img { height: 3rem; width: auto; }
.ryn-mob-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ryn-mob-nav__close:hover { background: rgba(255, 255, 255, 0.28); }

.ryn-mob-nav__body {
  padding: 0.75rem 1rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ryn-mob-list { list-style: none; padding: 0; margin: 0; }
.ryn-mob-item { border-bottom: 1px solid #f0f0f0; }
.ryn-mob-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0.25rem;
  background: transparent;
  border: none;
  color: #1a2b3c;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
}
.ryn-mob-caret { flex-shrink: 0; color: #bbb; transition: transform 0.25s; }
.ryn-mob-acc.open .ryn-mob-caret { transform: rotate(180deg); }
.ryn-mob-acc.open .ryn-mob-btn { color: #9F2E2B; }

.ryn-mob-sub {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.ryn-mob-acc.open .ryn-mob-sub { max-height: 700px; }
.ryn-mob-sub li a {
  display: block;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  border-left: 2px solid #e8e8e8;
  margin: 2px 0 2px 0.5rem;
  border-radius: 0 6px 6px 0;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ryn-mob-sub li a:hover,
.ryn-mob-sub li a.active { border-color: #9F2E2B; color: #9F2E2B; background: #FFF7F7; }

.ryn-mob-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 0 1rem;
  margin-top: auto;
}
.ryn-mob-cta-primary {
  display: block;
  text-align: center;
  padding: 0.9rem;
  background: linear-gradient(135deg, #A02F2A, #CD4B21);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(160, 47, 42, 0.35);
  text-decoration: none;
  transition: filter 0.2s;
}
.ryn-mob-cta-primary:hover { filter: brightness(1.08); color: #fff; }
.ryn-mob-cta-outline {
  display: block;
  text-align: center;
  padding: 0.9rem;
  border: 2px solid #004476;
  color: #004476;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ryn-mob-cta-outline:hover { background: #004476; color: #fff; }

.ryn-mob-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 0.5rem;
}
.ryn-mob-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #666;
  text-decoration: none;
}
.ryn-mob-contact a:hover { color: #9F2E2B; }

.ryn-mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.ryn-mob-overlay.show { opacity: 1; visibility: visible; }

/* ── Mobile CTA Bar (fixed bottom bar — mobile only) ── */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  }
  .mobile-cta-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.6rem 0.25rem;
    font-size: 11px;
    font-weight: 600;
    color: #004476;
    text-decoration: none;
    border-right: 1px solid #eee;
    transition: background 0.2s;
  }
  .mobile-cta-bar a:last-child { border-right: none; }
  .mobile-cta-bar a:hover { background: #f5f5f5; }
  .mobile-cta-bar .mcta-book {
    background: linear-gradient(135deg, #A02F2A, #CD4B21);
    color: #fff;
  }
  .mobile-cta-bar .mcta-book:hover { filter: brightness(1.08); background: linear-gradient(135deg, #A02F2A, #CD4B21); }
  body { padding-bottom: 60px; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ryn-nav__list  { display: none; }
  .ryn-hamburger  { display: flex; }
  .ryn-topbar__inner { padding: 0.4rem 1.25rem; }
  .ryn-nav__inner    { padding: 0.65rem 1.25rem; }
  .ryn-nav__logo img { height: 3.25rem; }
}

@media (min-width: 992px) {
  .ryn-mob-nav,
  .ryn-mob-overlay { display: none !important; }
  .ryn-hamburger   { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ryn-nav__inner    { padding: 0.7rem 1.5rem; }
  .ryn-topbar__inner { padding: 0.4rem 1.5rem; }
  .ryn-nav__btn      { font-size: 13.5px; padding: 0.45rem 0.7rem; }
  .ryn-nav__outline,
  .ryn-nav__cta      { font-size: 13px; padding: 0.5rem 1rem; }
  .ryn-nav__logo img { height: 3.5rem; }
}

@media (min-width: 1200px) {
  .ryn-nav__inner    { padding: 0.8rem 3rem; }
  .ryn-topbar__inner { padding: 0.45rem 3rem; }
}

/* 2026-07-31 — heading-hierarchy fix (size pins).
   Course-curriculum / feature-card sub-headings were <h5> and <h6> sitting
   directly under an <h2>, skipping heading levels. They were promoted to <h3>
   for a valid document outline. These two rules pin the rendered size to what
   the old tags produced (Bootstrap h5 = 1.25rem, h6 = 1rem) so the pages look
   exactly as before. Placed here rather than in css/style.css because most of
   the affected pages (aerial, ashtanga, nidra, prenatal) load only this
   stylesheet plus Bootstrap from CDN. */
.ff-heading--sub {
  font-size: 1.25rem;
}
.ff-heading--sub3 {
  font-size: 1rem;
}
