/* ==========================================================================
   PUBLIC WEBSITE STYLES — Manarus Sabeel
   ========================================================================== */

/* ---------------- Top utility bar ---------------- */
.topbar {
  background: var(--navy-900); color: var(--gray-300);
  font-size: .8rem; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gray-300); }
.topbar .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .topbar-cta a { color: var(--gold-400); font-weight: 600; }

/* ---------------- Navbar ---------------- */
.navbar {
  background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 500;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 13px; font-size: .87rem; font-weight: 600; color: var(--gray-700);
  border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); background: var(--gray-100); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 8px; width: 42px; height: 42px; align-items: center; justify-content: center;
}
.hamburger span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: var(--transition); }
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--white); z-index: 900;
  padding: 20px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav a {
  display: block; padding: 14px 6px; font-weight: 600; color: var(--navy-800);
  border-bottom: 1px solid var(--gray-100); font-size: 1rem;
}
.mobile-nav .btn { margin-top: 20px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary, .nav-actions .btn-lg { display: none; }
  .hamburger { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(217,164,65,.20), transparent 60%),
              linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--purple-700) 100%);
  color: var(--white); padding: 60px 0 90px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(217,164,65,.16);
  border: 1px solid rgba(217,164,65,.4); color: var(--gold-400); font-weight: 700; font-size: .78rem;
  padding: 8px 16px; border-radius: var(--radius-full); margin-bottom: 22px; letter-spacing: .03em;
}
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: .3em; }
.hero h1 span { color: var(--gold-400); }
.hero .tagline { color: var(--gold-300, var(--gold-400)); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; margin-bottom: 6px; }
.hero .slogan { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--gold-400); font-family: var(--font-heading); }
.hero-stats div span { font-size: .8rem; color: rgba(255,255,255,.7); }
.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px);
}
.hero-visual .visual-card {
  background: var(--white); border-radius: var(--radius-md); padding: 20px; color: var(--gray-800);
  margin-bottom: 14px; box-shadow: var(--shadow-md);
}
.hero-visual .visual-card:last-child { margin-bottom: 0; }
.hero-visual .visual-card h4 { margin-bottom: 4px; font-size: .95rem; }
.hero-visual .visual-card p { margin: 0; font-size: .8rem; color: var(--gray-500); }
.hero-visual .visual-row { display: flex; align-items: center; gap: 12px; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { order: -1; }
}

/* ---------------- Feature / info cards ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-300); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-100); color: var(--purple-600); font-size: 1.3rem; margin-bottom: 18px;
}
.feature-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: .88rem; margin: 0; }

.icon-tile-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.icon-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-md);
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.icon-tile i { color: var(--purple-600); font-size: 1.2rem; width: 30px; text-align: center; }
.icon-tile span { font-weight: 600; font-size: .9rem; color: var(--navy-800); }

/* ---------------- Levels ---------------- */
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.level-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200);
  background: var(--white); transition: transform var(--transition), box-shadow var(--transition);
}
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.level-card .level-top {
  height: 90px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--white);
  background: linear-gradient(135deg, var(--navy-700), var(--purple-700));
}
.level-card:nth-child(2) .level-top { background: linear-gradient(135deg, #1f5f37, #3d8a52); }
.level-card:nth-child(3) .level-top { background: linear-gradient(135deg, #2f633d, #4f9a63); }
.level-card:nth-child(4) .level-top { background: linear-gradient(135deg, #174a2a, #2f633d); }
.level-card:nth-child(5) .level-top { background: linear-gradient(135deg, #0c2a17, #1f5f37); }
.level-card .level-body { padding: 18px; }
.level-card h4 { font-size: .95rem; margin-bottom: 6px; }
.level-card p { font-size: .8rem; color: var(--gray-500); margin: 0; }

/* ---------------- Facilities / Activities ---------------- */
.facility-grid, .activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.facility-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); background: var(--white);
}
.facility-img {
  height: 130px; background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center; color: var(--navy-600); font-size: 2rem;
}
.facility-card .body { padding: 20px; }
.facility-card h4 { font-size: .98rem; margin-bottom: 6px; }
.facility-card p { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* ---------------- Testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--gray-200);
}
.testimonial-card .stars { color: var(--gold-500); margin-bottom: 12px; font-size: .85rem; }
.testimonial-card p.quote { font-size: .92rem; color: var(--gray-700); font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-person strong { display: block; font-size: .88rem; }
.testimonial-person span { font-size: .78rem; color: var(--gray-500); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--purple-700));
  border-radius: var(--radius-lg); padding: 56px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--purple-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item h4 { margin-bottom: 4px; font-size: .95rem; }
.contact-info-item p { margin: 0; color: var(--gray-500); font-size: .88rem; }
.map-placeholder {
  height: 230px; border-radius: var(--radius-lg); background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; color: var(--gray-400);
  border: 1px dashed var(--gray-300); flex-direction: column; gap: 8px;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h5 { color: var(--white); font-size: .92rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: .86rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-about p { font-size: .86rem; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-approved { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.footer-approved span {
  background: rgba(255,255,255,.08); padding: 5px 12px; border-radius: var(--radius-full); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; color: var(--gold-400);
}

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800) 60%, var(--purple-700));
  color: var(--white); padding: 56px 0; text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; font-size: 2.1rem; }
.page-header p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; }
.page-header .breadcrumbs { justify-content: center; color: rgba(255,255,255,.6); margin-top: 14px; }
.page-header .breadcrumbs a { color: rgba(255,255,255,.8); }

/* ---------------- News cards ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.news-img {
  height: 150px; background: linear-gradient(135deg, var(--navy-700), var(--purple-700));
  display: flex; align-items: center; justify-content: center; color: var(--gold-400); font-size: 2rem;
}
.news-card .body { padding: 20px; }
.news-card .tag { font-size: .72rem; font-weight: 700; color: var(--purple-600); text-transform: uppercase; letter-spacing: .04em; }
.news-card h4 { font-size: .98rem; margin: 8px 0; }
.news-card .meta { font-size: .78rem; color: var(--gray-400); }

/* ---------------- Admissions timeline / steps ---------------- */
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.process-step { text-align: center; }
.process-step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px;
  font-family: var(--font-heading);
}
.process-step h5 { font-size: .84rem; margin-bottom: 4px; }
.process-step p { font-size: .76rem; color: var(--gray-500); margin: 0; }

.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; font-size: .92rem; background: var(--white);
}
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .25s ease; color: var(--gray-500); font-size: .88rem; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 300px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-q i { transition: transform .2s ease; }

/* ---------------- Multi-step application form ---------------- */
.app-steps-nav { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.app-steps-nav::before {
  content: ''; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--gray-200); z-index: 0;
}
.app-step-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.app-step-item .circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--gray-300);
  color: var(--gray-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  font-weight: 700; font-size: .85rem; transition: var(--transition);
}
.app-step-item span { font-size: .74rem; color: var(--gray-400); font-weight: 600; display: block; }
.app-step-item.active .circle { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.app-step-item.active span { color: var(--navy-800); }
.app-step-item.done .circle { background: var(--success); border-color: var(--success); color: var(--white); }
.app-step-item.done span { color: var(--success); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.upload-box {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-md); padding: 24px; text-align: center;
  background: var(--gray-50); transition: var(--transition); cursor: pointer;
}
.upload-box:hover { border-color: var(--navy-600); background: var(--gray-100); }
.upload-box i { font-size: 1.6rem; color: var(--gray-400); margin-bottom: 8px; display: block; }
.upload-box .file-name { margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--success); }

.review-block { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 16px; }
.review-block h5 {
  background: var(--gray-50); padding: 12px 18px; margin: 0; font-size: .84rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--navy-700); border-bottom: 1px solid var(--gray-200);
}
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; padding: 16px 18px; }
.review-grid .item { padding: 6px 0; font-size: .86rem; display: flex; justify-content: space-between; border-bottom: 1px dashed var(--gray-100); }
.review-grid .item span.k { color: var(--gray-500); }
.review-grid .item span.v { font-weight: 600; color: var(--gray-800); }

.success-panel { text-align: center; padding: 20px 0; }
.success-panel .check-circle {
  width: 84px; height: 84px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 20px;
}
.ref-number {
  display: inline-block; background: var(--navy-900); color: var(--gold-400); font-family: var(--font-heading);
  font-weight: 800; font-size: 1.5rem; padding: 14px 30px; border-radius: var(--radius-md); letter-spacing: .04em;
  margin: 14px 0;
}

/* ---------------- Tracking timeline ---------------- */
.track-timeline { display: flex; justify-content: space-between; margin: 40px 0; position: relative; flex-wrap: wrap; gap: 20px; }
.track-timeline::before { content: ''; position: absolute; top: 17px; left: 0; right: 0; height: 3px; background: var(--gray-200); z-index: 0; }
.track-item { flex: 1; min-width: 90px; text-align: center; position: relative; z-index: 1; }
.track-item .dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 3px solid var(--gray-300);
  margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: var(--gray-400);
}
.track-item.reached .dot { border-color: var(--success); background: var(--success); color: var(--white); }
.track-item.current .dot { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-900); box-shadow: 0 0 0 6px var(--gold-100); }
.track-item span { font-size: .76rem; font-weight: 700; color: var(--gray-400); }
.track-item.reached span, .track-item.current span { color: var(--navy-800); }

@media (max-width: 980px) {
  .feature-grid, .facility-grid, .activity-grid, .testimonial-grid, .news-grid, .icon-tile-list { grid-template-columns: repeat(2, 1fr); }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid, .facility-grid, .activity-grid, .testimonial-grid, .news-grid, .icon-tile-list, .level-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* ==========================================================================
   MANARUS SABEEL — public site additions
   ========================================================================== */
.hero .arabic-title { font-size: 2.1rem; color: var(--gold-400); margin-bottom: 4px; line-height: 1.5; }
.hero .arabic-motto { font-size: 1.25rem; color: rgba(255,255,255,.9); margin: 0 0 4px; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 4px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 440px; object-fit: cover; object-position: center 30%; }
.hero-photo .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(12,42,23,.92)); color: var(--white); font-size: .88rem;
}
.hero-photo .caption strong { color: var(--gold-400); display: block; font-family: var(--font-heading); }
.hero-photo .seal {
  position: absolute; top: 16px; right: 16px; width: 74px; height: 74px; border-radius: 50%;
  background: var(--white); padding: 3px; box-shadow: 0 0 0 3px var(--gold-500), var(--shadow-md);
}
.hero-photo .seal img { width: 100%; height: 100%; border-radius: 50%; }
@media (max-width: 980px) { .hero-photo img { height: 300px; } .hero .arabic-title { font-size: 1.6rem; } }

/* Programme cards: show the short code prominently */
.level-card .code {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--purple-700);
  background: var(--gold-100); padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 8px;
}
@media (max-width: 1100px) { .level-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .level-grid { grid-template-columns: 1fr 1fr; } }

/* Video feature */
.video-feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.video-frame {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  box-shadow: var(--shadow-lg); border: 4px solid var(--white); aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
@media (max-width: 900px) { .video-feature { grid-template-columns: 1fr; } }

/* Photo gallery + lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid.wide { grid-template-columns: repeat(4, 1fr); }
.photo-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--gray-100); border: 1px solid var(--gray-200);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: var(--white);
  background: linear-gradient(transparent, rgba(12,42,23,.88)); font-size: .82rem; font-weight: 600;
}
.photo-tile.tall { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .photo-grid, .photo-grid.wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .photo-grid, .photo-grid.wide { grid-template-columns: 1fr; } }
.lightbox {
  position: fixed; inset: 0; background: rgba(6,20,11,.92); display: none; align-items: center;
  justify-content: center; z-index: 2000; padding: 30px; flex-direction: column; gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox .lb-caption { color: rgba(255,255,255,.85); font-size: .9rem; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.1); color: var(--white);
  border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
}

/* A photo beside text (About page, admissions flyer) */
.framed-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid var(--white); }
.framed-photo img { width: 100%; height: auto; }
.news-img.has-photo { padding: 0; }
.news-img.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Ayah / quote band */
.ayah-band { background: var(--gold-100); border-top: 3px solid var(--gold-500); border-bottom: 3px solid var(--gold-500); text-align: center; padding: 38px 0; }
.ayah-band .arabic { font-size: 1.9rem; color: var(--purple-700); line-height: 1.8; }
.ayah-band p { color: var(--gray-600); margin: 6px 0 0; font-style: italic; }
