/*
Theme Name: AlQuran Educators
Theme URI: https://alquraneducators.com/
Author: AlQuran Educators
Author URI: https://alquraneducators.com/
Description: Custom theme for AlQuran Educators, an online Quran and Islamic education academy. Home, About, Courses, Teachers, Contact and Enroll pages built with Elementor, fee plans in the Customizer, and an enrollment form that saves submissions in the dashboard.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aqe
*/

/* ---------- Tokens ---------- */
:root {
	--green-900: #072e23;
	--green-800: #0b3d2e;
	--green-700: #0f5240;
	--green-600: #146b53;
	--green-100: #e4f0ea;
	--gold-500: #c9a24b;
	--gold-400: #d9b766;
	--gold-100: #f7efdc;
	--cream: #fbf8f1;
	--ink: #1d2a25;
	--muted: #5d6b65;
	--line: #e6e1d4;
	--white: #ffffff;
	--danger: #b3261e;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px rgba(7, 46, 35, .08);
	--shadow-lg: 0 20px 50px rgba(7, 46, 35, .14);
	--font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Playfair Display", Georgia, serif;
	--font-ar: "Amiri", "Traditional Arabic", serif;
	--container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
.hero-art svg, .brand-mark { display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.arabic { font-family: var(--font-ar); direction: rtl; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.7em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s; font-family: inherit; line-height: 1.2;
}
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-900); transform: translateY(-2px); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-800); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-800); }
.btn-outline-green { border-color: var(--green-700); color: var(--green-700); }
.btn-outline-green:hover { background: var(--green-700); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: #cfe0d8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #cfe0d8; }
.topbar a:hover { color: var(--gold-400); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 15px; height: 15px; fill: var(--gold-500); }
.topbar-bismillah { font-family: var(--font-ar); font-size: 1.05rem; color: var(--gold-400); }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(7, 46, 35, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand-mark { width: 50px; height: 50px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--green-800); }
.brand-sub { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; margin-top: 4px; }
.custom-logo { max-height: 60px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--green-600); background: var(--green-100); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-800); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: var(--white);
	background: radial-gradient(1200px 500px at 85% 20%, rgba(201, 162, 75, .18), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-700));
}
.pattern-bg::before {
	content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Cpath d='M0 0l20 20M80 0L60 20M0 80l20-20M80 80L60 60'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 110px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-ayah { font-family: var(--font-ar); font-size: 1.7rem; color: var(--gold-400); margin-bottom: 10px; }
.hero-lead { font-size: 1.1rem; color: #d7e6df; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badges div { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold-400); line-height: 1; }
.hero-badges span { font-size: .85rem; color: #c3d6cd; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--green-900), var(--green-700)); text-align: center; padding: 80px 0 70px; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #d2e3db; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .9rem; color: var(--gold-400); margin-bottom: 10px; }
.breadcrumb a { color: #d2e3db; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--green-800); color: #d7e6df; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-500); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #c3d6cd; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.icon-badge { width: 62px; height: 62px; border-radius: 18px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 20px; }
.icon-badge svg { width: 32px; height: 32px; fill: var(--green-700); }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .icon-badge { margin: 0; flex: none; width: 54px; height: 54px; background: rgba(201, 162, 75, .15); }
.feature .icon-badge svg { fill: var(--gold-400); width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3em; }
.feature p { font-size: .93rem; margin: 0; }

/* Course card */

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--green-800), var(--green-600)); padding: 40px; overflow: hidden; min-height: 380px; display: grid; place-items: center; }
.about-visual .ayah-box { position: relative; text-align: center; color: var(--white); }
.about-visual .ayah-box .arabic { font-size: 2.2rem; color: var(--gold-400); line-height: 1.8; }
.about-visual .ayah-box p { color: #d2e3db; font-style: italic; margin-top: 14px; }
.about-visual .ayah-box small { color: var(--gold-400); font-style: normal; display: block; margin-top: 6px; }
.experience-badge { position: absolute; right: 20px; bottom: 20px; background: var(--gold-500); color: var(--green-900); border-radius: var(--radius); padding: 14px 18px; text-align: center; font-weight: 600; font-size: .8rem; line-height: 1.3; }
.experience-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { padding-left: 28px; position: relative; font-weight: 500; font-size: .95rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23072e23' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { text-align: center; position: relative; padding: 10px 14px; }
.step-num { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; background: var(--white); color: var(--green-700); border: 2px dashed var(--gold-500); }
.step p { color: var(--muted); font-size: .93rem; }


/* ---------- Teachers ---------- */
.teacher-card { text-align: center; padding: 34px 26px; }
.teacher-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden; border: 4px solid var(--gold-100); box-shadow: 0 0 0 2px var(--gold-500); background: var(--green-100); display: grid; place-items: center; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo svg { width: 64px; height: 64px; fill: var(--green-600); }
.teacher-card h3 { margin-bottom: .15em; }
.teacher-role { color: var(--gold-500); font-weight: 600; font-size: .85rem; margin-bottom: 12px; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.teacher-tags span { background: var(--green-100); color: var(--green-700); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }


/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--gold-500), #b88d33); padding: 54px 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--green-900); margin-bottom: .2em; }
.cta-band p { color: #3d3420; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 30px 20px 0; font-weight: 600; color: var(--green-900); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-500); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { background: var(--green-800); color: #d7e6df; border-radius: var(--radius-lg); padding: 40px 34px; position: relative; overflow: hidden; }
.contact-info h3 { color: var(--white); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; position: relative; }
.contact-item .icon-badge { width: 50px; height: 50px; border-radius: 14px; margin: 0; flex: none; background: rgba(201, 162, 75, .15); }
.contact-item .icon-badge svg { width: 24px; height: 24px; fill: var(--gold-400); }
.contact-item strong { display: block; color: var(--white); }
.contact-item a { color: #d7e6df; word-break: break-word; }
.contact-item a:hover { color: var(--gold-400); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-800); margin: 10px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--green-900); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--cream);
	border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(20, 107, 83, .12); background: var(--white); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; background: var(--cream); border: 1.5px solid var(--line); padding: 9px 14px; border-radius: 10px; cursor: pointer; margin: 0; }
.radio-row input { width: auto; accent-color: var(--green-600); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; font-weight: 500; }
.alert-success { background: var(--green-100); color: var(--green-800); border: 1px solid #b9d9c9; }
.alert-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f2c4bf; }

.register-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 34px; align-items: start; }
.register-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.side-box.dark { background: var(--green-800); color: #d7e6df; border-color: var(--green-800); }
.side-box.dark h3 { color: var(--white); }
.side-box ol { padding-left: 18px; margin: 0; }
.side-box ol li { margin-bottom: 8px; }

/* ---------- Generic content ---------- */
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius); }
.post-list { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.post-card h2 { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b5ccc1; position: relative; overflow: hidden; font-size: .93rem; }
.footer-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 20px 50px; }
.site-footer h4, .footer-title { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer a { color: #b5ccc1; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand-name { color: var(--white); }
.footer-about { margin-top: 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--gold-500); flex: none; margin-top: 4px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.header-cta .btn-outline-green { display: none; }
}
@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
	.hero .container, .split, .contact-grid, .register-layout { grid-template-columns: 1fr; }
	.hero .container { padding-top: 60px; padding-bottom: 90px; }
	.hero-art { order: -1; max-width: 360px; margin: 0 auto; }
	.grid-3, .post-list { grid-template-columns: repeat(2, 1fr); }
	.register-side { position: static; }
	.topbar-bismillah { display: none; }
}
@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.container { padding: 0 16px; }
	.grid-2, .grid-3, .grid-4, .post-list, .form-grid, .check-list { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; padding: 60px 16px 40px; }
	.header-cta .btn-gold { padding: .6em 1.05em; font-size: .82rem; }
	.brand-name { font-size: 1.2rem; }
	.brand-mark { width: 42px; height: 42px; }
	.cta-band { padding: 40px 26px; }
	.form-card { padding: 28px 20px; }
	.topbar-info { gap: 12px; font-size: .8rem; }
	.topbar-email { display: none !important; }
}

/* ---------- Elementor ---------- */
.elementor-section.pattern-bg > .elementor-container,
.elementor-column.pattern-bg > .elementor-widget-wrap { position: relative; z-index: 1; }
.elementor-column.pattern-bg { position: relative; overflow: hidden; }
.elementor-widget-text-editor .hero-badges { margin-top: 4px; }
.elementor-widget-shortcode .form-card { box-shadow: var(--shadow); }
.elementor-widget-icon-list .elementor-icon-list-item a { color: inherit; }
.elementor-widget-text-editor ol { padding-left: 20px; }
.elementor-widget-text-editor ol li { margin-bottom: 8px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-footer .btn-gold, .site-footer .btn-gold:hover { color: var(--green-900); }
.elementor-widget-image img[src*="hero-art.svg"] { width: 100%; max-width: 440px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }

/* ---------- Content v2: courses, pricing, trust, reviews ---------- */
.section-tight { padding: 40px 0; }
.eyebrow-left::after { display: none; }
#pricing, #courses { scroll-margin-top: 110px; }
.header-cta .btn svg, .hero-phone svg, .cta-phone svg, .side-box .btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Hero */
.hero-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-400); font-weight: 600; margin-top: -10px; }
.hero-phone:hover { color: var(--white); }
.hero-art-img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.trust-item { padding: 24px 20px; text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-800); line-height: 1.2; }
.trust-item span { font-size: .88rem; color: var(--muted); }

/* Course cards */
.course-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.course-card {
	flex: 0 1 calc((100% - 72px) / 4); display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 28px 24px 24px; box-shadow: 0 4px 14px rgba(7, 46, 35, .04);
	transition: transform .25s, box-shadow .25s, border-color .25s; scroll-margin-top: 120px;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d9cfae; }
.course-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--green-100); margin-bottom: 18px; transition: background .25s; }
.course-icon svg { width: 28px; height: 28px; fill: var(--green-700); transition: fill .25s; }
.course-card:hover .course-icon { background: var(--green-700); }
.course-card:hover .course-icon svg { fill: var(--gold-400); }
.course-card h3 { font-size: 1.15rem; margin-bottom: .45em; }
.course-card p { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.course-link { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--green-700); display: inline-flex; gap: 6px; align-items: center; }
.course-link:hover { color: var(--gold-500); }
.grid-note { text-align: center; margin: 30px 0 0; color: var(--muted); font-size: .95rem; }
.grid-note a { font-weight: 600; margin-left: 4px; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px 28px; display: flex; flex-direction: column; text-align: center; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--green-800); border-color: var(--green-800); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.price-card.featured h3 { color: var(--white); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-500); color: var(--green-900); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.price-sub { font-size: .92rem; color: var(--muted); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-card.featured .price-sub { color: #b9cfc5; border-color: rgba(255, 255, 255, .15); }
.price { font-family: var(--font-head); font-size: 3.1rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.price-card.featured .price { color: var(--gold-400); }
.price-period { font-size: .88rem; color: var(--muted); margin: 6px 0 24px; }
.price-card.featured .price-period { color: #b9cfc5; }
.price-card .btn { margin-top: auto; }

/* Fee list (enroll sidebar) */
.fee-list { list-style: none; padding: 0; margin: 0; }
.fee-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.fee-list li:last-child { border-bottom: 0; }
.fee-list small { display: block; color: var(--muted); font-size: .8rem; }
.fee-list b { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-800); white-space: nowrap; }
.fee-list b small { display: inline; font-family: var(--font-body); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.review-card blockquote { margin: 0 0 20px; color: var(--ink); font-size: .97rem; position: relative; padding-top: 26px; }
.review-card blockquote::before { content: "\201C"; position: absolute; top: -14px; left: 0; font-family: var(--font-head); font-size: 3.4rem; color: var(--gold-500); line-height: 1; }
.review-card figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.review-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: var(--gold-400); display: grid; place-items: center; font-weight: 700; flex: none; }
.review-card small { display: block; color: var(--muted); font-size: .82rem; }

/* Empty state (teachers) */
.empty-note { max-width: 560px; margin: 0 auto; text-align: center; background: var(--white); border: 1px dashed #d9cfae; border-radius: var(--radius-lg); padding: 40px 30px; }
.empty-note .course-icon { margin: 0 auto 16px; }
.empty-note p { color: var(--muted); margin: 0; }

/* CTA, contact, enroll */
.cta-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; font-size: 1.15rem; color: var(--green-900); }
.contact-title, .side-title { font-size: 1.35rem; }
.contact-info .contact-title { color: var(--white); }
.side-box.dark .side-title { color: var(--white); }
.side-box ol li { font-size: .92rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; }
.grid-4 .feature { flex-direction: column; }

@media (max-width: 1080px) {
	.course-card { flex-basis: calc((100% - 24px) / 2); }
	.trust-strip { grid-template-columns: repeat(2, 1fr); }
	.trust-item:nth-child(3) { border-left: 0; }
	.trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.pricing-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.course-card { flex-basis: 100%; }
	.pricing-grid, .review-grid { grid-template-columns: 1fr; gap: 30px; }
	.trust-item { padding: 18px 12px; }
	.trust-item strong { font-size: 1.3rem; }
	.header-cta .btn-outline-green { display: none; }
}
@media (max-width: 1080px) and (min-width: 641px) {
	.header-cta .btn-outline-green { display: none; }
}
