  :root{
    --green:#89b847;
    --green-dark:#79a53d;
    --yellow:#F1E2A5;
    --yellow-dark:#f3dc7f;
    --text:#333333;
    --grey-bg:#efefef;
    --border:#e2e2e0;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    font-family:'Roboto',Arial,sans-serif;
    color:var(--text);
    line-height:1.6;
    background:#fff;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Poppins',Arial,sans-serif;
    font-weight:600;
    margin:0;
    color:#3a3a3a;
  }
  a{text-decoration:none;color:inherit;}
  a:hover, a:focus{color: #fff;}
  img{max-width:100%;display:block;}
  ul{margin:0;padding:0;list-style:none;}
  .container{max-width:1140px;margin:0 auto;padding:0 20px;}
  .logoSize{
	  width:391px;
  }
  .btn{
    display:inline-block;
    background:var(--green);
    color:#fff;
    padding:12px 26px;
    font-size:1rem;
    font-weight:500;
    border-radius:3px;
    border:none;
    cursor:pointer;
    transition:background .2s ease;
    font-family:'Roboto',sans-serif;
  }
  .btn:hover{background:var(--green-dark);}
  .btn-yellow{
    background:var(--yellow);
    color:#3a3a3a;
    font-weight:500;
  }
  .btn-yellow:hover{background:var(--yellow-dark);color:#3a3a3a;}

  /* ===== Top bar ===== */
  .topbar{
    background:var(--green);
    padding:14px 0;
  }
  .topbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
  }
  .logo{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
  }
  .logo svg{flex-shrink:0;}
  .logo-text{
    font-family:'Poppins',sans-serif;
    line-height:1.15;
  }
  .logo-text .name{
    font-size:22px;
    font-weight:700;
    color:#fff;
    letter-spacing:.2px;
  }
  .logo-text .name span{font-weight:400;font-size:13px;vertical-align:super;}
  .logo-text .rule{
    display:block;
    width:100%;
    height:2px;
    background:rgba(255,255,255,.6);
    margin-top:4px;
  }
  .top-actions{display:flex;gap:10px;flex-wrap:wrap;}
  .top-actions .btn-yellow{
    display:inline-flex;
    align-items: flex-start;
    gap: 0;
    font-size: 13px;
    padding: 12px 15px 8px;
  }

  /* ===== Nav ===== */
  .navwrap{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:relative;
    z-index:50;
  }
  nav.mainnav{
    display:flex;
    justify-content:flex-end;
  }
  nav.mainnav > ul{
    display:flex;
    align-items:center;
  }
  nav.mainnav > ul > li{
    position:relative;
  }
  nav.mainnav > ul > li > a{
    display:flex;
    align-items:center;
    padding:18px 16px;
    font-size:14px;
    font-weight:500;
    color:#3a3a3a;
  }
  nav.mainnav > ul > li:last-child > a{color:var(--green);}
  nav.mainnav > ul > li > a:hover{color:var(--green);}

  /* Caret is drawn with CSS (the menu markup doesn't output one) so it
     automatically appears on every item that has children, at any depth. */
  .has-dropdown > a::after{
    content:"";
    width:6px;
    height:6px;
    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:rotate(45deg);
    display:inline-block;
    margin-left:7px;
    flex-shrink:0;
    transition:transform .2s ease;
  }
  .ContentArea{
	  width:100%;
	  float:left;
	  min-height: 500px;
  }	
  /* Dropdown panel - same rule works for every nesting level */
  .dropdown{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:210px;
    box-shadow:0 8px 18px rgba(0,0,0,.12);
    border-top:2px solid var(--green);
    padding:8px 0;
    z-index:100;
  }
  .dropdown li{position:relative;}
  .dropdown li a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:9px 18px;
    font-size:13.5px;
    color:#555;
  }
  .dropdown li a:hover{background:var(--grey-bg);color:var(--green);}

  /* 2nd level and deeper fly out to the side on desktop instead of stacking below */
  .dropdown .dropdown{
    top:-9px;
    left:100%;
    border-top:none;
    border-left:2px solid var(--green);
  }
  
  .sirIMG{
	width: 100%;
	float: left;
	margin: 5px 0;
	background: #fff;
	padding: 12px;
	border-radius: 5px;
  }

  /* Desktop only: reveal one level at a time on hover, at any depth.
     Scoped to widths above the mobile breakpoint so a "sticky" touch-hover
     state on phones/tablets can never keep a dropdown stuck open after the
     accordion JS has closed it. */
  @media (min-width:821px){
    nav.mainnav > ul > li:hover > .dropdown{display:block;}
    .dropdown li:hover > .dropdown{display:block;}
  }

  .hamburger{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
    position:relative;
    z-index:1;
	margin: 8px 0;
  }
  .hamburger span{
    width:26px;height:3px;background:#3a3a3a;border-radius:2px;
    transition:transform .25s ease, opacity .2s ease;
    transform-origin:center;
  }
  .hamburger.active span:nth-child(1){transform:translateY(8px) rotate(45deg);}
  .hamburger.active span:nth-child(2){opacity:0;}
  .hamburger.active span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

  /* Hidden by default everywhere; only shown (and styled) inside the mobile
     media query below. Also strip native button chrome so no browser/OS
     default button appearance (e.g. a solid blue box) can ever show through. */
  nav.mainnav .nav-close{
    display:none;
    -webkit-appearance:none;
    appearance:none;
    background:none;
    border:none;
    margin:0;
  }

  .nav-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(20,20,20,.45);
    opacity:0;
    transition:opacity .3s ease;
    z-index:150;
  }
  .nav-overlay.open{opacity:1;}

  /* ===== Hero ===== */
  .hero{
    display:flex;
    width:100%;
    min-height:420px;
    position:relative;
  }
  .hero-half{
    flex:1 1 50%;
    position:relative;
    min-height:420px;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding:20px;
  }
  .hero-half.left{
    justify-content:flex-start;
    padding-left:max(20px, calc((100vw - 1140px) / 2 + 20px));
  }
  .hero-half.right{
    justify-content:flex-end;
    padding-right:max(20px, calc((100vw - 1140px) / 2 + 20px));
  }
  .hero-half.left{background-image:linear-gradient(rgba(40,40,40,.15),rgba(40,40,40,.15)),url('https://www.surreysupplyteachers.co.uk/admin/banner/bnr13.jpg');}
  .hero-half.right{background-image:linear-gradient(rgba(20,20,20,.1),rgba(20,20,20,.1)),url('https://www.surreysupplyteachers.co.uk/admin/banner/bnr5.jpg');}
  .hero-box{
    background:rgba(137,184,71,.92);
    color:#fff;
    padding:30px 34px;
    max-width:340px;
    width:100%;
    text-align:center;
    border-radius:2px;
  }
  .hero-box h3{color:#fff;font-size:21px;margin-bottom:12px;}
  .hero-box p{font-size:13.5px;margin-bottom:18px;color:rgba(255,255,255,.92);}

  /* ===== Welcome ===== */
  .welcome{
    background:var(--grey-bg);
    padding:60px 0;
  }
  .welcome h2{
    text-align:center;
    font-size:30px;
    margin-bottom:36px;
    font-weight:600;
  }
  .welcome-grid{
    display:flex;
    gap:40px;
    align-items:center;
  }
  .welcome-grid img{
    border-radius:2px;
  }
  .welcome-grid .col-img{flex:0 0 42%;}
  .welcome-grid .col-text{flex:1;}
  .welcome-grid .col-text p{font-size:1rem;color:#555;margin:0 0 14px;}
  .welcome-grid .col-text .btn{margin-top:6px;}

  /* ===== Section heading row ===== */
  .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
    flex-wrap:wrap;
    gap:14px;
  }
  .section-head h2{font-size:28px;font-weight:600;}
  .section-rule{
    border:none;border-top:1px solid var(--border);
    margin:0 0 30px;
  }

  /* ===== Vacancies ===== */
  .vacancies{padding:60px 0;background:#fff;}
  .card-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
  }
  .vac-card{
    background:var(--grey-bg);
    padding:26px 24px 24px;
  }
  .vac-card h4{
    font-size:16px;
    line-height:1.4;
    margin-bottom:14px;
    min-height:44px;
    font-weight:600;
  }
  .vac-card hr{border:none;border-top:1px solid #e0e0dd;margin:0 0 14px;}
  .vac-card p.desc{font-size:13.5px;color:#666;margin:0 0 14px;}
  .vac-card p.type{font-size:13.5px;font-weight:500;margin:0 0 18px;color:#444;}
  .vac-card .btn{font-size:13px;padding:10px 20px;}

  /* ===== News ===== */
  .news{padding:60px 0;background:var(--grey-bg);}
  .news-card{
    background:#fff;
    overflow:hidden;
  }
  .news-card .thumb{
    height:170px;
    background-size:cover;
    background-position:center;
  }
  .news-card .body{padding:22px 22px 24px;}
  .news-card h4{font-size:16px;line-height:1.4;margin-bottom:14px;min-height:44px;font-weight:600;}
  .news-card hr{border:none;border-top:1px solid #ececec;margin:0 0 14px;}
  .news-card p.desc{font-size:13.5px;color:#666;margin:0 0 18px;}
  .news-card .btn{font-size:13px;padding:10px 20px;}

  /* ===== Testimonial ===== */
  .testimonial{
    background:var(--green);
    color:#fff;
    padding:60px 0;
    position:relative;
  }
  .testimonial .section-head h2{color:#fff;}
  .testi-viewport{
    position:relative;
    padding:0 8px;
  }
  .testi-track{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    gap:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .testi-track::-webkit-scrollbar{display:none;}
  .testi-slide{
    flex:0 0 100%;
    scroll-snap-align:start;
    display:flex;
    align-items:center;
    gap:40px;
    padding:4px 6px;
  }
  .quote-mark{
    font-family:Georgia,serif;
    font-size:150px;
    line-height:.6;
    color:#fff;
    flex:0 0 auto;
    opacity:.95;
  }
  .testi-slide blockquote{
    margin:0;
    border-left:2px solid rgba(255,255,255,.6);
    padding-left:28px;
    font-size:17px;
    font-style:normal;
    line-height:1.7;
    max-width:600px;
    color:#fff;
  }
  .testi-slide .author{
    display:block;
    margin-top:16px;
    font-family:'Poppins',sans-serif;
    font-weight:600;
    font-size:14px;
    color:#fff;
  }
  .testi-slide .role{
    display:block;
    font-family:'Roboto',sans-serif;
    font-weight:400;
    font-size:13px;
    color:rgba(255,255,255,.85);
    margin-top:2px;
  }
  .testi-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    border:1px solid rgba(255,255,255,.5);
    color:#fff;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s ease;
    z-index:5;
  }
  .testi-arrow:hover{background:rgba(255,255,255,.35);}
  .testi-arrow.prev{left:-6px;}
  .testi-arrow.next{right:-6px;}
  .testi-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:26px;
  }
  .testi-dots button{
    width:9px;height:9px;
    border-radius:50%;
    background:rgba(255,255,255,.45);
    border:none;
    padding:0;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
  }
  .testi-dots button.active{background:#fff;transform:scale(1.2);}

  /* ===== Inner pages (About Us, Teachers, Schools, etc.) ===== */
  .page-header{
    background:linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding:38px 0 34px;
  }
  .page-header .breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:rgba(255,255,255,.85);
    margin-bottom:10px;
  }
  .page-header .breadcrumb a{color:#fff;}
  .page-header .breadcrumb a:hover{text-decoration:underline;}
  .page-header .breadcrumb .sep{opacity:.7;}
  .page-header .breadcrumb .current{color:#fff;font-weight:500;}
  .page-header .page-title{
    color:#fff;
    font-size:32px;
    font-weight:700;
    margin:0;
  }

  .page-banner{
    padding:36px 0 0;
    background:#fff;
  }
  .page-banner img{
    width:100%;
    border-radius:8px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
  }

  .page-content{
    padding:40px 0 70px;
    background:#fff;
  }
  .page-body{
    max-width:1140px;
    font-size:15.5px;
    color:#555;
    line-height:1.85;
  }
  .page-body h1,.page-body h2,.page-body h3,.page-body h4{
    color:#3a3a3a;
    margin:32px 0 16px;
    font-weight:600;
  }
  .page-body h1:first-child,.page-body h2:first-child,.page-body h3:first-child{margin-top:0;}
  .page-body p{margin:0 0 18px;}
  .page-body ul,.page-body ol{margin:0 0 18px 22px;padding:0;}
  .page-body ul{list-style:disc;}
  .page-body ol{list-style:decimal;}
  .page-body li{margin-bottom:8px;}
  .page-body a{color:var(--green);/* text-decoration:underline; */}
  .page-body a:hover{color:var(--green-dark);}
  .page-body img{max-width:100%;height:auto;border-radius:6px;margin:20px 0;}
  .page-body blockquote{
    border-left:3px solid var(--green);
    padding:10px 20px;
    margin:24px 0;
    color:#555;
    font-style:italic;
    background:var(--grey-bg);
  }
  .page-body table{width:100%;border-collapse:collapse;margin:20px 0;}
  .page-body table th,.page-body table td{border:1px solid var(--border);padding:10px 14px;text-align:left;font-size:14px;}
  .page-body table th{background:var(--grey-bg);font-weight:600;}

  .not-found{
    padding:80px 0;
    text-align:center;
    font-size:20px;
    color:#777;
  }

  @media (max-width:600px){
    .page-header{padding:28px 0 24px;}
    .page-header .page-title{font-size:23px;}
    .page-banner{padding:24px 0 0;}
    .page-content{padding:30px 0 50px;}
  }

  /* ===== Footer ===== */
  footer{background:var(--grey-bg);padding:50px 0 0;width:100%;float:left;}
  .footer-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    padding-bottom:36px;
  }
  .footer-grid h4{font-size:15px;margin-bottom:16px;font-weight:600;}
  .footer-grid li{margin-bottom:9px;}
  .footer-grid a{font-size:13px;color:#666;}
  .footer-grid a:hover{color:var(--green);text-decoration:underline;}
  .footer-grid .contact-block p{font-size:13px;color:#666;margin:0 0 10px;}
  .footer-bottom{
    border-top:1px solid var(--border);
    padding:18px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
  }
  .copyright{font-size:12.5px;color:#777;}
  .social{display:flex;gap:8px;}
  .social a{
    width:30px;height:30px;
    background:#e88b4a;
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    border-radius:2px;
    font-size:14px;
  }
  .footer-bottom .privacy{font-size:12.5px;color:#666;}

  .back-to-top{
    position:fixed;
    right:22px;bottom:22px;
    width:42px;height:42px;
    background:#e88b4a;
    color:#fff;
    border-radius:3px;
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
    z-index:60;
    border:none;
    cursor:pointer;
  }
  
  button:hover, button:focus, .button:hover, .button:focus {
    background-color: #cf6e0e;
}

  /* ===== Responsive ===== */
  @media (max-width:900px){
    .card-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:repeat(2,1fr);}
    .welcome-grid{flex-direction:column;}
    .welcome-grid .col-img{flex:0 0 auto;width:100%;}
    .testi-slide{flex-direction:column;align-items:flex-start;gap:10px;}
    .quote-mark{font-size:100px;}
    .testi-arrow{display:none;}
  }
  @media (max-width:820px){
    .hamburger{display:flex;}
    .nav-overlay{display:block;pointer-events:none;}
    .nav-overlay.open{pointer-events:auto;}

    nav.mainnav{
      display:block;
      position:fixed;
      top:0;
      right:-320px;
      width:300px;
      max-width:86%;
      height:100vh;
      background:#fff;
      box-shadow:-10px 0 30px rgba(0,0,0,.18);
      transition:right .3s ease;
      overflow-y:auto;
      -webkit-overflow-scrolling:touch;
      z-index:200;
      padding-top:60px;
    }
    nav.mainnav.open{right:0;}
    nav.mainnav .nav-close{
      display:flex;
      align-items:center;
      justify-content:center;
      position:absolute;
      top:12px;
      right:14px;
      width:34px;
      height:34px;
      /* background:var(--grey-bg); */
      border-radius:50%;
      font-size:36px;
      line-height:1;
      color:#3a3a3a;
      cursor:pointer;
      border:none;
      z-index:1;
    }
    nav.mainnav > ul{
      flex-direction:column;
      align-items:stretch;
      width:100%;
    }

    /* Every level becomes a full-width, stacked block - no flyout/absolute on mobile */
    nav.mainnav ul{width:100%;}
    nav.mainnav .dropdown{
      position:static;
      box-shadow:none;
      border:none;
      background:var(--grey-bg);
      padding:0;
      display:none;
      min-width:0;
    }
    nav.mainnav .dropdown .dropdown{background:#ececE8;}

    nav.mainnav > ul > li{border-bottom:1px solid var(--border);}
    nav.mainnav li a{
      padding:15px 24px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      font-size:15px;
    }
    /* Indent one step further per nesting level so sub-items are visually clear */
    nav.mainnav .dropdown li{border-bottom:1px solid var(--border);}
    nav.mainnav .dropdown li a{padding:12px 24px 12px 38px;font-size:13.5px;}
    nav.mainnav .dropdown .dropdown li a{padding-left:52px;}
    nav.mainnav .dropdown .dropdown .dropdown li a{padding-left:66px;}

    /* Accordion: tapping an item reveals just its own children, at any depth */
    nav.mainnav li.open > .dropdown{display:block;}
    nav.mainnav li.open > a::after{transform:rotate(-135deg);}

    .navwrap .container{padding:0;}
    .hero{flex-direction:column;}
    .hero-half{min-height:280px;padding:20px;}
    .hero-box{max-width:100%;width:100%;}
  }
  @media (max-width:600px){
    .footer-grid{grid-template-columns:1fr;}
    .hero-box{max-width:100%;padding:22px 20px;}
    .logo-text .name{font-size:18px;}
    .welcome h2, .section-head h2{font-size:22px;}
    .testimonial blockquote{font-size:15px;}
    .footer-bottom{flex-direction:column;align-items:flex-start;}
  }