/*
 * Quran Guardians Academy
 * Local typography foundation.
 * No external font dependencies.
 */

@font-face {
  font-family: "Beiruti";
  src: url("../fonts/Beiruti-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* Arabic pages */
html[lang^="ar"] body,
html[lang^="ar"] :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
  font-family: "Beiruti", sans-serif;
}

/* English, French, German and Italian pages */
html:not([lang^="ar"]) body,
html:not([lang^="ar"]) :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
  font-family: "Fira Sans", "Beiruti", sans-serif;
}

/* QGA teachers showcase and illustrative profile layouts — scoped to teacher demo pages */
body:is(.page-id-833,.page-id-834,.page-id-835,.page-id-836,.page-id-837,.page-id-838,.page-id-839,.page-id-840,.page-id-841,.page-id-842,.page-id-843) .wp-block-post-title { display:none!important; }
body:is(.page-id-833,.page-id-834,.page-id-835,.page-id-836,.page-id-837,.page-id-838,.page-id-839,.page-id-840,.page-id-841,.page-id-842,.page-id-843) .wp-block-post-content { margin-block-start:0!important; padding-block:0!important; }
body:is(.page-id-833,.page-id-834,.page-id-835,.page-id-836,.page-id-837,.page-id-838,.page-id-839,.page-id-840,.page-id-841,.page-id-842,.page-id-843) main:has(.qga-t-root) { padding-block:0!important; }
.qga-t-root,.qga-t-root *,.qga-t-root *::before,.qga-t-root *::after {box-sizing:border-box}
.qga-t-root { --t-accent:#ec7624;--t-gold:#ffb332;--t-ink:#29262a;--t-muted:#6c6762;--t-line:#eee2d6;--t-cream:#fff9f2; color:var(--t-ink);font-family:"Fira Sans",Arial,sans-serif; width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;margin-block:0!important;overflow:hidden;background:#fff;}
.qga-t-root p,.qga-t-root h1,.qga-t-root h2,.qga-t-root h3,.qga-t-root ul {margin-block-start:0}
.qga-t-root a {text-decoration:none}
.qga-t-container {width:min(1380px,calc(100% - 70px));max-width:none;margin-inline:auto}
.qga-t-eyebrow {font-size:12px;line-height:1.4;letter-spacing:.15em;text-transform:uppercase;font-weight:700;color:#bb5920;margin:0 0 18px}
.qga-t-hero {position:relative;background:linear-gradient(115deg,#ffb52c 0%,#f28c28 52%,#e76b28 100%);padding:76px 0 78px;border-radius:0 0 30px 30px;isolation:isolate;overflow:hidden}
.qga-t-hero::after {content:"";position:absolute;z-index:-1;right:-110px;top:-110px;width:460px;height:460px;border:48px solid rgba(255,255,255,.10);border-radius:50%}
.qga-t-hero::before {content:"";position:absolute;z-index:-1;left:63%;bottom:-270px;width:410px;height:410px;border:1px solid rgba(255,255,255,.3);transform:rotate(45deg)}
.qga-t-hero .qga-t-eyebrow {color:#61310e}
.qga-t-hero h1 {font-family:inherit!important;color:#202126;font-size:clamp(34px,4.4vw,66px);letter-spacing:-.035em;line-height:1.1;max-width:920px;margin:0 0 19px}
.qga-t-hero .qga-t-intro {font-size:clamp(16px,1.7vw,21px);line-height:1.65;max-width:790px;color:#3a2b23}
.qga-t-demo-note {display:flex;align-items:flex-start;gap:11px;margin-top:27px;max-width:950px;border:1px solid #f1d6a9;background:#fff6e8;color:#5b4535;padding:15px 18px;border-radius:12px;font-size:14px;line-height:1.6}
.qga-t-demo-note strong {color:#873b11}
.qga-t-note-icon {display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#fbc67b;color:#713b12;font-weight:700;line-height:1}
.qga-t-section {padding:76px 0 95px;background:linear-gradient(180deg,#ffffff,#fffaf5)}
.qga-t-section-header {display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}
.qga-t-section-header h2 {font-size:clamp(27px,3.1vw,40px);line-height:1.15;letter-spacing:-.025em;color:#29262a;margin:0 0 10px}
.qga-t-section-header p {max-width:650px;color:var(--t-muted);font-size:15px;line-height:1.6}
.qga-t-count {padding:10px 16px;background:#fff0e3;border-radius:99px;font-weight:700;font-size:13px;color:#aa501b;white-space:nowrap}
.qga-t-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.qga-t-card {background:#fff;border:1px solid #efe3d8;border-radius:21px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 10px 30px rgba(75,47,25,.055);transition:transform .22s,box-shadow .22s}
.qga-t-card:hover {transform:translateY(-4px);box-shadow:0 16px 36px rgba(75,47,25,.12)}
.qga-t-card-top {position:relative;display:flex;align-items:center;justify-content:center;padding:22px 18px 13px;background:linear-gradient(145deg,#fff5e8,#fffaf5);min-height:174px}
.qga-t-card-avatar {width:142px;height:142px;display:block;object-fit:contain;box-shadow:none;border-radius:50%;margin:0}
.qga-t-card-type {position:absolute;top:13px;right:14px;background:#fff;color:#995424;font-size:10px;font-weight:700;letter-spacing:.07em;border:1px solid #f0d5b8;border-radius:99px;padding:6px 10px}
.qga-t-card-body {padding:24px 25px 14px;flex:1;display:flex;flex-direction:column}
.qga-t-card h3 {font-size:20px!important;line-height:1.3!important;font-family:inherit!important;letter-spacing:-.02em;color:#252126;margin:0 0 5px;overflow-wrap:anywhere}
.qga-t-card-ar {font-family:"Beiruti",sans-serif!important;font-size:19px;line-height:1.3;color:#74675e;margin:0 0 16px}
.qga-t-card-focus {font-weight:600;color:#ae531d;font-size:14px;line-height:1.5;margin:0 0 16px}
.qga-t-card-degree {margin:0 0 15px;color:#5f5955;font-size:13px;line-height:1.65;display:flex;gap:10px}
.qga-t-card-degree::before {content:"✦";color:#e88a3f;font-size:17px;line-height:1.3}
.qga-t-card-actions {padding:0 25px 25px;margin-top:auto}
.qga-t-btn {min-height:46px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 17px;border-radius:10px;font-size:14px;font-weight:700;line-height:1.25;transition:transform .18s,background .18s}
.qga-t-btn-primary {background:linear-gradient(110deg,#ff9c24,#ee7427);color:#fff!important;width:100%;text-align:center}
.qga-t-btn-primary:hover {background:linear-gradient(110deg,#ed8620,#d96419);transform:translateY(-2px)}
.qga-t-btn-secondary {background:#fff3e5;color:#b35d20!important}
.qga-t-btn-secondary:hover {background:#ffe8d0}
.qga-t-btn:focus-visible,.qga-t-card a:focus-visible {outline:3px solid #ad6225;outline-offset:3px}
.qga-t-footer-note {border-top:1px solid #eaded4;padding:20px 0 28px;background:#fffaf5;color:#7c6b5c;font-size:13px;line-height:1.7}
.qga-t-breadcrumb {margin:0 0 18px;font-size:13px;line-height:1.6;color:#4a3628}
.qga-t-breadcrumb a {color:#553b2c;text-decoration:underline;text-underline-offset:3px}
.qga-t-detail-hero {background:linear-gradient(115deg,#fff0df 0%,#ffdfb4 52%,#ffeddb 100%);padding:64px 0 70px;border-radius:0 0 28px 28px}
.qga-t-profile-head {display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:55px;align-items:center}
.qga-t-profile-head h1 {font-size:clamp(32px,4.2vw,60px);font-family:inherit!important;line-height:1.12;color:#252126;letter-spacing:-.035em;margin:0 0 10px}
.qga-t-ar-title {font-family:"Beiruti",sans-serif!important;font-size:clamp(24px,2.8vw,35px);color:#715847;line-height:1.4;margin:0 0 18px}
.qga-t-profile-role {font-size:clamp(16px,1.8vw,22px);font-weight:600;color:#a74c1b;margin:0}
.qga-t-profile-avatar {display:block;width:min(100%,260px);height:auto;aspect-ratio:1;justify-self:center;filter:drop-shadow(0 12px 16px rgba(83,50,27,.11))}
.qga-t-profile-content {padding:76px 0 92px}
.qga-t-profile-grid {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:32px}
.qga-t-panel {background:#fff;border:1px solid var(--t-line);border-radius:20px;padding:32px;box-shadow:0 8px 26px rgba(79,43,17,.04)}
.qga-t-panel + .qga-t-panel {margin-top:18px}
.qga-t-panel h2 {font-size:24px;line-height:1.2;letter-spacing:-.02em;color:#2a2527;margin:0 0 14px}
.qga-t-panel p,.qga-t-panel li {font-size:16px;color:#615b59;line-height:1.8}
.qga-t-panel ul {padding-left:21px;margin-bottom:0}
.qga-t-panel li {padding-left:3px;margin-block:7px}
.qga-t-panel.small {background:#fff8ef}
.qga-t-label {text-transform:uppercase;letter-spacing:.11em;font-size:12px!important;font-weight:700;color:#ad5b26!important;margin:0 0 9px}
.qga-t-profile-back {display:inline-flex;align-items:center;gap:7px;margin-top:21px;font-weight:700;font-size:15px;color:#bb5c22}
@media(max-width:1100px) {.qga-t-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qga-t-profile-grid{grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr)}}
@media(max-width:760px) {
  .qga-t-container{width:calc(100% - 32px)}
  .qga-t-hero{padding:54px 0 59px;border-radius:0 0 19px 19px}
  .qga-t-hero h1 {font-size:clamp(33px,7.5vw,49px)}
  .qga-t-demo-note {font-size:13px;padding:12px;gap:9px}
  .qga-t-section{padding:48px 0 66px}
  .qga-t-section-header{align-items:start;flex-direction:column;gap:10px;margin-bottom:23px}
  .qga-t-grid{grid-template-columns:1fr;gap:14px}
  .qga-t-card{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto;align-items:stretch;border-radius:16px}
  .qga-t-card-top {grid-row:1;grid-column:1;padding:14px 4px 8px 12px;min-height:136px;background:#fff7ec}
  .qga-t-card-avatar{width:105px;height:105px}
  .qga-t-card-type{top:9px;right:auto;left:9px;font-size:8px;padding:4px 7px}
  .qga-t-card-body{grid-row:1;grid-column:2;padding:17px 15px 9px 13px;min-width:0}
  .qga-t-card h3 {font-size:17px!important;margin-bottom:3px}
  .qga-t-card-ar{font-size:17px;margin-bottom:8px}
  .qga-t-card-focus {font-size:12px;margin-bottom:8px}
  .qga-t-card-degree {font-size:11px;margin-bottom:3px;line-height:1.45;gap:6px}
  .qga-t-card-actions{grid-row:2;grid-column:1/-1;padding:6px 14px 14px}
  .qga-t-btn {min-height:43px}
  .qga-t-detail-hero{padding:36px 0 44px;border-radius:0 0 18px 18px}
  .qga-t-profile-head {grid-template-columns:1fr;gap:15px;text-align:center}
  .qga-t-profile-avatar{grid-row:1;width:158px}
  .qga-t-profile-head h1{font-size:clamp(30px,7.3vw,42px)}
  .qga-t-ar-title {font-size:26px}
  .qga-t-profile-content{padding:39px 0 58px}
  .qga-t-profile-grid{grid-template-columns:1fr;gap:16px}
  .qga-t-panel{padding:23px;border-radius:16px}
  .qga-t-panel h2{font-size:21px}
  .qga-t-panel p,.qga-t-panel li{font-size:15px}
}
@media(max-width:380px){.qga-t-card{grid-template-columns:93px minmax(0,1fr)}.qga-t-card-avatar{width:85px;height:85px}.qga-t-card h3{font-size:15px!important}.qga-t-card-ar{font-size:15px}.qga-t-card-focus{font-size:11px}.qga-t-card-body{padding-right:11px}.qga-t-card-degree{font-size:10px}}
@media(prefers-reduced-motion:reduce){.qga-t-card,.qga-t-btn{transition:none!important}}


/* QGA teachers gallery v2: integrated editorial system, warm-orange brand, responsive. */
.qga-teachers-showcase {background:#fffaf6;font-family:"Fira Sans","Beiruti",sans-serif!important; color:#29252a;}
.qga-teachers-showcase .qga-t-hero {padding:70px 0 74px;background:linear-gradient(122deg,#fff9f2 4%,#fff1df 51%,#ffe3c5 100%);border-radius:0 0 26px 26px;border-bottom:1px solid #f3dcc2;}
.qga-teachers-showcase .qga-t-hero::before {left:auto;right:-130px;top:-180px;bottom:auto;border:1px solid rgba(198,91,35,.15);width:510px;height:510px;border-radius:50%;transform:none;}
.qga-teachers-showcase .qga-t-hero::after {right:-85px;top:-105px;width:360px;height:360px;border:30px solid rgba(244,147,46,.09);}
.qga-teachers-showcase .qga-t-eyebrow {color:#c45c18;font-size:11px;letter-spacing:.16em;}
.qga-teachers-showcase .qga-t-hero h1 {max-width:800px;font-size:clamp(35px,4.6vw,61px);line-height:1.15;letter-spacing:-.045em;margin:0 0 18px;color:#292428;}
.qga-teachers-showcase .qga-t-hero .qga-t-intro{font-size:clamp(16px,1.45vw,19px);line-height:1.75;color:#65534b;max-width:760px;margin:0;}
.qga-teachers-showcase .qga-t-hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0 0;}
.qga-teachers-showcase .qga-t-hero-pills span{display:inline-flex;align-items:center;gap:9px;font-size:12px;font-weight:700;letter-spacing:.015em;color:#71543c;background:#fff9f2;border:1px solid #edcdb0;border-radius:999px;padding:9px 14px;}
.qga-teachers-showcase .qga-t-hero-pills span::before{content:"";display:inline-block;width:6px;height:6px;background:#e98736;border-radius:50%;}
.qga-teachers-showcase .qga-t-demo-note{max-width:970px;margin-top:28px;background:rgba(255,255,255,.77);border:1px solid #eacdb8;box-shadow:0 4px 18px rgba(110,60,26,.025);color:#5f4c3d;}
.qga-teachers-showcase .qga-t-section{padding:68px 0 88px;background:#fffaf6;}
.qga-teachers-showcase .qga-t-section-header{margin-bottom:30px;align-items:end;}
.qga-teachers-showcase .qga-t-section-header h2{margin:0 0 11px;font-size:clamp(28px,3.2vw,43px);letter-spacing:-.035em;}
.qga-teachers-showcase .qga-t-section-header p{margin:0;max-width:660px;line-height:1.65;}
.qga-teachers-showcase .qga-t-count{background:#fff;border:1px solid #f1dfcd;color:#a35b2c;padding:11px 17px;}
.qga-teachers-showcase .qga-t-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;}
.qga-teachers-showcase .qga-t-card{border:1px solid #eee1d5;background:#fff;border-radius:19px;box-shadow:0 8px 22px rgba(64,37,20,.045);overflow:hidden;min-height:100%;}
.qga-teachers-showcase .qga-t-card:hover{transform:translateY(-4px);box-shadow:0 20px 42px rgba(65,39,25,.105);}
.qga-teachers-showcase .qga-t-card-top{min-height:190px;background:linear-gradient(135deg,#fff6ea,#fdf0e6);padding:26px 15px 16px;}
.qga-teachers-showcase .qga-t-card-avatar{width:150px;height:150px;object-fit:contain;flex-shrink:0;}
.qga-teachers-showcase .qga-t-card-type{top:12px;right:12px;left:auto;font-size:9px;letter-spacing:.045em;border:1px solid #ead4be;background:#fffaf5;color:#9b5a2d;text-transform:uppercase;white-space:nowrap;}
.qga-teachers-showcase .qga-t-card-body{padding:21px 22px 12px;}
.qga-teachers-showcase .qga-t-card h3{font-weight:700!important;font-size:18px!important;letter-spacing:-.025em;color:#2a2627!important;line-height:1.3!important;margin:0 0 7px!important;}
.qga-teachers-showcase .qga-t-card-ar{font-family:"Beiruti",sans-serif!important;font-size:17px!important;color:#82746a;min-height:23px;margin:0 0 14px!important;}
.qga-teachers-showcase .qga-t-card-focus{font-size:13px!important;line-height:1.5!important;color:#b35720!important;font-weight:700;min-height:40px;margin:0 0 12px!important;}
.qga-teachers-showcase .qga-t-card-degree{font-size:12px;line-height:1.65;color:#70645b;margin:0;}
.qga-teachers-showcase .qga-t-card-degree::before{content:"✦";color:#e8a15c;}
.qga-teachers-showcase .qga-t-card-actions{padding:14px 22px 22px;}
.qga-teachers-showcase .qga-t-btn-primary{background:#f4812d!important;border:1px solid #e66d20;box-shadow:none;color:#fff!important;border-radius:10px;font-size:13px!important;min-height:44px;}
.qga-teachers-showcase .qga-t-btn-primary:hover{background:#dd6a20!important;}
.qga-teachers-showcase .qga-t-footer-note{background:#fff6ed;border-color:#efdccc;font-size:13px;color:#68594d;}
.qga-t-root.qga-teacher-detail{font-family:"Fira Sans","Beiruti",sans-serif!important;}
.qga-t-root.qga-teacher-detail .qga-t-detail-hero{background:linear-gradient(115deg,#fff8f0,#ffe8d0);border-bottom:1px solid #efd7bf;}
.qga-t-root.qga-teacher-detail .qga-t-profile-head h1{font-family:"Fira Sans",sans-serif!important;}
.qga-t-root.qga-teacher-detail .qga-t-profile-content{background:#fffaf6;}
.qga-t-root.qga-teacher-detail .qga-t-panel{border-radius:18px;}
@media(max-width:1250px){.qga-teachers-showcase .qga-t-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:920px){.qga-teachers-showcase .qga-t-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.qga-teachers-showcase .qga-t-card-body{padding:20px 20px 10px;}}
@media(max-width:640px){
.qga-teachers-showcase .qga-t-hero{padding:48px 0 53px;border-radius:0 0 19px 19px;}
.qga-teachers-showcase .qga-t-container{width:calc(100% - 34px);}
.qga-teachers-showcase .qga-t-hero h1{font-size:clamp(33px,8vw,46px);letter-spacing:-.035em;}
.qga-teachers-showcase .qga-t-hero-pills{gap:7px;}
.qga-teachers-showcase .qga-t-hero-pills span{font-size:11px;padding:7px 10px;}
.qga-teachers-showcase .qga-t-section{padding:46px 0 60px;}
.qga-teachers-showcase .qga-t-grid{grid-template-columns:1fr;gap:15px;}
.qga-teachers-showcase .qga-t-card{display:grid;grid-template-columns:115px minmax(0,1fr);grid-template-rows:auto auto;min-height:unset;border-radius:15px;}
.qga-teachers-showcase .qga-t-card-top{grid-column:1;grid-row:1;padding:13px 7px 4px;min-height:150px;align-items:center;background:#fff5e9;}
.qga-teachers-showcase .qga-t-card-avatar{width:105px;height:105px;}
.qga-teachers-showcase .qga-t-card-type{font-size:8px;top:8px;right:auto;left:5px;padding:5px 7px;}
.qga-teachers-showcase .qga-t-card-body{grid-column:2;grid-row:1;padding:18px 15px 9px 12px;}
.qga-teachers-showcase .qga-t-card h3{font-size:17px!important;margin:0 0 5px!important;}
.qga-teachers-showcase .qga-t-card-ar{font-size:16px!important;margin:0 0 9px!important;min-height:0;}
.qga-teachers-showcase .qga-t-card-focus{font-size:12px!important;min-height:0;margin:0 0 6px!important;}
.qga-teachers-showcase .qga-t-card-degree{font-size:11px;line-height:1.45;}
.qga-teachers-showcase .qga-t-card-actions{grid-column:1/-1;grid-row:2;padding:5px 13px 13px;}
.qga-teachers-showcase .qga-t-btn-primary{min-height:42px;}
}
@media(max-width:365px){.qga-teachers-showcase .qga-t-card{grid-template-columns:95px minmax(0,1fr)}.qga-teachers-showcase .qga-t-card-avatar{width:86px;height:86px}.qga-teachers-showcase .qga-t-card h3{font-size:15px!important}.qga-teachers-showcase .qga-t-card-ar{font-size:15px!important}.qga-teachers-showcase .qga-t-card-focus{font-size:11px!important}}


/* QGA multilingual teacher preview — all headings optically centred */
body:has(.qga-t-root) .wp-block-post-title{display:none!important}
body:has(.qga-t-root) .wp-block-post-content{margin-block-start:0!important;padding-block:0!important}
body:has(.qga-t-root) main:has(.qga-t-root){padding-block:0!important}
.qga-t-root .qga-t-hero,.qga-t-root .qga-t-detail-hero{text-align:center}
.qga-t-root .qga-t-hero h1,.qga-t-root .qga-t-hero .qga-t-eyebrow,.qga-t-root .qga-t-intro{margin-inline:auto;text-align:center}
.qga-t-root .qga-t-hero-pills{justify-content:center}
.qga-t-root .qga-t-demo-note{text-align:start;margin-inline:auto}
.qga-t-root .qga-t-section-header{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}
.qga-t-root .qga-t-section-header h2,.qga-t-root .qga-t-section-header .qga-t-eyebrow,.qga-t-root .qga-t-section-header p{text-align:center;margin-inline:auto}
.qga-t-root .qga-t-card h3,.qga-t-root .qga-t-card-ar,.qga-t-root .qga-t-card-focus{text-align:center!important}
.qga-t-root .qga-t-card-degree{text-align:center;justify-content:center}
.qga-t-root .qga-t-profile-head{text-align:center}
.qga-t-root .qga-t-profile-head h1,.qga-t-root .qga-t-ar-title,.qga-t-root .qga-t-profile-role,.qga-t-root .qga-t-profile-head .qga-t-eyebrow{text-align:center}
.qga-t-root .qga-t-panel h2,.qga-t-root .qga-t-panel .qga-t-label{text-align:center}
.qga-t-root .qga-t-breadcrumb{text-align:center}
.qga-t-root .qga-t-profile-avatar{margin-inline:auto}
@media(max-width:760px){
  .qga-t-root .qga-t-card h3,.qga-t-root .qga-t-card-ar,.qga-t-root .qga-t-card-focus{text-align:center!important}
  .qga-t-root .qga-t-card-degree{text-align:center}
}
html[lang^="ar"] .qga-t-root .qga-t-hero h1,html[lang^="ar"] .qga-t-root .qga-t-section-header h2{font-family:"Beiruti",sans-serif!important;letter-spacing:0!important;line-height:1.35}
