/* Madrasa Jamaliyyah: girls' madrasa. Cream, emerald and rose-gold; arches and serif type. */
:root {
	--bg: #fdf9f3; --ink: #14322a; --muted: #5c6f68; --accent: #0f6b4f; --rose: #a8664c;
	--line: rgba(20, 50, 42, .13); --card: #fff; --radius: 22px;
	--font-head: "Playfair Display", Georgia, serif; --font-body: "Poppins", system-ui, sans-serif;
	--head-bg: #fffdf9; --foot-bg: #0b3527; --foot-ink: #bcd6cb;
}
.jm-eyebrow { display: block; margin-bottom: 14px; color: var(--rose); font-size: 12.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; }
.sec h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec p { color: var(--muted); }
.jm-tint { background: #f4ede1; }
.jm-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }

.jm-hero { padding: 72px 0 90px; background: radial-gradient(circle at 12% 20%, rgba(185, 120, 95, .16), transparent 40%), radial-gradient(circle at 90% 90%, rgba(15, 107, 79, .12), transparent 45%); }
.jm-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.jm-hero h1 { font-size: clamp(36px, 5.4vw, 66px); }
.jm-hero h1 em { color: var(--rose); font-weight: 500; }
.jm-hero p { max-width: 520px; margin-bottom: 32px; color: var(--muted); font-size: 17px; }
.jm-arch { position: relative; justify-self: end; width: 100%; max-width: 458px; margin: 0; padding: 0 18px 0 0; }
.jm-arch::before { content: ""; position: absolute; inset: -18px 0 38px -18px; border: 1.5px solid var(--rose); border-radius: 999px 999px 28px 28px; opacity: .55; pointer-events: none; }
.jm-arch img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% center; border-radius: 999px 999px 24px 24px; box-shadow: 0 30px 60px rgba(20, 50, 42, .22); }
.jm-arch figcaption { position: relative; margin: -54px 26px 0; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px rgba(20, 50, 42, .16); text-align: center; }
.jm-arch figcaption b { display: block; font-size: 27px; color: var(--accent); }
.jm-arch figcaption span { font-size: 12.5px; color: var(--muted); }

.jm-about { text-align: center; }
.jm-about p { max-width: 780px; margin-inline: auto; }
.jm-about p { font-size: 18px; line-height: 1.95; margin-block: 0; }
.jm-orn { display: inline-block; width: 30px; height: 30px; margin-bottom: 22px; background: var(--rose); clip-path: polygon(50% 0, 63% 25%, 90% 10%, 75% 37%, 100% 50%, 75% 63%, 90% 90%, 63% 75%, 50% 100%, 37% 75%, 10% 90%, 25% 63%, 0 50%, 25% 37%, 10% 10%, 37% 25%); }

.jm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.jm-pillar { padding: 54px 30px 36px; border-radius: 999px 999px 24px 24px; background: #fff; text-align: center; box-shadow: 0 14px 34px rgba(20, 50, 42, .08); }
.jm-pillar span { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 26px; }
.jm-pillar b { display: block; color: var(--rose); font-size: 28px; }
.jm-pillar h3 { font-size: 23px; }
.jm-pillar p { margin: 0; font-size: 15px; }

.jm-vac { background: var(--foot-bg); color: #fff; }
.jm-vac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.jm-vac img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px 140px 24px 24px; }
.sec.jm-vac p { color: #bcd6cb; }
.jm-vac .jm-eyebrow { color: #e6b29b; }
.jm-vac .btn { background: #e6b29b; border-color: #e6b29b; color: #3a1d12; }
.jm-ticks { margin-bottom: 30px; }
.jm-ticks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.jm-ticks .ico { margin-top: 4px; color: #e6b29b; }

.jm-courses { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.jm-course { display: flex; flex-direction: column; flex: 0 1 440px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.jm-course h3 { margin-bottom: 26px; font-size: 22px; }
.jm-course .btn { margin-top: auto; }

.jm-reach { max-width: 860px; margin: 0 auto; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 50px rgba(20, 50, 42, .1); overflow: hidden; }
.jm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.jm-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 20px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; }
.jm-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); background: #f1f8f5; color: var(--accent); }
.js .jm-panel { display: none; }
.js .jm-panel.is-on { display: block; }
.jm-panel { padding: 34px 40px 14px; }
.jm-panel h4 { font-size: 20px; }
.jm-panel ol { counter-reset: way; }
.jm-panel li { position: relative; padding: 0 0 20px 50px; color: var(--muted); counter-increment: way; }
.jm-panel li::before { content: counter(way); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--rose); border-radius: 50%; color: var(--rose); font-size: 13px; font-weight: 600; }
.jm-panel li b { color: var(--ink); font-weight: 600; }
.jm-reach-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 40px; background: #f1f8f5; }
.sec .jm-reach-foot p { display: flex; flex: 1 1 300px; gap: 12px; margin: 0; }
.jm-reach-foot p .ico { margin-top: 5px; color: var(--accent); }

.jm-enquire { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.jm-form { padding: 40px; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 50px rgba(20, 50, 42, .1); }

@media (max-width: 860px) {
	.jm-hero { padding-top: 46px; }
	.jm-hero-grid, .jm-vac-grid, .jm-enquire { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.jm-arch { justify-self: center; padding: 0 10px; }
	.jm-pillars { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 560px) {
	.jm-tabs button { flex-direction: column; font-size: 13px; }
	.jm-panel, .jm-reach-foot { padding-left: 20px; padding-right: 20px; }
	.jm-form, .jm-course { padding: 26px 20px; }
	.jm-arch::before { inset: -10px 0 38px; }
}
