/* Homepage only. Shared site navigation and all interior pages remain in styles/main.css. */
.home-course {
  --home-ink: #3d3025;
  --home-brown: #5a4330;
  --home-gold: #b58a3d;
  --home-gold-light: #e8d5a7;
  --home-cream: #f8f1e3;
  --home-paper: #fffdf8;
  --home-sand: #efe1c7;
  --home-shadow: 0 18px 42px rgba(77, 55, 32, .13);
  background: var(--home-cream);
  color: var(--home-ink);
  font-family: Assistant, Arial, sans-serif;
  line-height: 1.78;
}

.home-course h1, .home-course h2, .home-course .brand, .home-course .btn {
  font-family: "Frank Ruhl Libre", David, serif;
}

.home-course .site-header { background: rgba(255, 253, 248, .97); border-color: rgba(181, 138, 61, .4); }
.home-course .header-inner { height: 78px; }
.home-course .brand, .home-course .main-nav a { color: var(--home-ink); }
.home-course .brand { font-size: 1.12rem; }
.home-course .nav-cta { background: var(--home-gold); color: #fffdf8 !important; }
.home-course .nav-toggle i { display: block; width: 25px; height: 2px; margin: 5px; background: var(--home-ink); }

.home-course .hero {
  min-height: 710px;
  padding: 0;
  background-color: var(--home-cream);
  background-image: none;
}
.home-course .hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -265px; top: 112px;
  border: 1px solid rgba(181,138,61,.65); border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(181,138,61,.055), 0 0 0 50px rgba(181,138,61,.025);
}
.home-course .hero::after {
  content: ""; position: absolute; left: 7%; bottom: -1px; width: 248px; height: 185px;
  border: 1px solid rgba(181,138,61,.48); border-bottom: 0; border-radius: 140px 140px 0 0;
}
.home-course .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 710px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: stretch;
  padding: 0;
}
.home-course .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 142px 5vw 94px 3vw;
  background: var(--home-paper);
}
.home-course .eyebrow { margin: 0 0 13px; color: var(--home-gold); font-size: .83rem; font-weight: 700; letter-spacing: .11em; }
.home-course h1, .home-course h2 { color: var(--home-ink); line-height: 1.16; }
.home-course h1 { max-width: 670px; margin: 0; font-size: clamp(3.05rem, 5.5vw, 5.35rem); text-shadow: 0 1px 0 #fff; }
.home-course h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
.home-course .hero-lead { margin: 15px 0 3px; color: var(--home-brown); font-size: 1.42rem; font-weight: 700; }
.home-course .hero-text { max-width: 560px; margin: 15px 0 29px; color: #59493b; font-size: 1.16rem; }
.home-course .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-course .btn { min-height: 54px; padding: 12px 28px; border-radius: 3px 3px 19px 3px; font-size: 1.08rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.home-course .btn:hover { transform: translateY(-2px); }
.home-course .btn-primary { color: #fffdf8; background: var(--home-brown); box-shadow: 0 10px 22px rgba(90,67,48,.2); }
.home-course .btn-secondary { color: var(--home-ink); background: rgba(255,253,248,.78); border: 1px solid rgba(90,67,48,.55); }
.home-course .hero-image {
  display: block;
  min-height: 710px;
  background:
    linear-gradient(90deg, rgba(248,241,227,.16) 0%, transparent 32%, transparent 100%),
    url("../assets/img/hero/rav-escribiendo-sefer-torah.webp") center 23% / cover no-repeat;
}
.home-course .image-backdrop, .home-course .hero-ornament { display: none; }

.home-course section { padding: 100px 0; }
.home-course .video-section { background: var(--home-paper); }
.home-course .video-layout, .home-course .course-layout, .home-course .closing-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(42px,8vw,112px); align-items: center; }
.home-course .video-copy p:not(.eyebrow), .home-course .course-copy p:not(.eyebrow), .home-course .evening-copy p:not(.eyebrow), .home-course .closing-copy p:not(.eyebrow) { max-width: 500px; margin: 18px 0 0; color: #5b4c3e; font-size: 1.1rem; }
.home-course .video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(181,138,61,.72); border-radius: 132px 132px 7px 7px; background: var(--home-brown); box-shadow: var(--home-shadow); }
.home-course .video-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 35%, rgba(90,67,48,.28)); }
.home-course .video-frame img, .home-course .video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.home-course .video-play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 150px; height: 150px; border: 1px solid rgba(181,138,61,.75); border-radius: 50%; background: rgba(255,253,248,.97); color: var(--home-brown); box-shadow: 0 12px 26px rgba(60,43,29,.18); font: 700 1rem "Frank Ruhl Libre", David, serif; cursor: pointer; }
.home-course .video-play span { display: block; margin-bottom: 4px; font-size: 1.65rem; }

/* Faint eight-point geometry, kept on pale parchment rather than a dark panel. */
.home-course .method-section, .home-course .evening-section, .home-course .closing-section {
  position: relative; overflow: hidden; background-color: #fbf5e9;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(181,138,61,.105) 47%, rgba(181,138,61,.105) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(181,138,61,.105) 47%, rgba(181,138,61,.105) 53%, transparent 54%);
  background-size: 38px 38px;
}
.home-course .method-section::before, .home-course .course-section::before, .home-course .evening-section::before, .home-course .closing-section::before { content: ""; position: absolute; inset: 0; background: rgba(255,253,248,.82); }
.home-course .method-section::after, .home-course .course-section::after, .home-course .closing-section::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(181,138,61,.46); border-left: 0; border-radius: 0 140px 0 0; pointer-events: none; }
.home-course .split-layout, .home-course .course-layout, .home-course .evening-layout, .home-course .closing-layout { position: relative; z-index: 1; }
.home-course .split-layout, .home-course .course-layout, .home-course .closing-layout { display: block; }
.home-course .method-copy, .home-course .course-copy, .home-course .closing-copy { max-width: 650px; }
.home-course .benefits-list { max-width: 630px; padding: 0; margin: 30px 0 0; list-style: none; display: grid; gap: 17px; }
.home-course .benefits-list li { position: relative; padding-right: 29px; color: #4e4033; font-size: 1.1rem; }
.home-course .benefits-list li::before { content: ""; position: absolute; right: 1px; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--home-gold); box-shadow: 0 0 0 4px rgba(181,138,61,.14); }

.home-course .course-section { position: relative; overflow: hidden; background-color: var(--home-cream); background-image: linear-gradient(90deg, rgba(255,253,248,.96) 0%, rgba(255,253,248,.9) 48%, rgba(255,253,248,.38) 100%), url("../assets/img/site/institute-space.webp"); background-size: cover; background-position: center; }
.home-course .course-section::before { background: transparent; }
.home-course .evening-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px,8vw,112px); align-items: center; }
.home-course .class-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 27px; background: rgba(255,253,248,.96); color: var(--home-ink); border: 1px solid rgba(181,138,61,.7); border-radius: 4px 70px 4px 70px; box-shadow: var(--home-shadow); }
.home-course .class-times div { padding: 19px 14px; border-bottom: 3px solid var(--home-gold); background: #fbf3e5; }
.home-course .class-times strong, .home-course .class-times span { display: block; }
.home-course .class-times strong { color: var(--home-brown); }
.home-course .class-times span { margin-top: 3px; font-family: "Frank Ruhl Libre", David, serif; font-weight: 700; font-size: 1.3rem; direction: ltr; text-align: right; }
.home-course .class-times p { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; color: #64594d; }

.home-course .closing-section { background-image: linear-gradient(90deg, rgba(255,253,248,.97) 0%, rgba(255,253,248,.93) 52%, rgba(255,253,248,.32) 100%), url("../assets/img/site/ancient-manuscript.webp"); background-size: cover; background-position: center; }
.home-course .closing-section::before { background: transparent; }
.home-course .closing-copy .hero-actions { margin-top: 28px; }
.home-course .site-footer { background: #f2e6d0; border-top: 1px solid rgba(181,138,61,.5); }
.home-course .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.home-course .footer-brand, .home-course .site-footer a:not(.footer-brand) { color: var(--home-brown); }
.home-course .site-footer > p { color: rgba(61,48,37,.68); text-align: center; margin: 16px 0 0; }

@media (max-width: 820px) {
  .home-course .main-nav { top: 78px; background: #fffdf8; }
  .home-course .hero { min-height: 0; }
  .home-course .hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .home-course .hero-copy { padding: 112px 24px 64px; }
  .home-course .hero-image { min-height: 440px; background-position: center 25%; }
  .home-course .video-layout, .home-course .evening-layout { grid-template-columns: 1fr; gap: 42px; }
  .home-course section { padding: 74px 0; }
}
@media (max-width: 520px) {
  .home-course .wrap { padding: 0 18px; }
  .home-course h1 { font-size: 3rem; }
  .home-course .btn { width: 100%; }
  .home-course .hero-actions { display: grid; }
  .home-course .video-frame { border-radius: 78px 78px 12px 12px; }
  .home-course .video-play { width: 130px; height: 130px; }
  .home-course .class-times { grid-template-columns: 1fr; padding: 18px; border-radius: 12px 54px 12px 54px; }
}
