/*
Theme Name:   TheAlifBaTa LMS Theme
Theme URI:    https://lms.thealifbata.com
Description:  White-label theme for TheAlifBaTa LMS: warm, modern course catalogue, course and lesson layouts. Colours follow LMS → Brand & setup; logo and title come from Site Identity.
Author:       TheAlifBaTa
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  thealifbata-lms-theme
*/
/* ===== TheAlifBaTa LMS Theme (white-label) ===== */
:root{--alb-teal:#2B7A78;--alb-deep:#1F4F4E;--alb-terra:var(--tab-brand,#B85232);--alb-terra-dk:var(--tab-brand-dark,#A8452A);--alb-gold:var(--tab-brand-2,#E8A33D);--alb-sand:#F6E9D7;--alb-ivory:#FFF8EF;--alb-ink:#2B2522;--alb-muted:#7A6A5E;--alb-line:#EADBC8;--alb-azure:#3E6FA3;--alb-olive:#66773A;--alb-radius:16px;--alb-shadow:0 1px 2px rgba(43,37,34,.06),0 10px 28px rgba(122,74,40,.09)}
body{-webkit-font-smoothing:antialiased}
:lang(ar),[lang="ar"]{font-family:"Noto Naskh Arabic","Amiri",serif}

/* Header */
.alb-header{position:sticky;top:0;z-index:50;background:rgba(255,248,239,.95);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--alb-line)}
.admin-bar .alb-header{top:32px}
.alb-logo{display:inline-flex;align-items:center;line-height:0}.alb-logo svg{height:44px;width:auto}
.alb-header .wp-block-site-title a{display:inline-flex;align-items:center;gap:.6rem;font-weight:800;letter-spacing:-.02em;color:var(--alb-ink);text-decoration:none}
.alb-header .wp-block-navigation a{font-weight:600;color:var(--alb-ink)}
.alb-header .wp-block-navigation a:hover{color:var(--alb-terra)}
.alb-header .wp-block-button__link{padding:.6rem 1.15rem;font-size:.95rem}
.alb-btn-ghost .wp-block-button__link{background:transparent!important;color:var(--alb-ink)!important;box-shadow:inset 0 0 0 1.5px var(--alb-line)}
.alb-btn-ghost .wp-block-button__link:hover{box-shadow:inset 0 0 0 1.5px var(--alb-terra);color:var(--alb-terra)!important}

/* Buttons */
.wp-block-button__link,.wp-element-button{font-weight:700;transition:transform .15s,box-shadow .15s,filter .15s}
.wp-block-button__link:hover,.wp-element-button:hover{filter:brightness(1.06);box-shadow:0 6px 18px rgba(200,85,61,.25)}

/* Hero */
.alb-hero{position:relative;overflow:hidden;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23A8452A' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(900px 420px at 88% 0%,rgba(232,163,61,.28),transparent 60%),radial-gradient(700px 380px at 0% 100%,rgba(43,122,120,.12),transparent 60%),linear-gradient(180deg,#FFF8EF,#F8EBDA);color:var(--alb-ink)}
.alb-hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,var(--alb-terra),var(--alb-gold),var(--alb-olive),var(--alb-teal))}
.alb-hero h1{color:var(--alb-ink)}
.alb-hero h1 em{font-style:normal;color:var(--alb-terra)}
.alb-hero p.alb-lead{color:#5E5048;font-size:1.15rem;max-width:34rem}
.alb-eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.78rem!important;font-weight:700;color:var(--alb-terra)}
.alb-search{display:flex;gap:.5rem;background:#fff;border:1px solid var(--alb-line);border-radius:999px;padding:.35rem;max-width:34rem;box-shadow:0 14px 34px rgba(122,74,40,.14)}
.alb-search input[type=search]{flex:1;border:0;outline:0;background:transparent;padding:.75rem 1.1rem;font:inherit;font-size:1rem;color:var(--alb-ink);min-width:0}
.alb-search button{border:0;border-radius:999px;background:var(--alb-terra);color:#fff;font:inherit;font-weight:700;padding:.7rem 1.4rem;cursor:pointer}
.alb-pills{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.alb-pills a{font-size:.85rem;color:var(--alb-ink)!important;text-decoration:none;background:#fff;border:1px solid var(--alb-line);border-radius:999px;padding:.3rem .85rem}
.alb-pills a:hover{border-color:var(--alb-terra);color:var(--alb-terra)!important}
.alb-arch{position:relative;margin:0 auto;width:min(100%,360px);aspect-ratio:3/4;border-radius:180px 180px 18px 18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFE2BF' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(170deg,var(--tab-brand,#DB7450),var(--tab-brand-dark,#A8452A));box-shadow:0 30px 60px rgba(168,69,42,.28),inset 0 0 0 7px #E8A33D,inset 0 0 0 11px rgba(255,248,239,.9),inset 0 0 0 12px rgba(168,69,42,.4);display:grid;place-items:center;text-align:center;padding:3rem 1.5rem 2rem}
.alb-arch__letters{font-family:"Noto Naskh Arabic",serif;font-size:5.2rem;line-height:1.1;color:#FFF8EF;direction:rtl;text-shadow:0 2px 0 rgba(0,0,0,.12)}
.alb-arch__cap{color:#FCE3C9;font-size:.9rem;margin-top:.4rem}
.alb-arch__badge{position:absolute;left:-1rem;bottom:2.2rem;background:#fff;color:var(--alb-ink);border-radius:12px;padding:.7rem .9rem;box-shadow:var(--alb-shadow);font-size:.85rem;font-weight:700;display:flex;gap:.5rem;align-items:center}
.alb-arch__badge span{display:grid;place-items:center;width:2rem;height:2rem;border-radius:8px;background:var(--alb-sand)}
.alb-arch__badge--2{left:auto;right:-1rem;top:2.6rem;bottom:auto}

/* Stats strip */
.alb-stats{background:#fff;border-bottom:1px solid var(--alb-line)}
.alb-stat{text-align:center}
.alb-stat strong{display:block;font-size:1.9rem;font-weight:800;color:var(--alb-terra);letter-spacing:-.02em}
.alb-stat span{color:var(--alb-muted);font-size:.92rem}

/* Section header ornament */
.alb-ornament{width:40px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cg fill='%23E8A33D'%3E%3Cpath d='M20 1l3 6-3 6-3-6z'/%3E%3Ccircle cx='4' cy='7' r='1.6'/%3E%3Ccircle cx='36' cy='7' r='1.6'/%3E%3C/g%3E%3Cpath d='M6 7h10M24 7h10' stroke='%23E8A33D' stroke-width='1'/%3E%3C/svg%3E") no-repeat center;margin:0 auto .6rem}
.alb-section-head{text-align:center;max-width:42rem;margin-left:auto!important;margin-right:auto!important}
.alb-section-head p{color:var(--alb-muted)}

/* Age tiles */
.alb-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem}
.alb-tile{display:flex;flex-direction:column;gap:.35rem;padding:1.3rem 1.2rem;border-radius:var(--alb-radius);background:#fff;border:1px solid var(--alb-line);text-decoration:none!important;color:var(--alb-ink)!important;transition:transform .2s,box-shadow .2s;position:relative;overflow:hidden}
.alb-tile:hover{transform:translateY(-3px);box-shadow:var(--alb-shadow);border-color:#E2C7A8}
.alb-tile b{font-size:1.05rem}
.alb-tile small{color:var(--alb-muted)}
.alb-tile i{font-style:normal;font-size:1.7rem;width:3rem;height:3rem;display:grid;place-items:center;border-radius:12px 12px 4px 4px;margin-bottom:.4rem}
.alb-tile:nth-child(1) i{background:#FCE3D6}.alb-tile:nth-child(2) i{background:#FDEFD3}.alb-tile:nth-child(3) i{background:#EAF0DC}.alb-tile:nth-child(4) i{background:#E0EEF0}.alb-tile:nth-child(5) i{background:#F5E4DA}

/* Sand section with light zellige */
.alb-sand{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23A8452A' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),var(--alb-sand)}

/* Steps */
.alb-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem;counter-reset:alb}
.alb-step{background:#fff;border-radius:var(--alb-radius);padding:1.6rem 1.4rem;border:1px solid var(--alb-line);position:relative}
.alb-step:before{counter-increment:alb;content:counter(alb);position:absolute;top:-1rem;left:1.4rem;width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:linear-gradient(150deg,var(--tab-brand,#DB7450),var(--tab-brand-dark,#A8452A));color:#fff;font-weight:800;font-size:.95rem;box-shadow:0 0 0 4px var(--alb-sand)}
.alb-step h3{font-size:1.15rem!important;margin:.4rem 0 .4rem}
.alb-step p{color:var(--alb-muted);margin:0;font-size:.97rem}

/* Feature list */
.alb-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.4rem 2rem}
.alb-feature{display:flex;gap:.9rem;align-items:flex-start}
.alb-feature i{font-style:normal;flex:none;width:2.6rem;height:2.6rem;border-radius:10px;display:grid;place-items:center;background:var(--alb-sand);font-size:1.25rem}
.alb-feature b{display:block;margin-bottom:.15rem}
.alb-feature p{margin:0;color:var(--alb-muted);font-size:.95rem}

/* CTA band */
.alb-cta{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFE2BF' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(120deg,var(--tab-brand,#C65D3B),var(--tab-brand-dark,#A8452A) 60%,var(--tab-brand-dark,#8E3A23));color:#fff;border-radius:22px;overflow:hidden}
.alb-cta h2,.alb-cta p{color:#fff}
.alb-cta p{opacity:.9}
.alb-cta .wp-block-button__link{background:#FFF8EF!important;color:var(--alb-terra-dk)!important}

/* Footer */
.alb-footer{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFE2BF' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),#2B2522;color:rgba(255,248,239,.82);border-top:6px solid transparent;border-image:linear-gradient(90deg,var(--alb-terra),var(--alb-gold),var(--alb-olive),var(--alb-teal)) 1}
.alb-footer a{color:#fff!important;text-decoration:none}
.alb-footer a:hover{text-decoration:underline}
.alb-footer h2,.alb-footer h3,.alb-footer h4{color:#F2C27A!important;font-size:.82rem!important;text-transform:uppercase;letter-spacing:.14em}
.alb-footer .wp-block-site-title a{color:#fff!important}
.alb-footer ul{list-style:none;padding:0;margin:0}
.alb-footer li{margin:.4rem 0}
.alb-footer .alb-copy{border-top:1px solid rgba(255,255,255,.15);font-size:.85rem;color:rgba(255,255,255,.6)}

/* Page / course title bands */
.alb-band{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23A8452A' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),var(--alb-sand);border-bottom:1px solid var(--alb-line)}
.alb-band--dark{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFE2BF' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(135deg,var(--tab-brand,#B24F30),var(--tab-brand,#C65D3B) 55%,var(--tab-brand,#D97A45));color:#fff;border-bottom:0}
.alb-band--dark h1,.alb-band--dark .wp-block-post-excerpt,.alb-band--dark p{color:#fff}
.alb-band--dark .wp-block-post-excerpt__excerpt{opacity:.88;font-size:1.15rem;max-width:44rem}
.alb-crumb{font-size:.85rem;font-weight:600}
.alb-crumb a{text-decoration:none}
.alb-band--dark .alb-crumb a{color:#FFE2BF!important}

/* ===== LMS plugin skin ===== */
body .tab-lms{--tab-accent:#2B7A78;--tab-ink:#2B2522;--tab-muted:#7A6A5E;--tab-line:#EADBC8;--tab-bg:#FBF1E4;--tab-radius:16px}
body.tab-kids .tab-lms{--tab-accent:var(--tab-brand,#C65D3B)}
.tab-lms .tab-btn{background:var(--alb-terra);border-color:var(--alb-terra);border-radius:10px}
.tab-lms .tab-btn--ghost{background:transparent;color:var(--alb-terra-dk)!important;border-color:var(--alb-terra)}
.tab-lms .tab-btn.is-done{background:var(--alb-olive);border-color:var(--alb-olive)}
.tab-lms .tab-progress span{background:linear-gradient(90deg,var(--alb-gold),var(--alb-terra))}
.tab-ccard{border-radius:16px;box-shadow:0 1px 2px rgba(27,36,51,.05)}
.tab-ccard:hover{box-shadow:0 14px 34px rgba(27,36,51,.12)}
.tab-ccard__img{border-bottom:3px solid var(--alb-gold)}
.tab-ccard__body h3{font-size:1.05rem!important;font-weight:700}
.tab-card__ph--glyph{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFE2BF' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(150deg,var(--tab-brand,#DB7450),var(--tab-brand-dark,#A8452A))!important;color:#FFF8EF!important}
.tab-price-sm{color:var(--alb-terra)!important}
.tab-filters{background:#fff;border:1px solid var(--alb-line);border-radius:16px;padding:.7rem;box-shadow:var(--alb-shadow)}
.tab-filters input,.tab-filters select{border-color:var(--alb-line)!important;border-radius:10px!important}
.tab-course__cta{border-top:4px solid var(--alb-gold);box-shadow:var(--alb-shadow)}
.tab-price{color:var(--alb-ink)}
.tab-module summary{background:#FBF1E4!important}
.tab-item.is-current{background:#FCE9DC!important}
.tab-chips li{background:#fff!important}
.tab-letter__hero{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23A8452A' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='19' y='19' width='26' height='26'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate%2845 32 32%29'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 32h9.6M54.4 32H64M32 0v9.6M32 54.4V64'/%3E%3Cpath d='M0 0l9 9M64 0l-9 9M0 64l9-9M64 64l-9-9'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(135deg,#F6E9D7,#fff)!important}
.tab-letter__glyph{border-radius:999px 999px 16px 16px!important;box-shadow:inset 0 0 0 3px rgba(232,163,61,.75),0 8px 22px rgba(27,36,51,.1)!important;padding:.25em .2em .2em!important}
.tab-player__side .tab-curriculum{box-shadow:var(--alb-shadow)}
.tab-dash__row{box-shadow:0 1px 2px rgba(27,36,51,.05)}
.tab-account-grid .tab-card{box-shadow:var(--alb-shadow);border-top:4px solid var(--alb-terra)}
.tab-account-grid #wp-submit{background:var(--alb-terra)!important;border-radius:10px!important}

@media (max-width:781px){
	.alb-arch{width:min(80%,280px)}
	.alb-arch__letters{font-size:3.8rem}
	.alb-arch__badge{display:none}
	.alb-search button{padding:.7rem 1rem}
	.admin-bar .alb-header{top:0}
}
@media (prefers-reduced-motion:reduce){.alb-tile,.wp-block-button__link{transition:none}}

/* Let LMS screens use the wide layout inside constrained page content */
.wp-block-post-content > .tab-lms,.wp-block-post-content > p > .tab-lms{max-width:var(--wp--style--global--wide-size)!important;margin-left:auto!important;margin-right:auto!important}
.single-tab_course .tab-course .tab-lead{display:none}
.single-tab_lesson .tab-player,.single-tab_quiz .tab-player{margin-top:.5rem}
@media (max-width:600px){.alb-header .alb-btn-ghost{display:none}}

/* Site logo / title in header & footer (white-label) */
.alb-header .wp-block-site-logo img{max-height:46px;width:auto}
.alb-footer .wp-block-site-title a{color:#fff!important;font-weight:800}
.alb-footer .wp-block-site-tagline{color:rgba(255,248,239,.75)}
