/*
Theme Name: CSF Taiz University Final
Author: CSF Taiz
Description: CSF Taiz RTL forum theme with fixed header/footer, full navigation, themes, project submission and admin management.
Version: 11.3.0
Text Domain: csf-taiz
*/
:root{--bg:#070b16;--panel:#0d1424;--panel2:#101a2d;--line:#1b2a45;--text:#eaf2ff;--muted:#91a3bd;--accent:#27d8ff;--accent2:#8b5cf6;--gold:#eab308;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 20% 0%,#14203b 0,#070b16 45%,#050811 100%);color:var(--text);font-family:Tahoma,Arial,sans-serif;direction:rtl;line-height:1.75;padding-top:78px;padding-bottom:78px}body.light{--bg:#f5f7fb;--panel:#fff;--panel2:#eef3f9;--line:#d8e0ea;--text:#162033;--muted:#617087;background:#f5f7fb}body.gold{--accent:#f4c542;--accent2:#a56b16;--line:#443614;background:radial-gradient(circle at 20% 0%,#211b0b 0,#080808 48%,#050505 100%)}a{color:inherit;text-decoration:none}.container{width:calc(100% - 32px);max-width:1800px;margin-inline:auto}.header{position:fixed;top:0;left:0;right:0;height:78px;z-index:1000;background:rgba(5,9,20,.96);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}body.light .header{background:rgba(255,255,255,.96)}.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px;min-width:max-content}.brand-logo{width:50px;height:50px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 0 28px color-mix(in srgb,var(--accent) 25%,transparent)}.brand-logo img{width:100%;height:100%;object-fit:cover}.brand strong{display:block;font-size:16px}.brand small{display:block;color:var(--muted);font-size:9px;direction:ltr}.header-main{display:flex;align-items:center;gap:22px;flex:1;justify-content:center}.header-nav{display:flex;align-items:center;gap:24px;white-space:nowrap}.header-nav a{font-weight:800;color:var(--text);font-size:15px;transition:.2s}.header-nav a:hover{color:var(--accent)}.header-actions{display:flex;align-items:center;gap:6px}.icon-btn,.menu-btn{position:relative;border:1px solid var(--line);background:var(--panel);color:var(--text);width:40px;height:40px;border-radius:11px;cursor:pointer;font-size:17px}.icon-btn b{position:absolute;top:-5px;left:-5px;min-width:18px;height:18px;border-radius:50%;font-size:10px;background:#ef4444;color:#fff;display:none;align-items:center;justify-content:center}.menu-btn{font-size:20px}.main-wrap{padding-bottom:30px}.hero{margin:28px 0 24px;padding:38px 42px;border:1px solid var(--line);border-radius:24px;background:var(--panel);box-shadow:0 18px 55px #0005;display:grid;grid-template-columns:1.35fr .65fr;gap:34px;align-items:center;overflow:hidden}.hero-copy{min-width:0}.eyebrow{color:var(--accent);font-weight:800;font-size:17px}.hero h1{font-size:clamp(34px,4.4vw,62px);line-height:1.2;margin:12px 0 18px}.hero p{color:var(--muted);font-size:17px;max-width:900px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.hero-art{min-height:260px;border:1px solid var(--line);border-radius:22px;background:var(--panel2);display:grid;place-items:center;overflow:hidden}.hero-art img{width:68%;max-width:300px;height:auto;object-fit:contain;filter:drop-shadow(0 0 30px rgba(39,216,255,.2))}.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:11px;border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--panel)),color-mix(in srgb,var(--accent2) 20%,var(--panel)));color:var(--text);cursor:pointer}.btn.small{padding:7px 11px;font-size:13px}.btn.ghost{background:transparent}.section{margin:28px 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}.section-title h2{margin:0;font-size:25px}.more-link{color:var(--accent);font-weight:800;font-size:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:17px;transition:.2s;min-width:0}.card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.thumb{height:155px;border-radius:13px;overflow:hidden;background:var(--panel2);margin:-2px -2px 14px}.thumb img{width:100%;height:100%;object-fit:cover}.tag{display:inline-block;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:11px;margin-bottom:8px}.card h3{margin:0 0 7px;font-size:20px}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px}.muted{color:var(--muted)}.empty{text-align:center;padding:45px;color:var(--muted)}.course-icon{font-size:38px;margin-bottom:8px}.home-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chips{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.chips a{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text)}.awareness{background:var(--panel)}.forum-box textarea,.project-form textarea,.project-form input[type=text],.project-form input[type=url],.project-form input[type=file]{width:100%;padding:13px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--text);outline:none}.forum-box textarea,.project-form textarea{min-height:110px;resize:vertical}.forum-foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.footer{position:fixed;left:0;right:0;bottom:0;height:78px;z-index:900;border-top:1px solid var(--line);padding:12px 0;background:rgba(5,9,20,.97);backdrop-filter:blur(14px);color:var(--muted)}body.light .footer{background:rgba(255,255,255,.97)}.footer-inner{height:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand img{width:44px;height:44px;border-radius:11px}.footer-brand p{margin:0;font-size:12px}.drawer{position:fixed;top:0;right:0;width:min(390px,92vw);height:100vh;background:var(--panel);z-index:1300;transform:translateX(105%);transition:.25s;box-shadow:-20px 0 60px #0008;padding:22px}.drawer.open{transform:none}.drawer-backdrop{position:fixed;inset:0;background:#0008;z-index:1250;display:none}.drawer-backdrop.show{display:block}.drawer-top{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-bottom:18px;border-bottom:1px solid var(--line)}.drawer-top a,.drawer-top button{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:12px;padding:10px 5px;text-align:center;font-size:20px}.drawer-top span{display:block;font-size:11px;margin-top:3px}.drawer-top button{font-family:inherit}.drawer-links{display:flex;flex-direction:column;margin-top:15px}.drawer-links a{padding:13px 5px;border-bottom:1px solid var(--line);font-weight:700}.drawer-social{display:flex;gap:10px;justify-content:center;margin-top:24px}.drawer-social a{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--panel2);border:1px solid var(--line);color:var(--accent);font-weight:800}.notif-panel{position:fixed;top:88px;left:28px;width:min(360px,calc(100vw - 40px));background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px #0008;z-index:1200;display:none;padding:14px}.notif-panel.show{display:block}.notif-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px}.notif-head button{border:0;background:transparent;color:var(--text);font-size:24px;cursor:pointer}.notif-list{max-height:380px;overflow:auto}.notif-list article{padding:12px 4px;border-bottom:1px solid var(--line)}.notif-list article p{margin:4px 0;color:var(--muted);font-size:13px}.center{text-align:center}.page-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 18px;flex-wrap:wrap}.page-nav-actions{display:flex;gap:8px;flex-wrap:wrap}.back-btn,.home-btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:11px;border:1px solid var(--line);background:var(--panel2);color:var(--text);cursor:pointer}.home-btn{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--panel)),color-mix(in srgb,var(--accent2) 20%,var(--panel)))}.add-project-circle{position:fixed;left:28px;bottom:100px;z-index:940;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;font-size:34px;line-height:1;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border:1px solid color-mix(in srgb,var(--accent) 60%,white);box-shadow:0 12px 34px rgba(39,216,255,.25);transition:.2s}.add-project-circle:hover{transform:translateY(-3px) scale(1.04)}.archive-intro{margin-bottom:16px}.content{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:28px}.content img{max-width:100%;height:auto;border-radius:14px}.content h1{margin-top:0}.content p,.content li{color:var(--muted)}.project-form{max-width:760px;margin-inline:auto}.project-form .field{margin-bottom:16px}.project-form label{display:block;margin-bottom:7px;color:var(--muted)}.project-form .submit{width:100%;margin-top:10px}.notice-success,.notice-error{padding:13px 16px;border-radius:12px;margin-bottom:16px}.notice-success{background:#064e3b;color:#d1fae5;border:1px solid #10b981}.notice-error{background:#4c0519;color:#ffe4e6;border:1px solid #fb7185}.news-list{display:grid;gap:16px}.news-list .card{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:center}.news-list .thumb{height:150px;margin:0}.news-list .news-copy h2{margin:0 0 8px}.pagination{display:flex;justify-content:center;gap:8px;margin-top:22px}.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.original-assets{display:none}.asset-row{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.asset-row img{width:100%;height:180px;object-fit:cover;border-radius:14px;border:1px solid var(--line)}
@media(max-width:1100px){.header-main{gap:10px}.header-nav{gap:13px}.header-nav a{font-size:13px}.brand strong{font-size:14px}}
@media(max-width:900px){.container{width:calc(100% - 22px)}body{padding-top:70px;padding-bottom:86px}.header,.header-inner{height:70px}.header-main{justify-content:flex-end}.header-nav{display:none}.hero{grid-template-columns:1fr;padding:28px 22px}.hero-art{min-height:210px}.grid3{grid-template-columns:1fr 1fr}.home-columns{grid-template-columns:1fr}.brand small{display:none}.footer{height:86px}.add-project-circle{bottom:102px}}
@media(max-width:600px){.container{width:calc(100% - 14px)}.brand strong{font-size:12px}.brand-logo{width:44px;height:44px}.header-actions{gap:3px}.icon-btn,.menu-btn{width:36px;height:36px;font-size:15px}.hero{margin-top:14px;padding:22px 16px}.hero h1{font-size:30px}.hero p{font-size:14px}.grid3{grid-template-columns:1fr}.section-title h2{font-size:21px}.chips{grid-template-columns:1fr}.thumb{height:180px}.news-list .card{grid-template-columns:1fr}.news-list .thumb{height:180px}.add-project-circle{left:12px;width:56px;height:56px;font-size:31px;bottom:102px}.footer-inner{font-size:11px}.footer-brand img{width:38px;height:38px}}


/* ===== V7 layout overrides ===== */
.container{width:calc(100% - 24px);max-width:1900px}
body{padding-top:132px;padding-bottom:92px}
.header{height:132px}
.header-inner{height:132px;display:block}
.header-top{height:78px;display:grid;grid-template-columns:1fr minmax(280px,720px) 1fr;align-items:center;gap:18px}
.brand{grid-column:3;justify-self:end}
.header-search{grid-column:2;display:flex;align-items:center;width:100%;height:42px}
.header-search input{width:100%;height:42px;border:1px solid var(--line);border-radius:12px 0 0 12px;background:var(--panel2);color:var(--text);padding:0 15px;outline:none;font-family:inherit}
.header-search button{height:42px;width:52px;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));border-right:0;border-radius:0 12px 12px 0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-size:22px;cursor:pointer}
.header-actions{grid-column:1;justify-self:start;display:flex;align-items:center;gap:7px}
.header-nav{height:54px;display:flex;justify-content:center;align-items:center;gap:28px;border-top:1px solid var(--line)}
.header-nav a{font-size:15px}
.section-title-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inline-add{display:inline-flex;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 16%,var(--panel)),color-mix(in srgb,var(--accent2) 16%,var(--panel)));border-radius:10px;padding:7px 11px;color:var(--accent);font-weight:800;font-size:13px}
.thumb{height:185px;background:var(--panel2);display:grid;place-items:center}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb img.contain,.asset-fallback.contain{object-fit:contain;padding:18px}
.asset-fallback{background:var(--panel2)}
.hero-art{background:var(--panel2)}
.hero-art img{width:62%;height:72%;object-fit:contain;max-width:360px}
.add-project-circle{position:static;display:grid;flex:0 0 48px;width:48px;height:48px;font-size:28px;box-shadow:none;margin:0}
#projects .add-project-circle{display:none}
.drawer{right:auto;left:0;transform:translateX(-105%);border-right:1px solid var(--line);border-left:0;box-shadow:20px 0 60px #0008}
.drawer.open{transform:none}
.lang-en .drawer{left:auto;right:0;transform:translateX(105%);border-left:1px solid var(--line);border-right:0;box-shadow:-20px 0 60px #0008}
.lang-en .drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}
.drawer-head button{background:transparent;border:0;color:var(--text);font-size:28px;cursor:pointer}
.drawer-social{position:absolute;bottom:26px;left:22px;right:22px}
.drawer-links{padding-bottom:76px}
.footer{height:92px}
.footer-inner{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.footer-brand{grid-column:1;justify-self:start}
.footer-social{grid-column:2;display:flex;gap:9px;justify-content:center}
.footer-social a{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--panel2);border:1px solid var(--line);color:var(--accent);font-weight:800}
.footer-copy{grid-column:3;justify-self:end}
.notif-panel{left:28px;right:auto}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:1400;display:none;align-items:center;justify-content:center;padding:20px}
.modal-backdrop.show{display:flex}
.about-modal{width:min(920px,96vw);max-height:min(78vh,760px);overflow:auto;background:var(--panel);border:1px solid var(--accent);border-radius:18px;box-shadow:0 30px 90px #000b;position:relative;padding:26px}
.about-modal-head{font-size:24px;color:var(--accent);padding-bottom:12px;border-bottom:1px solid var(--line)}
.about-modal-body{color:var(--muted);line-height:2;text-align:right}
.about-modal-body p{margin:16px 0}
.about-modal-body li{margin:5px 0}
.about-toggle{position:absolute;top:12px;left:14px;width:40px;height:40px;border:0;background:var(--panel2);color:var(--accent);border-radius:10px;font-size:24px;cursor:pointer}
.about-modal.collapsed .about-modal-body{display:none}
.about-modal.collapsed{max-height:120px;overflow:hidden}
.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.course-feature-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.course-image{height:235px;background:var(--panel2);display:grid;place-items:center;overflow:hidden}
.course-image img{width:100%;height:100%;object-fit:cover;display:block}
.course-image img.contain{object-fit:contain;padding:22px}
.course-card-body{padding:18px}
.course-card-body h3{font-size:22px;color:var(--accent);margin:6px 0 10px}
.course-dates{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:14px;padding-top:12px;color:var(--muted);font-size:13px}
.course-card-foot{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}
.archive-cta{text-align:center;margin:28px 0}
.archive-btn{min-width:300px;border-radius:999px}
.course-detail{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}
.course-detail-media{min-height:420px;background:var(--panel2);display:grid;place-items:center;overflow:hidden}
.course-detail-media img{width:100%;height:100%;object-fit:cover;display:block}
.course-detail-media img.contain{object-fit:contain;padding:25px}
.course-detail-body{padding:28px}
.course-detail-body h2{color:var(--accent);font-size:30px;margin-top:0}
.course-content{border-top:1px solid var(--line);margin-top:18px;padding-top:18px;color:var(--muted);line-height:2}
.registration-panel{margin-top:25px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel2)}
.registration-panel h3{margin-top:0;color:var(--accent)}
.login-required,.free-note,.payment-box{padding:15px;border-radius:12px;border:1px solid var(--line);margin-bottom:16px}
.login-required{background:#1e293b}.free-note{background:#063b27;border-color:#22c55e;color:#bbf7d0}.payment-box{background:#211a08;border-color:#eab308;color:#fde68a}
.registration-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.registration-form .field{margin:0}
.registration-form .field:last-of-type,.registration-form .submit{grid-column:1/-1}
.registration-form label{display:block;margin-bottom:7px;color:var(--muted)}
.registration-form input{width:100%;padding:13px;border-radius:11px;border:1px solid var(--line);background:var(--bg);color:var(--text);outline:none}
.registration-form input[type=file]{padding:10px}
.project-form{max-width:820px}
.search-results{display:grid;gap:14px}
@media(max-width:1100px){
 .header-top{grid-template-columns:auto minmax(220px,1fr) auto}
 .header-actions{grid-column:1}.header-search{grid-column:2}.brand{grid-column:3}
 .header-nav{gap:17px}
 .course-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
 body{padding-top:115px}
 .header{height:115px}.header-inner{height:115px}
 .header-top{height:64px;grid-template-columns:auto 1fr auto;gap:8px}
 .header-search{grid-column:2;order:2}.header-actions{grid-column:1;order:1}.brand{grid-column:3;order:3}
 .brand strong{font-size:12px}.brand small{display:none}.brand-logo{width:42px;height:42px}
 .header-nav{height:50px;gap:14px;overflow:auto;justify-content:flex-start;padding-inline:6px}
 .header-nav a{font-size:12px;white-space:nowrap}
 .course-grid{grid-template-columns:1fr}
 .course-detail{grid-template-columns:1fr}
 .course-detail-media{min-height:280px}
 .registration-form{grid-template-columns:1fr}
 .registration-form .field:last-of-type,.registration-form .submit{grid-column:auto}
}
@media(max-width:600px){
 .container{width:calc(100% - 10px)}
 body{padding-top:108px;padding-bottom:105px}
 .header,.header-inner{height:108px}
 .header-top{height:61px}
 .header-search input{font-size:12px}
 .header-search button{width:42px}
 .header-actions{gap:2px}
 .icon-btn,.menu-btn{width:34px;height:34px}
 .brand-logo{width:38px;height:38px}
 .header-nav{height:47px;gap:12px}
 .hero{margin-top:12px;padding:20px 14px}
 .hero-art{min-height:190px}
 .footer{height:105px}
 .footer-inner{grid-template-columns:1fr;justify-items:center;gap:5px}
 .footer-brand,.footer-social,.footer-copy{grid-column:1;justify-self:center}
 .footer-brand p{display:none}
 .footer-brand img{width:34px;height:34px}
 .footer-social a{width:34px;height:34px}
 .course-image{height:220px}
 .about-modal{padding:20px}
}

.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.library-tile{display:flex;flex-direction:column;gap:8px;min-height:120px}.library-tile strong{color:var(--accent);font-size:20px}
@media(max-width:900px){.library-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.library-grid{grid-template-columns:1fr}}


/* ===== V8 FINAL DESIGN ===== */
.header-top{direction:ltr}
.header-top .brand{direction:rtl}
.header-top .header-search{direction:rtl}
.header-top .header-actions{direction:ltr}
.header-nav{direction:rtl}
body.gold{--bg:#000;--panel:#000;--panel2:#000;--line:#d4af37;--text:#d4af37;--muted:#d4af37;--accent:#d4af37;--accent2:#d4af37;background:#000;color:#d4af37}
body.gold .header,body.gold .footer{background:#000;border-color:#d4af37}
body.gold .card,body.gold .hero,body.gold .hero-art,body.gold .drawer,body.gold .notif-panel,body.gold .about-modal,body.gold .course-feature-card,body.gold .course-detail,body.gold .registration-panel{background:#000;border-color:#d4af37;color:#d4af37}
body.gold .btn,body.gold .icon-btn,body.gold .menu-btn,body.gold .inline-add,body.gold .chips a,body.gold .footer-social a,body.gold .drawer-top a,body.gold .drawer-top button{background:#000;border-color:#d4af37;color:#d4af37}
body.gold .btn:hover,body.gold .icon-btn:hover,body.gold .menu-btn:hover,body.gold .inline-add:hover{background:#d4af37;color:#000}
body.gold .header-search input,body.gold .forum-box textarea,body.gold .project-form textarea,body.gold .project-form input[type=text],body.gold .project-form input[type=url],body.gold .project-form input[type=file],body.gold .registration-form input{background:#000;border-color:#d4af37;color:#d4af37}
body.gold .header-search button{background:#000;color:#d4af37;border-color:#d4af37}
body.gold .tag{background:#000;border:1px solid #d4af37;color:#d4af37}
body.gold .muted,body.gold .course-dates,body.gold .about-modal-body{color:#d4af37}
body.gold .drawer-backdrop{background:rgba(0,0,0,.82)}
.hero-art{padding:0;min-height:300px;aspect-ratio:1.38/1}
.hero-art img{width:100%;height:100%;max-width:none;object-fit:cover;display:block;filter:none}
.hero h1{font-size:clamp(30px,3.8vw,54px)}
.hero-copy{padding-inline:4px}
.section-title-actions{direction:rtl}
#projects .section-title-actions .inline-add{order:2}
#projects .add-project-circle{display:none}
.post-type-archive-csf_project .add-project-circle{position:fixed;left:26px;bottom:112px;z-index:950}
.footer-social svg,.drawer-social svg{width:19px;height:19px;display:block;fill:currentColor}
.footer-social a,.drawer-social a{transition:.2s}
.footer-social a:hover,.drawer-social a:hover{transform:translateY(-2px);border-color:var(--accent)}
.drawer-social{display:flex;justify-content:center;gap:10px;direction:ltr}
.drawer-social a{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--panel2);border:1px solid var(--line);color:var(--accent)}
.footer-social{direction:ltr}
.lang-en .header-nav{direction:ltr}
.lang-en .about-modal-body{text-align:left}
.lang-en .section-title-actions{direction:ltr}
@media(max-width:900px){.hero-art{aspect-ratio:1.35/1}.header-top{direction:ltr}}
@media(max-width:600px){.hero-art{aspect-ratio:1.2/1}.hero-art img{object-fit:cover}.post-type-archive-csf_project .add-project-circle{left:14px;bottom:118px}}

/* ===== V9 FINAL FIXES ===== */
.header-top{direction:ltr}
.header-top .brand{grid-column:3;direction:rtl;justify-self:end}
.header-top .header-search{grid-column:2;direction:rtl}
.header-top .header-actions{grid-column:1;direction:ltr;justify-self:start}
.header-nav{direction:rtl}
.inline-add{border-radius:11px;padding:10px 16px;color:var(--text);font-size:13px;cursor:pointer}
#projects .section-title-actions{display:flex;gap:8px;align-items:center}
#projects .inline-add{order:1}
#projects .more-link{order:2}
.archive-add-wrap{display:flex;justify-content:flex-start;margin-top:18px}
.archive-add-wrap .add-project-circle{position:static;width:54px;height:54px;font-size:31px}
.hero-art{min-height:320px;aspect-ratio:1.38/1;padding:0;background:var(--panel2)}
.hero-art img{width:100%;height:100%;max-width:none;object-fit:cover}
.hero h1{font-size:clamp(28px,3.2vw,50px)}
.modal-card{width:min(760px,96vw);max-height:86vh;overflow:auto;background:var(--panel);border:1px solid var(--accent);border-radius:18px;padding:28px;position:relative;box-shadow:0 30px 90px #000b}
.modal-close{position:absolute;top:10px;left:12px;width:38px;height:38px;border:0;border-radius:10px;background:var(--panel2);color:var(--text);font-size:25px;cursor:pointer}
.project-modal h2{margin:0 0 18px;color:var(--accent);text-align:center}
.project-modal .project-form{max-width:none}
.project-modal .submit{width:100%}
.comments-preview{margin-top:18px;display:grid;gap:10px}
.comment-item{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.comment-item>span{float:left;font-size:11px}.comment-item p{margin:7px 0 0;color:var(--muted)}
.auth-shell{min-height:calc(100vh - 250px);display:grid;place-items:center}.auth-card{width:min(520px,96vw);background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:32px;box-shadow:0 25px 80px #0007;text-align:center}.auth-logo{width:82px;height:82px;border-radius:18px;overflow:hidden;margin:0 auto 16px;border:1px solid var(--line)}.auth-logo img{width:100%;height:100%;object-fit:cover}.auth-card h1{color:var(--accent);margin:0 0 8px}.auth-form,.login-form{display:grid;gap:14px;text-align:right;margin-top:22px}.auth-form label{color:var(--muted);font-weight:700}.auth-form input,.auth-card .input{width:100%;padding:13px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--text);margin-top:6px}.auth-form .submit{width:100%;border:0}.auth-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:16px}.auth-links a{color:var(--accent);font-weight:700}.auth-card #loginform{margin-top:22px;text-align:right}.auth-card #loginform label{display:block;color:var(--muted);font-weight:700;margin-bottom:12px}.auth-card #loginform input[type=text],.auth-card #loginform input[type=password]{width:100%;padding:13px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--text);margin-top:6px}.auth-card #loginform .login-remember{display:flex;align-items:center;gap:8px}.auth-card #loginform .button{width:100%;padding:12px;border-radius:12px;border:1px solid var(--accent);background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;cursor:pointer;font-weight:800}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.csf-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.csf-admin-card{background:#fff;border:1px solid #dfe5ee;border-radius:16px;padding:22px;text-decoration:none;color:#172033;display:grid;gap:8px}.csf-admin-card .dashicons{font-size:28px;width:28px;height:28px;color:#6d3df5}.csf-admin-card small{color:#64748b}
body.gold .auth-card,body.gold .content,body.gold .card,body.gold .modal-card{background:#000;border-color:#d4af37;color:#d4af37}.gold .muted{color:#d4af37}
@media(max-width:900px){.account-grid{grid-template-columns:1fr 1fr}.csf-admin-grid{grid-template-columns:1fr 1fr}.header-top .brand{grid-column:3}.header-top .header-search{grid-column:2}.header-top .header-actions{grid-column:1}}
@media(max-width:600px){.account-grid,.csf-admin-grid{grid-template-columns:1fr}.modal-card{padding:22px 16px}.hero-art{aspect-ratio:1.15/1}.hero-art img{object-fit:cover}.auth-card{padding:22px 16px}}

/* ===== V9.1 HEADER LAYOUT FIX ===== */
body{padding-top:132px}
.header{height:132px;top:0}
.header-inner{height:132px;display:block}
.header-top{height:78px;width:100%;grid-template-columns:minmax(270px,1fr) minmax(320px,720px) minmax(270px,1fr);align-items:center}
.header-top .brand{grid-column:3;grid-row:1;justify-self:end;direction:rtl}
.header-top .header-search{grid-column:2;grid-row:1;align-self:center}
.header-top .header-actions{grid-column:1;grid-row:1;justify-self:start;direction:ltr}
.header-nav{height:54px;display:flex;justify-content:center;align-items:center;gap:28px;border-top:1px solid var(--line);direction:rtl}
body.admin-bar .header{top:32px}
body.admin-bar{padding-top:164px}
@media(max-width:1100px){
  .header-top{grid-template-columns:auto minmax(220px,1fr) auto;gap:10px}
  .header-top .brand{grid-column:3}
  .header-top .header-search{grid-column:2}
  .header-top .header-actions{grid-column:1}
}
@media(max-width:900px){
  body{padding-top:114px}
  body.admin-bar{padding-top:146px}
  .header{height:114px}
  .header-inner{height:114px}
  .header-top{height:64px;grid-template-columns:auto 1fr auto;gap:8px}
  .header-top .header-actions{grid-column:1;grid-row:1}
  .header-top .header-search{grid-column:2;grid-row:1}
  .header-top .brand{grid-column:3;grid-row:1}
  .header-nav{height:50px;gap:14px;overflow-x:auto;justify-content:flex-start;padding-inline:10px}
}
@media(max-width:600px){
  body{padding-top:108px}
  body.admin-bar{padding-top:140px}
  .header,.header-inner{height:108px}
  .header-top{height:61px;grid-template-columns:auto 1fr auto}
  .header-nav{height:47px;gap:12px}
  .header-top .brand strong{font-size:11px}
  .header-top .brand-logo{width:38px;height:38px}
}


/* ===== V9.2 DEFINITIVE HEADER GRID ===== */
body{padding-top:132px !important}
.header{position:fixed !important;top:0 !important;left:0 !important;right:0 !important;height:132px !important;z-index:99990 !important}
.header-inner{height:132px !important;display:block !important;width:calc(100% - 32px) !important;max-width:1800px !important;margin:0 auto !important;padding:0 !important}
.header-top{height:78px !important;width:100% !important;display:grid !important;grid-template-columns:minmax(300px,1fr) minmax(360px,720px) minmax(300px,1fr) !important;grid-template-rows:78px !important;align-items:center !important;gap:18px !important;direction:ltr !important}
.header-top .header-actions{grid-column:1 !important;grid-row:1 !important;justify-self:start !important;align-self:center !important;display:flex !important;align-items:center !important;gap:7px !important;direction:ltr !important;margin:0 !important}
.header-top .header-search{grid-column:2 !important;grid-row:1 !important;justify-self:center !important;align-self:center !important;width:100% !important;max-width:720px !important;margin:0 !important;direction:rtl !important;display:flex !important}
.header-top .brand{grid-column:3 !important;grid-row:1 !important;justify-self:end !important;align-self:center !important;display:flex !important;direction:rtl !important;max-width:100% !important;margin:0 !important}
.header-top .brand span:last-child{min-width:0 !important}
.header-top .brand strong{white-space:nowrap !important}
.header-nav{height:54px !important;width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;gap:28px !important;border-top:1px solid var(--line) !important;direction:rtl !important;overflow:visible !important}
.header-nav a{white-space:nowrap !important}
body.admin-bar .header{top:32px !important}
body.admin-bar{padding-top:164px !important}
@media(max-width:1100px){
 .header-top{grid-template-columns:minmax(210px,1fr) minmax(260px,1.6fr) minmax(210px,1fr) !important;gap:10px !important}
 .header-nav{gap:18px !important}
 .header-nav a{font-size:13px !important}
 .brand strong{font-size:13px !important}
}
@media(max-width:900px){
 body{padding-top:114px !important}
 body.admin-bar{padding-top:146px !important}
 .header{height:114px !important}
 .header-inner{height:114px !important}
 .header-top{height:64px !important;grid-template-columns:auto minmax(160px,1fr) auto !important;grid-template-rows:64px !important;gap:7px !important}
 .header-top .header-actions{grid-column:1 !important;grid-row:1 !important}
 .header-top .header-search{grid-column:2 !important;grid-row:1 !important}
 .header-top .brand{grid-column:3 !important;grid-row:1 !important}
 .header-nav{height:50px !important;justify-content:flex-start !important;overflow-x:auto !important;gap:14px !important;padding:0 8px !important}
 .header-top .brand strong{font-size:11px !important}
 .brand small{display:none !important}
}
@media(max-width:600px){
 body{padding-top:108px !important}
 body.admin-bar{padding-top:140px !important}
 .header,.header-inner{height:108px !important}
 .header-top{height:61px !important;grid-template-columns:auto 1fr auto !important;grid-template-rows:61px !important}
 .header-nav{height:47px !important;gap:12px !important}
 .header-top .brand strong{font-size:10px !important}
 .header-top .brand-logo{width:38px !important;height:38px !important}
 .icon-btn,.menu-btn{width:34px !important;height:34px !important}
}

/* ===== V9.3 OVERLAY / STACKING FIX ===== */
/* All site overlays must appear above the fixed header and WordPress admin bar. */
.drawer-backdrop{z-index:100090 !important}
.drawer{z-index:100100 !important}
.notif-panel{z-index:100110 !important}
.modal-backdrop{z-index:100120 !important}
.about-modal{z-index:100121 !important}
.project-modal .modal-card{z-index:100121 !important}
/* Keep the close/collapse control visible above modal content. */
.about-toggle{z-index:100130 !important;position:absolute !important}
.modal-close{z-index:100130 !important}


/* ===== V9.4 PROJECT BUTTON + MODAL SCROLLBAR FIX ===== */
/* Homepage: make the Add Project control match the circular floating button style. */
#projects .section-title-actions .inline-add {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  background: linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color: #fff !important;
  border: 1px solid color-mix(in srgb,var(--accent) 60%,white) !important;
  box-shadow: 0 12px 34px rgba(39,216,255,.25) !important;
}
#projects .section-title-actions .inline-add::before {
  content: '+';
  font-size: 30px;
  font-weight: 500;
}
#projects .section-title-actions .inline-add:hover {
  transform: translateY(-3px) scale(1.04);
}
/* Archive page: floating Add Project button belongs at the bottom-right. */
.post-type-archive-csf_project .add-project-circle {
  left: auto !important;
  right: 28px !important;
  bottom: 100px !important;
}
/* Keep modal usable while removing the visible internal scrollbar. */
.project-modal.modal-card,
.modal-backdrop .modal-card {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.project-modal.modal-card::-webkit-scrollbar,
.modal-backdrop .modal-card::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
/* Do not allow the page itself to gain a second scrollbar while a modal is open. */
body.modal-open {
  overflow: hidden !important;
}
@media (max-width: 700px) {
  #projects .section-title-actions .inline-add {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }
  .post-type-archive-csf_project .add-project-circle {
    right: 18px !important;
    bottom: 80px !important;
  }
}


/* ===== V10 USER / MODERATION / ACCESSIBILITY ===== */
.comments-section{margin-top:24px}.csf-comment-form{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px}.csf-comment-form label{display:block;color:var(--muted);font-weight:700}.csf-comment-form textarea{width:100%;min-height:120px;margin-top:8px;padding:13px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:var(--text);resize:vertical}.comment-form-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.comments-list{display:grid;gap:10px;margin-top:16px}.comment-item{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}.comment-item p{color:var(--muted)}.comment-item small{margin-inline-start:8px}.comment-item a{color:var(--accent);font-weight:700}.login-required{padding:18px;text-align:center;border:1px dashed var(--line);border-radius:14px;background:var(--panel2)}.csf-admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.csf-admin-stats>div{background:#fff;border:1px solid #dfe5ee;border-radius:16px;padding:18px;display:grid;gap:4px}.csf-admin-stats strong{font-size:28px;color:#6d3df5}.csf-admin-stats span{color:#64748b}.project-modal.modal-card{scrollbar-width:none}.project-modal.modal-card::-webkit-scrollbar{width:0;height:0}.about-modal{max-height:calc(100vh - 90px);overflow:auto;scrollbar-width:none}.about-modal::-webkit-scrollbar{width:0;height:0}.about-toggle{position:sticky;top:0;z-index:5}.modal-backdrop{padding-top:70px;padding-bottom:70px}.modal-backdrop .modal-card{max-height:calc(100vh - 140px)}
body.gold .csf-comment-form,body.gold .comment-item,body.gold .login-required{background:#000;border-color:#d4af37;color:#d4af37}
body.gold .csf-admin-stats>div{background:#000;border-color:#d4af37;color:#d4af37}
@media(max-width:700px){.csf-admin-stats{grid-template-columns:1fr}.comment-form-foot{align-items:stretch;flex-direction:column}.modal-backdrop{padding:56px 10px}}


/* ===== 11.0.3 FINAL UI FIXES: registration fields + integrated search ===== */

/* Registration form: keep every control visibly rendered even if another
   theme/plugin/browser rule attempts to collapse form controls. */
.auth-card .auth-form{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  gap:16px !important;
  width:100% !important;
}
.auth-card .auth-form label{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:100% !important;
  line-height:1.7 !important;
}
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="email"],
.auth-card .auth-form input[type="password"]{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  height:48px !important;
  min-height:48px !important;
  padding:11px 14px !important;
  margin:7px 0 0 !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  background:var(--bg) !important;
  color:var(--text) !important;
  font:inherit !important;
  font-size:15px !important;
  line-height:1.4 !important;
  box-shadow:none !important;
  outline:none !important;
  appearance:auto !important;
  -webkit-appearance:auto !important;
}
.auth-card .auth-form input[type="text"]:focus,
.auth-card .auth-form input[type="email"]:focus,
.auth-card .auth-form input[type="password"]:focus{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px rgba(39,216,255,.12) !important;
}
.auth-card .auth-form input::placeholder{
  color:var(--muted) !important;
  opacity:.85 !important;
}
body.light .auth-card .auth-form input[type="text"],
body.light .auth-card .auth-form input[type="email"],
body.light .auth-card .auth-form input[type="password"]{
  background:#fff !important;
  color:#16203a !important;
  border-color:#d8e0ea !important;
}
body.gold .auth-card .auth-form input[type="text"],
body.gold .auth-card .auth-form input[type="email"],
body.gold .auth-card .auth-form input[type="password"]{
  background:#000 !important;
  color:#d4af37 !important;
  border-color:#d4af37 !important;
}
.auth-register-close{
  position:absolute !important;
  top:14px !important;
  inset-inline-end:14px !important;
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--line) !important;
  border-radius:50% !important;
  background:var(--panel2) !important;
  color:var(--text) !important;
  text-decoration:none !important;
  font-size:22px !important;
  line-height:1 !important;
  z-index:5 !important;
  transition:.2s ease !important;
}
.auth-register-close:hover{
  color:var(--accent) !important;
  border-color:var(--accent) !important;
  transform:scale(1.04);
}
.auth-card.register-card{
  position:relative !important;
  padding-top:48px !important;
}

/* Search: button is inside the same search field, not beside it. */
.header-search{
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:42px !important;
  margin:0 !important;
}
.header-search input{
  display:block !important;
  width:100% !important;
  height:42px !important;
  margin:0 !important;
  padding:0 15px 0 54px !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  background:var(--panel2) !important;
  color:var(--text) !important;
}
.header-search button{
  position:absolute !important;
  inset-inline-start:0 !important;
  top:0 !important;
  width:42px !important;
  height:42px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:12px 0 0 12px !important;
  background:linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color:#fff !important;
  cursor:pointer !important;
  z-index:2 !important;
  font-size:20px !important;
  line-height:1 !important;
}
.header-search button:hover{
  filter:brightness(1.08);
}
body.gold .header-search input{
  background:#000 !important;
  border-color:#d4af37 !important;
  color:#d4af37 !important;
}
body.gold .header-search button{
  background:#000 !important;
  border:1px solid #d4af37 !important;
  color:#d4af37 !important;
}


/* ===== V11.0.4 FINAL AUTH CONSISTENCY FIX ===== */
.auth-card.auth-login-card,
.auth-card.register-card{
  position:relative !important;
  width:min(520px,96vw) !important;
  min-height:0 !important;
  padding:48px 32px 32px !important;
  text-align:center !important;
  background:var(--panel) !important;
  border:1px solid var(--line) !important;
  border-radius:22px !important;
  box-shadow:0 25px 80px #0007 !important;
}
.auth-card.auth-login-card .auth-logo,
.auth-card.register-card .auth-logo{
  margin:0 auto 16px !important;
}
.auth-card.auth-login-card h1,
.auth-card.register-card h1{
  margin:0 0 8px !important;
}
.auth-card .auth-form{
  display:grid !important;
  gap:14px !important;
  text-align:right !important;
  margin-top:22px !important;
}
.auth-card .auth-form label{
  display:block !important;
  width:100% !important;
  color:var(--muted) !important;
  font-weight:700 !important;
  text-align:right !important;
}
.auth-card .auth-form label > span{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
.auth-card .auth-form input.auth-input{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:100% !important;
  height:48px !important;
  min-height:48px !important;
  margin-top:7px !important;
  padding:11px 14px !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  background:var(--bg) !important;
  color:var(--text) !important;
  font:inherit !important;
  outline:none !important;
  appearance:auto !important;
  -webkit-appearance:auto !important;
}
.auth-card .auth-form input.auth-input:focus{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px rgba(39,216,255,.12) !important;
}
.auth-card .auth-form input.auth-input::placeholder{
  color:var(--muted) !important;
  opacity:.85 !important;
}
.auth-card .auth-register-close{
  position:absolute !important;
  top:14px !important;
  inset-inline-start:14px !important;
  inset-inline-end:auto !important;
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid var(--line) !important;
  border-radius:50% !important;
  background:var(--panel2) !important;
  color:var(--text) !important;
  text-decoration:none !important;
  font-size:22px !important;
  line-height:1 !important;
  z-index:10 !important;
}
.auth-card .auth-register-close:hover{
  color:var(--accent) !important;
  border-color:var(--accent) !important;
}
body.light .auth-card .auth-form input.auth-input{
  background:#fff !important;
  color:#16203a !important;
  border-color:#d8e0ea !important;
}
body.gold .auth-card .auth-form input.auth-input{
  background:#000 !important;
  color:#d4af37 !important;
  border-color:#d4af37 !important;
}
body.gold .auth-card.auth-login-card,
body.gold .auth-card.register-card{
  background:#000 !important;
  color:#d4af37 !important;
  border-color:#d4af37 !important;
}


/* ===== V11.0.5: WordPress admin bar must never appear on the public site ===== */
#wpadminbar,
body.admin-bar #wpadminbar{
  display:none !important;
}
html{
  margin-top:0 !important;
}
body.admin-bar{
  margin-top:0 !important;
}


/* ===== V11.0.6 FINAL UI ===== */

/* Search icon is inside the search field, never beside it. */
.header-search{
  position:relative !important;
  display:block !important;
  height:46px !important;
}
.header-search input{
  width:100% !important;
  height:46px !important;
  box-sizing:border-box !important;
  border-radius:13px !important;
  padding-inline:58px 15px !important;
}
.header-search button{
  position:absolute !important;
  inset-inline-end:4px !important;
  top:4px !important;
  width:38px !important;
  height:38px !important;
  border:0 !important;
  border-radius:10px !important;
  z-index:2 !important;
  display:grid !important;
  place-items:center !important;
}

/* Compact hero: forum logo on the left, content in the center,
   Taiz University logo on the right. */
.hero{
  direction:ltr !important;
  grid-template-columns:150px minmax(0,1fr) 150px !important;
  grid-template-areas:"forum copy university" !important;
  gap:24px !important;
  min-height:250px !important;
  padding:24px 30px !important;
  align-items:center !important;
}
.hero-logo{
  width:130px !important;
  height:130px !important;
  margin:auto !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  border-radius:22px !important;
  background:var(--panel2) !important;
  box-shadow:0 12px 35px #0004 !important;
}
.hero-logo img{
  width:86% !important;
  height:86% !important;
  object-fit:contain !important;
  display:block !important;
}
.hero-logo-forum{grid-area:forum !important}
.hero-copy{
  grid-area:copy !important;
  direction:rtl !important;
  text-align:right !important;
  min-width:0 !important;
}
.hero-logo-university{grid-area:university !important}
.hero h1{
  font-size:clamp(30px,3.5vw,50px) !important;
  margin:8px 0 12px !important;
}
.hero p{
  font-size:15px !important;
  margin:0 !important;
}
.hero-actions{
  justify-content:flex-start !important;
  margin-top:16px !important;
}

/* About modal: real overlay above the page and a clear close button. */
.modal-backdrop#aboutModal{
  z-index:3000 !important;
  position:fixed !important;
  inset:0 !important;
  background:rgba(0,0,0,.78) !important;
  backdrop-filter:blur(4px) !important;
}
#aboutModal .about-modal{
  z-index:3001 !important;
  width:min(900px,94vw) !important;
  max-height:min(78vh,760px) !important;
  margin:auto !important;
}
.about-close{
  position:absolute !important;
  top:12px !important;
  inset-inline-start:12px !important;
  width:40px !important;
  height:40px !important;
  border:1px solid var(--line) !important;
  border-radius:50% !important;
  background:var(--panel2) !important;
  color:var(--text) !important;
  font-size:25px !important;
  cursor:pointer !important;
  z-index:5 !important;
}
.about-close:hover{
  color:var(--accent) !important;
  border-color:var(--accent) !important;
}
#aboutModal .about-toggle{
  top:12px !important;
  inset-inline-end:62px !important;
  inset-inline-start:auto !important;
}

/* Project/course image areas: taller and show the complete image without cropping. */
.project-card .thumb,
.course-card .thumb{
  height:260px !important;
  min-height:260px !important;
  background:var(--panel2) !important;
}
.project-card .thumb img,
.course-card .thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  padding:8px !important;
  box-sizing:border-box !important;
}

/* Login and register cards remain visually identical. */
.auth-card.auth-login-card,
.auth-card.register-card{
  position:relative !important;
}

/* Keep public site free of WordPress admin bar. */
#wpadminbar{display:none !important}
html,body{margin-top:0 !important}

@media(max-width:900px){
  .hero{
    grid-template-columns:86px minmax(0,1fr) 86px !important;
    grid-template-areas:"forum copy university" !important;
    gap:10px !important;
    min-height:205px !important;
    padding:18px 12px !important;
  }
  .hero-logo{
    width:76px !important;
    height:76px !important;
    border-radius:15px !important;
  }
  .hero h1{font-size:clamp(22px,5vw,34px) !important}
  .hero p{font-size:12px !important}
  .hero-actions{justify-content:center !important}
}
@media(max-width:600px){
  .hero{
    grid-template-columns:64px minmax(0,1fr) 64px !important;
    gap:7px !important;
    padding:14px 7px !important;
  }
  .hero-logo{
    width:58px !important;
    height:58px !important;
    border-radius:12px !important;
  }
  .hero h1{font-size:21px !important;line-height:1.35 !important}
  .hero p{font-size:11px !important;line-height:1.7 !important}
  .eyebrow{font-size:9px !important}
  .hero-actions{gap:5px !important;margin-top:9px !important}
  .hero-actions .btn{padding:7px 9px !important;font-size:11px !important}
  .project-card .thumb,.course-card .thumb{
    height:220px !important;
    min-height:220px !important;
  }
}


/* ===== V11.0.7 FINAL HERO LAYOUT =====
   Required visual order:
   [ Forum logo ]     [ centered content ]     [ Taiz University logo ]
*/
body.home .hero{
  display:flex !important;
  flex-direction:row !important;
  direction:ltr !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:28px !important;
  min-height:230px !important;
  height:auto !important;
  padding:22px 28px !important;
  overflow:hidden !important;
}
body.home .hero > .hero-logo-forum{
  order:1 !important;
  flex:0 0 130px !important;
}
body.home .hero > .hero-copy{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  direction:rtl !important;
  text-align:center !important;
  padding:0 !important;
}
body.home .hero > .hero-logo-university{
  order:3 !important;
  flex:0 0 130px !important;
}
body.home .hero > .hero-logo{
  width:130px !important;
  height:130px !important;
  margin:0 !important;
}
body.home .hero > .hero-copy .hero-actions{
  justify-content:center !important;
}
body.home .hero > .hero-copy .eyebrow{
  text-align:center !important;
}
body.home .hero > .hero-copy h1{
  margin:8px 0 10px !important;
}
body.home .hero > .hero-copy p{
  margin:0 auto !important;
  max-width:850px !important;
}

/* Home page project/course image boxes: only slightly taller. */
body.home .project-card .thumb,
body.home .course-card .thumb{
  height:220px !important;
  min-height:220px !important;
  background:var(--panel2) !important;
  overflow:hidden !important;
}
body.home .project-card .thumb img,
body.home .course-card .thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:6px !important;
  display:block !important;
}

@media(max-width:900px){
  body.home .hero{
    flex-direction:row !important;
    gap:10px !important;
    min-height:190px !important;
    padding:16px 12px !important;
  }
  body.home .hero > .hero-logo-forum,
  body.home .hero > .hero-logo-university{
    flex:0 0 78px !important;
    width:78px !important;
    height:78px !important;
  }
  body.home .hero > .hero-copy h1{
    font-size:clamp(21px,4.5vw,34px) !important;
  }
  body.home .hero > .hero-copy p{
    font-size:12px !important;
    line-height:1.7 !important;
  }
}
@media(max-width:600px){
  body.home .hero{
    gap:6px !important;
    min-height:165px !important;
    padding:12px 7px !important;
  }
  body.home .hero > .hero-logo-forum,
  body.home .hero > .hero-logo-university{
    flex:0 0 58px !important;
    width:58px !important;
    height:58px !important;
  }
  body.home .hero > .hero-copy h1{
    font-size:20px !important;
    line-height:1.35 !important;
  }
  body.home .hero > .hero-copy p{
    font-size:10px !important;
    line-height:1.65 !important;
  }
  body.home .hero > .hero-copy .eyebrow{
    font-size:8px !important;
  }
  body.home .hero > .hero-copy .hero-actions{
    gap:4px !important;
    margin-top:8px !important;
  }
  body.home .hero > .hero-copy .hero-actions .btn{
    padding:6px 8px !important;
    font-size:10px !important;
  }
  body.home .project-card .thumb,
  body.home .course-card .thumb{
    height:195px !important;
    min-height:195px !important;
  }
}


/* =========================================================
   V11.0.8 PRODUCTION FINAL — HERO / AUTH / MEDIA
   ========================================================= */

/* Hero: [Forum logo] [center content] [Taiz University logo] */
.hero{
  display:grid !important;
  grid-template-columns:150px minmax(0,1fr) 150px !important;
  grid-template-areas:"forum copy university" !important;
  direction:ltr !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap:24px !important;
  width:100% !important;
  min-height:230px !important;
  height:auto !important;
  padding:22px 28px !important;
  overflow:hidden !important;
}
.hero > .hero-logo-forum{
  grid-area:forum !important;
  width:130px !important;
  height:130px !important;
  margin:0 auto !important;
}
.hero > .hero-copy{
  grid-area:copy !important;
  min-width:0 !important;
  width:100% !important;
  direction:rtl !important;
  text-align:center !important;
  align-self:center !important;
}
.hero > .hero-logo-university{
  grid-area:university !important;
  width:130px !important;
  height:130px !important;
  margin:0 auto !important;
}
.hero > .hero-logo img{
  width:88% !important;
  height:88% !important;
  object-fit:contain !important;
  display:block !important;
}
.hero > .hero-copy .eyebrow,
.hero > .hero-copy h1,
.hero > .hero-copy p{
  text-align:center !important;
}
.hero > .hero-copy p{
  max-width:900px !important;
  margin-inline:auto !important;
}
.hero > .hero-copy .hero-actions{
  justify-content:center !important;
  align-items:center !important;
}

/* Search button is visually inside the search field. */
.header-search{
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:42px !important;
}
.header-search input{
  width:100% !important;
  height:42px !important;
  padding:0 15px 0 54px !important;
  border-radius:12px !important;
}
.header-search button{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:44px !important;
  height:42px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:12px 0 0 12px !important;
  z-index:3 !important;
}

/* Registration/login: same visual language, fields always visible. */
.auth-card{
  position:relative !important;
  overflow:visible !important;
}
.auth-card .auth-form{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
}
.auth-card .auth-form label{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
.auth-card .auth-form input{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  min-height:46px !important;
  color:var(--text) !important;
}
.auth-card #loginform{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
.auth-card #loginform label,
.auth-card #loginform input,
.auth-card #loginform p{
  visibility:visible !important;
  opacity:1 !important;
}
.auth-register-close{
  position:absolute !important;
  top:12px !important;
  inset-inline-start:12px !important;
  inset-inline-end:auto !important;
  width:38px !important;
  height:38px !important;
  display:grid !important;
  place-items:center !important;
  z-index:20 !important;
}

/* Home project/course images: slightly taller, preserve full image. */
.project-card .thumb,
.course-card .thumb{
  height:230px !important;
  min-height:230px !important;
  overflow:hidden !important;
}
.project-card .thumb img,
.course-card .thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  padding:6px !important;
}

/* Public pages must never expose the WordPress admin bar. */
#wpadminbar{display:none !important}
html{margin-top:0 !important}

@media(max-width:900px){
  .hero{
    grid-template-columns:82px minmax(0,1fr) 82px !important;
    grid-template-areas:"forum copy university" !important;
    gap:10px !important;
    min-height:190px !important;
    padding:16px 10px !important;
  }
  .hero > .hero-logo-forum,
  .hero > .hero-logo-university{
    width:74px !important;
    height:74px !important;
  }
  .hero > .hero-copy h1{font-size:clamp(21px,4.5vw,34px) !important;line-height:1.35 !important}
  .hero > .hero-copy p{font-size:12px !important;line-height:1.7 !important}
}
@media(max-width:600px){
  .hero{
    grid-template-columns:60px minmax(0,1fr) 60px !important;
    gap:6px !important;
    min-height:160px !important;
    padding:12px 6px !important;
  }
  .hero > .hero-logo-forum,
  .hero > .hero-logo-university{
    width:54px !important;
    height:54px !important;
  }
  .hero > .hero-copy .eyebrow{font-size:8px !important}
  .hero > .hero-copy h1{font-size:19px !important}
  .hero > .hero-copy p{font-size:9px !important}
  .hero > .hero-copy .hero-actions{gap:4px !important;margin-top:7px !important}
  .hero > .hero-copy .hero-actions .btn{padding:6px 7px !important;font-size:9px !important}
  .project-card .thumb,
  .course-card .thumb{
    height:205px !important;
    min-height:205px !important;
  }
}


/* =========================================================
   V11.0.9 — FINAL HERO LOGO SIZE
   Required: each welcome-section logo occupies exactly 60×60 px.
   ========================================================= */
.hero-logo-forum,
.hero-logo-university{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  min-height:60px !important;
  max-width:60px !important;
  max-height:60px !important;
  flex:0 0 60px !important;
  box-sizing:border-box !important;
  object-fit:contain !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
}

.hero-logo-forum img,
.hero-logo-university img{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  min-height:60px !important;
  max-width:60px !important;
  max-height:60px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}

.hero{
  align-items:center !important;
}

.hero-copy{
  flex:1 1 auto !important;
  min-width:0 !important;
  text-align:center !important;
}

@media (max-width:900px){
  .hero-logo-forum,
  .hero-logo-university{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    min-height:60px !important;
    max-width:60px !important;
    max-height:60px !important;
    flex:0 0 60px !important;
  }
  .hero-logo-forum img,
  .hero-logo-university img{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    min-height:60px !important;
    max-width:60px !important;
    max-height:60px !important;
  }
}

@media (max-width:600px){
  .hero-logo-forum,
  .hero-logo-university,
  .hero-logo-forum img,
  .hero-logo-university img{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    min-height:60px !important;
    max-width:60px !important;
    max-height:60px !important;
    flex-basis:60px !important;
  }
}


/* =========================================================
   V11.1.0 — CLEAN WELCOME HERO
   Exact structure:
   [60×60 Forum logo] [centered content] [60×60 Taiz logo]
   ========================================================= */

#csf-welcome-hero{
  display:grid !important;
  grid-template-columns:60px minmax(0,1fr) 60px !important;
  grid-template-areas:"forum content university" !important;
  direction:ltr !important;
  align-items:center !important;
  gap:24px !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  margin:20px 0 24px !important;
  padding:24px 28px !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  border-radius:24px !important;
  background:var(--panel) !important;
  box-shadow:0 18px 55px #0005 !important;
}

/* Kill legacy hero-art sizing if a cached/old rule exists. */
#csf-welcome-hero .hero-art{
  display:none !important;
}

#csf-welcome-hero .csf-hero-logo{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  min-height:60px !important;
  max-width:60px !important;
  max-height:60px !important;
  flex:none !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#csf-welcome-hero .csf-hero-logo img{
  display:block !important;
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  min-height:60px !important;
  max-width:60px !important;
  max-height:60px !important;
  object-fit:contain !important;
  margin:0 !important;
  padding:0 !important;
}

#csf-welcome-hero .csf-hero-forum{
  grid-area:forum !important;
}

#csf-welcome-hero .csf-hero-university{
  grid-area:university !important;
}

#csf-welcome-hero .csf-hero-content{
  grid-area:content !important;
  min-width:0 !important;
  width:100% !important;
  direction:rtl !important;
  text-align:center !important;
}

#csf-welcome-hero .csf-hero-content .eyebrow{
  text-align:center !important;
  margin:0 0 8px !important;
}

#csf-welcome-hero .csf-hero-content h1{
  margin:6px auto 10px !important;
  font-size:clamp(25px,3.5vw,46px) !important;
  line-height:1.3 !important;
  max-width:900px !important;
}

#csf-welcome-hero .csf-hero-content p{
  margin:0 auto !important;
  max-width:850px !important;
  font-size:15px !important;
  line-height:1.8 !important;
}

#csf-welcome-hero .csf-hero-content .hero-actions{
  justify-content:center !important;
  align-items:center !important;
  margin-top:16px !important;
}

@media(max-width:900px){
  #csf-welcome-hero{
    grid-template-columns:60px minmax(0,1fr) 60px !important;
    gap:14px !important;
    padding:20px 14px !important;
  }
  #csf-welcome-hero .csf-hero-content h1{
    font-size:clamp(22px,5vw,34px) !important;
  }
}

@media(max-width:600px){
  #csf-welcome-hero{
    grid-template-columns:60px minmax(0,1fr) 60px !important;
    gap:8px !important;
    padding:16px 8px !important;
    border-radius:18px !important;
  }
  #csf-welcome-hero .csf-hero-logo,
  #csf-welcome-hero .csf-hero-logo img{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    min-height:60px !important;
    max-width:60px !important;
    max-height:60px !important;
  }
  #csf-welcome-hero .csf-hero-content h1{
    font-size:20px !important;
    line-height:1.4 !important;
  }
  #csf-welcome-hero .csf-hero-content p{
    font-size:10px !important;
    line-height:1.7 !important;
  }
  #csf-welcome-hero .csf-hero-content .eyebrow{
    font-size:8px !important;
  }
  #csf-welcome-hero .csf-hero-content .hero-actions{
    gap:5px !important;
    margin-top:10px !important;
  }
  #csf-welcome-hero .csf-hero-content .hero-actions .btn{
    padding:6px 8px !important;
    font-size:9px !important;
  }
}


/* =========================================================
   V11.2.0 — PRE-FINAL UI CORRECTIONS
   1) Welcome logos: exactly 180×180 px.
   2) Header search button: inside search field at the RIGHT in RTL.
   ========================================================= */

/* Welcome logos */
#csf-welcome-hero{
  grid-template-columns:180px minmax(0,1fr) 180px !important;
  grid-template-areas:"forum content university" !important;
  gap:28px !important;
}

#csf-welcome-hero .csf-hero-logo,
#csf-welcome-hero .csf-hero-logo img{
  width:180px !important;
  height:180px !important;
  min-width:180px !important;
  min-height:180px !important;
  max-width:180px !important;
  max-height:180px !important;
  flex:0 0 180px !important;
  object-fit:contain !important;
}

#csf-welcome-hero .csf-hero-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
}

/* Header search: one field, button INSIDE it, on the right for RTL. */
.site-header .search-form,
header .search-form,
.csf-search,
.search-wrap,
.header-search{
  position:relative !important;
  display:block !important;
}

.site-header .search-form input[type="search"],
header .search-form input[type="search"],
.csf-search input[type="search"],
.search-wrap input[type="search"],
.header-search input[type="search"]{
  width:100% !important;
  box-sizing:border-box !important;
  padding-right:58px !important;
  padding-left:18px !important;
  direction:rtl !important;
  text-align:right !important;
}

.site-header .search-form button,
header .search-form button,
.csf-search button,
.search-wrap button,
.header-search button,
.site-header .search-form input[type="submit"],
header .search-form input[type="submit"],
.csf-search input[type="submit"],
.search-wrap input[type="submit"],
.header-search input[type="submit"]{
  position:absolute !important;
  right:0 !important;
  left:auto !important;
  top:0 !important;
  bottom:0 !important;
  width:48px !important;
  min-width:48px !important;
  height:100% !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 10px 10px 0 !important;
  z-index:5 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* On RTL, keep the field/button relationship intact even if the
   parent header has direction changes. */
[dir="rtl"] .site-header .search-form button,
[dir="rtl"] header .search-form button,
[dir="rtl"] .csf-search button,
[dir="rtl"] .search-wrap button,
[dir="rtl"] .header-search button{
  right:0 !important;
  left:auto !important;
}

/* Mobile: retain 180×180 as requested, while preventing overflow. */
@media(max-width:600px){
  #csf-welcome-hero{
    grid-template-columns:180px minmax(0,1fr) 180px !important;
    gap:10px !important;
  }
  #csf-welcome-hero .csf-hero-logo,
  #csf-welcome-hero .csf-hero-logo img{
    width:180px !important;
    height:180px !important;
    min-width:180px !important;
    min-height:180px !important;
    max-width:180px !important;
    max-height:180px !important;
    flex-basis:180px !important;
  }
}


/* =========================================================
   V11.2.1 — TRANSPARENT LOGOS + ROUNDED IMAGE CORNERS
   ========================================================= */

/* Hero logos: transparent artwork, rounded clipping, exact 180×180 box. */
#csf-welcome-hero .csf-hero-logo,
#csf-welcome-hero .csf-hero-logo img{
  width:180px !important;
  height:180px !important;
  min-width:180px !important;
  min-height:180px !important;
  max-width:180px !important;
  max-height:180px !important;
  flex:0 0 180px !important;
  object-fit:contain !important;
}

#csf-welcome-hero .csf-hero-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

#csf-welcome-hero .csf-hero-logo img{
  display:block !important;
  border-radius:18px !important;
  object-fit:contain !important;
  background:transparent !important;
}

/* The transparent logos also stay clean in the header/footer/auth areas. */
.brand-logo img,
.auth-logo img,
.site-footer img{
  background:transparent !important;
}

/* Rounded corners for content/gallery images so they match their containers. */
.csf-card img,
.project-card img,
.course-card img,
.news-card img,
.resource-card img,
.archive-card img,
.asset-fallback,
.entry-thumb img,
.post-thumbnail img,
.project-thumbnail img,
.course-thumbnail img,
.news-thumbnail img{
  border-radius:18px !important;
  overflow:hidden !important;
  display:block;
}

/* Keep image wrappers rounded as well, preventing square image corners. */
.csf-card .thumb,
.csf-card .media,
.project-card .thumb,
.project-card .media,
.course-card .thumb,
.course-card .media,
.news-card .thumb,
.news-card .media,
.resource-card .thumb,
.resource-card .media,
.archive-card .thumb,
.archive-card .media{
  border-radius:18px !important;
  overflow:hidden !important;
}

/* Mobile retains the requested 180×180 hero logo boxes. */
@media(max-width:600px){
  #csf-welcome-hero .csf-hero-logo,
  #csf-welcome-hero .csf-hero-logo img{
    width:180px !important;
    height:180px !important;
    min-width:180px !important;
    min-height:180px !important;
    max-width:180px !important;
    max-height:180px !important;
    flex-basis:180px !important;
  }
}
\n/* V11.2.3: transparency is isolated to the welcome hero logo only. */\n#csf-welcome-hero .csf-hero-forum{width:185px!important;height:185px!important;min-width:185px!important;min-height:185px!important;max-width:185px!important;max-height:185px!important;border-radius:25px!important;overflow:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important}\n#csf-welcome-hero .csf-hero-forum img{width:185px!important;height:185px!important;display:block!important;object-fit:contain!important;border-radius:25px!important;background:transparent!important}\n

/* ===== V11.3.0 SMART SECURITY SCANNER + REVIEW ===== */
/* The WordPress admin bar is intentionally hidden on the public site.
   Therefore the public header must NEVER keep the 32px admin-bar offset. */
html{margin-top:0!important}
body.admin-bar{margin-top:0!important;padding-top:132px!important}
body.admin-bar .header{top:0!important}
@media(max-width:900px){body.admin-bar{padding-top:114px!important}body.admin-bar .header{top:0!important}}
@media(max-width:600px){body.admin-bar{padding-top:108px!important}body.admin-bar .header{top:0!important}}
.header{background:rgba(5,9,20,.985)!important;isolation:isolate}
body.light .header{background:rgba(255,255,255,.985)!important}
.header-inner,.header-top,.header-nav{position:relative;z-index:2}
/* Project/course/news gallery thumbnails: show the image cleanly with rounded corners. */
#projects .thumb,#courses .thumb,.project-card .thumb,.course-card .thumb,.news-card .thumb{border-radius:18px!important;overflow:hidden!important}
#projects .thumb img,#courses .thumb img,.project-card .thumb img,.course-card .thumb img,.news-card .thumb img{border-radius:18px!important}
