/* ==========================================================================
   Inner pages — hero, breadcrumbs, course cards, detail layout, forms
   ========================================================================== */

/* ── PAGE HERO ───────────────────────────────────────────────────────── */
.page-hero {
  position: relative; margin-top: var(--chrome-h);
  min-height: 340px; display: flex; align-items: center;
  background: var(--dark-2) center/cover no-repeat;
  padding: 3.5rem 5%; overflow: hidden;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,12,0,.9) 0%, rgba(10,12,0,.68) 55%, rgba(10,12,0,.35) 100%);
}
.page-hero-accent { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-hero-accent::after {
  content: ''; position: absolute; top: 0; right: -15%; width: 42%; height: 100%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%); opacity: .15;
}
.accent-gold .page-hero-accent::after { background: var(--gold); }
.accent-lime .page-hero-accent::after { background: var(--lime); }
.accent-red  .page-hero-accent::after { background: var(--red); }

.page-hero-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 3; }
.accent-gold .page-hero-bar { background: var(--gold); }
.accent-lime .page-hero-bar { background: var(--lime); }
.accent-red  .page-hero-bar { background: var(--red); }

.page-hero-inner { position: relative; z-index: 2; max-width: 1300px; margin: 0 auto; width: 100%; }
.page-hero-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -1px;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); max-width: 780px;
}
.page-hero-lead {
  margin-top: 1.1rem; max-width: 560px; font-size: 1.02rem; line-height: 1.75;
  color: rgba(255,255,255,.72); text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ── BREADCRUMB ──────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; font-size: .78rem; }
.breadcrumb li + li::before { content: '›'; color: rgba(255,255,255,.3); font-weight: 700; }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold); font-weight: 600; }

/* ── SECTION SHELLS ──────────────────────────────────────────────────── */
.pad { padding: 5.5rem 5%; }
.pad-sm { padding: 3.5rem 5%; }
.wrap { max-width: 1300px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark); }
.bg-dark .section-h2, .bg-dark .section-h3 { color: var(--white); }
.bg-dark .section-body { color: rgba(255,255,255,.42); }
.bg-dark .section-tag { background: rgba(255,188,0,.13); color: var(--gold); }

/* ── PROSE ───────────────────────────────────────────────────────────── */
.prose p { font-size: 1rem; line-height: 1.85; color: var(--gray); margin-bottom: 1.1rem; }
.prose p strong { color: var(--dark); font-weight: 700; }
.prose h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--dark); margin: 2rem 0 .8rem; }
.prose ul { margin: 0 0 1.2rem 1.1rem; color: var(--gray); line-height: 1.8; }
.pull-quote {
  border-left: 4px solid var(--gold); background: var(--gold-pale);
  padding: 1.4rem 1.6rem; border-radius: 0 12px 12px 0; margin: 2rem 0;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem;
  line-height: 1.6; color: var(--dark);
}

/* ── COURSE CARD GRID ────────────────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course-grid-2 { grid-template-columns: repeat(2, 1fr); }
.course-card {
  background: var(--white); border: 1px solid rgba(0,0,0,.05); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  position: relative; transition: transform .3s, box-shadow .3s;
}
.course-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 2;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.09); }
.course-card:hover::before { transform: scaleX(1); }
.course-card-img { position: relative; height: 200px; overflow: hidden; background: var(--light-gray); }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.course-card:hover .course-card-img img { transform: scale(1.06); }
.course-card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--dark);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.course-card-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.course-card-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--dark); margin-bottom: .55rem; }
.course-card-desc { font-size: .88rem; color: var(--gray); line-height: 1.7; margin-bottom: 1.1rem; }
.code-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.2rem; }
.code-chip {
  font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; background: var(--gold-pale); color: var(--gold-deep);
  border: 1px solid rgba(212,154,0,.2); border-radius: 6px; transition: all .2s;
}
.course-card:hover .code-chip { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  color: var(--gold-deep); font-weight: 600; font-size: .85rem; text-decoration: none;
  transition: gap .2s, color .2s;
}
.course-card:hover .card-link { gap: 10px; color: var(--red); }

/* ── COURSE DETAIL LAYOUT ────────────────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.detail-main .lede { font-size: 1.08rem; line-height: 1.8; color: var(--gray); margin-bottom: 2rem; }
.detail-figure { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(29,32,0,.12); margin-bottom: 2.2rem; }
.detail-figure img { width: 100%; height: 360px; object-fit: cover; display: block; }
.detail-figure figcaption { font-size: .78rem; color: var(--gray); padding: .7rem 1rem; background: var(--light-gray); }

/* ── COURSE TABLE ────────────────────────────────────────────────────── */
.course-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.course-table-head {
  display: grid; grid-template-columns: 1fr 150px; gap: 1rem; padding: .85rem 1.3rem;
  background: var(--dark); color: rgba(255,255,255,.55);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.course-row {
  display: grid; grid-template-columns: 1fr 150px; gap: 1rem; align-items: center;
  padding: .95rem 1.3rem; border-top: 1px solid var(--border); transition: background .2s;
}
.course-row:nth-child(even) { background: #fcfcf4; }
.course-row:hover { background: var(--gold-pale); }
.course-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .98rem; color: var(--dark); }
.course-name small { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: .76rem; color: var(--gray); margin-top: 2px; }
.course-code code {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  background: var(--dark); color: var(--gold); padding: 5px 11px; border-radius: 6px;
}
.course-code-none { font-size: .78rem; color: var(--gray); font-style: italic; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────── */
.course-side { position: sticky; top: calc(var(--chrome-h) + 20px); display: flex; flex-direction: column; gap: 1.2rem; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.info-card p { font-size: .87rem; line-height: 1.7; color: var(--gray); margin-bottom: 1rem; }
.info-card-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: 1rem; }
.info-card-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--lime) 140%); border-color: transparent; }
.info-card-gold p { color: rgba(29,32,0,.62); }
.fact-list { display: flex; flex-direction: column; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact dt { font-size: .8rem; color: var(--gray); }
.fact dd { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .85rem; color: var(--dark); text-align: right; }
.side-links { list-style: none; display: flex; flex-direction: column; gap: .1rem; }
.side-links a {
  display: flex; align-items: center; gap: 8px; padding: .6rem .2rem;
  font-size: .87rem; font-weight: 500; color: var(--gray); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: all .18s;
}
.side-links li:last-child a { border-bottom: 0; }
.side-links a::before { content: '›'; font-weight: 800; color: var(--gold-deep); }
.side-links a:hover { color: var(--gold-deep); padding-left: .6rem; }

/* ── STEPS ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem 1.7rem; position: relative;
}
.step-num {
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: .75rem; color: var(--gold-deep);
  letter-spacing: .1em; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.step h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: .5rem; }
.step p { font-size: .87rem; color: var(--gray); line-height: 1.7; }

/* ── TERM / TIMELINE ─────────────────────────────────────────────────── */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.term {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0; padding: 1.5rem 1.6rem;
}
.term-month { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--dark); line-height: 1; }
.term-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-top: .5rem; }
.term p { font-size: .85rem; color: var(--gray); line-height: 1.65; margin-top: .7rem; }

/* ── EVENT LIST ──────────────────────────────────────────────────────── */
.event-card {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; margin-bottom: 1.5rem; transition: box-shadow .3s, transform .3s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(0,0,0,.09); }
.event-card-img { position: relative; background: var(--light-gray); min-height: 200px; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card-body { padding: 1.8rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.event-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.pill {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; background: var(--gold-pale);
  color: var(--gold-deep); border: 1px solid rgba(212,154,0,.2);
}
.pill-lime { background: var(--lime-pale); color: var(--lime-deep); border-color: rgba(155,160,0,.2); }
.pill-red  { background: #ffecec; color: var(--red); border-color: rgba(204,17,17,.15); }
.event-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--dark); margin-bottom: .5rem; }
.event-desc { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 1.1rem; }

/* ── GALLERY ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-item {
  position: relative; border: 0; padding: 0; cursor: zoom-in; background: var(--white);
  border-radius: 14px; overflow: hidden; display: block; transition: transform .3s, box-shadow .3s;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,0,0,.16); }
.gallery-item img { width: 100%; height: 420px; object-fit: contain; object-position: center; display: block; background: #fff; }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 1rem; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff; font-size: .8rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .3s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(10,12,0,.93); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 1.4rem; cursor: pointer; transition: all .2s;
}
.lightbox-close:hover { background: var(--gold); color: var(--dark); }

/* ── EMPTY STATE ─────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; max-width: 560px; margin: 0 auto; padding: 4rem 2rem;
  border: 2px dashed rgba(0,0,0,.1); border-radius: 20px; background: var(--white);
}
.empty-icon {
  width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 20px;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.empty-state h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--dark); margin-bottom: .6rem; }
.empty-state p { font-size: .93rem; color: var(--gray); line-height: 1.7; margin-bottom: 1.6rem; }

/* ── CONTACT ─────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3.5rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.8rem 1.6rem; transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.09); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.contact-card h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--gray); line-height: 1.65; text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--gold-deep); }

.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.map-embed iframe { width: 100%; height: 340px; border: 0; }

.download-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.download-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: all .2s;
}
.download-item:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateX(4px); }
.download-item .fi { font-size: 1.4rem; }
.download-item-text { flex: 1; }
.download-item-text strong { display: block; font-family: 'Outfit', sans-serif; font-size: .95rem; color: var(--dark); }
.download-item-text small { font-size: .76rem; color: var(--gray); }
.download-item .go { color: var(--gold-deep); font-weight: 700; }

/* ── FORM ────────────────────────────────────────────────────────────── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); margin-bottom: .45rem; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font-family: 'Inter', sans-serif; font-size: .93rem; color: var(--dark);
  padding: 12px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px;
  background: #fcfcf4; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,188,0,.2);
}
.field .err { font-size: .76rem; color: var(--red); margin-top: .35rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff7f7; }
.hp { position: absolute; left: -9999px; }

.alert { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: 12px; font-size: .9rem; line-height: 1.6; margin-bottom: 1.6rem; }
.alert-ok  { background: var(--lime-pale); border: 1px solid rgba(155,160,0,.35); color: #4b5000; }
.alert-bad { background: #ffecec; border: 1px solid rgba(204,17,17,.25); color: #8d0b0b; }
.alert strong { display: block; font-family: 'Outfit', sans-serif; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .detail-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .course-side { position: static; }
}
@media (max-width: 900px) {
  .page-hero { min-height: 260px; padding: 2.5rem 5%; }
  .course-grid, .course-grid-2, .steps, .terms, .gallery, .contact-cards { grid-template-columns: 1fr 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card-img { min-height: 220px; }
}
@media (max-width: 600px) {
  .pad { padding: 3.5rem 4%; }
  .course-grid, .course-grid-2, .steps, .terms, .gallery, .contact-cards, .form-row { grid-template-columns: 1fr; }
  .course-table-head, .course-row { grid-template-columns: 1fr auto; }
  .detail-figure img { height: 240px; }
  .gallery-item img { height: 300px; }
  .form-card { padding: 1.5rem; }
}
