/*
Theme Name: Manarat Sharjah Professional
Theme URI: https://manaratalsharjah.com/
Author: Manarat Sharjah
Description: Modern RTL school theme designed for Elementor, with a visual HTML preview included.
Version: 2.0.0
Text Domain: manarat-sharjah-professional
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--navy:#082f63;--blue:#0a4f9a;--gold:#f2b632;--ink:#12345b;--soft:#f5f8fc;--line:#e5ebf3;--white:#fff;--shadow:0 18px 50px rgba(8,47,99,.10)}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:#fff;color:var(--ink);font-family:Cairo,Segoe UI,Arial,sans-serif;line-height:1.8} a{text-decoration:none;color:inherit}.wrap{max-width:1240px;margin:auto;padding:0 24px}
.topbar{background:var(--navy);color:#fff;font-size:13px}.topbar .wrap{height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.top-links{display:flex;gap:18px;align-items:center}.top-links a{opacity:.92}.top-links a:hover{opacity:1;color:#ffd36b}.top-contact{display:flex;gap:18px;align-items:center}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.nav-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:26px;direction:rtl}.brand{display:flex;align-items:center;gap:14px;min-width:300px}.brand img{width:62px;height:62px;object-fit:contain}.brand-title{font-size:20px;font-weight:800;line-height:1.25;color:var(--navy)}.brand-sub{font-size:11px;color:#71829a;margin-top:3px}.menu{display:flex;align-items:center;gap:4px;justify-content:center;flex:1;direction:rtl}.menu a{padding:10px 12px;font-size:14px;font-weight:700;color:#173c67;border-radius:10px}.menu a:hover,.menu a.active{background:#f4f8fd;color:var(--blue)}.cta{background:linear-gradient(135deg,#ffca3a,#efa91b);color:#102f56!important;padding:11px 20px!important;border-radius:12px!important;box-shadow:0 8px 20px rgba(242,182,50,.25)}.mobile-btn{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:22px}
.hero{position:relative;min-height:610px;display:flex;align-items:center;overflow:hidden;background:#eef5fb}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,47,96,.02) 20%,rgba(7,47,96,.72) 82%);pointer-events:none}.hero-media{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-content{position:relative;z-index:2;width:100%;padding:110px 0 125px}.hero-copy{max-width:570px;margin-right:0;margin-left:auto;text-align:right;color:#fff}.eyebrow{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700}.hero h1{font-size:clamp(40px,5vw,72px);line-height:1.08;margin:18px 0 12px;font-weight:800;letter-spacing:-1.5px}.hero h1 span{color:#ffd35d}.hero p{font-size:18px;max-width:560px;margin:0 0 26px;color:#f5f9ff}.hero-actions{display:flex;gap:12px;justify-content:flex-start}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:12px;font-weight:800}.btn-gold{background:var(--gold);color:#14355e}.btn-light{background:#fff;color:var(--navy)}
.quick{position:relative;z-index:5;margin-top:-48px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quick-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}.quick-card img{width:74px;height:62px;object-fit:cover;border-radius:12px}.quick-card strong{display:block;font-size:15px}.quick-card small{color:#75869b}
.section{padding:82px 0}.section.alt{background:var(--soft)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.section-title{font-size:34px;line-height:1.25;margin:0;color:var(--navy)}.section-kicker{font-size:13px;color:#d29414;font-weight:800}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 12px 36px rgba(8,47,99,.07)}.card img{width:100%;height:230px;object-fit:cover;display:block}.card-body{padding:22px}.card h3{margin:0 0 7px;font-size:20px;color:var(--navy)}.card p{margin:0;color:#6b7d94;font-size:14px}.read{margin-top:14px;display:inline-flex;font-weight:800;color:var(--blue);font-size:13px}
.identity{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:stretch}.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:var(--shadow)}.panel.gold{background:linear-gradient(135deg,#fffaf0,#fff);border-color:#f4dfad}.panel h2{margin:0 0 12px;font-size:28px;color:var(--navy)}.panel p{color:#60758f}.quote{border-right:4px solid var(--gold);padding-right:18px;font-size:17px}.manager{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center}.manager img{width:150px;height:180px;border-radius:18px;object-fit:cover}.manager h3{margin:0;color:var(--navy)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{padding:25px;background:#fff;border:1px solid var(--line);border-radius:20px;text-align:center}.stat b{display:block;font-size:34px;color:var(--blue);line-height:1.2}.stat span{color:#6f8299;font-size:14px}
.gallery{display:grid;grid-template-columns:1.3fr .7fr .7fr;grid-auto-rows:220px;gap:14px}.gallery img{width:100%;height:100%;object-fit:cover;border-radius:18px}.gallery img:first-child{grid-row:span 2}.gallery img:nth-child(4){grid-column:2/4}
.cta-band{padding:42px;background:linear-gradient(135deg,var(--navy),#0b5aa8);color:#fff;border-radius:28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.cta-band h2{margin:0;font-size:28px}.cta-band p{margin:5px 0 0;color:#d9e8f9}.cta-band .btn{background:#fff;color:var(--navy)}
.footer{background:#061f40;color:#d7e4f3;margin-top:0}.footer-top{padding:28px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:25px}.footer-brand{display:flex;gap:14px;align-items:flex-start}.footer-brand img{width:66px;height:66px;object-fit:contain}.footer h3{color:#fff;margin:0 0 14px;font-size:16px}.footer p,.footer a{color:#b8c9dc;font-size:13px}.footer a:hover{color:#ffd35d}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:15px 0;font-size:12px}.footer-bottom .wrap{display:flex;justify-content:space-between;gap:20px}
.page-hero{padding:76px 0;background:linear-gradient(135deg,#082f63,#0d5aa7);color:#fff}.page-hero h1{margin:0;font-size:48px}.page-hero p{margin:8px 0 0;color:#d9e8f9}.content{padding:70px 0}.content .prose{max-width:900px;margin:auto}.prose h2{font-size:30px;color:var(--navy)}.prose p{color:#60758f}.prose ul{color:#60758f}
@media(max-width:1050px){.menu a{padding:9px 7px;font-size:12px}.brand{min-width:260px}.quick-grid{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar .wrap{height:auto;padding:8px 16px;flex-direction:column;gap:4px}.nav-row{min-height:72px}.brand{min-width:0}.brand img{width:50px;height:50px}.brand-title{font-size:16px}.brand-sub{font-size:9px}.mobile-btn{display:block}.menu{display:none;position:absolute;top:72px;left:12px;right:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:var(--shadow);flex-direction:column}.menu.open{display:flex}.menu a{width:100%;text-align:center}.hero{min-height:650px}.hero-content{padding:90px 0}.hero-copy{max-width:none;text-align:center}.hero-actions{justify-content:center;flex-wrap:wrap}.hero h1{font-size:43px}.quick-grid,.cards,.stats,.identity,.footer-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr;grid-auto-rows:180px}.gallery img:first-child{grid-row:auto}.gallery img:nth-child(4){grid-column:auto}.cta-band{flex-direction:column;text-align:center}.footer-bottom .wrap{flex-direction:column;text-align:center}}

/* School services hub */
.page-hero{background:linear-gradient(135deg,#06264d 0%,#0e4c88 100%);color:#fff;padding:76px 0 68px;position:relative;overflow:hidden}.page-hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;border:1px solid rgba(255,255,255,.12);left:-120px;top:-180px}.page-hero h1{font-size:clamp(32px,4vw,54px);margin:10px 0 16px;line-height:1.2}.page-hero p{max-width:760px;font-size:18px;line-height:1.9;color:#e4eef8}.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.service-card{display:block;background:#fff;border:1px solid #e2eaf3;border-radius:22px;padding:28px 24px;min-height:230px;box-shadow:0 12px 30px rgba(15,55,95,.07);transition:.25s;text-decoration:none}.service-card:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(15,55,95,.13);border-color:#f0b82e}.service-card h2{color:#092f5c;font-size:22px;margin:18px 0 10px}.service-card p{color:#647891;font-size:15px;line-height:1.9;margin:0}.service-icon{display:inline-flex;width:48px;height:48px;border-radius:14px;background:#f5c13b;color:#082e59;align-items:center;justify-content:center;font-weight:800}.service-card.featured{background:linear-gradient(145deg,#082d57,#0c528f);border-color:transparent}.service-card.featured h2,.service-card.featured p{color:#fff}.service-card.featured .service-icon{background:#fff}.service-link{display:inline-block;margin-top:18px;color:#ffd05a;font-weight:800}.services-page .section{padding-top:72px;padding-bottom:80px}@media(max-width:1050px){.services-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.services-grid{grid-template-columns:1fr}.page-hero{padding:56px 0}.service-card{min-height:auto}}

/* Principal message – dedicated photo + message layout */
.principal-section{padding-top:58px;padding-bottom:58px;background:#fff}.principal-card{display:grid;grid-template-columns:320px minmax(0,1fr);gap:38px;align-items:stretch;background:linear-gradient(135deg,#fffaf0 0%,#fff 72%);border:1px solid #ecdcae;border-radius:28px;padding:28px;box-shadow:var(--shadow);direction:rtl}.principal-photo{min-height:310px;border-radius:22px;background:linear-gradient(145deg,#082f63,#0d5aa7);padding:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(8,47,99,.14)}.principal-photo-inner{width:100%;height:100%;min-height:284px;border:2px dashed rgba(255,255,255,.58);border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px;text-align:center;gap:10px}.principal-photo-inner:before{content:'+';width:54px;height:54px;border:2px solid rgba(255,255,255,.72);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:400}.principal-copy{direction:rtl;padding:14px 8px 14px 6px;display:flex;flex-direction:column;justify-content:center}.principal-copy h2{margin:6px 0 4px;color:var(--navy);font-size:32px}.principal-lead{margin:0 0 18px;color:#d29414;font-weight:800}.principal-message{border-right:4px solid var(--gold);padding:8px 18px 8px 0;color:#60758f;font-size:17px;line-height:2;min-height:120px}.principal-message p{margin:0}.news-cards{grid-template-columns:repeat(4,1fr)}.news-cards .card img{height:190px}
/* Compact footer v1.7 */
.footer-top{padding:12px 0 8px}.footer-grid{gap:14px;align-items:center}.footer-brand{gap:10px;align-items:center}.footer h3{margin-bottom:4px;font-size:14px}.footer p,.footer a{font-size:11px;line-height:1.45;margin:0}.footer-brand img{width:42px;height:42px}.footer-bottom{padding:7px 0;font-size:10px}
@media(max-width:1050px){.news-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.news-cards{grid-template-columns:1fr}.principal-card{grid-template-columns:1fr;direction:rtl}.principal-photo{min-height:250px}.principal-photo-inner{min-height:224px}.principal-copy{padding:8px 2px}.footer-top{padding:16px 0 10px}.footer-grid{gap:10px}.footer-brand img{width:46px;height:46px}}

/* v1.7 precision fixes: header brand right, compact footer, real principal photo placeholder */
.site-header .nav-row{direction:ltr!important;}
.site-header .nav-row .menu{order:1!important;direction:rtl!important;}
.site-header .nav-row .brand{order:2!important;direction:rtl!important;text-align:right;}
.site-header .nav-row .mobile-btn{order:0!important;}
.site-header .brand{margin-left:0;margin-right:0;}

.principal-photo{position:relative;overflow:hidden;padding:0!important;min-height:330px!important;}
.principal-photo-image{display:block;width:100%;height:100%;min-height:330px;object-fit:cover;object-position:center;}
.principal-photo-badge{position:absolute;right:14px;bottom:14px;background:rgba(6,31,64,.82);color:#fff;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:700;backdrop-filter:blur(6px);}

.footer-top{padding:8px 0 6px!important;}
.footer-grid{grid-template-columns:1.25fr 1fr 1fr 1fr!important;gap:10px!important;align-items:center!important;}
.footer-brand{gap:8px!important;}
.footer-brand img{width:34px!important;height:34px!important;}
.footer h3{font-size:12px!important;margin:0 0 3px!important;line-height:1.3!important;}
.footer p,.footer a{font-size:10px!important;line-height:1.35!important;margin:0!important;}
.footer-bottom{padding:5px 0!important;font-size:9px!important;}
.footer-bottom .wrap{min-height:0!important;}
@media(max-width:760px){
 .site-header .nav-row{direction:rtl!important;}
 .site-header .nav-row .brand{order:1!important;}
 .site-header .nav-row .mobile-btn{order:2!important;}
 .site-header .nav-row .menu{order:3!important;}
 .principal-photo,.principal-photo-image{min-height:250px!important;height:250px!important;}
 .footer-grid{grid-template-columns:1fr!important;gap:8px!important;}
 .footer-top{padding:12px 0 8px!important;}
}

/* v1.9 ultra-compact footer: approximately the height of the preceding CTA section */
.footer{margin-top:0!important;background:#061f40!important;}
.footer-top{padding:16px 0 12px!important;}
.footer-grid{grid-template-columns:1.4fr 1fr 1.1fr 1fr!important;gap:22px!important;align-items:center!important;}
.footer-brand{gap:10px!important;align-items:center!important;}
.footer-brand img{width:38px!important;height:38px!important;}
.footer h3{font-size:14px!important;line-height:1.25!important;margin:0 0 5px!important;}
.footer p,.footer a{font-size:11px!important;line-height:1.45!important;margin:0!important;}
.footer-bottom{padding:6px 0!important;font-size:10px!important;}
.footer-bottom .wrap{min-height:0!important;}
@media(max-width:1050px){
 .footer-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important;}
}
@media(max-width:760px){
 .footer-top{padding:14px 0 10px!important;}
 .footer-grid{grid-template-columns:1fr!important;gap:8px!important;}
 .footer h3{font-size:13px!important;}
 .footer p,.footer a{font-size:11px!important;}
 .footer-bottom{padding:6px 0!important;}
}

/* v2.0 FINAL FOOTER FIX - compact desktop footer */
@media (min-width:761px){
  .footer-top{padding:10px 0 8px!important;}
  .footer-grid{display:grid!important;grid-template-columns:1.45fr 1fr 1fr 1fr!important;gap:18px!important;align-items:center!important;}
  .footer-brand{gap:8px!important;}
  .footer-brand img{width:32px!important;height:32px!important;}
  .footer h3{font-size:12px!important;line-height:1.2!important;margin:0 0 2px!important;}
  .footer p,.footer a{font-size:9.5px!important;line-height:1.25!important;margin:0!important;}
  .footer-bottom{padding:4px 0!important;font-size:9px!important;}
  .footer-bottom .wrap{min-height:0!important;}
}
@media (max-width:1050px) and (min-width:761px){
  .footer-grid{grid-template-columns:1.35fr 1fr 1fr 1fr!important;gap:8px!important;}
  .footer p,.footer a{font-size:9px!important;}
}
@media (max-width:760px){
  .footer-top{padding:10px 0 8px!important;}
  .footer-grid{gap:6px!important;}
  .footer h3{font-size:12px!important;margin-bottom:2px!important;}
  .footer p,.footer a{font-size:10px!important;line-height:1.3!important;}
  .footer-bottom{padding:5px 0!important;font-size:9px!important;}
}
