/* ===========================================================
   THEME: Royal Heritage (pages shared with Modern Campus, own layout + home)
   Bold, dynamic, currently-trending school website style.
   Dark navy + amber gradient, big rounded cards, floating
   overlap stat cards, gradient buttons, accordion FAQ,
   WhatsApp float button, working enquiry form.
   =========================================================== */

.theme-royal-heritage {
    --mc-navy: #0b1e3e;
    --mc-navy-light: #15305c;
    --mc-accent: #e8630a;
    --mc-accent-dark: #b8500a;
    --mc-cyan: #f2b233;
    --mc-ink: #13203a;
    --mc-muted: #5b6577;
    --mc-bg: #f7f5f2;
    --mc-card: #ffffff;
    --mc-radius: 18px;
    --mc-shadow: 0 20px 45px -22px rgba(11,30,62,.35);
    --rh-maroon: #7d1427;
    --rh-maroon-dark: #5c0d1c;
    --rh-gold: #f2b233;
    --rh-gold-soft: #fff4dd;

    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--mc-ink);
    background: var(--mc-bg);
    line-height: 1.65;
}

.theme-royal-heritage * { box-sizing: border-box; }
.theme-royal-heritage img { max-width: 100%; display: block; }
.theme-royal-heritage a { text-decoration: none; color: inherit; }
.theme-royal-heritage h1, .theme-royal-heritage h2, .theme-royal-heritage h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.theme-royal-heritage .container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.theme-royal-heritage section { padding: 90px 0; }
.theme-royal-heritage section.tight { padding: 50px 0; }

.theme-royal-heritage .section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.theme-royal-heritage .pill-label { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,165,36,.12); color: var(--mc-accent-dark); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; padding: 6px 16px; border-radius: 999px; }
.theme-royal-heritage .section-head h2 { font-size: 2.2rem; margin: .7rem 0 .5rem; }
.theme-royal-heritage .section-head p { color: var(--mc-muted); }

/* ---------- Utility top bar ---------- */
.mc-topbar { background: var(--mc-navy); color: #cbd5e1; font-size: .8rem; padding: 8px 0; }
.mc-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.mc-topbar a { color: #cbd5e1; margin-right: 16px; }
.mc-topbar a:hover { color: #fff; }
.mc-topbar .app-btn { background: var(--mc-accent); color: var(--mc-navy) !important; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .74rem; }
@media (max-width: 700px) { .mc-topbar .hide-mobile { display: none; } }

/* ---------- Header ---------- */
.mc-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 20px rgba(8,25,45,.06); }
.mc-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.mc-brand { display: flex; align-items: center; gap: 12px; }
.mc-brand img { height: 46px; width: 46px; object-fit: contain; border-radius: 10px; }
.mc-brand .name { font-weight: 800; font-size: 1.2rem; color: var(--mc-navy); }
.mc-brand .sub { font-size: .72rem; color: var(--mc-muted); display: block; }
.mc-nav { display: flex; align-items: center; gap: 4px; }
.mc-nav-item { position: relative; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: all .2s; }
.mc-nav-item:hover { background: var(--mc-bg); color: var(--mc-accent-dark); }
.mc-nav-item .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--mc-shadow); border-radius: 16px; padding: 10px; min-width: 200px; }
.mc-nav-item:hover .dropdown { display: block; }
.mc-nav-item .dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .85rem; }
.mc-nav-item .dropdown a:hover { background: var(--mc-bg); }
.mc-apply-btn { background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); color: #fff !important; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: 0 10px 24px -8px rgba(245,165,36,.6); transition: transform .2s; }
.mc-apply-btn:hover { transform: translateY(-2px); }
.mc-burger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--mc-navy); }
.mc-mobile-nav { display: none; flex-direction: column; padding: 10px 24px 20px; border-top: 1px solid #eef1f6; gap: 4px; }
.mc-mobile-nav a { padding: 12px; border-radius: 12px; font-weight: 600; }
.mc-mobile-nav a:hover { background: var(--mc-bg); }
.mc-mobile-nav.open { display: flex; }
@media (max-width: 960px) { .mc-nav, .mc-header .mc-apply-btn { display: none; } .mc-burger { display: block; } }

/* ---------- Hero ---------- */
.mc-hero { position: relative; min-height: 640px; overflow: hidden; background: var(--mc-navy); padding-bottom: 90px; }
.mc-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.mc-hero-slide.active { opacity: 1; }
.mc-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,25,45,.94), rgba(8,25,45,.55)); }
.mc-hero-content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding-top: 90px; }
.mc-hero-content .pill-label { background: rgba(245,165,36,.18); color: var(--mc-accent); }
.mc-hero-content h1 { font-size: 3.1rem; margin: 1rem 0 1.2rem; line-height: 1.15; color: #fff; }
.mc-hero-content p { opacity: .82; font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; }
.mc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Backdrop card behind the always-visible Admissions badge + CTA buttons -
   keeps them readable regardless of whether the active slide has its own
   dark overlay (text slides) or not (clean image-only slides). */
.mc-hero-cta-bar { background: rgba(8,25,45,.55); backdrop-filter: blur(8px); border-radius: 18px; padding: 20px 24px; display: inline-block; margin-top: 8px; }
.mc-hero-cta-bar .pill-label { margin-bottom: 14px; }
.mc-btn-solid { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); color: #fff; padding: 14px 28px; border-radius: 999px; font-weight: 700; box-shadow: 0 14px 28px -10px rgba(245,165,36,.55); transition: transform .2s; }
.mc-btn-solid:hover { transform: translateY(-3px); }
.mc-btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(255,255,255,.35); color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 700; transition: all .2s; }
.mc-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.mc-hero-dots { position: absolute; bottom: 320px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.mc-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; }
.mc-hero-dots button.active { background: var(--mc-accent); width: 26px; border-radius: 6px; }
@media (max-width: 700px) { .mc-hero { min-height: 560px; padding-bottom: 60px; } .mc-hero-content h1 { font-size: 2.1rem; } .mc-hero-dots { bottom: 220px; } }

/* ---------- Floating stat cards (overlap hero) ---------- */
.mc-stats-float { position: relative; z-index: 5; margin-top: -70px; }
.mc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; }
.mc-stat-card { background: #fff; border-radius: 20px; padding: 26px 20px; text-align: center; box-shadow: var(--mc-shadow); transition: transform .25s; }
.mc-stat-card:hover { transform: translateY(-6px); }
.mc-stat-card .icon-circle { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.3rem; }
.mc-stat-card .value { font-size: 1.5rem; font-weight: 800; color: var(--mc-navy); }
.mc-stat-card .label { font-size: .78rem; color: var(--mc-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 700px) { .mc-stats-float { margin-top: -50px; } }

/* ---------- Admission banner strip ---------- */
.mc-admission-banner { background: linear-gradient(90deg, var(--mc-navy), var(--mc-navy-light)); color: #fff; padding: 20px 0; }
.mc-admission-banner .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mc-admission-banner strong { color: var(--mc-accent); }

/* ---------- About ---------- */
.mc-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mc-about-img-wrap { position: relative; }
.mc-about-img-wrap img { border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); }
.mc-about-badge { position: absolute; bottom: -20px; right: -20px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--mc-shadow); }
.mc-about-badge .value { font-size: 1.4rem; font-weight: 800; color: var(--mc-accent-dark); }
.mc-about-badge .label { font-size: .72rem; color: var(--mc-muted); text-transform: uppercase; }
.mc-about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mc-about-tags span { background: var(--mc-bg); border-radius: 12px; padding: 10px 14px; font-size: .8rem; }
.mc-about-tags b { display: block; color: var(--mc-navy); font-size: .9rem; }
@media (max-width: 860px) { .mc-about-grid { grid-template-columns: 1fr; } .mc-about-badge { position: static; margin-top: 16px; display: inline-block; } }

/* ---------- Principal ---------- */
.mc-principal { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--mc-radius); padding: 48px; box-shadow: var(--mc-shadow); }
.mc-principal.photo-right { grid-template-columns: 1fr 280px; }
.mc-principal.photo-right .mc-principal-photo { order: 2; }
.mc-principal.centered { grid-template-columns: 1fr; text-align: center; max-width: 700px; margin: 0 auto; }
.mc-principal-photo img { border-radius: 20px; width: 100%; height: 260px; object-fit: cover; }
.mc-principal blockquote { font-size: 1.15rem; font-style: italic; color: var(--mc-muted); margin: 0 0 16px; }
.mc-principal .name { font-weight: 800; font-size: 1.1rem; color: var(--mc-navy); }
.mc-principal .role { color: var(--mc-accent-dark); font-size: .85rem; font-weight: 600; }
@media (max-width: 860px) { .mc-principal, .mc-principal.photo-right { grid-template-columns: 1fr; text-align: center; padding: 32px; } .mc-principal.photo-right .mc-principal-photo { order: 0; } }

/* ---------- Facilities / feature grid (bold icon cards) ---------- */
.mc-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.mc-feature-card { background: #fff; border-radius: var(--mc-radius); padding: 32px 26px; text-align: center; box-shadow: 0 12px 30px -18px rgba(8,25,45,.15); transition: transform .25s, box-shadow .25s; }
.mc-feature-card:hover { transform: translateY(-8px); box-shadow: var(--mc-shadow); }
.mc-feature-card .icon-circle { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--mc-cyan), var(--mc-navy)); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.6rem; }
.mc-feature-card img { height: 40px; margin: 0 auto; object-fit: contain; }
.mc-feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mc-feature-card p { color: var(--mc-muted); font-size: .88rem; }

/* ---------- Academics (wing cards, amber icon variant) ---------- */
.mc-wing-card .icon-circle { background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); }

/* ---------- Gallery ---------- */
.mc-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.mc-gallery-grid a { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 10px 26px -16px rgba(8,25,45,.25); }
.mc-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mc-gallery-grid a:hover img { transform: scale(1.1); }
.mc-gallery-masonry { columns: 4 220px; gap: 18px; }
.mc-gallery-masonry a { display: block; margin-bottom: 18px; border-radius: 18px; overflow: hidden; break-inside: avoid; box-shadow: 0 10px 26px -16px rgba(8,25,45,.25); }
.mc-gallery-featured { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 460px; }
.mc-gallery-featured a:first-child { grid-row: span 2; }
.mc-gallery-featured a { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 26px -16px rgba(8,25,45,.25); }
.mc-gallery-featured img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .mc-gallery-featured { grid-template-columns: 1fr 1fr; height: auto; } .mc-gallery-featured a:first-child { grid-row: span 1; grid-column: span 2; height: 220px; } .mc-gallery-masonry { columns: 2 160px; } }

/* ---------- News ---------- */
.mc-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mc-news-card { background: #fff; border-radius: var(--mc-radius); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(8,25,45,.15); transition: transform .25s, box-shadow .25s; }
.mc-news-card:hover { transform: translateY(-6px); box-shadow: var(--mc-shadow); }
.mc-news-card img { height: 180px; object-fit: cover; width: 100%; }
.mc-news-card .body { padding: 22px; }
.mc-news-card .date { color: var(--mc-accent-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.mc-news-card h3 { margin: 8px 0; font-size: 1.08rem; }
.mc-news-featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.mc-news-list-bold { display: flex; flex-direction: column; gap: 16px; }
.mc-news-list-bold .row { display: flex; gap: 20px; padding: 16px; align-items: center; background: #fff; border-radius: 18px; box-shadow: 0 8px 20px -14px rgba(8,25,45,.2); }
.mc-news-list-bold img { width: 110px; height: 85px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
@media (max-width: 900px) { .mc-news-grid, .mc-news-featured { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.mc-event-list { display: flex; flex-direction: column; gap: 16px; }
.mc-event-item { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 24px -16px rgba(8,25,45,.2); }
.mc-event-date-badge { background: linear-gradient(135deg, var(--mc-navy), var(--mc-navy-light)); color: #fff; border-radius: 14px; padding: 12px 16px; text-align: center; min-width: 70px; }
.mc-event-date-badge .day { font-size: 1.4rem; font-weight: 800; color: var(--mc-accent); }
.mc-event-date-badge .month { font-size: .75rem; text-transform: uppercase; }

/* ---------- Achievements ---------- */
.mc-achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.mc-achievement-card { background: #fff; border-radius: 18px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 10px 24px -16px rgba(8,25,45,.15); }
.mc-achievement-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }

/* ---------- Testimonials ---------- */
.mc-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 24px; }
.mc-testimonial-card { background: #fff; border-radius: var(--mc-radius); padding: 30px; box-shadow: 0 12px 30px -18px rgba(8,25,45,.15); position: relative; }
.mc-testimonial-card .quote-mark { font-family: Georgia, serif; font-size: 3rem; color: var(--mc-accent); opacity: .3; line-height: 1; }
.mc-testimonial-card .stars { color: var(--mc-accent); margin-bottom: 6px; }
.mc-testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mc-testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--mc-cyan), var(--mc-navy)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.mc-testimonial-card .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ Accordion ---------- */
.mc-faq-item { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 8px 20px -14px rgba(8,25,45,.15); overflow: hidden; }
.mc-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 700; }
.mc-faq-icon { transition: transform .3s; color: var(--mc-accent-dark); font-size: 1.2rem; }
.mc-faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all .3s ease; color: var(--mc-muted); }
.mc-faq-answer.open { padding: 0 24px 20px; max-height: 400px; }

/* ---------- Admission CTA ---------- */
.mc-admission-cta { background: linear-gradient(135deg, var(--mc-navy), var(--mc-navy-light)); border-radius: var(--mc-radius); color: #fff; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.mc-admission-cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(245,165,36,.15); }
.mc-admission-cta h2 { font-size: 2.1rem; margin-bottom: .6rem; color: #fff; }
.mc-admission-cta p { opacity: .8; margin-bottom: 1.8rem; }
.mc-admission-cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact + Enquiry form ---------- */
.mc-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mc-contact-info-card { background: #fff; border-radius: var(--mc-radius); padding: 32px; box-shadow: var(--mc-shadow); }
.mc-contact-info-card .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.mc-contact-info-card .row .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mc-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-enquiry-form { background: #fff; border-radius: var(--mc-radius); padding: 32px; box-shadow: var(--mc-shadow); }
.mc-enquiry-form input, .mc-enquiry-form select, .mc-enquiry-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 14px; font-family: inherit; font-size: .92rem; }
.mc-enquiry-form button { width: 100%; }
.mc-contact-grid .map-embed { width: 100%; height: 300px; border: 0; border-radius: var(--mc-radius); margin-top: 20px; }
@media (max-width: 860px) { .mc-contact-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.mc-whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(37,211,102,.6); z-index: 60; font-size: 1.6rem; animation: mc-pulse 2.5s infinite; }
@keyframes mc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

/* ---------- Footer ---------- */
.mc-footer { background: var(--mc-navy); color: #94a3b8; padding: 60px 0 24px; position: relative; overflow: hidden; }

/* Subtle school-themed pattern (books/graduation cap/pencil) tiled across
   the footer background - pure CSS/SVG, no external image needed, so
   there's no copyright/licensing concern and it never fails to load. */
.mc-footer-pattern {
    position: absolute; inset: 0; z-index: 0; opacity: .05; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M20 30h24v18H20z'/%3E%3Cpath d='M20 30l12-6 12 6'/%3E%3Cpath d='M70 100c0-8 7-14 15-14s15 6 15 14'/%3E%3Ccircle cx='85' cy='76' r='9'/%3E%3Cpath d='M110 25l-14 6 14 6 14-6z'/%3E%3Cpath d='M96 31v10c0 3 6 6 14 6s14-3 14-6V31'/%3E%3Cpath d='M35 95v20M25 100l10-5 10 5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
    background-repeat: repeat;
}
.mc-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--mc-accent), var(--mc-cyan), var(--mc-accent)); z-index: 1;
}
.mc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.mc-footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.mc-footer a { color: #94a3b8; display: block; margin-bottom: 10px; font-size: .88rem; }
.mc-footer a:hover { color: var(--mc-accent); }
.mc-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; text-align: center; font-size: .82rem; opacity: .7; }
.mc-social { display: flex; gap: 10px; margin-top: 14px; }
.mc-social a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0; color: #cbd5e1; transition: all .25s; }
.mc-social a:hover { background: var(--mc-accent); color: var(--mc-navy) !important; transform: translateY(-3px); }

.mc-footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mc-made-by { font-size: .82rem; opacity: .8; display: flex; align-items: center; gap: 6px; }
.mc-heart { color: #ef4444; display: inline-block; animation: mc-heartbeat 1.4s ease-in-out infinite; }
.mc-brand-name { font-weight: 800; font-family: 'Poppins', sans-serif; background: linear-gradient(90deg, var(--mc-accent), var(--mc-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .03em; }
@keyframes mc-heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (max-width: 800px) { .mc-footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Scroll reveal ---------- */
.mc-reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.mc-reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }

.theme-royal-heritage [x-cloak] { display: none !important; }

/* ---------- Pagination ---------- */
.theme-royal-heritage nav[role="navigation"] { display: flex; justify-content: center; }
.theme-royal-heritage nav[role="navigation"] span, .theme-royal-heritage nav[role="navigation"] a { display: inline-flex; align-items:center; justify-content:center; min-width: 38px; height: 38px; margin: 0 3px; border-radius: 10px; color: var(--mc-ink); background: #fff; box-shadow: 0 4px 10px -6px rgba(8,25,45,.2); }
.theme-royal-heritage nav[role="navigation"] a:hover { background: var(--mc-bg); }
.theme-royal-heritage nav[role="navigation"] span[aria-current="page"] span { background: var(--mc-accent); color: #fff; padding: 0 10px; border-radius: 10px; }

/* ---------- Phase 5 additions ---------- */

/* Slides with no title/subtitle/description text get NO dark overlay -
   just a clean, undimmed image. */
.mc-hero-slide.no-text::after { display: none; }

/* Notice board rows are now full clickable links */
a.mc-event-item { display: flex; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.mc-event-item:hover { transform: translateY(-3px); box-shadow: var(--mc-shadow); }

/* Sticky right-side Enquiry tab + slide-in panel */
.mc-enquiry-tab { position: fixed; top: 50%; right: 0; transform: translateY(-50%) rotate(0deg); z-index: 70; background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); color: #fff; padding: 16px 10px; border-radius: 12px 0 0 12px; box-shadow: -6px 0 20px -8px rgba(8,25,45,.4); cursor: pointer; writing-mode: vertical-rl; text-orientation: mixed; font-weight: 700; letter-spacing: .05em; font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.mc-enquiry-panel { position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100%; background: #fff; box-shadow: -10px 0 40px -10px rgba(8,25,45,.35); z-index: 71; transition: right .35s ease; overflow-y: auto; padding: 32px 28px; }
.mc-enquiry-panel.open { right: 0; }
.mc-enquiry-panel-overlay { position: fixed; inset: 0; background: rgba(8,25,45,.4); z-index: 69; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.mc-enquiry-panel-overlay.open { opacity: 1; pointer-events: auto; }
.mc-enquiry-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #eef1f6; }
.mc-enquiry-panel-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.mc-enquiry-panel-head p { color: var(--mc-muted); font-size: .86rem; margin: 0; line-height: 1.5; }
.mc-enquiry-panel .close-btn { flex-shrink: 0; background: var(--mc-bg); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--mc-navy); transition: background .2s; }
.mc-enquiry-panel .close-btn:hover { background: #e2e8f0; }
.mc-enquiry-fields label { display: block; font-size: .78rem; font-weight: 700; color: var(--mc-navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.mc-enquiry-fields input, .mc-enquiry-fields select, .mc-enquiry-fields textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; margin-bottom: 18px; font-family: inherit; font-size: .92rem; background: var(--mc-bg); transition: border-color .2s; }
.mc-enquiry-fields input:focus, .mc-enquiry-fields select:focus, .mc-enquiry-fields textarea:focus { outline: none; border-color: var(--mc-accent); background: #fff; }
.mc-enquiry-submit { width: 100%; justify-content: center; margin-top: 4px; }
.mc-enquiry-success { background: #dcfce7; color: #166534; padding: 32px 20px; border-radius: 16px; font-weight: 600; text-align: center; font-size: 1rem; }
.mc-enquiry-error { background: #fee2e2; color: #b91c1c; padding: 12px 16px; border-radius: 12px; font-size: .85rem; margin-bottom: 16px; }
.mc-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: mc-spin .7s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* Standalone read-more pages */
.mc-full-page { max-width: 780px; }


/* ===========================================================
   ROYAL HERITAGE — own layout + home sections (rh-*)
   Navy + maroon + gold, Playfair Display headings, DM Sans text
   =========================================================== */
[x-cloak] { display: none !important; }
.theme-royal-heritage .hide-mobile { }
@media (max-width: 760px) { .theme-royal-heritage .hide-mobile { display: none !important; } }

/* top strip */
.rh-topbar { background: var(--mc-navy); color: #c9d4e6; font-size: .8rem; padding: 7px 0; }
.rh-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rh-topbar a, .rh-topbar span { color: #c9d4e6; margin-right: 16px; }
.rh-topbar a:hover { color: #fff; }
.rh-login { background: var(--rh-gold); color: var(--mc-navy) !important; padding: 3px 12px; border-radius: 999px; font-weight: 800; margin-right: 0 !important; }

/* crest header */
.rh-head { background: #fff; background-image: radial-gradient(circle at 12% 50%, rgba(242,178,51,.10), transparent 40%), linear-gradient(180deg, #fff, #fffaf1); border-bottom: 1px solid #f1e6d2; }
.rh-head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; }
.rh-crest { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rh-crest img { height: 78px; width: 78px; object-fit: contain; flex-shrink: 0; }
.rh-crest-fallback { font-size: 3rem; }
.rh-name-block { display: flex; flex-direction: column; min-width: 0; }
.rh-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 1.85rem; color: var(--rh-maroon); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.rh-sub { color: var(--mc-accent); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.rh-dot { margin: 0 8px; color: var(--rh-gold); }
.rh-recog { font-size: .8rem; color: var(--mc-muted); font-weight: 600; }
.rh-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.rh-badge { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 7px 14px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.rh-badge b { font-weight: 900; }
.rh-badge-m { background: linear-gradient(135deg, var(--rh-maroon), var(--rh-maroon-dark)); }
.rh-badge-n { background: linear-gradient(135deg, var(--mc-navy-light), var(--mc-navy)); }
.rh-badge-g { background: linear-gradient(135deg, #d4911a, #b8730b); }
@media (max-width: 900px) {
    .rh-head-in { flex-direction: column; align-items: flex-start; }
    .rh-badges { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .rh-name { font-size: 1.35rem; }
    .rh-crest img { height: 60px; width: 60px; }
}

/* maroon menu */
.rh-nav { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--rh-maroon-dark), var(--rh-maroon) 50%, var(--rh-maroon-dark)); box-shadow: 0 6px 18px -10px rgba(0,0,0,.5); }
.rh-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-menu { display: flex; flex-wrap: wrap; }
.rh-mi { position: relative; }
.rh-mi > a { display: block; padding: 15px 14px; color: #fbe9d0; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 3px solid transparent; }
.rh-mi > a:hover, .rh-mi.on > a { color: var(--rh-gold); border-bottom-color: var(--rh-gold); }
.rh-caret { font-size: .7rem; }
.rh-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-top: 3px solid var(--rh-gold); box-shadow: 0 18px 40px -16px rgba(11,30,62,.45); border-radius: 0 0 12px 12px; padding: 6px; z-index: 5; }
.rh-mi:hover .rh-drop { display: block; }
.rh-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--mc-ink); }
.rh-drop a:hover { background: var(--rh-gold-soft); color: var(--rh-maroon); }
.rh-apply { background: linear-gradient(135deg, #ffd166, var(--rh-gold)); color: var(--rh-maroon-dark) !important; font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 9px 18px; border-radius: 8px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(242,178,51,.7); }
.rh-burger { display: none; background: transparent; border: 0; color: #fff; font-size: 1.6rem; padding: 8px; cursor: pointer; }
.rh-mobile { background: var(--rh-maroon-dark); padding: 8px 24px 16px; }
.rh-mobile a { display: block; color: #fbe9d0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600; }
.rh-mobile a.child { padding-left: 14px; font-size: .9rem; opacity: .85; }
@media (max-width: 1000px) {
    .rh-menu { display: none; }
    .rh-burger { display: block; }
    .rh-nav-in { padding-top: 8px; padding-bottom: 8px; }
}

/* latest ticker */
.rh-ticker { display: flex; align-items: stretch; background: linear-gradient(90deg, #7a3d00, var(--mc-accent) 45%, #b8500a); color: #fff; overflow: hidden; }
.rh-ticker-label { background: var(--mc-navy); padding: 10px 18px; font-weight: 900; font-size: .78rem; letter-spacing: .08em; display: flex; align-items: center; white-space: nowrap; position: relative; z-index: 2; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding-right: 30px; }
.rh-ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.rh-ticker-move { display: inline-flex; white-space: nowrap; animation: rh-scroll 40s linear infinite; }
.rh-ticker:hover .rh-ticker-move { animation-play-state: paused; }
.rh-ticker-move a { color: #fff; font-weight: 600; font-size: .86rem; margin-right: 26px; display: inline-flex; align-items: center; gap: 8px; }
.rh-tag { background: #dc2626; color: #fff; font-size: .62rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; letter-spacing: .05em; }
.rh-diamond { color: var(--rh-gold); margin-left: 18px; font-size: .7rem; }
@keyframes rh-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero */
.rh-hero { position: relative; height: min(78vh, 620px); min-height: 440px; overflow: hidden; background: var(--mc-navy); }
.rh-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.rh-hero-slide.on { opacity: 1; }
.rh-hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: rh-zoom 14s ease-in-out infinite alternate; }
@keyframes rh-zoom { to { transform: scale(1.12); } }
.rh-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,30,62,.92) 0%, rgba(11,30,62,.72) 38%, rgba(11,30,62,.12) 70%, transparent 100%); }
.rh-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 1220px; }
.rh-hero-content > div { max-width: 560px; }
.rh-hero-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--rh-gold); background: rgba(242,178,51,.12); border: 1px solid rgba(242,178,51,.35); padding: 5px 12px; border-radius: 6px; margin-bottom: 14px; }
.rh-hero-pre { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #e2e8f0; margin-bottom: 6px; }
.rh-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.08; margin: 0 0 14px; color: #fff; }
.rh-hero h1 .gold { color: var(--rh-gold); }
.rh-hero p { font-size: 1.02rem; color: #dbe3f0; max-width: 470px; margin: 0 0 22px; }
.rh-hero-btns, .rh-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.rh-btn-solid { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); color: #fff !important; font-weight: 800; padding: 12px 24px; border-radius: 8px; box-shadow: 0 10px 22px -10px rgba(232,99,10,.8); transition: transform .15s; }
.rh-btn-solid:hover { transform: translateY(-2px); }
.rh-btn-line { display: inline-flex; align-items: center; gap: 6px; border: 2px solid rgba(255,255,255,.75); color: #fff !important; font-weight: 800; padding: 10px 22px; border-radius: 8px; }
.rh-btn-line:hover { background: rgba(255,255,255,.1); }
.rh-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.rh-hero-arrow:hover { background: var(--mc-accent); }
.rh-hero-arrow.l { left: 18px; } .rh-hero-arrow.r { right: 18px; }
.rh-hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.rh-hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s; padding: 0; }
.rh-hero-dots button.on { width: 28px; background: var(--rh-gold); }
@media (max-width: 700px) { .rh-hero-shade { background: linear-gradient(180deg, rgba(11,30,62,.55), rgba(11,30,62,.9)); } .rh-hero-arrow { display: none; } }

/* stats strip */
.rh-stats { background: var(--mc-navy); border-top: 3px solid var(--rh-gold); }
.rh-stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rh-stat { text-align: center; padding: 18px 10px; border-right: 1px solid rgba(255,255,255,.08); }
.rh-stat:last-child { border-right: 0; }
.rh-stat .v { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 1.9rem; color: var(--rh-gold); line-height: 1.1; }
.rh-stat .l { color: #c9d4e6; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* section heads */
.rh-head-c { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.rh-kicker { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .16em; color: var(--mc-accent); }
.rh-head-c h2, .rh-voice h2, .rh-cta h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--mc-navy); margin: .3rem 0 .4rem; }
.rh-head-c h2::after { content: ''; display: block; width: 70px; height: 3px; margin: 12px auto 0; background: linear-gradient(90deg, var(--rh-maroon), var(--rh-gold)); border-radius: 3px; }
.rh-head-c p { color: var(--mc-muted); }

/* campus updates tabs */
.rh-updates { background: #fff; }
.rh-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.rh-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ecdcc2; background: #fffaf1; color: var(--mc-navy); font-weight: 800; padding: 10px 18px; border-radius: 12px; cursor: pointer; font-size: .9rem; font-family: inherit; }
.rh-tabs button b { background: var(--mc-navy); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.rh-tabs button.on { background: linear-gradient(135deg, var(--rh-maroon), var(--rh-maroon-dark)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(125,20,39,.8); }
.rh-tabs button.on b { background: var(--rh-gold); color: var(--mc-navy); }
.rh-upd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rh-upd { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 24px -20px rgba(11,30,62,.5); transition: transform .15s, border-color .15s; }
.rh-upd:hover { transform: translateY(-2px); border-color: var(--rh-gold); }
.rh-upd-date { width: 58px; flex-shrink: 0; text-align: center; border-radius: 10px; background: linear-gradient(135deg, var(--rh-maroon), var(--rh-maroon-dark)); color: #fff; padding: 6px 0; line-height: 1.1; }
.rh-upd-date.gold { background: linear-gradient(135deg, #f59e0b, #b45309); }
.rh-upd-date.navy { background: linear-gradient(135deg, var(--mc-navy-light), var(--mc-navy)); }
.rh-upd-date b { display: block; font-size: 1.3rem; font-family: 'Playfair Display', Georgia, serif; }
.rh-upd-date span { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.rh-upd-body { flex: 1; min-width: 0; }
.rh-upd-t { font-weight: 800; color: var(--mc-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-upd-s { font-size: .8rem; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-chip { font-size: .62rem; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: #eef2f7; color: var(--mc-navy); flex-shrink: 0; }
.rh-chip.red { background: #fee2e2; color: #b91c1c; } .rh-chip.green { background: #dcfce7; color: #15803d; } .rh-chip.blue { background: #dbeafe; color: #1d4ed8; }
.rh-empty { grid-column: 1 / -1; text-align: center; color: var(--mc-muted); padding: 24px; }

/* principal split */
.rh-voice { display: grid; grid-template-columns: 1fr 1.4fr; padding: 0 !important; background: linear-gradient(90deg, var(--mc-navy) 0%, var(--mc-navy-light) 42%, #f8fafc 42%); }
.rh-voice-left { padding: 60px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.rh-voice-photo { width: 220px; height: 260px; border-radius: 18px; overflow: hidden; border: 4px solid var(--rh-gold); box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); background: var(--mc-navy-light); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.rh-voice-photo img { width: 100%; height: 100%; object-fit: cover; }
.rh-voice-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: 1.3rem; margin-top: 16px; color: var(--rh-gold); }
.rh-voice-role { font-size: .85rem; color: #c9d4e6; }
.rh-voice-right { padding: 60px 48px; }
.rh-voice blockquote { position: relative; margin: 14px 0 22px; padding-left: 22px; border-left: 4px solid var(--rh-gold); font-size: 1.05rem; color: #334155; font-style: italic; }
@media (max-width: 860px) { .rh-voice { grid-template-columns: 1fr; background: var(--mc-navy); } .rh-voice-right { background: #f8fafc; padding: 40px 24px; } }

/* CTA band */
.rh-cta { background: radial-gradient(circle at 15% 20%, rgba(242,178,51,.18), transparent 40%), linear-gradient(135deg, var(--mc-navy), var(--mc-navy-light)); color: #fff; text-align: center; }
.rh-cta h2 { color: #fff !important; }
.rh-cta p { color: #c9d4e6; max-width: 620px; margin: 0 auto 22px; }
.rh-cta .rh-cta-btns { justify-content: center; }

/* floating admission card */
.rh-adm-float { position: fixed; right: 18px; bottom: 90px; z-index: 70; width: 270px; background: rgba(11,30,62,.94); color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); border: 1px solid rgba(242,178,51,.3); backdrop-filter: blur(6px); }
.rh-adm-float .x { position: absolute; top: 8px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.rh-adm-float .t { font-weight: 900; font-size: .78rem; letter-spacing: .1em; color: var(--rh-gold); display: flex; align-items: center; gap: 8px; }
.rh-adm-float .pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: rh-pulse 1.6s infinite; }
@keyframes rh-pulse { to { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.rh-adm-float p { font-size: .84rem; color: #dbe3f0; margin: 8px 0 12px; }
.rh-adm-float a { display: block; text-align: center; background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); color: #fff; font-weight: 800; padding: 9px; border-radius: 10px; }
@media (max-width: 700px) { .rh-adm-float { left: 12px; right: 12px; width: auto; bottom: 80px; } }

/* footer */
.rh-footer { background: var(--mc-navy); color: #c9d4e6; padding: 56px 0 0; border-top: 4px solid var(--rh-gold); }
.rh-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 860px) { .rh-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rh-foot-grid { grid-template-columns: 1fr; } }
.rh-footer h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--rh-gold); font-size: 1.1rem; margin: 0 0 14px; }
.rh-footer a { display: block; color: #c9d4e6; padding: 4px 0; font-size: .88rem; }
.rh-footer a:hover { color: var(--rh-gold); }
.rh-footer p { font-size: .88rem; margin: 0 0 8px; }
.rh-foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rh-foot-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.rh-foot-brand h4 { margin: 0; color: #fff; }
.rh-foot-facts { font-size: .82rem; margin: 10px 0; line-height: 1.7; }
.rh-foot-facts b { color: #fff; }
.rh-footer .mc-social { display: flex; gap: 8px; margin-top: 12px; }
.rh-footer .mc-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; padding: 0; font-weight: 900; }
.rh-footer .mc-social a:hover { background: var(--rh-gold); color: var(--mc-navy); }
.rh-foot-bottom { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.theme-royal-heritage .mc-brand-name { font-family: 'DM Sans', sans-serif; background: linear-gradient(90deg, var(--rh-gold), var(--mc-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reveal on scroll */
.rh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rh-reveal.in-view { opacity: 1; transform: none; }

/* shared pages from Modern Campus: page banners in heritage colours */
.theme-royal-heritage .mc-page-hero, .theme-royal-heritage .mc-page-banner { background: linear-gradient(135deg, var(--mc-navy), var(--rh-maroon)) !important; }
.theme-royal-heritage .mc-btn-solid { background: linear-gradient(135deg, var(--mc-accent), var(--mc-accent-dark)); }


/* ===========================================================
   ROYAL HERITAGE — header v2 (contact strip, crest band, menu,
   latest ticker, birthday-today strip)
   =========================================================== */
.rh-topbar { background: linear-gradient(90deg, #0b1e3e, #15305c 50%, #0b1e3e); color: #dbe3f0; font-size: .86rem; padding: 9px 0; font-weight: 500; }
.rh-top-in { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; text-align: center; }
.rh-topbar a, .rh-topbar span { color: #dbe3f0; margin: 0; }
.rh-topbar a { color: var(--rh-gold); font-weight: 600; }
.rh-topbar a:hover { color: #fff; }
.rh-topbar i { font-style: normal; color: var(--rh-gold); }
.rh-topbar .sep { color: rgba(255,255,255,.3); }

.rh-head { border-top: 4px solid var(--rh-maroon); background: linear-gradient(180deg, #fff 0%, #fff8ee 100%); background-image: radial-gradient(circle at 8% 50%, rgba(242,178,51,.14), transparent 30%), radial-gradient(circle at 92% 40%, rgba(125,20,39,.06), transparent 30%), linear-gradient(180deg, #fff 0%, #fff8ee 100%); border-bottom: 0; }
.rh-head-in { justify-content: center; gap: 48px; padding: 14px 24px 16px; }
.rh-crest { gap: 22px; }
.rh-crest img { height: 104px; width: 104px; filter: drop-shadow(0 6px 10px rgba(125,20,39,.18)); }
.rh-name { font-size: 2.35rem; letter-spacing: .015em; color: #9b1022; text-shadow: 0 1px 0 rgba(0,0,0,.04); }
.rh-sub { color: var(--mc-accent); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; margin-top: 6px; }
.rh-recog { font-size: .92rem; color: #4b5563; font-weight: 600; margin-top: 4px; }
.rh-idbox { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(11,30,62,.6); flex-shrink: 0; border: 2px solid rgba(255,255,255,.6); }
.rh-idbox > div { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: .86rem; letter-spacing: .08em; padding: 11px 22px; white-space: nowrap; }
.rh-idbox span { font-size: 1rem; }
.rh-idbox .m { background: linear-gradient(135deg, #b0122a, #7d1427); }
.rh-idbox .n { background: linear-gradient(135deg, #15305c, #0b1e3e); }
.rh-idbox .g { background: linear-gradient(135deg, #d4911a, #a86a07); }
@media (max-width: 1100px) { .rh-name { font-size: 1.8rem; } .rh-head-in { gap: 24px; } }
@media (max-width: 900px) {
    .rh-head-in { flex-direction: column; align-items: center; text-align: center; }
    .rh-crest { flex-direction: column; gap: 8px; }
    .rh-name { font-size: 1.45rem; }
    .rh-crest img { height: 76px; width: 76px; }
}

.rh-nav { background: linear-gradient(180deg, #a3142a 0%, #7d1427 55%, #6a0f20 100%); border-bottom: 1px solid #4d0a17; }
.rh-nav-in { justify-content: center; }
.rh-menu { justify-content: center; }
.rh-mi + .rh-mi::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: rgba(255,255,255,.18); }
.rh-mi > a { padding: 17px 18px; color: #fff; font-size: .8rem; letter-spacing: .09em; font-weight: 700; border-bottom: 3px solid transparent; }
.rh-mi.on > a { color: var(--rh-gold); border-bottom-color: var(--rh-gold); }
.rh-mi > a:hover { color: var(--rh-gold); }
.rh-apply { margin-left: 14px; padding: 11px 24px; border-radius: 6px; font-size: .8rem; letter-spacing: .1em; background: linear-gradient(180deg, #ffd479, #f2b233); color: #6a0f20 !important; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6); }
@media (max-width: 1000px) { .rh-nav-in { justify-content: space-between; } }

.rh-ticker { background: linear-gradient(90deg, #1b0d06, #2a1206 50%, #1b0d06); }
.rh-ticker-label { background: linear-gradient(135deg, var(--mc-accent), #c2410c); color: #fff; padding: 11px 34px 11px 18px; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.rh-ticker-label span { color: #fde68a; margin-right: 4px; }
.rh-ticker-move a { color: #f8fafc; font-weight: 700; font-size: .9rem; margin-right: 0; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.12); }
.rh-ticker-move a:hover { color: var(--rh-gold); }
.rh-diamond { color: var(--mc-accent); margin-left: 12px; }

.rh-bday { display: flex; align-items: stretch; min-height: 82px; background-color: #b8500a; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px), linear-gradient(90deg, #9a3c05 0%, #e8630a 45%, #b8500a 100%); background-size: 16px 16px, 100% 100%; color: #fff; border-bottom: 3px solid #f2b233; overflow: hidden; }
.rh-bday-label { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #15305c, #0b1e3e); padding: 0 40px 0 22px; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); font-weight: 900; font-size: .78rem; letter-spacing: .1em; line-height: 1.25; color: var(--rh-gold); flex-shrink: 0; }
.rh-bday-label .cake { font-size: 1.7rem; }
.rh-bday-body { flex: 1; display: flex; align-items: center; padding: 8px 18px; position: relative; min-width: 0; }
.rh-bday-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rh-bday-av { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--rh-gold); background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.rh-bday-av img { width: 100%; height: 100%; object-fit: cover; }
.rh-bday .spark { color: #fde68a; font-size: 1.1rem; }
.rh-bday .nm { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.rh-bday .cl { font-size: .72rem; font-weight: 800; color: #fde68a; letter-spacing: .06em; }
.rh-bday .wish { font-size: .86rem; font-weight: 600; color: #fff7ed; }
.rh-bday-count { margin-left: auto; font-size: .72rem; font-weight: 800; background: rgba(0,0,0,.2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .rh-bday-label { padding: 0 26px 0 12px; font-size: .66rem; } .rh-bday-label .cake { font-size: 1.3rem; } .rh-bday-av { width: 48px; height: 48px; } .rh-bday .wish { font-size: .76rem; } .rh-bday-count { display: none; } }

/* the floating admission card stays out of the way on phones (the menu has Apply Now) */
@media (max-width: 760px) { .rh-adm-float { display: none !important; } }

/* hero background when slide photos are missing: the school front photo (inline) or a soft pattern */
.rh-hero { background-color: var(--mc-navy); background-image: radial-gradient(rgba(242,178,51,.10) 1px, transparent 1.5px), linear-gradient(135deg, #0b1e3e, #15305c 55%, #3b0b16); background-size: 22px 22px, 100% 100%; background-position: center; }
.rh-hero[style*="background-image"] { background-size: cover; }

/* card / small titles: clean sans-serif (Playfair stays for the big h1 / h2 headings only) */
.theme-royal-heritage h3, .theme-royal-heritage h4, .theme-royal-heritage h5 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; color: var(--mc-navy); }
.theme-royal-heritage h3 { font-size: 1.12rem; line-height: 1.3; }
.rh-footer h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--rh-gold); }
