/*--------------------------------------------------------------
1.0 - Basic theme styles (reset, typography, etc.)
--------------------------------------------------------------*/

/* Reset styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
	position: relative;
    font-family: "sofia-pro", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: #151515;
	font-size: 18px;
    margin: 0;
    padding: 0;
}

.sidebar-area {
    flex: 0 0 24%; /* fixed 28% width */
    box-sizing: border-box;
}

.sidebar-title {
	background-color: rgba(0, 0, 0, 0.83);
	border-radius: 40px 40px 0px 0px;
	padding: 40px 40px 0px 40px;
	color: #FFFFFF;
}
.sidebar-title p {
	font-size: 1.25em;
	font-weight: 500;
	padding-bottom: 15px;
}

.sidebar-menu-items {
	background-color: rgba(210, 20, 4, 0.83);
	border-radius: 0px 0px 40px 40px;
	padding: 10px 40px 40px 40px;
	color: #FFFFFF;
}

/* ---------------------- */
/* Top-level parent items */
/* ---------------------- */
.sidebar-menu-list > li > a {
    border-bottom: 1px solid #FFFFFF; /* solid white line under parent items */
    padding-bottom: 0.25em;           /* space between text and line */
    display: block;                  /* ensures border spans full width */
}

/* ---------------------- */
/* All li items styling */
/* ---------------------- */
.sidebar-menu-items li {
    font-size: 1.45rem;
    list-style-type: none;
    position: relative;
    margin-left: 0;
}

.sidebar-menu-items li a {
    color: #FFFFFF;
    font-weight: 600;
}

/* ---------------------- */
/* First-level children (child) */
/* ---------------------- */
.sidebar-menu-list li ul.sub-menu > li::before {
    content: "-";
    position: absolute;
    left: 0em;
    color: inherit;
}

.sidebar-menu-list li ul.sub-menu > li {
    padding-left: 1em;
}

.sidebar-menu-list li ul.sub-menu > li > a {
    font-weight: 300;
    border-bottom: 1px dotted #FFFFFF; /* dotted white line for child */
    padding-bottom: 0.25em;
    display: block;
}

/* ---------------------- */
/* Second-level children (child 2) */
/* ---------------------- */
.sidebar-menu-list li ul.sub-menu li ul.sub-menu > li::before {
    content: "-";
    position: absolute;
    left: 0em;
    color: inherit;
}

.sidebar-menu-list li ul.sub-menu li ul.sub-menu > li {
    font-size: 1.25rem;
    padding-left: 1em;
}

.sidebar-menu-list li ul.sub-menu li ul.sub-menu > li > a {
    border-bottom: 1px dotted #FFFFFF; /* dotted white line for child 2 */
    padding-bottom: 0.25em;
    display: block;
}


.page-with-sidebar {
    display: flex;
    max-width: 1685px;
    margin: 0 auto;
    gap: 40px; /* spacing between content and sidebar */
}



.page-template-default .container {
	padding-top: 60px;
	padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;	
	background: #FFFFFF;
	border-radius: 40px;
}

.container {
    width: 100%;
    max-width: 1685px;  /* Max width for main content */
    margin: 0 auto;     /* Center the content */
	padding-left: 20px;
	padding-right: 30px;
	margin-top: 35vh;
	margin-bottom: 145px;
    box-sizing: border-box;
}

.main-content {
	flex: 0 0 74%; /* fixed 76% width */
    box-sizing: border-box;
	padding-top: 60px;
	padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;	
	background: #FFFFFF;
	border-radius: 40px;
}

.home #main .container {
	background: none;
	border-radius: 0px;
	margin-top: 0;
	margin-bottom: 0;
}

body.home #main .container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.row-inner-1685 {
    width: 100%;
    max-width: 1685px;  /* Max width for main content */
    margin: 0 auto;     /* Center the content */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Centered rows for WPBakery */
.vc_row.wpb_row:not(.vc_row-no-padding):not(.vc_row-stretch) {
    width: 100%;
    max-width: 1685px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
}

/* Full-width rows – allow full width */
.vc_row.vc_row-stretch {
    width: 100%;
    max-width: 100%;   /* Full width */
    padding-left: 0;
    padding-right: 0;
}

.vc_column_container .vc_column-inner {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.wpb-content-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Force Easy Tables VC to obey container width */
.wpb_vc_table table.vc-table-plugin-theme-simple {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed; /* THIS is the key */
}

/* Force cells to wrap instead of sizing the table */
.wpb_vc_table td,
.wpb_vc_table th {
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Prevent long text from forcing column widths */
.wpb_vc_table td,
.wpb_vc_table th {
  white-space: normal;
}

/* Scales up images on the ethos page to match each other */

.ethos-scale-up-image img {
    height: 375px !important;       /* fixed height */
    width: auto !important;         /* maintain aspect ratio */
    display: block !important;
    object-fit: cover !important;   /* fills the area, may crop sides if needed */
}

h1 {
    position: relative;
    font-weight: 700;
    color: #d21404;
    font-style: normal;
    font-size: 2.25em;
    text-align: left;
    padding-bottom: 25px;
    margin-bottom: 40px;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 160px;
    height: 4px;
    background-color: #d21404;
}

.home h1::after {
    content: none !important;
}

h2 {
	position: relative;
	font-weight: 500;
	color: #d21404;
	font-style: normal;
	font-size: 1.85em;
    text-align: left;  /* Align the title text to the left */
    padding-bottom: 25px;
	margin-bottom: 40px !important;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 130px;
    height: 4px;
    background-color: #d21404;
}

h3 {
	position: relative;
    font-weight: 400;
	font-style: normal;
	font-size: 1.35em;
    text-align: left;  /* Align the title text to the left */
    padding-bottom: 25px;
    margin-bottom: 40px;
}

h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background-color: #d21404;
}

p {
	padding-bottom: 25px;
}

a {
	font-weight: 700;
	color: #d21404;
	text-decoration: none;
}

strong {
	font-weight: 700;
}

.page-title {
	margin-left: 15px;
	margin-right: 15px;
}

.white-text {
	color: #FFFFFF;
}

.h1-sub-header p {
	font-size: 1.78em;
	padding-bottom: 0px !important;
	margin-bottom: -10px !important;
}

.small-text-bold p {
	font-weight: 700;
	font-size: 0.85em;
}

.red-section-white-main-header p {
	font-weight: 700;
	color: #FFFFFF;
	font-style: normal;
	font-size: 2.25em;
}

/* BUTTON STYLES */

.large-tint-bt button {
  font-size: clamp(1.85rem, 2.65vw, 1.65rem) !important;
	width: 100%;
	max-width: 325px;
}

.large-tint-bt a {
  font-size: clamp(1.65rem, 2.45vw, 1.45rem) !important;
	width: 100%;
	max-width: 325px;
	font-weight: 400;
}

/* CONTAINER BORDER RADIUS SETTINGS */

.border-radius-top-only {
	border-radius: 40px 40px 0 0;
}

.top-triangle-pointing-down {
  padding: 40px;
  clip-path: polygon(
    0 0,
    calc(50% - 25px) 0,
    50% 25px,
    calc(50% + 25px) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

/* INVERSE CONTAINER BORDER RADIUS SETTINGS */

.row-with-corner-graphics {
  position: relative;
  background: transparent; /* show photo behind */
}

/* Top-left rounded corner */
.row-with-corner-graphics::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 40px;
  height: 40px;

  background-image: url("https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/white-top-left-curve.webp");
  background-repeat: no-repeat;
  background-size: contain; /* or 'cover' if you prefer */
  background-position: top left;

  pointer-events: none; /* optional, avoids blocking clicks */
}

/* Top-right rounded corner */
.row-with-corner-graphics::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 40px;
  height: 40px;

  background-image: url("https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/white-top-right-curve.webp");
  background-repeat: no-repeat;
  background-size: contain; /* or 'cover' if you prefer */
  background-position: top left;

  pointer-events: none; /* optional, avoids blocking clicks */
}

.top-triangle-pointing-up {
  padding: 27px;
  background: white; /* keeps the triangle white if needed */
  clip-path: polygon(
    0 27px,
    calc(50% - 25px) 27px,
    50% 0,
    calc(50% + 25px) 27px,
    100% 27px,
    100% 100%,
    0 100%
  );
  transform: rotate(180deg); /* flips the triangle upside down */
}

.border-radius-right-side-only img {
	border-radius: 0px 40px 40px 0;
}

.border-radius-all-corners img {
	border-radius: 40px 40px 40px 40px;
}

/* FOOTER EXCEPTIONS */

.home .universal-footer {
	margin-top: -1px;
}

.home .universal-footer .border-radius-top-only:first-of-type {
	border-radius: 0 !important;
}

.home .universal-footer .top-triangle-pointing-down {
	clip-path: none !important;
}

.universal-footer .row-with-corner-graphics::before {
  top: 0px;
}

.universal-footer .row-with-corner-graphics::after {
  top: 0px;
}


.hero-school-link {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
}

a.hero-school-link {
	text-decoration: none !important;
}

.hero-school-text {
  display: flex;
  flex-direction: column;
}

.hero-school-name {
  display: block;
  font-size: clamp(2.85rem, 5vw, 3.45rem);
  font-weight: 700;
  color: #fff;
	line-height: 1;
	margin-bottom: 18px;
}

.hero-school-type {
  display: block;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: #fff;
	line-height: 0;
	margin-bottom: 20px;
}

.hero-school-tel {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 600;
	  color: #fff;
	line-height: 1;
	margin-bottom: 8px;
}

.hero-school-location {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 300;
	  color: #fff;
	line-height: 1;
	margin-bottom: 0px;
}

.hero-school-text hr {
  border: 1px solid #d21404;
  margin: 0.4em 0;
}

.hero-school-logo {
  width: auto;  /* height is set by JS */
  flex-shrink: 0;
	margin-top: 10px;
	padding-bottom: 10px;
}

/* HOME HERO STRAPLINE AND BUTTONS*/

.home-strapline h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 300;
	color: #FFFFFF;
}

.home-hero-button-container {
	margin-bottom: 50px;
}

/* MENU */

.gm-navbar-sticky:not(.gm-navbar-sticky-toggle) .gm-main-menu-wrapper {
    position: relative;
}

.gm-navbar-sticky:not(.gm-navbar-sticky-toggle) .gm-main-menu-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 100%;
    left: 0;
    background: linear-gradient(
        to left,
        rgba(210, 20, 4, 0.47) 50%,
        rgba(210, 20, 4, 0) 100%
    );

    pointer-events: none; /* don’t block menu clicks */
    z-index: -1;
}

/* Global bullet replacement */

ul {
  list-style: none;
}

.main-content ul {
  padding-left: 1.2em;
	margin-bottom: 25px;
}

.main-content ul li {
  position: relative;
}

.main-content ul li::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: #d21404;
  position: absolute;
  left: -1em;
  top: 0.6em;
}

/* Blockquote Styles */

blockquote::before {
    color: #d21404;
    font-family: "Times", Georgia, Serif;
    content: open-quote;
    font-size: 86px;
    line-height: .1em;
    margin-right: 12px;
    margin-top: 25px;
    float: left;
    padding-left: -60px;
}

blockquote::after {
	visibility: hidden;
    content: close-quote;
}

blockquote {
	font-family: "edu-nsw-act-hand-cursive", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 1.15em;
    color: #00539a;
    margin-left: 13px;
    padding-left: 13px;
    border-left: 1px solid #ddd;
    background: none;
    margin: 1.5em 10px;
    margin-bottom: 10px;
    margin-left: 10px;
}

blockquote p {
    padding-bottom: 0px;
}



/* Background slideshow container */
#bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: -9999; /* well behind all content */
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

/* Example images */
.bg-slide:nth-child(1) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-01-desktop.webp'); }
.bg-slide:nth-child(2) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-02-desktop.webp'); }
.bg-slide:nth-child(3) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-03-desktop.webp'); }

/* Portrait images on mobile/tablet */
@media (orientation: portrait) {
    .bg-slide:nth-child(1) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-01-desktop.webp'); }
    .bg-slide:nth-child(2) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-02-desktop.webp'); }
    .bg-slide:nth-child(3) { background-image: url('https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/home-slider-03-desktop.webp'); }
}

/* Top & bottom tints */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    pointer-events: none;
    z-index: -9998;
    background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}



/* Scroll-red overlay */
#scroll-red {
    position: absolute;
    top: 100vh;              /* starts after hero viewport */
    left: 0;
    right: 0;
    bottom: 0;               /* 🔑 fills remaining page height */
    background: rgba(210, 20, 4,0.8);
    z-index: -3;
    pointer-events: none;
}

#scroll-red::before {
    content: '';
    position: absolute;
    top: -25vh;   /* pulls it into initial viewport */
    left: 0;
    width: 100%;
    height: 25vh;
    background: linear-gradient(
        to top,
        rgba(210, 20, 4,0.8),
        rgba(210, 20, 4,0)
    );
}

/* White content blocks */
.entry-content,
.wp-block-group.is-white {
    position: relative;
    z-index: 1;
    background: #fff;
}

/* Styles for Home Page Next 4 Events */

    .next-four-events .wcs-class__date-time { display: none; }

    .next-four-events .wcs-class__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .next-four-events .wcs-custom-date {
        margin-bottom: 8px;
        line-height: 1;
    }

    .next-four-events .wcs-custom-day {
        font-size: 34px;
        font-weight: 700;
    }

    .next-four-events .wcs-custom-month {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }

    .next-four-events .wcs-class__title {
        margin-top: 6px;
        font-size: 16px;
        font-weight: 600;
    }

.home .wcs-class {
    background: none !important;
	box-shadow: none !important;
}

.home .wcs-custom-date {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
	align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
	border: 1px solid white;
    color: white;
}

.home .wcs-custom-day {
	font-size: 2.85em;
	margin-bottom: 6px;
}

.home .wcs-custom-month {
	font-size: 0.95em;
}

.home .wcs-class__title {
    color: #FFFFFF !important;
    margin-top: 0vh !important;
    padding-top: 60px !important;
    position: relative; /* needed for the pseudo-element */
}

/* vertical line */
.home .wcs-class__title::before {
    content: "";
    position: absolute;
    top: 0;                  /* start at top of element */
    left: 50%;               /* center horizontally */
    transform: translateX(-50%);
    height: 60px;             /* matches the top padding */
    width: 1px;              /* line thickness */
    background-color: white;
}

.wcs-timetable h3::after {
    display: none;
}

/* Footer */

.footer-red-section-logo {
	width: 100%;
	background-image: url("https://dev.manland.herts.sch.uk/wp-content/uploads/2026/01/manland-footer-opacity-logo-white-c.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 96% auto; /* full width */
}

.footer-white-title p {
	color: #FFFFFF;
	font-weight: 700;
	font-size: 1.45em;
	padding-bottom: 0px;
}

.footer-white-text {
	color: #FFFFFF;
	font-size: 1.15em;
	font-weight: 300;
}

.footer-white-text a {
	color: #FFFFFF;
	font-weight: 300;
}

.footer-logo img {
	max-height: 340px;
}

.copyright-footer p {
	font-size: 0.65em;
	color: #FFFFFF;
	padding-bottom: 0px;
}

@media screen and (max-width: 1024px) {

    .page-with-sidebar {
        flex-direction: column;
    }

    .main-content,
    .sidebar-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

@media (max-width: 768px) {

  .wpb_vc_table table,
  .wpb_vc_table tbody,
  .wpb_vc_table tr,
  .wpb_vc_table td {
    display: block;
    width: 100%;
  }

  .wpb_vc_table tr.vc-th {
    display: none;
  }

  .wpb_vc_table tr {
    margin-bottom: 1rem;
  }
}

@media only screen and (max-width: 468px) {
	
	
}