/* Rythm Education Foundation — public website */
:root {
  --navy: #0a1f44;
  --navy-2: #12306b;
  --navy-3: #1b45a0;
  --blue: #2f66e8;
  --saffron: #f5a524;
  --saffron-2: #ff8a1f;
  --green: #138808;
  --ink: #0f1b33;
  --muted: #5b6b86;
  --line: #e4e9f2;
  --bg: #f5f8fd;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(10, 31, 68, .25);
  --shadow-lg: 0 30px 60px -20px rgba(10, 31, 68, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.02em; }
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
.text-saffron { color: var(--saffron) !important; }
.text-muted-2 { color: var(--muted); }

.topstrip { background: var(--navy); color: #c9d6f2; font-size: .82rem; }
.topstrip a { color: #c9d6f2; }
.topstrip a:hover { color: #fff; }
.topstrip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); display: inline-block; margin-right: 8px; }

.site-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 800; line-height: 1.1; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--saffron); font-size: 1.35rem; box-shadow: 0 8px 18px -8px var(--navy); flex: none; }
.brand small { display: block; font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-nav .nav-link { font-weight: 600; color: var(--ink); padding: .55rem .9rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--navy-3); background: #eef3ff; }
.btn-brand { background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #2b1600; font-weight: 700; border: 0; padding: .7rem 1.4rem; border-radius: 12px; box-shadow: 0 10px 22px -10px var(--saffron-2); transition: transform .15s, box-shadow .15s; }
.btn-brand:hover { transform: translateY(-2px); color: #2b1600; box-shadow: 0 16px 26px -12px var(--saffron-2); }
.btn-navy { background: var(--navy); color: #fff; font-weight: 700; border: 0; padding: .7rem 1.4rem; border-radius: 12px; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 700; padding: .7rem 1.4rem; border-radius: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.hero { position: relative; overflow: hidden; color: #fff; padding: 5.5rem 0 7rem;
  background: radial-gradient(900px 500px at 85% -10%, rgba(47,102,232,.55), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(245,165,36,.22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0d2757 60%, #123272 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px; }
.hero > .container { position: relative; }

/* Wider page on large screens: the container grows with the window instead of stopping at 1320px. */
@media (min-width: 1200px) { .container { max-width: calc(100% - 4rem); } }
@media (min-width: 1920px) { .container { max-width: 1800px; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #dbe6ff; }
.pill i { color: var(--saffron); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin: 1.2rem 0; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero p.lead { color: #c5d3f0; font-size: 1.12rem; max-width: 34rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero-badges span { font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 8px; background: rgba(255,255,255,.08); color: #dbe6ff; }
.hero-badges i { color: #6ee7a0; margin-right: .3rem; }

.showcase { position: relative; padding: 1.8rem 1.2rem; max-width: 460px; margin: 0 auto; }
.cert-mock { background: #fffdf6; color: var(--ink); border-radius: 20px; padding: 1.8rem 1.6rem; box-shadow: var(--shadow-lg); border: 6px solid #fff; outline: 2px solid var(--saffron); outline-offset: -14px; transform: rotate(-2.5deg); text-align: center; }
.cert-mock .seal { width: 56px; height: 56px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; font-size: 1.5rem; }
.cert-mock h5 { font-family: 'Fraunces', serif; color: var(--navy); margin: 0; }
.cert-mock .line { height: 8px; border-radius: 6px; background: #e9edf6; margin: .55rem auto; }
.cert-mock .name { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--navy-3); margin: .7rem 0 .2rem; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem; font-size: .8rem; animation: float 5s ease-in-out infinite; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.float-card.a { top: 0; right: 0; }
.float-card.b { bottom: 0; left: 0; animation-delay: -2.4s; }
.float-card b { display: block; font-size: .92rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats-wrap { margin-top: -3.6rem; position: relative; z-index: 2; }
.stats { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.6rem 1rem; border: 1px solid var(--line); }
.stat { text-align: center; padding: .4rem 1rem; }
.stat b { display: block; font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--navy-3); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .88rem; }

section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.eyebrow { color: var(--saffron-2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .5rem 0 1rem; color: var(--navy); }
.section-sub { color: var(--muted); max-width: 40rem; font-size: 1.05rem; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; background: linear-gradient(135deg, #e8efff, #f4f7ff); color: var(--navy-3); }
.ico.saf { background: linear-gradient(135deg, #fff1d6, #ffe6bd); color: #c76a00; }
.ico.grn { background: linear-gradient(135deg, #dcf6e2, #eafaee); color: var(--green); }
.feature h5 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-top { height: 118px; display: grid; place-items: center; color: #fff; font-size: 2.6rem; position: relative; background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.course-top.t1 { background: linear-gradient(135deg, #d97400, #f5a524); }
.course-top.t2 { background: linear-gradient(135deg, #0c7a3b, #26b45e); }
.course-top.t3 { background: linear-gradient(135deg, #5b33c9, #8b5cf6); }
.course-top .cat { position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.2); padding: .2rem .6rem; border-radius: 999px; }
.course-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.course-body h5 { font-size: 1.02rem; line-height: 1.35; }
.course-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: .8rem; font-size: .85rem; color: var(--muted); font-weight: 600; }

.step { position: relative; padding: 0 0 2rem 4rem; counter-increment: s; }
.steps { counter-reset: s; }
.step::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.step::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h5 { margin: 0 0 .25rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

.verify { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 26px; color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.verify > * { position: relative; }
.verify::after { content: "\F4D8"; font-family: 'bootstrap-icons'; position: absolute; right: -20px; bottom: -50px; font-size: 16rem; opacity: .06; }
.verify .form-control { border-radius: 12px; padding: .85rem 1rem; border: 0; }

.cta { background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); border-radius: 26px; padding: 3rem; color: #2b1600; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.cta h3 { margin: 0 0 .3rem; }

.page-head { color: #fff; padding: 4rem 0 4.5rem; position: relative; overflow: hidden; background: radial-gradient(700px 350px at 90% 0, rgba(47,102,232,.5), transparent 60%), linear-gradient(160deg, var(--navy), #123272); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { color: #c5d3f0; max-width: 38rem; margin: 0; }
.crumbs { font-size: .85rem; color: #9db3e6; margin-bottom: .8rem; }
.crumbs a { color: #cfdcff; }

.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: #d5dcea; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(47,102,232,.15); }
.form-label { font-weight: 600; font-size: .88rem; }
.contact-line { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-line .ico { margin: 0; flex: none; }

.footer { background: var(--navy); color: #b6c5e6; padding: 4.5rem 0 0; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.footer a { color: #b6c5e6; }
.footer a:hover { color: var(--saffron); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer .brand, .footer .brand small { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0; font-size: .85rem; }
.tri { height: 4px; background: linear-gradient(90deg, #ff9933 33%, #fff 33% 66%, #138808 66%); }

.verified { border: 2px solid #b9ebc6; background: #f2fcf5; border-radius: var(--radius); padding: 2rem; }
.not-found { border: 2px solid #f5c2c2; background: #fff5f5; border-radius: var(--radius); padding: 2rem; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .55rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } }
@media (min-width: 768px) { .stats .col-6:nth-child(n+2) .stat { border-left: 1px solid var(--line); } }
@media (max-width: 991px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 6rem; }
  .verify, .cta { padding: 2rem; }
  .site-nav .navbar-collapse { padding: 1rem 0; }
}
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .6rem; } }

/* Franchise directory */
.fr-filters { padding: 1.5rem; }
.fr-filters .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.fr-filters .form-control, .fr-filters .form-select { height: 44px; }
.fr-card p { margin: 0; }
.fr-code { flex: none; font-size: .75rem; font-weight: 700; color: var(--navy); background: #eef2fb; border-radius: 8px; padding: .2rem .55rem; }
.fr-loc { color: var(--navy); font-weight: 600; font-size: .95rem; }
.fr-loc i { color: var(--saffron); margin-right: .35rem; }
.fr-contact { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .9rem; }
.fr-contact i { width: 1.4rem; display: inline-block; color: var(--blue); }
.fr-contact a { word-break: break-all; }
.pagination .page-link { border-radius: 10px; margin: 0 .2rem; border-color: var(--line); color: var(--navy); font-weight: 600; min-width: 42px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-item.disabled .page-link { color: #b3bdd0; }

/* Uploaded logo: shown on a white tile, wide logos may stretch the tile */
.brand-mark.has-logo, .lh-mark.has-logo { background: #fff; width: auto; min-width: 44px; max-width: 160px; padding: 3px; }
.brand-mark.has-logo { display: flex; align-items: center; justify-content: center; }
.brand-mark.has-logo img, .lh-mark.has-logo img { height: 36px; width: auto; max-width: 154px; object-fit: contain; display: block; border-radius: 10px; }

/* Category / album tabs (Team, Gallery) */
.team-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.team-tabs a { padding: .5rem 1rem; border-radius: 999px; background: #eef3ff; color: var(--navy-3); font-weight: 700; font-size: .9rem; }
.team-tabs a:hover, .team-tabs a.active { background: var(--navy); color: #fff; }
.team-tabs a span { opacity: .65; font-weight: 600; margin-left: .2rem; }

/* Our Team */
.team-group { scroll-margin-top: 100px; }
.team-group + .team-group { margin-top: 4rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s; }
.member:hover { transform: translateY(-4px); }
.member-photo { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, #e8eefb, #d5e0f7); display: grid; place-items: center; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-initials { font-family: 'Fraunces', serif; font-size: 3.4rem; font-weight: 700; color: var(--navy-3); opacity: .6; }
.member-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.member-body h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.member-role { color: var(--saffron-2); font-weight: 700; font-size: .88rem; margin-bottom: .8rem; }
.member-bio { color: var(--muted); font-size: .93rem; line-height: 1.6; max-height: calc(1.6em * 5); overflow: hidden; position: relative; }
.member-bio p { margin: 0 0 .7rem; }
.member-bio:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(transparent, #fff); }
.member-bio.open { max-height: none; }
.member-more { align-self: flex-start; border: 0; background: none; padding: .3rem 0 0; color: var(--blue); font-weight: 700; font-size: .88rem; }

/* Gallery */
.gallery-grid { columns: 4 260px; column-gap: 1rem; }
.gallery-item { display: block; position: relative; margin-bottom: 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #eef1f6; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(10,31,68,.85)); opacity: 0; transition: opacity .2s; }
.gallery-item:hover .gallery-cap, .gallery-item:focus .gallery-cap { opacity: 1; }
@media (hover: none) { .gallery-cap { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6,14,32,.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #dbe6ff; margin-top: .8rem; text-align: center; font-size: .92rem; }
.lb-spin { position: absolute; top: 50%; left: 50%; margin: -1rem 0 0 -1rem; display: none; }
.lightbox.loading .lb-spin { display: block; }
.lightbox.loading figure { visibility: hidden; }
.lb-btn { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 576px) { .lightbox { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* Reviews */
.review-stars { color: #f5a524; font-size: .95rem; letter-spacing: .1em; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-q { font-size: 2rem; line-height: 1; color: #dbe4f7; }
.review-msg { color: var(--ink); flex: 1; line-height: 1.65; }
.review-by { display: flex; align-items: center; gap: .7rem; border-top: 1px dashed var(--line); padding-top: .9rem; }
.review-by small { display: block; color: var(--muted); }
.review-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--navy-3), var(--navy)); flex: none; }
@media (min-width: 992px) { .review-form { position: sticky; top: 100px; } }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.8rem; color: #d5dcea; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }
.nav-drop { border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow); }
.nav-drop .dropdown-item { border-radius: 9px; font-weight: 600; padding: .5rem .8rem; }
.nav-drop .dropdown-item.active, .nav-drop .dropdown-item:active { background: #eef3ff; color: var(--navy-3); }
@media (min-width: 1200px) and (max-width: 1439px) {
  .site-nav .nav-link { padding: .5rem .5rem !important; font-size: .92rem; }
  .site-nav .btn-brand.join-now { display: none; }
  .site-nav .btn-navy, .site-nav .btn-brand { padding: .6rem 1rem; }
}
.site-nav .brand > span, .site-nav .btn { white-space: nowrap; }
.site-nav .nav-link { white-space: nowrap; }
@media (max-width: 1199px) { .site-nav .navbar-collapse { padding: 1rem 0; } .nav-drop { border: 0; box-shadow: none; padding-left: 1rem; } }

.footer .dev-credit { color: var(--saffron); font-weight: 600; }
.footer .dev-credit:hover { color: #fff; }
