/*
Theme Name: SJ Tutorials Editable
Theme URI:
Author: SJ Tutorials
Description: Fully editable classic WordPress theme converted from the supplied SJ Tutorials HTML design. Edit text, images, gallery, centres, colours and layout from Appearance > Customize.
Version: 1.1.1
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: sj-tutorials
*/

:root{
  --sj-navy:#102a56; --sj-deep:#071a36; --sj-orange:#ff6b00; --sj-green:#179c32;
  --sj-soft:#f5faf7; --sj-cream:#fffaf4; --sj-text:#172033; --sj-muted:#667085;
  --sj-border:#e3e9f2; --sj-white:#fff; --sj-shadow:0 18px 55px rgba(16,42,86,.12);
  --sj-radius:22px; --sj-max:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{font-family:Arial,Helvetica,sans-serif;color:var(--sj-text);line-height:1.6;background:#fff}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.container{width:min(92%,var(--sj-max));margin:auto}
header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-bottom:1px solid var(--sj-border);box-shadow:0 5px 22px rgba(16,42,86,.06)}
.navbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--sj-navy);line-height:1.05}
.brand-logo{width:55px;height:55px;object-fit:contain}
.brand-title{font-size:16px;font-weight:900;letter-spacing:.5px;white-space:nowrap}
.brand-title .orange{color:var(--sj-orange)}
.brand-title .green{color:var(--sj-green)}
.brand-subtitle{display:block;font-size:8px;letter-spacing:1.2px;color:var(--sj-green);margin-top:4px}
.nav-links{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:800}
.nav-links a{padding:10px 12px;border-radius:10px;transition:.2s}
.nav-links a:hover{background:#fff1e8;color:var(--sj-orange)}
.nav-cta{background:var(--sj-navy);color:#fff!important}
.header-contact{display:flex;align-items:center;gap:8px}
.header-contact a{width:41px;height:41px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#fff;transition:.2s;box-shadow:0 6px 16px rgba(0,0,0,.1)}
.header-contact a:hover{transform:translateY(-2px)}
.header-mail{background:#ea4335}.header-whatsapp{background:#25d366}
.header-contact svg{width:21px;height:21px}
.menu-btn{display:none;border:0;background:var(--sj-navy);color:#fff;padding:10px 13px;border-radius:10px;cursor:pointer;font-size:20px}
.hero{position:relative;overflow:hidden;background:
 radial-gradient(circle at 85% 15%,rgba(255,107,0,.28),transparent 27%),
 radial-gradient(circle at 15% 90%,rgba(23,156,50,.18),transparent 25%),
 linear-gradient(135deg,#071a36,#173f77);color:#fff;padding:88px 0 78px}
.hero:after{content:"";position:absolute;left:-80px;bottom:-120px;width:260px;height:260px;border:55px solid rgba(23,156,50,.12);border-radius:50%}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:55px;align-items:center;position:relative;z-index:1}
.eyebrow,.tag{display:inline-block;color:var(--sj-orange);font-size:12px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}
.eyebrow{background:rgba(255,107,0,.13);border:1px solid rgba(255,107,0,.35);padding:7px 13px;border-radius:100px;margin-bottom:18px}
.hero h1{font-size:clamp(40px,5vw,68px);line-height:1.03;letter-spacing:-2px;margin-bottom:20px}
.hero h1 span{color:var(--sj-orange)}
.hero p{color:#dce6f5;font-size:18px;max-width:650px;margin-bottom:28px}
.buttons{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:49px;padding:0 20px;border-radius:12px;border:2px solid transparent;font-weight:900;cursor:pointer;transition:.25s}
.primary{background:var(--sj-orange);color:#fff;box-shadow:0 10px 25px rgba(255,107,0,.22)}
.primary:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(255,107,0,.28)}
.outline{border-color:rgba(255,255,255,.4);color:#fff}
.outline:hover{background:#fff;color:var(--sj-navy)}
.hero-note{display:flex;gap:22px;flex-wrap:wrap;margin-top:25px;font-size:13px;color:#dce6f5}
.hero-card{min-height:440px;border-radius:30px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);padding:20px;display:flex;align-items:center;box-shadow:0 25px 60px rgba(0,0,0,.16)}
.hero-image{width:100%;height:395px;border-radius:23px;background:
 linear-gradient(135deg,rgba(255,107,0,.78),rgba(16,42,86,.22)),#31598c;
 display:grid;place-items:center;text-align:center;padding:30px;color:#fff;font-weight:900;font-size:27px}
.hero-image small{display:block;font-size:13px;font-weight:500}
.trust{background:#fff;box-shadow:var(--sj-shadow);margin-top:-27px;position:relative;z-index:3;border-radius:20px;border-top:4px solid var(--sj-orange)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{padding:24px 18px;text-align:center;border-right:1px solid var(--sj-border)}
.trust-item:last-child{border:0}.trust-item strong{display:block;color:var(--sj-navy);font-size:15px}.trust-item span{font-size:12px;color:var(--sj-muted)}
section{padding:92px 0}
.section-head{text-align:center;max-width:720px;margin:0 auto 45px}
.section-head h2{color:var(--sj-navy);font-size:clamp(30px,4vw,44px);line-height:1.1;margin:8px 0 13px}
.section-head p{color:var(--sj-muted)}
.why,.subjects,.gallery,.form-section{background:linear-gradient(180deg,#f5faf7,#fff)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:21px}
.card{background:#fff;border:1px solid var(--sj-border);border-radius:var(--sj-radius);padding:28px;transition:.25s;box-shadow:0 7px 24px rgba(16,42,86,.04)}
.card:hover{transform:translateY(-6px);box-shadow:var(--sj-shadow);border-color:#d4ddea}
.icon{width:54px;height:54px;border-radius:16px;background:#fff1e8;display:grid;place-items:center;font-size:24px;margin-bottom:18px;border:1px solid #ffe1cf}
.card h3{color:var(--sj-navy);margin-bottom:7px}.card p{color:var(--sj-muted);font-size:14px}
.class-top{background:linear-gradient(135deg,var(--sj-navy),#1b4b8d);color:#fff;margin:-28px -28px 25px;padding:28px;border-radius:20px 20px 0 0;position:relative;overflow:hidden}
.class-top:after{content:"";position:absolute;width:100px;height:100px;right:-30px;top:-40px;border:25px solid rgba(23,156,50,.3);border-radius:50%}
.class-top span{color:#ffb16f;font-size:12px;font-weight:800;text-transform:uppercase}.class-top h3{font-size:25px;margin-top:5px}
.subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}
.subject{padding:25px 15px;text-align:center;background:#fff;border:1px solid var(--sj-border);border-radius:17px;font-weight:800;color:var(--sj-navy);transition:.2s}
.subject:hover{transform:translateY(-4px);border-color:#b9d6c0;box-shadow:0 12px 28px rgba(23,156,50,.08)}
.subject div{font-size:30px;margin-bottom:7px}
.search{display:block;width:min(500px,100%);margin:0 auto 28px;border:2px solid var(--sj-border);padding:15px 18px;border-radius:12px;outline:0;background:#fff;transition:.2s}
.search:focus{border-color:var(--sj-orange);box-shadow:0 0 0 4px rgba(255,107,0,.08)}
.centre-card{border:1px solid var(--sj-border);border-radius:var(--sj-radius);padding:25px;background:#fff;box-shadow:0 7px 25px rgba(16,42,86,.05);transition:.25s;position:relative;overflow:hidden}
.centre-card:before{content:"";position:absolute;left:0;top:0;width:5px;height:100%;background:linear-gradient(var(--sj-orange),var(--sj-green))}
.centre-card:hover{transform:translateY(-6px);box-shadow:var(--sj-shadow)}
.pin{width:49px;height:49px;display:grid;place-items:center;margin-bottom:15px;color:var(--sj-orange);background:#fff4ec;border-radius:14px}
.pin svg{width:29px;height:29px;display:block;stroke:var(--sj-orange);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.centre-card h3{color:var(--sj-navy);margin-bottom:7px}.centre-card p{color:var(--sj-muted);font-size:14px;margin-bottom:12px}
.actions{display:flex;gap:8px;flex-wrap:wrap}.small{padding:10px 13px;border-radius:10px;background:#eef7f1;color:var(--sj-navy);font-size:12px;font-weight:900;transition:.2s}
.small:hover{background:var(--sj-navy);color:#fff;transform:translateY(-1px)}
.centre-card .actions .small:first-child{background:var(--sj-orange);color:#fff}.centre-card .actions .small:first-child:hover{background:var(--sj-green)}
.cta{background:radial-gradient(circle at 15% 20%,rgba(255,107,0,.22),transparent 25%),radial-gradient(circle at 85% 80%,rgba(23,156,50,.22),transparent 25%),var(--sj-navy);color:#fff}
.cta-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:center}.cta h2{font-size:clamp(32px,4vw,48px);line-height:1.08;margin:8px 0 15px}.cta p{color:#dce6f5}.cta .buttons{justify-content:flex-end}
.testimonial{border:1px solid var(--sj-border);padding:28px;border-radius:var(--sj-radius);background:#fff;box-shadow:0 7px 24px rgba(16,42,86,.04)}
.stars{color:#f2a900;letter-spacing:2px;margin-bottom:15px}.testimonial p{color:var(--sj-muted);font-size:14px;margin-bottom:18px}.testimonial strong{color:var(--sj-navy)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.gallery-item{height:210px;border-radius:18px;background:linear-gradient(135deg,#dce6f5,#fff1e8);display:grid;place-items:center;text-align:center;color:var(--sj-navy);font-weight:800;padding:20px;border:1px solid var(--sj-border);transition:.2s}
.gallery-item:hover{transform:scale(1.015);box-shadow:var(--sj-shadow)}.gallery-item.tall{height:260px}
.faq{max-width:850px;margin:auto}details{border:1px solid var(--sj-border);border-radius:14px;margin-bottom:12px;padding:18px 20px;background:#fff;box-shadow:0 4px 16px rgba(16,42,86,.03)}
summary{cursor:pointer;font-weight:800;color:var(--sj-navy)}details p{color:var(--sj-muted);margin-top:12px;font-size:14px}
.form-wrap{max-width:800px;margin:auto;background:#fff;padding:35px;border-radius:25px;box-shadow:var(--sj-shadow);border:1px solid var(--sj-border)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.field{display:flex;flex-direction:column;gap:7px}.full{grid-column:1/-1}
label{font-size:13px;font-weight:800;color:var(--sj-navy)}
input,select,textarea{width:100%;border:1px solid var(--sj-border);border-radius:10px;padding:13px 14px;outline:0;background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--sj-orange);box-shadow:0 0 0 4px rgba(255,107,0,.08)}
textarea{min-height:110px;resize:vertical}.success{display:none;margin-top:15px;padding:13px;border-radius:10px;background:#e8f7ee;color:#168a45;font-size:14px;font-weight:700}
footer{background:var(--sj-deep);color:#fff;padding:58px 0 92px;border-top:5px solid var(--sj-orange)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}footer h3{margin-bottom:14px}footer p,footer a{color:#b9c6da;font-size:14px}
.footer-contact-link{display:flex;align-items:center;gap:9px!important;margin-bottom:10px!important}.footer-icon{width:29px;height:29px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#fff!important;font-size:15px;font-weight:900;flex:0 0 29px}
.phone-icon{background:var(--sj-navy)}.whatsapp-icon{background:#25d366}.mail-icon{background:#ea4335}
.footer-contact-link:hover .footer-icon{transform:scale(1.05)}footer a{display:block;margin-bottom:8px}footer a:hover{color:var(--sj-orange)}
.copyright{border-top:1px solid rgba(255,255,255,.1);margin-top:35px;padding-top:20px;color:#8fa0ba;font-size:12px}
.mobile-bar{display:none}
@media(max-width:900px){
 .header-contact{display:none}.nav-links{position:absolute;top:78px;left:0;right:0;background:#fff;display:none;flex-direction:column;align-items:stretch;padding:20px;box-shadow:var(--sj-shadow)}
 .nav-links.active{display:flex}.menu-btn{display:block}.hero-grid,.cta-grid{grid-template-columns:1fr}.cta .buttons{justify-content:flex-start}
 .grid3{grid-template-columns:repeat(2,1fr)}.subject-grid{grid-template-columns:repeat(3,1fr)}.gallery-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
 body{padding-bottom:64px}.brand-logo{width:46px;height:46px}.brand-title{font-size:13px}.brand-subtitle{font-size:7px;letter-spacing:.8px}
 section{padding:65px 0}.hero{padding:60px 0}.hero h1{letter-spacing:-1px}.hero p{font-size:16px}.hero-card{min-height:320px}.hero-image{height:280px}
 .trust-grid{grid-template-columns:repeat(2,1fr)}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--sj-border)}
 .grid3,.footer-grid{grid-template-columns:1fr}.subject-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid{grid-template-columns:1fr 1fr}
 .gallery-item,.gallery-item.tall{height:170px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.form-wrap{padding:22px}
 .mobile-bar{position:fixed;display:grid;grid-template-columns:repeat(3,1fr);bottom:0;left:0;right:0;height:64px;background:#fff;box-shadow:0 -5px 25px rgba(0,0,0,.12);z-index:2000}
 .mobile-bar a{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:11px;font-weight:800;color:var(--sj-navy);border-right:1px solid var(--sj-border)}
 .mobile-bar a:last-child{border:0;background:var(--sj-orange);color:#fff}.mobile-bar span{font-size:19px}
}

/* SJ Tutorials branded location borders */
.centre-card{
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--sj-navy) 0%,var(--sj-green) 55%,var(--sj-orange) 100%) border-box;
}
.centre-card:before{
  width:6px;
  background:linear-gradient(180deg,var(--sj-orange),var(--sj-green),var(--sj-navy));
}
.centre-card:hover{
  border-color:transparent;
  box-shadow:0 16px 38px rgba(16,42,86,.14),0 0 0 3px rgba(23,156,50,.08);
}
.centre-card h3{
  position:relative;
}
.centre-card h3:after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:7px;
  border-radius:10px;
  background:linear-gradient(90deg,var(--sj-orange),var(--sj-green));
}

/* Primary Classes 1–5 highlighted in a distinct branded colour */
#classes .grid3 .card:first-child,
#classes .grid3 .card:nth-child(2),
#classes .grid3 .card:nth-child(3){
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--class-c1),var(--class-c2),var(--class-c3)) border-box;
  box-shadow:0 12px 32px var(--class-shadow);
}
#classes .grid3 .card:first-child{--class-c1:#179c32;--class-c2:#4dbd62;--class-c3:#ff6b00;--class-shadow:rgba(23,156,50,.13)}
#classes .grid3 .card:nth-child(2){--class-c1:#102a56;--class-c2:#416fa8;--class-c3:#179c32;--class-shadow:rgba(16,42,86,.13)}
#classes .grid3 .card:nth-child(3){--class-c1:#ff6b00;--class-c2:#ff9a4d;--class-c3:#102a56;--class-shadow:rgba(255,107,0,.13)}
#classes .grid3 .card .class-top{
  background:linear-gradient(135deg,var(--class-c1),var(--class-c2) 58%,var(--class-c3));
  box-shadow:inset 0 -4px 0 rgba(255,255,255,.12);
}
#classes .grid3 .card .class-top span{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);
  letter-spacing:1px;
}
#classes .grid3 .card .class-top h3{
  color:#fff;
  font-size:28px;
}
#classes .grid3 .card > p{color:#40524a;}
#classes .grid3 .card:nth-child(2) > p{color:#38475b;}
#classes .grid3 .card:nth-child(3) > p{color:#59483d;}
#classes .grid3 .card a{color:var(--class-c1)!important;}
#classes .grid3 .card a:hover{color:var(--class-c3)!important;}


/* SJ Tutorials branded borders for WHY SJ TUTORIALS cards */
.why .grid3 .card{
  position:relative;
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--why-c1),var(--why-c2),var(--why-c3)) border-box;
  box-shadow:0 10px 28px var(--why-shadow);
  overflow:hidden;
}
.why .grid3 .card:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:5px;
  background:linear-gradient(180deg,var(--why-c1),var(--why-c2),var(--why-c3));
}
.why .grid3 .card:nth-child(1){--why-c1:#102a56;--why-c2:#179c32;--why-c3:#ff6b00;--why-shadow:rgba(16,42,86,.12)}
.why .grid3 .card:nth-child(2){--why-c1:#179c32;--why-c2:#4dbd62;--why-c3:#102a56;--why-shadow:rgba(23,156,50,.12)}
.why .grid3 .card:nth-child(3){--why-c1:#ff6b00;--why-c2:#ff9a4d;--why-c3:#179c32;--why-shadow:rgba(255,107,0,.12)}
.why .grid3 .card:nth-child(4){--why-c1:#179c32;--why-c2:#102a56;--why-c3:#ff6b00;--why-shadow:rgba(23,156,50,.12)}
.why .grid3 .card:nth-child(5){--why-c1:#102a56;--why-c2:#ff6b00;--why-c3:#179c32;--why-shadow:rgba(16,42,86,.12)}
.why .grid3 .card:nth-child(6){--why-c1:#ff6b00;--why-c2:#179c32;--why-c3:#102a56;--why-shadow:rgba(255,107,0,.12)}
.why .grid3 .card:hover{
  transform:translateY(-7px);
  box-shadow:0 18px 40px var(--why-shadow),0 0 0 3px rgba(23,156,50,.07);
}
.why .grid3 .card .icon{
  border:0;
  background:linear-gradient(135deg,var(--why-c1),var(--why-c2));
  color:#fff;
  box-shadow:0 8px 18px var(--why-shadow);
}
.why .grid3 .card h3{color:var(--sj-navy)}

/* SJ Tutorials branded subject boxes */
.subject-grid .subject{
  position:relative;
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--sub-c1),var(--sub-c2),var(--sub-c3)) border-box;
  box-shadow:0 9px 24px var(--sub-shadow);
  overflow:hidden;
}
.subject-grid .subject:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background:linear-gradient(90deg,var(--sub-c1),var(--sub-c2),var(--sub-c3));
}
.subject-grid .subject:nth-child(1){--sub-c1:#102a56;--sub-c2:#416fa8;--sub-c3:#179c32;--sub-shadow:rgba(16,42,86,.12)}
.subject-grid .subject:nth-child(2){--sub-c1:#179c32;--sub-c2:#4dbd62;--sub-c3:#ff6b00;--sub-shadow:rgba(23,156,50,.12)}
.subject-grid .subject:nth-child(3){--sub-c1:#ff6b00;--sub-c2:#ff9a4d;--sub-c3:#102a56;--sub-shadow:rgba(255,107,0,.12)}
.subject-grid .subject:nth-child(4){--sub-c1:#102a56;--sub-c2:#179c32;--sub-c3:#ff6b00;--sub-shadow:rgba(16,42,86,.12)}
.subject-grid .subject:nth-child(5){--sub-c1:#ff6b00;--sub-c2:#179c32;--sub-c3:#102a56;--sub-shadow:rgba(255,107,0,.12)}
.subject-grid .subject:hover{
  transform:translateY(-6px) scale(1.015);
  border-color:transparent;
  box-shadow:0 16px 34px var(--sub-shadow),0 0 0 3px rgba(255,107,0,.06);
}
.subject-grid .subject div{
  width:58px;height:58px;
  margin:0 auto 10px;
  display:grid;place-items:center;
  border-radius:17px;
  background:linear-gradient(135deg,var(--sub-c1),var(--sub-c2));
  box-shadow:0 8px 18px var(--sub-shadow);
  font-size:29px;
}
.subject-grid .subject{
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}


/* Responsive SJ Tutorials hero artwork */
.hero-card{
  min-height:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.hero-card .hero-image{
  width:100%;
  height:395px;
  padding:0;
  display:block;
  background:transparent!important;
  border-radius:23px;
  overflow:hidden;
}
.hero-card .hero-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center bottom;
}
@media(max-width:600px){
  .hero-card{min-height:0;padding:0}
  .hero-card .hero-image{height:280px}
}

/* Hero image layout: large on desktop and clear on Android/mobile */
.hero{
  background:#064078;
  padding:26px 0 30px;
}
.hero-grid{
  grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr);
  gap:18px;
  min-height:520px;
  align-items:stretch;
}
.hero-grid > div:first-child{
  align-self:center;
  position:relative;
  z-index:2;
}
.hero-card{
  min-height:520px;
  height:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
.hero-image{
  width:100%;
  height:100%;
  min-height:520px;
  padding:0;
  border-radius:0;
  background:transparent !important;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible !important;
}
.hero-image img{
  display:block;
  width:100%;
  height:auto;
  max-height:540px;
  object-fit:contain;
  object-position:center bottom;
  border:0;
  border-radius:0;
}
@media(max-width:900px){
  .hero{padding:38px 0 34px}
  .hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    min-height:0;
  }
  .hero-card{
    min-height:0;
    height:auto;
    width:100%;
    justify-content:center;
  }
  .hero-image{
    min-height:0;
    height:auto;
    width:100%;
    justify-content:center;
    overflow:hidden !important;
  }
  .hero-image img{
    width:min(100%,620px);
    max-height:none;
    height:auto;
    object-fit:contain;
    object-position:center bottom;
  }
}
@media(max-width:600px){
  .hero{padding:30px 0 28px}
  .hero-grid{gap:18px}
  .hero-card{padding:0}
  .hero-image{padding:0}
  .hero-image img{width:100%;max-width:100%;height:auto}
}


/* Reference-matched SJ Tutorials hero layout */
.hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(110deg,#002957 0%,#003b73 100%);
  padding:26px 0 0;
  min-height:552px;
}
.hero-grid{
  width:calc(100% - 88px);
  max-width:none;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:0;
  min-height:552px;
  align-items:stretch;
}
.hero-grid > div:first-child{
  width:min(100%,560px);
  align-self:center;
  position:relative;
  z-index:2;
  padding:0 0 26px;
}
.hero h1{
  font-size:clamp(42px,4.25vw,64px);
  line-height:.91;
  letter-spacing:-1.8px;
  margin:8px 0 12px;
}
.hero p{
  max-width:550px;
  font-size:18px;
  line-height:1.4;
  margin-bottom:16px;
}
.hero .eyebrow{margin-bottom:0}
.hero .buttons{display:flex;flex-wrap:wrap;gap:12px}
.hero .btn{min-height:50px;padding:0 18px;white-space:nowrap}
.hero .primary{border-color:#ffb24d}
.hero .outline{border-color:rgba(255,255,255,.48)}
.hero .hero-whatsapp{
  color:#fff;
  background:#179c52;
  border-color:#31c979;
}
.hero .hero-whatsapp:hover{background:#128344;color:#fff}
.hero-note{gap:18px;margin-top:22px;font-size:14px}
.hero-card{
  min-height:552px;
  height:100%;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
.hero-card .hero-image{
  width:100%;
  height:auto;
  min-height:0;
  padding:0;
  margin:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:transparent!important;
  border-radius:0;
  overflow:visible!important;
}
.hero-card .hero-image img{
  display:block;
  width:100%;
  max-width:none;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center bottom;
  border:0;
  border-radius:0;
}
@media(max-width:900px){
  .hero{
    min-height:0;
    padding:34px 0 28px;
  }
  .hero-grid{
    width:min(92%,720px);
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    min-height:0;
  }
  .hero-grid > div:first-child{
    width:100%;
    padding:0;
  }
  .hero-card{
    min-height:0;
    height:auto;
    width:100%;
    overflow:hidden;
  }
  .hero-card .hero-image{
    width:100%;
    height:auto;
    min-height:0;
    overflow:hidden!important;
  }
  .hero-card .hero-image img{
    width:min(100%,620px);
    max-width:100%;
    height:auto;
    margin:0 auto;
  }
}
@media(max-width:600px){
  .hero{padding:28px 0 24px}
  .hero-grid{width:92%;gap:18px}
  .hero h1{
    font-size:clamp(37px,10vw,48px);
    line-height:.98;
    letter-spacing:-1px;
  }
  .hero p{font-size:16px;line-height:1.45}
  .hero .buttons{gap:9px}
  .hero .btn{
    min-height:46px;
    padding:0 12px;
    font-size:13px;
    flex:1 1 auto;
  }
  .hero-note{gap:8px 14px;margin-top:16px;font-size:12px}
  .hero-card .hero-image img{width:100%;max-width:100%}
}



/* Desktop sizing tuned to the supplied 1536px reference screenshot */
@media (min-width: 901px) {
  header .navbar {
    width: 94%;
    max-width: 1500px;
    min-height: 82px;
    margin: 0 auto;
    gap: clamp(14px, 1.5vw, 24px);
  }
  header .logo { gap: 12px; flex: 0 0 auto; }
  header .brand-logo { width: 68px; height: 68px; flex: 0 0 68px; }
  header .brand-title { font-size: clamp(22px, 2.05vw, 32px); letter-spacing: 1px; }
  header .brand-subtitle { font-size: clamp(9px, .9vw, 14px); letter-spacing: 1.5px; margin-top: 5px; }
  header .nav-links {
    flex: 1 1 auto;
    justify-content: space-evenly;
    gap: clamp(10px, 1.7vw, 28px);
    font-size: clamp(14px, 1.2vw, 18px);
    white-space: nowrap;
  }
  header .nav-links a { padding: 12px 5px; }
  header .nav-links a:first-child { position: relative; }
  header .nav-links a:first-child:after {
    content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px;
    height: 3px; background: var(--sj-orange); border-radius: 3px;
  }
  header .header-actions { gap: clamp(12px, 1.8vw, 28px); flex: 0 0 auto; }
  header .nav-cta { min-height: 50px; padding: 0 22px; border-radius: 13px; font-size: 16px; white-space: nowrap; }
  header .header-contact { gap: 14px; }
  header .header-contact a { width: 54px; height: 50px; border-radius: 13px; box-shadow: none; }
  header .header-contact svg { width: 24px; height: 24px; }

  .hero {
    height: 552px;
    min-height: 552px;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(110deg, #002957 0%, #003b73 100%);
  }
  .hero-grid {
    width: calc(100% - 88px);
    max-width: 1500px;
    height: 552px;
    min-height: 552px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 0;
    align-items: stretch;
  }
  .hero-grid > div:first-child {
    width: min(100%, 560px);
    align-self: center;
    padding: 0 0 26px;
  }
  .hero h1 { font-size: clamp(42px, 4.25vw, 64px); line-height: .91; letter-spacing: -1.8px; margin: 8px 0 12px; }
  .hero p { max-width: 550px; font-size: 18px; line-height: 1.4; margin-bottom: 16px; }
  .hero-card {
    width: 100%; height: 100%; min-height: 552px; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    display: flex; align-items: flex-end; justify-content: center; overflow: visible;
  }
  .hero-card .hero-image {
    width: 100%; height: auto; min-height: 0; margin: 0; padding: 0;
    display: flex; align-items: flex-end; justify-content: center;
    background: transparent !important; border-radius: 0; overflow: visible !important;
  }
  .hero-card .hero-image img {
    display: block; width: 100%; max-width: none; height: auto; max-height: none;
    object-fit: contain; object-position: center bottom; margin: 0;
    border: 0; border-radius: 0;
  }
  .trust.container { width: calc(100% - 50px); max-width: 1500px; margin: -23px auto 0; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-item { padding: 16px 18px; min-height: 88px; display: flex; flex-direction: column; justify-content: center; }
}


/* Android/mobile: center the students image in the available hero area */
@media screen and (max-width: 600px) {
  .hero-card {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow: visible !important;
  }
  .hero-card .hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    overflow: visible !important;
  }
  .hero-card .hero-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
  }
}


/* WordPress conversion / editable design controls */
:root{
 --sj-custom-navy: #102a56;
 --sj-custom-deep: #071a36;
 --sj-custom-orange: #ff6b00;
 --sj-custom-green: #179c32;
}
body{overflow-x:hidden}
.custom-logo{max-height:68px;width:auto}
.wp-block-image img{height:auto}
.gallery-item img{width:100%;height:100%;object-fit:cover;border-radius:18px;display:block}
.gallery-item.has-image{padding:0;overflow:hidden}
.edit-note{font-size:12px;color:#667085}
