
html {
    font-size: 16px; /* Base for rem units, 1rem = 16px */
}

/* wpml language switcher */
.lang-switcher.active {
    font-weight: bold;
    text-decoration: underline;
}

/* homepage slider responsive height css */
/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .my-slider-images .w-grid-item-h,
    .my-slider-images .w-post-elm.post_image {
        height: 650px; /* Adjust this value as needed */
    }
    
    .my-slider-images .w-post-elm.post_image img {
        height: 100%;
        object-fit: cover;
    }
}

/* Smartphone - 600px and below */
@media (max-width: 600px) {
    .my-slider-images .w-grid-item-h,
    .my-slider-images .w-post-elm.post_image {
        height: 420px; /* Adjust this value as needed */
    }
    
    .my-slider-images .w-post-elm.post_image img {
        height: 100%;
        object-fit: cover;
    }
}
/* end of homepage slider responsive height css */

/* Small Text (e.g., captions, legal text) */
.small_text {
    font-size: clamp(0.75rem, 0.7rem + 0.1vw, 0.9rem);
}
span.my-main-title {
    font-size: clamp(1.6rem, 0.8941rem + 1.8824vw, 2.4rem);
    font-weight: 700;
    color: var(--color-white);
}
.my-main-image img,
.my-slider-images img {
    filter: brightness(0.75);
}

.my-front-buttons {
    width: 280px;
}

.my-privacy-text-headings {
  margin-top: 1.6rem!important;
  margin-bottom: 0.8rem!important;
  font-weight: 700!important;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.3rem)!important;
}

.footer-logo {
    width: 200px!important;
    height: auto;
}

.footer-logo.alignleft {
    float: left;
    margin-right: 0em!important;
    margin-bottom: 0em!important;
}

.footer-logo-french {
    width: 180px!important;
    height: auto;
}

.footer-logo-french.alignleft {
    float: left;
    margin-right: 0em!important;
    margin-bottom: 0em!important;
}

/* learning standards logo grid */

/* Base styles for grid items before animation */
  .learning-standards-logo-grid .w-grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--item-index, 0) * 0.1s);
  }
  
  /* Animation class that gets added by JavaScript */
  .learning-standards-logo-grid .w-grid-item.animate {
    opacity: 1;
    transform: translateY(0);
  }

div.learning-standards .learning-standards-logos img {
    vertical-align: middle !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.6rem !important;
    margin-top: 0.6rem !important;
}

@media (max-width: 600px) {
	div.learning-standards .learning-standards-logos img {
  		padding-left: 0.4rem!important;
  		padding-right: 0.4rem!important;
	}
}

.bottom-footer a {
    color: var(--color-xanthous);
}

.bottom-footer a:hover {
    
}

.heads-welcome-aword {
    font-weight: 700;
    font-size: clamp(1.8rem, 1.6rem + 1.5vw, 2.4rem)!important;
}

.heads-welcome-signature {
    font-family: 'Sacramento'!important;
    font-size: clamp(1.4rem, 1.3rem + 1vw, 2.0rem)!important;
}

.campus-content h2,
.campus-content h3 {
    margin-top: 1.2rem!important;
    margin-bottom: 1rem!important;
}

/* curriculum tabs */

.my-curriculum-tabs .w-tabs-section-content {
    padding-top: 1rem!important;
}

.my-curriculum-tabs .w-tabs-item {
    padding: 0.8rem 1rem!important;
}

/* staff grid */
/* === SCHOOL STAFF CARD (square + slide-up caption) === */

/* 1) Square card + gradient background */
.w-grid-item .school-staff-outer-wrapper.usg_vwrapper_1{
  --overlay-max: 34%; /* how much of the image the caption may cover */
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: linear-gradient(97deg, rgba(19,56,94,0.78) 0%, rgba(19,56,94,0.5) 90%) !important;
}

/* 2) Image layer fills the square; show full image (no crop) */
.w-grid-item .school-staff-outer-wrapper .usg_post_image_1.stretched{
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}
.w-grid-item .school-staff-outer-wrapper .usg_post_image_1.stretched img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;   /* full image visible */
  object-position: center !important;
  display: block !important;
  transition: transform .45s ease !important;
}
.w-grid-item .school-staff-outer-wrapper:hover .usg_post_image_1.stretched img{
  transform: scale(1.05) !important;
}

/* 3) Inner wrapper (caption): starts OUTSIDE, slides up to bottom on hover */
.w-grid-item .school-staff-outer-wrapper .school-staff-inner-wrapper{
  position: absolute !important;
  left: 0; bottom: 0 !important;    /* bottom edge aligned with image bottom */
  width: 100% !important;
  padding: .9rem 1rem !important;
  color: #fff !important;
  background: rgba(0,0,0,0.3) !important; /* gradient is on the outer wrapper */
  z-index: 2 !important;

  transform: translateY(100%) !important; /* start completely outside (below) */
  transition: transform .45s ease !important;
  max-height: var(--overlay-max) !important; /* limit how high it can cover */
  overflow: hidden !important;
}
.w-grid-item .school-staff-outer-wrapper:hover .school-staff-inner-wrapper{
  transform: translateY(0) !important;      /* slide into the bottom of image */
}

/* 4) Small cleanups */
.w-grid-item .school-staff-outer-wrapper .school-staff-inner-wrapper > *{
  margin: 0 !important;
}

/* campus pages */
/* ========= HERO (Impreza / WPBakery) ========= */
/* Attach these classes to the Row:  hero-169 hero-light
   Set the Row background image: Cover + Center + No repeat
*/

/* Keep 16:9 ratio and full-width */
.hero-169 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: flex-start;   /* push content to the left */
}

/* Fallback for older browsers: maintain 16:9 with padding */
.hero-169::before {
  content:"";
  display:block;
  padding-bottom:56.25%;           /* 9/16 = 0.5625 = 56.25% */
}

/* Content wrapper */
.hero-169 > .l-section-h {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;       /* vertical center */
  align-items: flex-start;       /* left align */
  text-align: left;
  padding: clamp(16px, 6vw, 80px);
  max-width: 900px;              /* keeps text from going too wide */
}

/* On mobile, push content lower */
@media (max-width: 600px) {
  .hero-169 > .l-section-h {
    justify-content: flex-end;   /* move down */
    padding-bottom: 2rem;
  }
}

/* Readability overlay – darkens background image only */
/* Overlay */
.hero-169::after {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:0;
}

/* Force pure-white text in this hero */
.hero-169.hero-light,
.hero-169.hero-light h1,
.hero-169.hero-light h2,
.hero-169.hero-light h3,
.hero-169.hero-light p {
  color:#fff !important;
  opacity:1 !important;
  text-shadow:0 1px 3px rgba(0,0,0,.35); /* optional readability */
}

/* Optional: brand button style in hero */
.hero-169 .w-btn{
  background:#0a3d91;              /* your brand color */
  border-radius:999px;
  padding:.75rem 1.25rem;
}

/* ---- Responsive helpers ---- */
@media (max-width: 900px){
  .hero-169 > .l-section-h{ padding: clamp(16px, 6vw, 48px); }
}
@media (max-width: 600px){
  /* if you want a taller presence on phones */
  .hero-169 { min-height: 60vh; }  /* keeps impact if text is long */
}

/* footer logo grid */
/* Target the grid container */
.footer-logo-grid .w-grid-list {
  display: flex;               /* turn into flexbox to control widths */
  gap: 0.2rem;                 /* keep your gap */
}

/* First article = 30% */
.footer-logo-grid .w-grid-item:first-child {
  flex: 0 0 70%;
  max-width: 70%;
}

/* Second article = 70% */
.footer-logo-grid .w-grid-item:nth-child(2) {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Optional: make images responsive */
.footer-logo-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* extra curriculum-table table clsss */
/* Main table styling */
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
}

/* Header row styling */
.curriculum-table thead tr {
  background-color: var(--color-space-cadet);
  color: var(--color-white);
}

/* First column styling (header + body) */
.curriculum-table thead th:first-child,
.curriculum-table tbody td:first-child {
  background-color: var(--color-timberwolf);
  font-weight: bold;
  text-align: left;
}

/* Borders + padding */
.curriculum-table th,
.curriculum-table td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
}

/* Make first column text aligned left */
.curriculum-table td:first-child {
  text-align: left;
}

/* end of extra curriculum-table table clsss */

/* 2 columns li */
.my-two-column-list {
  columns: 2;            /* two columns by default */
  column-gap: 2rem;       /* space between columns */
  list-style-position: inside;
}

.my-two-column-list li {
  break-inside: avoid;    /* prevent splitting */
  padding: 0.5rem;
}

/* Switch to one column on small screens */
@media (max-width: 768px) {
  .my-two-column-list {
    columns: 1;          /* single column on mobile */
  }
}
/* end of 2 columns li */

/* single blog css */
.my-single-blog .video-responsive {
  /* Establishes a reference point for the absolute-positioned iframe */
  position: relative;

  /* This is the magic: 9 / 16 = 0.5625 (56.25%) for 16:9 aspect ratio */
  padding-bottom: 56.25%;

  /* Ensures that only the content defined by the padding shows */
  height: 0;
  overflow: hidden;

  /* Optional: Set max width if you don't want it to take up the full screen width */
  max-width: 1000px;
  margin: 0 auto; /* Center the video */
}

.my-single-blog  .video-responsive iframe {
  /* Stretches the iframe to fill the entire container */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* End of single blog css */