
/* ═══════════════════════════════════════════════════════════
   PAGES.CSS – Reusable inner-page components
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE BANNER ────────────────────────────────────────── */
.page-banner {
  position: relative;
  padding: 90px 0 72px;
  background: var(--green-dark);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23c9a84c' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18; filter: saturate(.4);
}
.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,54,34,.95) 0%, rgba(194,24,91,.35) 100%);
}
.page-banner-glow {
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(233,30,140,.14) 0%, transparent 70%);
  top: 50%; right: 8%; transform: translateY(-50%);
  pointer-events: none;
}
.page-banner-inner {
  position: relative; z-index: 2;
}
.page-banner .pb-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink-light);
  background: rgba(233,30,140,.15); border: 1px solid rgba(233,30,140,.35);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 18px;
}
.page-banner h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white); line-height: 1.2; margin-bottom: 14px;
}
.page-banner h1 em { font-style: italic; color: var(--pink-light); }
.page-banner .pb-sub {
  font-size: .98rem; color: rgba(255,255,255,.65); max-width: 560px;
  line-height: 1.78; margin-bottom: 22px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--pink-light); }
.breadcrumb .sep { color: rgba(233,30,140,.6); font-size: .65rem; }
.breadcrumb .current { color: var(--pink-light); font-weight: 600; }

/* ── PAGE CONTENT WRAPPER ─────────────────────────────── */
.page-content { padding: 80px 0; }
.page-content.bg-white  { background: var(--white); }
.page-content.bg-cream  { background: var(--cream); }

/* ── SECTION LABEL / TITLE (for inner pages) ─────────── */
.inner-section { padding: 72px 0; }
.inner-section.alt { background: var(--white); }
.inner-section.cream { background: var(--cream); }

/* ── TIMELINE ─────────────────────────────────────────── */
.timeline { position: relative; padding-left: 0; margin-top: 48px; }
.timeline::before {
  content: ''; position: absolute; left: 22px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--pink), var(--gold), var(--pink));
  border-radius: 2px;
}
.tl-item { display: flex; gap: 28px; margin-bottom: 40px; align-items: flex-start; }
.tl-dot {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: var(--pink);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--pink);
  display: grid; place-items: center;
  font-family: 'Amiri', serif; font-size: 1rem; font-weight: 700;
  color: var(--white); position: relative; z-index: 1;
}
.tl-body { background: var(--white); border-radius: 14px; padding: 22px 26px; flex: 1; border: 1.5px solid var(--border); transition: all .3s; }
.tl-body:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateX(4px); }
.tl-year { font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.tl-body h4 { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--green-dark); margin-bottom: 7px; }
.tl-body p  { font-size: .86rem; color: var(--text-muted); line-height: 1.72; }

/* ── TEAM CARDS ───────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.team-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 1.5px solid var(--border); transition: all .3s; text-align: center; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--pink); }
.team-card-img { height: 200px; background: var(--gold-pale); overflow: hidden; position: relative; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-card-img img { transform: scale(1.06); }
.team-card-img .team-initials {
  width: 80px; height: 80px; border-radius: 50%; margin: 40px auto 0;
  display: grid; place-items: center;
  font-family: 'Amiri', serif; font-size: 1.8rem; font-weight: 700;
  color: var(--white); background: var(--green-dark);
  border: 3px solid var(--gold);
}
.team-card-body { padding: 20px 18px; }
.team-card-body h4 { font-family: 'Amiri', serif; font-size: 1.05rem; color: var(--green-dark); margin-bottom: 5px; }
.team-card-body .role { font-size: .78rem; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.team-card-body .qual { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }

/* ── ACCORDION (FAQ) ──────────────────────────────────── */
.accordion { margin-top: 32px; }
.acc-item { border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.acc-item.open { border-color: var(--pink); }
.acc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; background: var(--white);
  transition: background .2s; user-select: none;
}
.acc-header:hover { background: var(--pink-pale); }
.acc-item.open .acc-header { background: var(--pink-pale); }
.acc-header h4 { font-size: .92rem; font-weight: 700; color: var(--green-dark); flex: 1; }
.acc-icon { width: 28px; height: 28px; background: var(--pink-pale); border-radius: 50%; display: grid; place-items: center; color: var(--pink); font-size: .75rem; transition: transform .3s, background .2s; flex-shrink: 0; }
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--pink); color: var(--white); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; }
.acc-body-inner { padding: 0 22px 20px; font-size: .88rem; color: var(--text-muted); line-height: 1.8; }
.acc-item.open .acc-body { max-height: 500px; }

/* ── TABLE STYLES ─────────────────────────────────────── */
.styled-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.styled-table thead tr { background: var(--green-dark); color: var(--white); }
.styled-table thead th { padding: 14px 18px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.styled-table thead th:first-child { border-radius: 10px 0 0 0; }
.styled-table thead th:last-child  { border-radius: 0 10px 0 0; }
.styled-table tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
.styled-table tbody tr:hover { background: var(--pink-pale); }
.styled-table tbody tr:last-child { border-bottom: none; }
.styled-table tbody td { padding: 13px 18px; font-size: .86rem; color: var(--text-mid); }
.styled-table tbody td .badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-pink   { background: var(--pink-pale);  color: var(--pink-mid); }
.badge-green  { background: rgba(30,138,82,.12); color: var(--green-mid); }
.badge-gold   { background: var(--gold-pale);   color: #7a5c10; }

/* ── NEWS GRID (inner page) ───────────────────────────── */
.news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 18px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted);
  transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.news-search { display: flex; gap: 12px; margin-bottom: 36px; }
.news-search input { flex: 1; padding: 12px 18px; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .9rem; outline: none; transition: border-color .2s; }
.news-search input:focus { border-color: var(--pink); }
.news-search .search-btn { padding: 12px 22px; background: var(--pink); color: var(--white); border: none; border-radius: 10px; cursor: pointer; font-size: .9rem; transition: background .2s; }
.news-search .search-btn:hover { background: var(--pink-mid); }

/* ── EVENTS PAGE ──────────────────────────────────────── */
.event-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
.event-page-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 1.5px solid var(--border); display: flex; gap: 0; transition: all .3s; }
.event-page-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.epc-date { width: 88px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; text-align: center; }
.epc-date .day { font-family: 'Amiri', serif; font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; display: block; }
.epc-date .mon { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.8); display: block; margin-top: 2px; }
.epc-date .yr  { font-size: .65rem; color: rgba(255,255,255,.55); display: block; margin-top: 3px; }
.epc-body { flex: 1; padding: 20px; }
.epc-cat { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; display: inline-block; margin-bottom: 8px; }
.epc-body h4 { font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 7px; line-height: 1.3; }
.epc-body p  { font-size: .82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.epc-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.epc-meta span { font-size: .74rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.epc-meta i { color: var(--pink); }

/* ── GALLERY GRID ─────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery-item { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(10,54,34,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 1.8rem; }
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.tall { aspect-ratio: 4/5; }

/* ── DOWNLOAD CARDS ───────────────────────────────────── */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.download-card { background: var(--white); border-radius: 16px; padding: 28px; border: 1.5px solid var(--border); text-align: center; transition: all .3s; }
.download-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.dl-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--pink-pale); display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.8rem; transition: background .3s; }
.download-card:hover .dl-icon { background: var(--pink); }
.download-card h4 { font-family: 'Amiri', serif; font-size: 1.05rem; color: var(--green-dark); margin-bottom: 8px; }
.download-card p  { font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.65; }
.btn-download { display: inline-flex; align-items: center; gap: 7px; background: var(--green-dark); color: var(--white); padding: 10px 20px; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none; transition: all .25s; letter-spacing: .04em; text-transform: uppercase; }
.btn-download:hover { background: var(--pink); }

/* ── PROGRAMME CARDS ──────────────────────────────────── */
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.programme-card { background: var(--white); border-radius: 20px; overflow: hidden; border: 1.5px solid var(--border); transition: all .3s; }
.programme-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.pc-head { padding: 28px; color: var(--white); position: relative; overflow: hidden; }
.pc-head::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23fff' stroke-opacity='0.08' stroke-width='2'/%3E%3C/svg%3E") repeat; }
.pc-head h3 { font-family: 'Amiri', serif; font-size: 1.4rem; position: relative; z-index: 1; margin-bottom: 6px; }
.pc-head .pc-sub { font-size: .78rem; opacity: .75; position: relative; z-index: 1; }
.pc-body { padding: 26px; }
.pc-body ul { list-style: none; }
.pc-body ul li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .88rem; color: var(--text-mid); border-bottom: 1px solid rgba(229,223,200,.5); }
.pc-body ul li:last-child { border-bottom: none; }
.pc-body ul li i { color: var(--pink); font-size: .85rem; flex-shrink: 0; }

/* ── BOARDING FEATURES ────────────────────────────────── */
.boarding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 48px; }
.boarding-card { background: var(--white); border-radius: 18px; padding: 30px; border: 1.5px solid var(--border); display: flex; gap: 20px; transition: all .3s; }
.boarding-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); }
.bc-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--pink-pale); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; transition: background .3s; }
.boarding-card:hover .bc-icon { background: var(--pink); }
.bc-body h4 { font-size: .96rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.bc-body p  { font-size: .84rem; color: var(--text-muted); line-height: 1.72; }

/* ── ACTIVITIES ───────────────────────────────────────── */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.activity-card { border-radius: 18px; overflow: hidden; position: relative; min-height: 280px; display: flex; align-items: flex-end; transition: transform .3s; }
.activity-card:hover { transform: translateY(-5px); }
.activity-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.activity-card:hover .activity-card-bg { transform: scale(1.05); }
.activity-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,54,34,.9) 0%, rgba(10,54,34,.2) 60%, transparent 100%); }
.activity-content { position: relative; z-index: 2; padding: 24px; }
.activity-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.activity-content h4 { font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--white); margin-bottom: 6px; }
.activity-content p  { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.act-tag { display: inline-block; background: var(--pink); color: var(--white); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 10px; margin-bottom: 10px; }

/* ── SKILLS PAGE ──────────────────────────────────────── */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.skill-card { background: var(--white); border-radius: 18px; padding: 32px; border: 1.5px solid var(--border); text-align: center; transition: all .3s; }
.skill-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.skill-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; }
.skill-card h4 { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--green-dark); margin-bottom: 10px; }
.skill-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.75; }
.skill-badge { display: inline-block; margin-top: 14px; background: var(--pink-pale); color: var(--pink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px; border-radius: 12px; }

/* ── ARABIC SCHOOL ────────────────────────────────────── */
.arabic-feature { background: var(--green-dark); border-radius: 20px; padding: 36px; color: var(--white); display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; position: relative; overflow: hidden; }
.arabic-feature::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c9a84c' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E") repeat; pointer-events: none; }
.af-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.3); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; position: relative; z-index: 1; }
.af-body { position: relative; z-index: 1; }
.af-body h4 { font-family: 'Amiri', serif; font-size: 1.2rem; color: var(--gold-light); margin-bottom: 8px; }
.af-body p  { font-size: .86rem; color: rgba(255,255,255,.65); line-height: 1.75; }

/* ── E-LEARNING ───────────────────────────────────────── */
.elearning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.el-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 1.5px solid var(--border); transition: all .3s; }
.el-card:hover { border-color: var(--pink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.el-card-head { padding: 24px; display: flex; align-items: center; gap: 14px; }
.el-card-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.el-card-head h4 { font-family: 'Amiri', serif; font-size: 1.05rem; color: var(--green-dark); }
.el-card-head .el-cat { font-size: .7rem; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.el-card-body { padding: 0 24px 24px; }
.el-card-body p { font-size: .84rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.el-card-body .el-link { display: inline-flex; align-items: center; gap: 6px; color: var(--pink); font-size: .82rem; font-weight: 700; text-decoration: none; }
.el-card-body .el-link:hover { color: var(--pink-mid); }

/* ── CONTACT PAGE MAP ─────────────────────────────────── */
.map-embed { border-radius: 18px; overflow: hidden; height: 380px; border: 2px solid var(--border); margin-top: 32px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border-radius: 16px; padding: 26px; border: 1.5px solid var(--border); }
.sw-title { font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--pink); }
.recent-news-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.recent-news-item:last-child { margin-bottom: 0; }
.rn-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rn-body .rn-date { font-size: .7rem; color: var(--pink); font-weight: 700; display: block; margin-bottom: 3px; }
.rn-body a { font-size: .83rem; font-weight: 600; color: var(--green-dark); text-decoration: none; line-height: 1.4; transition: color .2s; }
.rn-body a:hover { color: var(--pink); }
.cat-list { list-style: none; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(229,223,200,.5); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { font-size: .86rem; color: var(--text-mid); text-decoration: none; display: flex; align-items: center; gap: 7px; transition: color .2s; }
.cat-list a::before { content: '›'; color: var(--pink); }
.cat-list a:hover { color: var(--pink); }
.cat-list .count { background: var(--pink-pale); color: var(--pink); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* ── PAGINATION ───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.page-link { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: .84rem; font-weight: 600; color: var(--text-mid); text-decoration: none; transition: all .2s; }
.page-link:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-pale); }
.page-link.active { background: var(--pink); border-color: var(--pink); color: var(--white); }
.page-link.prev, .page-link.next { width: auto; padding: 0 16px; gap: 6px; display: flex; align-items: center; }

/* ── BACK TO TOP ──────────────────────────────────────── */
#backToTop { position:fixed; right:22px; bottom:110px; width:48px; height:48px; border-radius:50%; border:none; background:linear-gradient(135deg,var(--green-mid),var(--green-dark)); color:#fff; display:none; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.25); z-index:9999; transition:all .3s; font-size:1rem; }
#backToTop:hover { transform:translateY(-3px); background:var(--pink); }

/* ── RESPONSIVE (inner pages) ─────────────────────────── */
@media (max-width: 960px) {
  .team-grid      { grid-template-columns: repeat(2,1fr); }
  .programme-grid { grid-template-columns: 1fr 1fr; }
  .event-page-grid{ grid-template-columns: 1fr; }
  .download-grid  { grid-template-columns: 1fr 1fr; }
  .skill-grid     { grid-template-columns: 1fr 1fr; }
  .activity-grid  { grid-template-columns: 1fr 1fr; }
  .boarding-grid  { grid-template-columns: 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; }
  .elearning-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-banner { padding: 60px 0 48px; }
  .team-grid      { grid-template-columns: 1fr 1fr; }
  .programme-grid { grid-template-columns: 1fr; }
  .download-grid  { grid-template-columns: 1fr; }
  .skill-grid     { grid-template-columns: 1fr; }
  .activity-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr; }
  .gallery-item.span-2 { grid-column: span 1; }
  .elearning-grid { grid-template-columns: 1fr; }
}








/* ══════════════════════════════════════════════════════════════
   ARTICLE BODY – news-single.php content typography
   BUG FIX: was missing from pages.css, causing unstyled articles
   ══════════════════════════════════════════════════════════════ */

.article-body {
    font-size: .96rem;
    color: var(--text-mid);
    line-height: 1.92;
    text-align: justify;
}

.article-body h2 {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--green-dark);
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    text-align: left;
}

.article-body h3 {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    color: var(--green-dark);
    margin: 26px 0 10px;
    font-weight: 700;
    text-align: left;
}

.article-body h4 {
    font-family: 'Amiri', serif;
    font-size: 1.05rem;
    color: var(--green);
    margin: 20px 0 8px;
    text-align: left;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 26px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-body strong,
.article-body b {
    color: var(--green-dark);
    font-weight: 700;
}

.article-body em,
.article-body i {
    color: var(--pink-mid);
    font-style: italic;
}

.article-body a {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.article-body a:hover {
    color: var(--pink-mid);
}

.article-body blockquote {
    border-left: 4px solid var(--pink);
    padding: 16px 22px;
    background: var(--pink-pale);
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--pink-mid);
    font-size: .94rem;
    line-height: 1.82;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
    display: block;
}

.article-body hr {
    border: none;
    border-top: 1.5px solid var(--border);
    margin: 30px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: .88rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-body table th {
    background: var(--green-dark);
    color: var(--white);
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .04em;
}

.article-body table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
}

.article-body table tr:nth-child(even) td {
    background: var(--cream);
}

.article-body table tr:last-child td {
    border-bottom: none;
}

/* Responsive: stop justifying on small screens */
@media (max-width: 640px) {
    .article-body {
        text-align: left;
        font-size: .92rem;
    }
    .article-body h2 { font-size: 1.3rem; }
    .article-body h3 { font-size: 1.1rem; }
}


