:root {
  --emerald: #0d4d34;
  --emerald-dark: #08321f;
  --emerald-light: #146b48;
  --gold: #c9a227;
  --gold-light: #e0c264;
  --cream: #faf5e9;
  --cream-2: #f3ecdb;
  --ink: #20261f;
  --paper: #fffdf8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13,77,52,0.10);
  --font-ur: 'Noto Nastaliq Urdu', serif;
  --font-en: 'Poppins', sans-serif;
}
* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ur);
  background: var(--cream);
  color: var(--ink);
  line-height: 2.15;
  overflow-x: hidden;
  font-size: 17px;
}
body.lang-en { font-family: var(--font-en); line-height: 1.75; font-size: 15.5px; }
h1,h2,h3,h4,.nastaliq { font-family: var(--font-ur); font-weight: 700; line-height: 1.9; }
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en h4 { font-family: var(--font-en); line-height: 1.35; font-weight: 600; }
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
.container { max-width: 1180px; margin:0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-tag { display:inline-block; background: var(--emerald); color:#fff; padding: 8px 26px; border-radius: 40px; font-size: 15px; margin-bottom: 14px; letter-spacing: .5px; }
.section-title { font-size: 34px; color: var(--emerald-dark); margin-bottom: 10px; }
body.lang-en .section-title { font-size: 28px; }
.section-sub { color:#5c6558; max-width: 680px; margin: 0 auto 40px; font-size: 16px; }
.center { text-align:center; }
.btn { display:inline-flex; align-items:center; gap:8px; padding: 14px 30px; border-radius: 40px; font-weight:600; font-size:16px; cursor:pointer; border:none; transition: all .25s ease; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--emerald-dark); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(201,162,39,.35); }
.btn-outline { background: transparent; border: 2px solid #fff; color:#fff; }
.btn-outline:hover { background:#fff; color: var(--emerald-dark); }
.btn-emerald { background: var(--emerald); color:#fff; }
.btn-emerald:hover { background: var(--emerald-dark); transform: translateY(-3px); }

/* Keep phone numbers, codes and account numbers reading in the correct order
   even inside an RTL (Urdu) layout, so "+91 630..." never appears reversed. */
.ltr-num { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* Top bar */
.topbar { background: var(--emerald-dark); color:#e8e3cf; font-size: 14px; padding: 8px 0; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.topbar a { color:#e8e3cf; }
.topbar .items { display:flex; gap:22px; flex-wrap:wrap; }
.topbar .social { display:flex; gap:12px; }
.topbar .social a { background:rgba(255,255,255,.12); width:28px;height:28px; border-radius:50%; display:flex;align-items:center;justify-content:center; font-size:13px; }

/* Language switcher */
.lang-switch { display:flex; background: rgba(255,255,255,.12); border-radius:30px; padding:3px; gap:2px; }
.lang-switch button { border:none; background:transparent; color:#e8e3cf; font-size:13px; padding:5px 14px; border-radius:30px; cursor:pointer; font-weight:600; transition: all .2s; }
.lang-switch button.active { background: var(--gold); color: var(--emerald-dark); }

/* Header */
header.main { background: var(--paper); box-shadow: 0 2px 14px rgba(0,0,0,.06); position: sticky; top:0; z-index: 100; }
.nav-wrap { display:flex; align-items:center; justify-content:space-between; padding: 12px 0; position: relative; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { width:72px; height:72px; object-fit:contain; flex-shrink:0; }
.brand .name-ur { font-size: 18px; color: var(--emerald-dark); font-family: var(--font-ur); }
body.lang-en .brand .name-ur { font-family: var(--font-en); font-size:15px; font-weight:600; }
.brand .name-en { font-size: 10px; color: var(--gold); letter-spacing: 1px; font-family:'Poppins',sans-serif; }
nav.links { display:flex; gap: 28px; }
nav.links a { font-size: 16px; color: var(--ink); font-weight:600; position:relative; padding: 4px 0; }
nav.links a:hover, nav.links a.current { color: var(--emerald); }
.nav-actions { display:flex; align-items:center; gap:12px; }
.wa-nav { background:#25D366; color:#fff; padding:7px 14px; border-radius:30px; font-size:12.5px; font-weight:600; display:flex; gap:5px; align-items:center; }
.menu-toggle { display:none; font-size: 26px; background:none; border:none; color:var(--emerald-dark); cursor:pointer; }

/* Mobile nav (fixed) */
@media (max-width: 980px) {
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    z-index: 200;
  }
  nav.links.mobile-open { display: flex; }
  nav.links a { padding: 16px 24px; border-bottom: 1px solid var(--cream-2); }
  .menu-toggle { display:block; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 25% 20%, var(--emerald-light), var(--emerald-dark) 70%); color:#fff; overflow:hidden; padding: 90px 0 100px; }
.hero::before { content:""; position:absolute; inset:0; opacity:.12; background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px); background-size: 26px 26px; }
.hero .container { position:relative; display:grid; grid-template-columns: 1.15fr .85fr; gap:40px; align-items:center; }
.hero .badge { display:inline-block; border:1px solid var(--gold-light); color: var(--gold-light); padding:6px 18px; border-radius:30px; font-size:14px; margin-bottom:18px; }
.hero h1 { font-size: 46px; color:#fff; margin-bottom:16px; }
body.lang-en .hero h1 { font-size: 34px; }
.hero h1 .hl { color: var(--gold-light); }
.hero p { font-size: 18px; color:#e8f0ea; margin-bottom: 30px; max-width: 560px; }
body.lang-en .hero p { font-size:15.5px; }
.hero .actions { display:flex; gap:16px; flex-wrap:wrap; }
.hero-visual { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.hero-visual img { border-radius: 12px; }
.stats { display:flex; gap:30px; margin-top:36px; flex-wrap:wrap; }
.stats div { text-align:center; }
.stats strong { font-size:26px; color: var(--gold-light); display:block; }
.stats span { font-size:13px; color:#d7e6dc; }

/* About */
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; }
.about-text p { margin-bottom: 16px; color:#3d443a; font-size:16px; }
body.lang-en .about-text p { font-size:14.5px; }
.about-features { display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:24px; }
.about-features li { display:flex; gap:10px; align-items:flex-start; font-size:15px; color: var(--emerald-dark); font-weight:600; }
.about-img-wrap { position:relative; }
.about-img-wrap .frame { border: 3px solid var(--gold); border-radius: 20px; padding: 16px; background: var(--paper); box-shadow: var(--shadow); }

/* Founders */
.team-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.team-card { background: var(--paper); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); text-align:center; }
.avatar { width: 96px; height:96px; border-radius:50%; background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark)); display:flex; align-items:center; justify-content:center; margin: 0 auto 18px; font-size:38px; color:#fff; border: 3px solid var(--gold-light); }
.team-card h3 { color: var(--emerald-dark); font-size: 21px; margin-bottom:4px; }
.team-role { color: var(--gold); font-weight:600; font-size:14px; margin-bottom:14px; }
.team-card p { font-size:14.5px; color:#5c6558; }

/* Courses */
.course-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card { background: var(--paper); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); transition: transform .3s ease; }
.course-card:hover { transform: translateY(-6px); }
.course-img { height: 190px; overflow:hidden; }
.course-img img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.course-card:hover .course-img img { transform: scale(1.08); }
.course-body { padding: 20px 22px 24px; }
.course-body h3 { font-size:19px; color: var(--emerald-dark); margin-bottom:8px; }
body.lang-en .course-body h3 { font-size:16.5px; }
.course-body p { font-size: 14px; color:#5c6558; margin-bottom: 14px; min-height: 66px; }
.course-btn { color: var(--emerald); font-weight:700; font-size:14px; }
.course-btn span { margin-right:4px; }

/* Admission features */
.feat-strip { background: var(--emerald-dark); border-radius: 20px; padding: 44px; color:#fff; }
.feat-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.feat-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius:14px; padding: 22px 14px; text-align:center; }
.feat-item .ic { font-size:26px; color: var(--gold-light); margin-bottom:10px; }
.feat-item p { font-size: 14.5px; }

/* Admission form */
.admission-wrap { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); overflow:hidden; display:grid; grid-template-columns: .9fr 1.1fr; }
.admission-side { background: linear-gradient(160deg, var(--emerald), var(--emerald-dark)); color:#fff; padding: 44px 36px; }
.admission-side h3 { font-size:26px; margin-bottom:16px; color:#fff; }
body.lang-en .admission-side h3 { font-size:21px; }
.admission-side p { font-size:15px; color:#dfe9e2; margin-bottom:22px; }
.admission-side ul li { display:flex; gap:10px; margin-bottom:12px; font-size:14.5px; }
.admission-form { padding: 44px 40px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size:14px; font-weight:600; color: var(--emerald-dark); }
.form-group input, .form-group select, .form-group textarea { padding: 12px 14px; border: 1.5px solid #e1dcc9; border-radius: 10px; font-family: inherit; font-size:14.5px; background: var(--cream); color: var(--ink); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color: var(--gold); }
.form-submit { margin-top: 22px; width:100%; justify-content:center; font-size:17px; }

/* Donation */
.donate-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.donate-card { background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-right: 5px solid var(--gold); }
.donate-card h3 { color: var(--emerald-dark); font-size:20px; margin-bottom:16px; }
.bank-row { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px dashed #e1dcc9; font-size:14.5px; }
.bank-row b { color: var(--emerald-dark); }
.qr-box { border: 2px dashed var(--gold); border-radius: 14px; padding: 18px; text-align:center; color:#8a8471; font-size:14px; }
.qr-box img { max-width: 220px; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow); }

/* Media links */
.media-strip { display:flex; gap:24px; flex-wrap:wrap; justify-content:center; }
.media-card { display:flex; align-items:center; gap:14px; background:var(--paper); padding:18px 26px; border-radius:14px; box-shadow: var(--shadow); font-weight:700; color: var(--emerald-dark); }
.media-card .ic { width:44px;height:44px;border-radius:50%; display:flex;align-items:center;justify-content:center; color:#fff; font-size:20px; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-item { display:flex; gap:14px; margin-bottom:20px; align-items:flex-start; }
.contact-item .ic { width:42px;height:42px; background: var(--cream-2); color: var(--emerald); border-radius:10px; display:flex;align-items:center;justify-content:center; flex-shrink:0; }
.map-frame { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); min-height: 280px; }
.map-frame iframe { width:100%; height:100%; min-height:280px; border:0; }

/* FAQ */
.faq-item { background: var(--paper); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow); overflow:hidden; }
.faq-q { padding: 18px 22px; font-weight:700; color: var(--emerald-dark); cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.faq-a { padding: 0 22px; max-height:0; overflow:hidden; transition: all .3s ease; color:#5c6558; font-size:14.5px; }
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 300px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

/* Footer */
footer { background: var(--emerald-dark); color:#d8e2da; padding: 60px 0 20px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer h4 { color:#fff; font-size:18px; margin-bottom:18px; }
footer .brand { margin-bottom: 14px; }
footer p { font-size:14px; color:#b9c6bd; margin-bottom:14px; }
footer ul li { margin-bottom:10px; font-size:14px; }
footer ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align:center; font-size:13px; color:#9fb0a5; }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 26px; left: 26px; z-index: 999; background:#25D366; color:#fff; width:60px;height:60px; border-radius:50%; display:flex;align-items:center;justify-content:center; font-size:28px; box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align:center; }
  .hero .actions { justify-content:center; }
  .stats { justify-content:center; }
  .about-grid, .team-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .admission-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .course-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
}
