/* =========================================================
   BRIDGE WAY SCHOOL GALLERY
   PAGE ID: 1742
   Elementor + Essential Addons Filterable Gallery
========================================================= */

/* ---------------------------------------------------------
   PAGE WIDTH AND SPACING
--------------------------------------------------------- */

.page-id-1742,
.page-id-1742 .site,
.page-id-1742 .site-content,
.page-id-1742 .content-area,
.page-id-1742 .entry-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.page-id-1742 .elementor-section,
.page-id-1742 .e-con,
.page-id-1742 .e-con-inner {
    max-width: 100%;
}

/* Main gallery section */

.page-id-1742 .eael-filter-gallery-wrapper,
.page-id-1742 .eael-filterable-gallery,
.page-id-1742 .elementor-image-gallery,
.page-id-1742 .e-gallery-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 35px 20px 100px;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   FILTER BUTTONS
--------------------------------------------------------- */

.page-id-1742 .eael-filter-gallery-control {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 38px;
    padding: 0;
    list-style: none;
}

.page-id-1742 .eael-filter-gallery-control li,
.page-id-1742 .eael-filter-gallery-control button,
.page-id-1742 .eael-filter-gallery-control a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 21px !important;
    border: 1px solid #dce4ed !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    color: #1a365d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(16, 39, 71, 0.06);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.page-id-1742 .eael-filter-gallery-control li:hover,
.page-id-1742 .eael-filter-gallery-control button:hover,
.page-id-1742 .eael-filter-gallery-control a:hover {
    transform: translateY(-2px);
    border-color: #dd6b20 !important;
    color: #dd6b20 !important;
    box-shadow: 0 8px 20px rgba(16, 39, 71, 0.11);
}

/* Active filter */

.page-id-1742 .eael-filter-gallery-control .active,
.page-id-1742 .eael-filter-gallery-control .control.active,
.page-id-1742 .eael-filter-gallery-control li.active,
.page-id-1742 .eael-filter-gallery-control button.active {
    border-color: #dd6b20 !important;
    background: #dd6b20 !important;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(221, 107, 32, 0.28);
}

/* ---------------------------------------------------------
   GALLERY GRID
--------------------------------------------------------- */

.page-id-1742 .eael-filter-gallery-container,
.page-id-1742 .eael-filter-gallery-grid,
.page-id-1742 .e-gallery-container,
.page-id-1742 .gallery {
    gap: 18px !important;
}

/* Individual gallery cards */

.page-id-1742 .eael-filter-gallery-container .item,
.page-id-1742 .eael-filter-gallery-grid .item,
.page-id-1742 .eael-filter-gallery-item-wrap,
.page-id-1742 .gallery-item,
.page-id-1742 .e-gallery-item,
.page-id-1742 .elementor-gallery-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e9f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 39, 71, 0.10);
    transform: translateZ(0);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.page-id-1742 .eael-filter-gallery-container .item:hover,
.page-id-1742 .eael-filter-gallery-grid .item:hover,
.page-id-1742 .eael-filter-gallery-item-wrap:hover,
.page-id-1742 .gallery-item:hover,
.page-id-1742 .e-gallery-item:hover,
.page-id-1742 .elementor-gallery-item:hover {
    transform: translateY(-7px);
    border-color: rgba(221, 107, 32, 0.55);
    box-shadow: 0 18px 42px rgba(16, 39, 71, 0.18);
}

/* ---------------------------------------------------------
   IMAGE STYLING
--------------------------------------------------------- */

.page-id-1742 .eael-filter-gallery-container img,
.page-id-1742 .eael-filter-gallery-grid img,
.page-id-1742 .eael-filter-gallery-item-wrap img,
.page-id-1742 .gallery-item img,
.page-id-1742 .e-gallery-item img,
.page-id-1742 .elementor-gallery-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.page-id-1742 .eael-filter-gallery-container .item:hover img,
.page-id-1742 .eael-filter-gallery-grid .item:hover img,
.page-id-1742 .eael-filter-gallery-item-wrap:hover img,
.page-id-1742 .gallery-item:hover img,
.page-id-1742 .e-gallery-item:hover img,
.page-id-1742 .elementor-gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.78);
}

/* ---------------------------------------------------------
   HOVER OVERLAY
--------------------------------------------------------- */

.page-id-1742 .eael-filter-gallery-container .item::after,
.page-id-1742 .eael-filter-gallery-grid .item::after,
.page-id-1742 .eael-filter-gallery-item-wrap::after,
.page-id-1742 .gallery-item::after,
.page-id-1742 .e-gallery-item::after,
.page-id-1742 .elementor-gallery-item::after {
    content: "View Photo";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    background: rgba(16, 39, 71, 0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -40%);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.page-id-1742 .eael-filter-gallery-container .item:hover::after,
.page-id-1742 .eael-filter-gallery-grid .item:hover::after,
.page-id-1742 .eael-filter-gallery-item-wrap:hover::after,
.page-id-1742 .gallery-item:hover::after,
.page-id-1742 .e-gallery-item:hover::after,
.page-id-1742 .elementor-gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------
   TITLE AND CAPTION
--------------------------------------------------------- */

.page-id-1742 .eael-gallery-grid-item-content,
.page-id-1742 .eael-filter-gallery-content,
.page-id-1742 .eael-filter-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 50px 18px 17px;
    background: linear-gradient(
        to top,
        rgba(10, 28, 51, 0.94),
        rgba(10, 28, 51, 0)
    );
    color: #ffffff;
}

.page-id-1742 .eael-gallery-grid-item-content h2,
.page-id-1742 .eael-gallery-grid-item-content h3,
.page-id-1742 .eael-filter-gallery-content h2,
.page-id-1742 .eael-filter-gallery-content h3,
.page-id-1742 .eael-filter-gallery-caption h2,
.page-id-1742 .eael-filter-gallery-caption h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.page-id-1742 .eael-gallery-grid-item-content p,
.page-id-1742 .eael-filter-gallery-content p,
.page-id-1742 .eael-filter-gallery-caption p {
    margin: 0;
    color: #e7edf4;
    font-size: 13px;
    line-height: 1.5;
}

.page-id-1742 .gallery-caption,
.page-id-1742 .elementor-gallery-item__description,
.page-id-1742 .e-gallery-item__caption {
    padding: 13px 12px;
    color: #1a365d;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* ---------------------------------------------------------
   LIGHTBOX
--------------------------------------------------------- */

.page-id-1742 .elementor-lightbox,
.page-id-1742 .dialog-lightbox-widget {
    background: rgba(5, 17, 31, 0.96);
}

.page-id-1742 .elementor-lightbox img,
.page-id-1742 .dialog-lightbox-widget img {
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.page-id-1742 .elementor-lightbox .dialog-lightbox-close-button,
.page-id-1742 .elementor-lightbox .elementor-swiper-button {
    color: #ffffff;
}

/* ---------------------------------------------------------
   LOADING AND ANIMATION
--------------------------------------------------------- */

.page-id-1742 .eael-filter-gallery-container .item,
.page-id-1742 .eael-filter-gallery-grid .item {
    animation: bwGalleryFadeUp 0.55s ease both;
}

@keyframes bwGalleryFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .page-id-1742 .eael-filter-gallery-wrapper,
    .page-id-1742 .eael-filterable-gallery,
    .page-id-1742 .elementor-image-gallery,
    .page-id-1742 .e-gallery-container {
        padding: 30px 18px 80px;
    }

    .page-id-1742 .eael-filter-gallery-container img,
    .page-id-1742 .eael-filter-gallery-grid img,
    .page-id-1742 .eael-filter-gallery-item-wrap img,
    .page-id-1742 .gallery-item img,
    .page-id-1742 .e-gallery-item img,
    .page-id-1742 .elementor-gallery-item img {
        height: 250px;
    }

}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767px) {

    .page-id-1742 .eael-filter-gallery-wrapper,
    .page-id-1742 .eael-filterable-gallery,
    .page-id-1742 .elementor-image-gallery,
    .page-id-1742 .e-gallery-container {
        padding: 22px 15px 65px;
    }

    .page-id-1742 .eael-filter-gallery-control {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 9px;
        margin-bottom: 26px;
        padding-bottom: 8px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .page-id-1742 .eael-filter-gallery-control li,
    .page-id-1742 .eael-filter-gallery-control button,
    .page-id-1742 .eael-filter-gallery-control a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 17px !important;
        font-size: 13px !important;
    }

    .page-id-1742 .eael-filter-gallery-container img,
    .page-id-1742 .eael-filter-gallery-grid img,
    .page-id-1742 .eael-filter-gallery-item-wrap img,
    .page-id-1742 .gallery-item img,
    .page-id-1742 .e-gallery-item img,
    .page-id-1742 .elementor-gallery-item img {
        height: 245px;
        border-radius: 13px;
    }

    .page-id-1742 .eael-filter-gallery-container .item,
    .page-id-1742 .eael-filter-gallery-grid .item,
    .page-id-1742 .eael-filter-gallery-item-wrap,
    .page-id-1742 .gallery-item,
    .page-id-1742 .e-gallery-item,
    .page-id-1742 .elementor-gallery-item {
        border-radius: 13px;
    }

}

/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 480px) {

    .page-id-1742 .eael-filter-gallery-container img,
    .page-id-1742 .eael-filter-gallery-grid img,
    .page-id-1742 .eael-filter-gallery-item-wrap img,
    .page-id-1742 .gallery-item img,
    .page-id-1742 .e-gallery-item img,
    .page-id-1742 .elementor-gallery-item img {
        height: 220px;
    }

    .page-id-1742 .eael-filter-gallery-container .item::after,
    .page-id-1742 .eael-filter-gallery-grid .item::after,
    .page-id-1742 .eael-filter-gallery-item-wrap::after,
    .page-id-1742 .gallery-item::after,
    .page-id-1742 .e-gallery-item::after,
    .page-id-1742 .elementor-gallery-item::after {
        display: none;
			
    }
.page-id-1742 .eael-filter-gallery-container .item::after,
.page-id-1742 .eael-filter-gallery-grid .item::after,
.page-id-1742 .eael-filter-gallery-item-wrap::after,
.page-id-1742 .gallery-item::after,
.page-id-1742 .e-gallery-item::after,
.page-id-1742 .elementor-gallery-item::after {
    display: none !important;
}
	.page-id-1742 .eael-filter-gallery-container .item::after,
.page-id-1742 .eael-filter-gallery-grid .item::after,
.page-id-1742 .eael-filter-gallery-item-wrap::after,
.page-id-1742 .gallery-item::after,
.page-id-1742 .e-gallery-item::after,
.page-id-1742 .elementor-gallery-item::after {
    display: none !important;
}
}
/* CONTACT PAGE — ID 1781 */
.page-id-1781 .ast-container,
.page-id-1781 .site-content,
.page-id-1781 .content-area,
.page-id-1781 .site-main,
.page-id-1781 .entry-content,
.page-id-1781 article,
.page-id-1781 .elementor {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-id-1781 #secondary {
    display: none !important;
}

.page-id-1781 .entry-header {
    display: none !important;
}


/* LEADERSHIP PAGE — ID 64 */
.page-id-64 .ast-container,
.page-id-64 .site-content,
.page-id-64 .content-area,
.page-id-64 .site-main,
.page-id-64 .entry-content,
.page-id-64 article,
.page-id-64 .elementor {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-id-64 #secondary {
    display: none !important;
}

.page-id-64 .entry-header {
    display: none !important;
}


/* Prevent sideways scrolling */
.page-id-1781,
.page-id-64 {
    overflow-x: hidden !important;
}
/* Bridge Way global full-width fix */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body.page #page,
body.page .site,
body.page .site-content,
body.page .ast-container,
body.page #primary,
body.page .content-area,
body.page .site-main,
body.page article.page,
body.page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}

body.page #secondary,
body.page .sidebar-main,
body.page .widget-area {
    display: none !important;
}

body.page #primary {
    width: 100% !important;
}

body.page .entry-header,
body.page h1.entry-title {
    display: none !important;
}

/* Elementor main wrapper */
body.elementor-page .elementor {
    width: 100% !important;
    max-width: none !important;
}

/* Only top-level Elementor containers become full width */
body.elementor-page .elementor > .e-con,
body.elementor-page .elementor > .elementor-section,
body.elementor-page .elementor-top-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Legacy Elementor stretched sections */
body.elementor-page .elementor-section-stretched {
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
}

/* Prevent media overflow */
body.page img,
body.page iframe,
body.page video {
    max-width: 100%;
    height: auto;
}
/*
BRIDGE WAY SCHOOL — GLOBAL HEADER REDESIGN V2
Designed for Astra Free.
Paste into: Appearance > Customize > Additional CSS
*/

/* =========================
   1. COLOURS AND SIZING
========================= */
:root{
  --bws-navy:#1A365D;
  --bws-navy-dark:#102A43;
  --bws-orange:#DD6B20;
  --bws-green:#2F855A;
  --bws-gold:#F6C344;
  --bws-white:#FFFFFF;
  --bws-soft:#F7FAFC;
  --bws-text:#2D3748;
  --bws-border:#D9E2EC;
  --bws-shadow:0 8px 24px rgba(16,42,67,.10);
}

/* =========================
   2. TOP INFORMATION BAR
========================= */
.bws-global-topbar{
  background:var(--bws-navy-dark);
  color:#fff;
  font-size:12.5px;
  line-height:1.4;
}

.bws-global-topbar a{
  color:#fff;
  text-decoration:none;
}

.bws-global-topbar a:hover{
  color:var(--bws-gold);
}

.bws-global-topbar__inner{
  width:min(1240px,calc(100% - 32px));
  min-height:38px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.bws-global-topbar__contacts,
.bws-global-topbar__links{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.bws-global-topbar__contacts{
  flex:1 1 auto;
  overflow:hidden;
}

.bws-global-topbar__links{
  flex:0 0 auto;
}

.bws-global-topbar__item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.bws-admissions-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:var(--bws-orange);
  color:#fff!important;
  font-weight:800;
}

/* =========================
   3. ASTRA MAIN HEADER
   IMPORTANT: no forced cramped height
========================= */
.site-header,
.ast-primary-header-bar{
  background:#fff!important;
}

.ast-primary-header-bar{
  min-height:88px!important;
  border-bottom:1px solid var(--bws-border)!important;
  box-shadow:var(--bws-shadow);
}

.ast-primary-header-bar .site-primary-header-wrap,
.main-header-bar .ast-container{
  max-width:1240px!important;
  width:min(1240px,calc(100% - 32px))!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Let Astra columns breathe */
.site-header-primary-section-left{
  flex:0 0 auto!important;
  min-width:0!important;
}

.site-header-primary-section-right{
  flex:1 1 auto!important;
  min-width:0!important;
  justify-content:flex-end!important;
}

/* Logo and identity */
.ast-builder-layout-element.site-header-focus-item{
  min-width:0;
}

.site-branding{
  padding-right:18px;
}

.site-branding img,
.custom-logo-link img{
  width:auto!important;
  max-width:72px!important;
  max-height:68px!important;
  object-fit:contain;
}

.ast-site-identity{
  min-width:0;
}

.site-title,
.site-title a{
  color:var(--bws-navy)!important;
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:-.02em;
  white-space:normal!important;
}

.site-description{
  color:var(--bws-orange)!important;
  font-size:10px!important;
  line-height:1.3!important;
  font-weight:800!important;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:normal!important;
}

/* =========================
   4. DESKTOP NAVIGATION
   Smaller gaps prevent squeezing
========================= */
.ast-builder-menu-1,
.main-header-menu{
  min-width:0;
}

.main-header-menu,
.ast-builder-menu-1 .main-header-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:2px;
}

.main-header-menu > .menu-item,
.ast-builder-menu-1 .main-header-menu > .menu-item{
  flex:0 0 auto;
}

.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link{
  position:relative;
  min-height:44px;
  padding-left:10px!important;
  padding-right:10px!important;
  color:var(--bws-navy)!important;
  font-size:13px!important;
  font-weight:750;
  white-space:nowrap;
  transition:color .2s ease,background .2s ease;
}

.main-header-menu > .menu-item > .menu-link::after,
.ast-builder-menu-1 .menu-item > .menu-link::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:8px;
  height:3px;
  border-radius:999px;
  background:var(--bws-orange);
  transform:scaleX(0);
  transition:transform .2s ease;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .current-menu-item > .menu-link{
  color:var(--bws-orange)!important;
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after,
.ast-builder-menu-1 .menu-item:hover > .menu-link::after,
.ast-builder-menu-1 .current-menu-item > .menu-link::after{
  transform:scaleX(1);
}

/* Dropdowns */
.main-header-menu .sub-menu,
.ast-builder-menu-1 .sub-menu{
  min-width:220px;
  padding:9px;
  border:1px solid var(--bws-border);
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 40px rgba(16,42,67,.14);
}

.main-header-menu .sub-menu .menu-link,
.ast-builder-menu-1 .sub-menu .menu-link{
  padding:10px 12px!important;
  border-radius:8px;
  color:var(--bws-text)!important;
  font-size:13px!important;
  white-space:normal;
}

.main-header-menu .sub-menu .menu-link:hover,
.ast-builder-menu-1 .sub-menu .menu-link:hover{
  background:var(--bws-soft);
  color:var(--bws-orange)!important;
}

/* =========================
   5. BUTTON MENU ITEMS
========================= */
.main-header-menu .bws-apply-menu > .menu-link,
.ast-builder-menu-1 .bws-apply-menu > .menu-link{
  min-height:42px;
  margin-left:6px;
  padding:0 14px!important;
  border-radius:9px;
  background:var(--bws-orange)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(221,107,32,.20);
}

.main-header-menu .bws-apply-menu > .menu-link::after,
.main-header-menu .bws-portal-menu > .menu-link::after,
.ast-builder-menu-1 .bws-apply-menu > .menu-link::after,
.ast-builder-menu-1 .bws-portal-menu > .menu-link::after{
  display:none;
}

.main-header-menu .bws-portal-menu > .menu-link,
.ast-builder-menu-1 .bws-portal-menu > .menu-link{
  min-height:42px;
  padding:0 13px!important;
  border:2px solid var(--bws-green);
  border-radius:9px;
  color:var(--bws-green)!important;
}

/* =========================
   6. STICKY HEADER
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
}

.admin-bar .site-header{
  top:32px;
}

/* =========================
   7. LARGE TABLET / SMALL LAPTOP
   Hide secondary action button before squeezing begins
========================= */
@media (max-width:1180px) and (min-width:922px){
  .main-header-menu .bws-portal-menu,
  .ast-builder-menu-1 .bws-portal-menu{
    display:none!important;
  }

  .main-header-menu > .menu-item > .menu-link,
  .ast-builder-menu-1 .menu-item > .menu-link{
    padding-left:8px!important;
    padding-right:8px!important;
    font-size:12.5px!important;
  }

  .site-title,
  .site-title a{
    font-size:16px!important;
  }
}

/* =========================
   8. MOBILE / TABLET HEADER
========================= */
@media(max-width:921px){
  .bws-global-topbar__inner{
    width:min(100% - 24px,760px);
    min-height:42px;
    justify-content:center;
    padding:7px 0;
  }

  .bws-global-topbar__contacts{
    justify-content:center;
    overflow:visible;
    flex-wrap:wrap;
    gap:8px 14px;
  }

  .bws-global-topbar__links{
    display:none;
  }

  .ast-primary-header-bar{
    min-height:74px!important;
  }

  .ast-mobile-header-wrap .site-branding{
    padding-right:8px;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:58px!important;
    max-height:56px!important;
  }

  .site-title,
  .site-title a{
    font-size:15px!important;
    line-height:1.15!important;
  }

  .site-description{
    font-size:8.5px!important;
  }

  .ast-button-wrap .menu-toggle.main-header-menu-toggle{
    width:44px;
    height:42px;
    padding:0;
    border:1px solid var(--bws-border);
    border-radius:9px;
    background:var(--bws-soft);
    color:var(--bws-navy);
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-inner{
    background:#fff;
  }

  .ast-mobile-popup-header{
    border-bottom:1px solid var(--bws-border);
  }

  .ast-mobile-popup-content .main-header-menu .menu-link,
  .ast-mobile-popup-content .ast-header-navigation .menu-link{
    min-height:0;
    padding:14px 20px!important;
    border-bottom:1px solid var(--bws-border);
    color:var(--bws-navy)!important;
    font-size:14px!important;
    font-weight:750;
    white-space:normal;
  }

  .ast-mobile-popup-content .current-menu-item > .menu-link{
    color:var(--bws-orange)!important;
    background:#fff7f1;
  }

  .ast-mobile-popup-content .bws-apply-menu > .menu-link,
  .ast-mobile-popup-content .bws-portal-menu > .menu-link{
    margin:12px 18px;
    border-radius:10px;
    text-align:center;
  }

  .ast-mobile-popup-content .bws-portal-menu > .menu-link{
    border:2px solid var(--bws-green)!important;
  }

  .site-header{
    top:0;
  }

  .admin-bar .site-header{
    top:46px;
  }
}

@media(max-width:620px){
  .bws-global-topbar{
    font-size:12px;
  }

  .bws-global-topbar__item--email,
  .bws-global-topbar__item--hours{
    display:none;
  }

  .site-title,
  .site-title a{
    font-size:13.5px!important;
  }

  .site-description{
    display:none!important;
  }
}

@media(max-width:420px){
  .bws-global-topbar__contacts{
    gap:6px 10px;
  }

  .site-title,
  .site-title a{
    font-size:12.5px!important;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:50px!important;
    max-height:49px!important;
  }
}

/* =========================
   9. ACCESSIBILITY
========================= */
.site-header a:focus-visible,
.bws-global-topbar a:focus-visible{
  outline:3px solid var(--bws-gold);
  outline-offset:3px;
  border-radius:5px;
}
/*
BRIDGE WAY SCHOOL — HEADER SIZE FIX V3
Paste this BELOW the V2 CSS in:
Appearance > Customize > Additional CSS
*/

/* Larger desktop header */
@media (min-width:1181px){

  .ast-primary-header-bar{
    min-height:104px!important;
  }

  .site-branding{
    padding-right:24px!important;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:92px!important;
    max-height:88px!important;
  }

  .site-title,
  .site-title a{
    font-size:21px!important;
    line-height:1.15!important;
  }

  .site-description{
    font-size:11px!important;
    line-height:1.35!important;
  }

  .main-header-menu > .menu-item > .menu-link,
  .ast-builder-menu-1 .menu-item > .menu-link{
    min-height:50px!important;
    padding-left:13px!important;
    padding-right:13px!important;
    font-size:15px!important;
    font-weight:750!important;
  }

  .main-header-menu .bws-apply-menu > .menu-link,
  .ast-builder-menu-1 .bws-apply-menu > .menu-link{
    min-height:46px!important;
    padding:0 18px!important;
    font-size:14px!important;
  }

  .main-header-menu .bws-portal-menu > .menu-link,
  .ast-builder-menu-1 .bws-portal-menu > .menu-link{
    min-height:46px!important;
    padding:0 16px!important;
    font-size:14px!important;
  }
}

/* Medium laptop */
@media (max-width:1180px) and (min-width:922px){

  .ast-primary-header-bar{
    min-height:96px!important;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:80px!important;
    max-height:76px!important;
  }

  .site-title,
  .site-title a{
    font-size:18px!important;
  }

  .site-description{
    font-size:10px!important;
  }

  .main-header-menu > .menu-item > .menu-link,
  .ast-builder-menu-1 .menu-item > .menu-link{
    padding-left:9px!important;
    padding-right:9px!important;
    font-size:13.5px!important;
  }
}

/* Tablet and mobile */
@media (max-width:921px){

  .ast-primary-header-bar{
    min-height:84px!important;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:68px!important;
    max-height:66px!important;
  }

  .site-title,
  .site-title a{
    font-size:16px!important;
  }

  .site-description{
    font-size:9px!important;
  }

  .ast-button-wrap .menu-toggle.main-header-menu-toggle{
    width:48px!important;
    height:46px!important;
    font-size:22px!important;
  }

  .ast-mobile-popup-content .main-header-menu .menu-link,
  .ast-mobile-popup-content .ast-header-navigation .menu-link{
    padding:16px 22px!important;
    font-size:16px!important;
  }
}

/* Small phones */
@media (max-width:480px){

  .ast-primary-header-bar{
    min-height:78px!important;
  }

  .site-branding img,
  .custom-logo-link img{
    max-width:60px!important;
    max-height:58px!important;
  }

  .site-title,
  .site-title a{
    font-size:14px!important;
  }

  .site-description{
    display:none!important;
  }
}
/* BRIDGE WAY SCHOOL — CURRENT MENU REDESIGN */

:root {
  --bws-navy: #1A365D;
  --bws-deep: #102A43;
  --bws-orange: #DD6B20;
  --bws-green: #2F855A;
  --bws-soft: #F7FAFC;
  --bws-text: #2D3748;
  --bws-border: #D9E2EC;
}

/* MAIN ASTRA HEADER */
.site-header,
.ast-primary-header-bar {
  background: #ffffff !important;
}

.ast-primary-header-bar {
  min-height: 102px !important;
  border-bottom: 1px solid var(--bws-border) !important;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.10);
}

.ast-primary-header-bar .site-primary-header-wrap {
  width: min(1240px, calc(100% - 32px)) !important;
  max-width: 1240px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* LEFT AND RIGHT SECTIONS */
.site-header-primary-section-left {
  flex: 0 0 auto !important;
}

.site-header-primary-section-right {
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

/* LOGO */
.site-branding {
  padding-right: 24px !important;
}

.site-branding img,
.custom-logo-link img {
  width: auto !important;
  max-width: 92px !important;
  max-height: 88px !important;
  object-fit: contain;
}

/* SCHOOL NAME */
.site-title,
.site-title a {
  color: var(--bws-navy) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

.site-description {
  margin-top: 4px !important;
  color: var(--bws-orange) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* CURRENT MENU */
.main-header-menu,
.ast-builder-menu-1 .main-header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
}

.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  position: relative;
  min-height: 50px;
  padding-left: 11px !important;
  padding-right: 11px !important;
  color: var(--bws-navy) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  white-space: nowrap;
}

/* ORANGE UNDERLINE */
.main-header-menu > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 8px;
  left: 11px;
  height: 3px;
  border-radius: 10px;
  background: var(--bws-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
  color: var(--bws-orange) !important;
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after {
  transform: scaleX(1);
}

/* DROPDOWNS */
.main-header-menu .sub-menu {
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--bws-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.16);
}

.main-header-menu .sub-menu .menu-link {
  padding: 11px 13px !important;
  border-radius: 8px;
  color: var(--bws-text) !important;
  font-size: 13px !important;
  font-weight: 650;
  white-space: normal;
}

.main-header-menu .sub-menu .menu-link:hover {
  background: var(--bws-soft);
  color: var(--bws-orange) !important;
}

/* APPLY ONLINE MENU ITEM */
.main-header-menu .bws-apply-menu > .menu-link {
  min-height: 46px;
  margin-left: 6px;
  padding: 0 18px !important;
  border-radius: 9px;
  background: var(--bws-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(221, 107, 32, 0.22);
}

.main-header-menu .bws-apply-menu > .menu-link::after {
  display: none;
}

.main-header-menu .bws-apply-menu > .menu-link:hover {
  background: #c45e19 !important;
  color: #ffffff !important;
}

/* STICKY HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-bar .site-header {
  top: 32px;
}

/* MEDIUM LAPTOP */
@media (max-width: 1180px) and (min-width: 922px) {
  .ast-primary-header-bar {
    min-height: 94px !important;
  }

  .site-branding img,
  .custom-logo-link img {
    max-width: 78px !important;
    max-height: 75px !important;
  }

  .site-title,
  .site-title a {
    font-size: 17px !important;
  }

  .main-header-menu > .menu-item > .menu-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12.5px !important;
  }

  /* Staff Login remains available inside mobile menu */
  .main-header-menu > .menu-item.bws-staff-menu {
    display: none;
  }
}

/* TABLET AND MOBILE */
@media (max-width: 921px) {
  .ast-primary-header-bar {
    min-height: 84px !important;
  }

  .site-branding {
    padding-right: 8px !important;
  }

  .site-branding img,
  .custom-logo-link img {
    max-width: 67px !important;
    max-height: 65px !important;
  }

  .site-title,
  .site-title a {
    font-size: 15px !important;
  }

  .site-description {
    font-size: 8px !important;
  }

  .ast-button-wrap .menu-toggle.main-header-menu-toggle {
    width: 48px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--bws-border);
    border-radius: 9px;
    background: var(--bws-soft);
    color: var(--bws-navy);
    font-size: 22px;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    background: #ffffff;
  }

  .ast-mobile-popup-content .main-header-menu .menu-link {
    min-height: auto;
    padding: 15px 21px !important;
    border-bottom: 1px solid var(--bws-border);
    color: var(--bws-navy) !important;
    font-size: 15px !important;
    font-weight: 700;
    white-space: normal;
  }

  .ast-mobile-popup-content .current-menu-item > .menu-link {
    background: #fff7f1;
    color: var(--bws-orange) !important;
  }

  .ast-mobile-popup-content .bws-apply-menu > .menu-link {
    margin: 14px 18px;
    border: 0 !important;
    border-radius: 9px;
    background: var(--bws-orange) !important;
    color: #ffffff !important;
    text-align: center;
  }

  .site-header,
  .admin-bar .site-header {
    top: 0;
  }
}

@media (max-width: 520px) {
  .site-branding img,
  .custom-logo-link img {
    max-width: 58px !important;
    max-height: 57px !important;
  }

  .site-title,
  .site-title a {
    font-size: 13px !important;
  }

  .site-description {
    display: none !important;
  }
}
/* ======================================================
   BRIDGE WAY SCHOOL — COMPLETE CUSTOM FOOTER
====================================================== */

:root {
  --bws-footer-navy: #102a43;
  --bws-footer-blue: #1a365d;
  --bws-footer-deep: #071d2f;
  --bws-footer-orange: #dd6b20;
  --bws-footer-orange-light: #f6ad55;
  --bws-footer-green: #2f855a;
  --bws-footer-white: #ffffff;
  --bws-footer-text: #d6e2ee;
  --bws-footer-muted: #9fb3c8;
  --bws-footer-border: rgba(255, 255, 255, 0.12);
}

/* Remove Astra's normal footer spacing and background */
.site-footer,
.ast-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.site-footer .ast-container,
.site-footer .ast-builder-grid-row,
.site-footer .ast-builder-grid-row-container-inner,
.site-footer .site-footer-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.site-footer .ast-builder-html-element,
.site-footer .ast-builder-html-element > div {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide Astra's separate copyright row */
.site-below-footer-wrap {
  display: none !important;
}

/* Main footer */
.bws-complete-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--bws-footer-white);
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(221, 107, 32, 0.16),
      transparent 29%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(47, 133, 90, 0.11),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      var(--bws-footer-deep) 0%,
      var(--bws-footer-navy) 50%,
      var(--bws-footer-blue) 100%
    );
  font-family: Arial, Helvetica, sans-serif;
}

.bws-complete-footer *,
.bws-complete-footer *::before,
.bws-complete-footer *::after {
  box-sizing: border-box;
}

.bws-complete-footer::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -145px;
  width: 380px;
  height: 380px;
  border: 65px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  pointer-events: none;
}

.bws-complete-footer::after {
  content: "";
  position: absolute;
  bottom: 90px;
  left: -95px;
  width: 210px;
  height: 210px;
  border: 35px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  pointer-events: none;
}

.bws-complete-footer a {
  text-decoration: none !important;
}

/* Four-column area */
.bws-footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 1.05fr 1.25fr;
  gap: 48px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 60px;
}

/* School identity */
.bws-footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--bws-footer-white) !important;
}

.bws-footer-logo {
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--bws-footer-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.bws-footer-logo img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  object-fit: contain;
}

.bws-footer-brand-text {
  display: block;
}

.bws-footer-brand-text strong {
  display: block;
  max-width: 245px;
  color: var(--bws-footer-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.bws-footer-brand-text small {
  display: block;
  margin-top: 7px;
  color: var(--bws-footer-orange-light) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bws-footer-about > p {
  max-width: 345px;
  margin: 23px 0 !important;
  color: var(--bws-footer-text) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

/* Motto box */
.bws-footer-motto {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 340px;
  padding: 15px;
  border: 1px solid var(--bws-footer-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.bws-motto-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--bws-footer-orange);
  color: var(--bws-footer-white) !important;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(221, 107, 32, 0.26);
}

.bws-footer-motto > span:last-child {
  display: block;
}

.bws-footer-motto small,
.bws-footer-motto strong,
.bws-footer-motto em {
  display: block;
}

.bws-footer-motto small {
  margin-bottom: 3px;
  color: var(--bws-footer-orange-light) !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.bws-footer-motto strong {
  color: var(--bws-footer-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.bws-footer-motto em {
  margin-top: 3px;
  color: var(--bws-footer-muted) !important;
  font-size: 11px;
  font-style: normal;
}

/* Column headings */
.bws-footer-column h3 {
  position: relative;
  margin: 0 0 25px !important;
  padding: 0 0 13px;
  color: var(--bws-footer-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

.bws-footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 43px;
  height: 3px;
  border-radius: 10px;
  background: var(--bws-footer-orange);
  transition: width 0.3s ease;
}

.bws-footer-column:hover h3::after {
  width: 68px;
}

/* Link lists */
.bws-footer-column ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bws-footer-column li {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.bws-footer-column li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 18px;
  color: var(--bws-footer-text) !important;
  font-size: 14px !important;
  line-height: 1.45;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.bws-footer-column li a::before {
  content: "›";
  position: absolute;
  top: -2px;
  left: 0;
  color: var(--bws-footer-orange-light);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.bws-footer-column li a:hover {
  color: var(--bws-footer-white) !important;
  transform: translateX(5px);
}

.bws-footer-column li a:hover::before {
  transform: translateX(2px);
}

/* Contact rows */
.bws-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
}

.bws-contact-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border: 1px solid var(--bws-footer-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bws-footer-orange-light) !important;
  font-size: 16px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.bws-contact-row:hover .bws-contact-icon {
  transform: translateY(-2px);
  background: var(--bws-footer-orange);
  color: var(--bws-footer-white) !important;
}

.bws-contact-row > span:last-child {
  min-width: 0;
}

.bws-contact-row strong {
  display: block;
  margin: 0 0 4px;
  color: var(--bws-footer-white) !important;
  font-size: 13px;
  font-weight: 700;
}

.bws-contact-row small {
  display: block;
  color: var(--bws-footer-text) !important;
  font-size: 13px;
  line-height: 1.6;
}

.bws-contact-row a {
  color: var(--bws-footer-text) !important;
  overflow-wrap: anywhere;
}

.bws-contact-row a:hover {
  color: var(--bws-footer-orange-light) !important;
}

/* Admissions strip */
.bws-footer-cta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 24px max(20px, calc((100% - 1200px) / 2));
  background:
    linear-gradient(
      110deg,
      #c95c17 0%,
      var(--bws-footer-orange) 55%,
      #e77c31 100%
    );
}

.bws-footer-cta > div {
  display: block;
}

.bws-footer-cta small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.bws-footer-cta strong {
  display: block;
  color: var(--bws-footer-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
}

.bws-footer-cta > a {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 2px solid var(--bws-footer-white);
  border-radius: 9px;
  background: var(--bws-footer-white);
  color: var(--bws-footer-orange) !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(100, 40, 5, 0.22);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bws-footer-cta > a:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--bws-footer-white) !important;
  box-shadow: 0 13px 28px rgba(100, 40, 5, 0.3);
}

.bws-footer-cta > a span {
  color: inherit !important;
  font-size: 18px;
  transition: transform 0.25s ease;
}

.bws-footer-cta > a:hover span {
  transform: translateX(4px);
}

/* Copyright area */
.bws-footer-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 18px max(20px, calc((100% - 1200px) / 2));
  background: var(--bws-footer-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bws-footer-bottom p {
  margin: 0 !important;
  color: var(--bws-footer-muted) !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.bws-footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bws-footer-bottom nav a {
  color: var(--bws-footer-muted) !important;
  font-size: 12px;
  transition: color 0.25s ease;
}

.bws-footer-bottom nav a:hover {
  color: var(--bws-footer-white) !important;
}

/* Tablet layout */
@media (max-width: 1000px) {
  .bws-footer-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 46px 60px;
  }
}

/* Small tablet and mobile */
@media (max-width: 700px) {
  .bws-footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(100% - 30px, 1200px);
    padding: 52px 0 44px;
  }

  .bws-footer-logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .bws-footer-brand-text strong {
    font-size: 17px;
  }

  .bws-footer-about > p,
  .bws-footer-motto {
    max-width: none;
  }

  .bws-footer-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 15px;
  }

  .bws-footer-cta strong {
    font-size: 18px;
  }

  .bws-footer-cta > a {
    width: 100%;
  }

  .bws-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 15px;
  }

  .bws-footer-bottom nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .bws-footer-brand {
    align-items: flex-start;
  }

  .bws-footer-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .bws-footer-brand-text strong {
    font-size: 15px;
  }

  .bws-footer-brand-text small {
    font-size: 8px;
  }
}
/* =========================================================
   BRIDGE WAY NURSERY & PRIMARY SCHOOL
   COMPLETE MOBILE + TABLET RESPONSIVE CSS
   Astra Free + Elementor Free
========================================================= */

:root {
  --bws-navy: #102a43;
  --bws-blue: #1a365d;
  --bws-orange: #dd6b20;
  --bws-orange-dark: #bd5214;
  --bws-green: #2f855a;
  --bws-white: #ffffff;
  --bws-light: #f7fafc;
  --bws-soft: #edf2f7;
  --bws-border: #e2e8f0;
  --bws-text: #2d3748;
  --bws-muted: #718096;
}

/* =========================================================
   1. GLOBAL RESPONSIVE PROTECTION
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
  border: 0;
}

.site,
.site-content,
.site-main,
.entry-content,
.ast-container,
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget,
.elementor-widget-container,
.elementor-widget-wrap,
.e-con,
.e-con-inner {
  max-width: 100%;
}

p,
li,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a[href^="mailto:"],
a[href^="tel:"] {
  overflow-wrap: anywhere;
}

table {
  max-width: 100%;
}

/* Prevent oversized fixed-width Elementor content */
.elementor-element,
.elementor-widget-container {
  min-width: 0;
}

/* =========================================================
   2. GENERAL CONTENT WIDTH
========================================================= */

.ast-container,
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con-boxed > .e-con-inner {
  width: min(1200px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

/* =========================================================
   3. RESPONSIVE TYPOGRAPHY
========================================================= */

h1,
.elementor-widget-heading h1.elementor-heading-title {
  line-height: 1.12;
}

h2,
.elementor-widget-heading h2.elementor-heading-title {
  line-height: 1.2;
}

h3,
.elementor-widget-heading h3.elementor-heading-title {
  line-height: 1.3;
}

/* =========================================================
   4. BUTTON PROTECTION
========================================================= */

.elementor-button,
.wp-block-button__link,
.ast-button,
button,
input[type="submit"] {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.elementor-button,
.wp-block-button__link,
.ast-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   5. TABLET RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 1024px) {

  .ast-container,
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con-boxed > .e-con-inner {
    width: calc(100% - 36px);
  }

  /* Compact tablet section spacing */
  .elementor-section.elementor-top-section,
  .e-con.e-parent {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }

  .elementor-section > .elementor-container {
    gap: 22px;
  }

  .e-con {
    --gap: 22px;
  }

  /* Tablet headings */
  h1,
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(34px, 5vw, 46px) !important;
  }

  h2,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(27px, 4vw, 35px) !important;
  }

  h3,
  .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(20px, 3vw, 26px) !important;
  }

  body,
  p,
  li,
  .elementor-widget-text-editor {
    font-size: 16px;
    line-height: 1.65;
  }

  /* Three and four desktop columns become two on tablets */
  .elementor-column.elementor-col-33,
  .elementor-column[data-col="33"],
  .elementor-column.elementor-col-25,
  .elementor-column[data-col="25"] {
    width: calc(50% - 11px) !important;
  }

  /* Make maps, videos and embeds fit */
  .elementor-widget-video iframe,
  .elementor-widget-google_maps iframe,
  .wp-block-embed iframe {
    width: 100% !important;
  }

  /* Scroll wide tables */
  .entry-content table,
  .elementor-widget-text-editor table,
  .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   6. PHONE RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 767px) {

  .ast-container,
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con-boxed > .e-con-inner {
    width: calc(100% - 28px);
  }

  /* Compact sections to prevent very long pages */
  .elementor-section.elementor-top-section,
  .e-con.e-parent {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  /* Stack normal Elementor columns */
  .elementor-section > .elementor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .elementor-column,
  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-33,
  .elementor-column.elementor-col-25,
  .elementor-column[data-col="50"],
  .elementor-column[data-col="33"],
  .elementor-column[data-col="25"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-section .elementor-column {
    margin-bottom: 14px !important;
  }

  .elementor-section .elementor-column:last-child {
    margin-bottom: 0 !important;
  }

  /* Compact widget spacing */
  .elementor-element {
    --widgets-spacing: 12px !important;
  }

  .elementor-widget {
    margin-bottom: 12px !important;
  }

  .elementor-widget:last-child {
    margin-bottom: 0 !important;
  }

  /* Phone typography */
  h1,
  .elementor-widget-heading h1.elementor-heading-title {
    margin-bottom: 12px !important;
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.14 !important;
  }

  h2,
  .elementor-widget-heading h2.elementor-heading-title {
    margin-bottom: 10px !important;
    font-size: clamp(23px, 6.5vw, 29px) !important;
    line-height: 1.2 !important;
  }

  h3,
  .elementor-widget-heading h3.elementor-heading-title {
    margin-bottom: 8px !important;
    font-size: clamp(19px, 5vw, 23px) !important;
  }

  h4,
  .elementor-widget-heading h4.elementor-heading-title {
    font-size: 18px !important;
  }

  body,
  p,
  li,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  p,
  .elementor-widget-text-editor p {
    margin-bottom: 11px !important;
  }

  /* Do not make every button full width */
  .elementor-button-wrapper,
  .wp-block-button {
    width: auto !important;
  }

  .elementor-button,
  .wp-block-button__link,
  .ast-button {
    width: auto !important;
    min-width: 145px;
    min-height: 44px !important;
    padding: 11px 17px !important;
    font-size: 14px !important;
  }

  /* Forms remain full width */
  form input[type="submit"],
  form button[type="submit"] {
    width: 100% !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  select,
  textarea {
    width: 100% !important;
    max-width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 16px !important;
  }

  textarea {
    min-height: 125px;
  }

  /* Prevent iPhone form zoom */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Images */
  .elementor-widget-image img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
  }

  /* Remove excessive fixed hero heights */
  .elementor-section-height-full,
  .elementor-section-height-min-height,
  .e-con-full,
  .bws-hero {
    min-height: auto !important;
  }

  .bws-hero {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  /* Compact common cards */
  .elementor-widget-icon-box .elementor-widget-container,
  .elementor-widget-image-box .elementor-widget-container,
  .elementor-widget-testimonial .elementor-widget-container {
    padding: 18px !important;
  }

  .elementor-icon-box-title,
  .elementor-image-box-title {
    margin-bottom: 6px !important;
  }

  /* Responsive icon boxes */
  .elementor-icon-box-wrapper {
    gap: 12px;
  }

  /* Lists */
  .entry-content ul,
  .entry-content ol {
    padding-left: 21px;
  }

  /* Tables */
  .entry-content table,
  .elementor-widget-text-editor table,
  .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    font-size: 13px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Maps and videos */
  .elementor-widget-video iframe,
  .elementor-widget-google_maps iframe,
  .wp-block-embed iframe {
    width: 100% !important;
    min-height: 230px;
  }

  /* Keep selected card sections two per row */
  .bws-mobile-two-column > .elementor-container,
  .bws-mobile-two-column.e-con,
  .bws-mobile-two-column > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .bws-mobile-two-column .elementor-column,
  .bws-mobile-two-column > .e-con,
  .bws-mobile-two-column > .e-con-inner > .e-con {
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    margin-bottom: 0 !important;
  }

  /* Optional mobile content control */
  .bws-hide-mobile {
    display: none !important;
  }

  .bws-mobile-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }
}

/* =========================================================
   7. VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

  .ast-container,
  .elementor-section.elementor-section-boxed > .elementor-container,
  .e-con-boxed > .e-con-inner {
    width: calc(100% - 22px);
  }

  .elementor-section.elementor-top-section,
  .e-con.e-parent {
    padding-top: 23px !important;
    padding-bottom: 23px !important;
  }

  .elementor-widget {
    margin-bottom: 10px !important;
  }

  h1,
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 28px !important;
  }

  h2,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 23px !important;
  }

  h3,
  .elementor-widget-heading h3.elementor-heading-title {
    font-size: 19px !important;
  }

  body,
  p,
  li,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .elementor-button,
  .wp-block-button__link,
  .ast-button {
    min-width: 130px;
    padding: 10px 14px !important;
  }

  .bws-mobile-two-column .elementor-column,
  .bws-mobile-two-column > .e-con,
  .bws-mobile-two-column > .e-con-inner > .e-con {
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
}

/* =========================================================
   8. ASTRA PHONE AND TABLET HEADER
========================================================= */

@media (max-width: 921px) {

  .ast-mobile-header-wrap {
    display: block !important;
    width: 100%;
  }

  .ast-primary-header-bar {
    min-height: 68px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .site-header .ast-container {
    width: calc(100% - 24px);
  }

  .site-branding,
  .ast-site-identity,
  .site-header-primary-section-left,
  .site-header-primary-section-right {
    min-width: 0;
  }

  .custom-logo-link img,
  .site-logo-img img {
    width: auto !important;
    max-width: 62px !important;
    max-height: 62px !important;
  }

  .site-title,
  .site-title a {
    max-width: 100%;
    color: var(--bws-navy);
    font-size: 17px !important;
    line-height: 1.18 !important;
    white-space: normal;
  }

  .site-description {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Hamburger button */
  .ast-button-wrap .menu-toggle,
  .ast-mobile-menu-trigger-minimal {
    display: inline-flex !important;
    width: 47px !important;
    height: 47px !important;
    min-width: 47px !important;
    min-height: 47px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(26, 54, 93, 0.16) !important;
    border-radius: 11px !important;
    background: var(--bws-white) !important;
    color: var(--bws-blue) !important;
    box-shadow: 0 5px 15px rgba(16, 42, 67, 0.1) !important;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s ease;
  }

  .ast-button-wrap .menu-toggle:hover,
  .ast-mobile-menu-trigger-minimal:hover {
    color: var(--bws-white) !important;
    background: var(--bws-orange) !important;
    transform: translateY(-1px);
  }

  .ast-button-wrap .menu-toggle svg,
  .ast-mobile-menu-trigger-minimal svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
  }
}

/* =========================================================
   9. PREMIUM MOBILE MENU DRAWER
========================================================= */

@media (max-width: 921px) {

  /* Drawer panel */
  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    width: min(90vw, 390px) !important;
    max-width: 390px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--bws-light) !important;
    box-shadow: -18px 0 45px rgba(7, 29, 47, 0.3) !important;
  }

  .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
    animation: bwsMenuOpen 0.3s ease both;
  }

  @keyframes bwsMenuOpen {
    from {
      opacity: 0;
      transform: translateX(30px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .ast-mobile-popup-drawer.active .ast-mobile-popup-overlay {
    background: rgba(7, 29, 47, 0.65) !important;
    backdrop-filter: blur(2px);
  }

  /* Drawer heading */
  .ast-mobile-popup-header {
    position: sticky !important;
    top: 0;
    z-index: 30;
    min-height: 82px !important;
    padding: 18px 20px !important;
    border-bottom: 3px solid var(--bws-orange) !important;
    background:
      radial-gradient(
        circle at top right,
        rgba(221, 107, 32, 0.25),
        transparent 44%
      ),
      linear-gradient(
        135deg,
        var(--bws-navy),
        var(--bws-blue)
      ) !important;
    box-shadow: 0 5px 18px rgba(7, 29, 47, 0.18);
  }

  .ast-mobile-popup-header::before {
    content: "BRIDGE WAY SCHOOL";
    display: block;
    max-width: 220px;
    padding-right: 48px;
    color: var(--bws-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .ast-mobile-popup-header::after {
    content: "The Lord Is My Banner";
    position: absolute;
    top: 47px;
    left: 20px;
    color: #f6ad55;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* Close button */
  .ast-mobile-popup-header .menu-toggle-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    display: grid !important;
    width: 43px !important;
    height: 43px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--bws-white) !important;
    transition:
      background 0.25s ease,
      transform 0.25s ease;
  }

  .ast-mobile-popup-header .menu-toggle-close:hover {
    background: var(--bws-orange) !important;
    transform: rotate(90deg);
  }

  .ast-mobile-popup-header .menu-toggle-close svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
  }

  /* Menu content */
  .ast-mobile-popup-content {
    width: 100% !important;
    min-height: calc(100vh - 82px);
    padding: 17px 13px 28px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background:
      linear-gradient(
        180deg,
        var(--bws-light),
        var(--bws-soft)
      ) !important;
  }

  /* Restore complete menu */
  .ast-builder-menu-mobile,
  .ast-builder-menu-mobile .main-navigation,
  .ast-builder-menu-mobile .main-header-menu {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .ast-builder-menu-mobile .main-header-menu > li,
  .ast-builder-menu-mobile .menu-item,
  .ast-mobile-popup-content .menu-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Top-level items */
  .ast-builder-menu-mobile .main-header-menu > li {
    position: relative;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .ast-builder-menu-mobile .main-header-menu > li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 51px !important;
    align-items: center !important;
    padding: 12px 52px 12px 15px !important;
    border: 1px solid var(--bws-border) !important;
    border-radius: 11px !important;
    background: var(--bws-white) !important;
    color: var(--bws-blue) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.055) !important;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .ast-builder-menu-mobile
  .main-header-menu
  > li:not(.menu-item-has-children)
  > a {
    padding-right: 15px !important;
  }

  .ast-builder-menu-mobile .main-header-menu > li > a:hover {
    color: var(--bws-orange) !important;
    border-color: rgba(221, 107, 32, 0.36) !important;
    background: #fffaf5 !important;
    transform: translateX(3px);
  }

  /* Current page */
  .ast-builder-menu-mobile .current-menu-item > a,
  .ast-builder-menu-mobile .current-menu-ancestor > a,
  .ast-builder-menu-mobile .current_page_item > a {
    color: var(--bws-white) !important;
    border-color: var(--bws-blue) !important;
    background:
      linear-gradient(
        135deg,
        var(--bws-navy),
        var(--bws-blue)
      ) !important;
    box-shadow: 0 8px 18px rgba(16, 42, 67, 0.21) !important;
  }

  /* Dropdown control */
  .ast-builder-menu-mobile .menu-item-has-children {
    position: relative;
  }

  .ast-builder-menu-mobile .ast-menu-toggle {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 8;
    display: grid !important;
    width: 37px !important;
    height: 37px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--bws-soft) !important;
    color: var(--bws-blue) !important;
    box-shadow: none !important;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s ease;
  }

  .ast-builder-menu-mobile .ast-menu-toggle:hover,
  .ast-builder-menu-mobile .ast-menu-toggle.toggled {
    color: var(--bws-white) !important;
    background: var(--bws-orange) !important;
  }

  .ast-builder-menu-mobile .ast-menu-toggle.toggled {
    transform: rotate(180deg);
  }

  .ast-builder-menu-mobile .ast-menu-toggle svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
  }

  /* Submenus */
  .ast-builder-menu-mobile .sub-menu {
    position: static !important;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin: 6px 0 8px 12px !important;
    padding: 6px !important;
    border: 0 !important;
    border-left: 3px solid var(--bws-orange) !important;
    border-radius: 0 9px 9px 0 !important;
    background: var(--bws-soft) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /*
   Do not add display:block to .sub-menu.
   Astra must control opening and closing.
  */

  .ast-builder-menu-mobile .sub-menu li {
    width: 100% !important;
    margin: 0 0 4px !important;
  }

  .ast-builder-menu-mobile .sub-menu li:last-child {
    margin-bottom: 0 !important;
  }

  .ast-builder-menu-mobile .sub-menu a {
    display: flex !important;
    width: 100% !important;
    min-height: 41px !important;
    align-items: center !important;
    padding: 9px 11px 9px 14px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--bws-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .ast-builder-menu-mobile .sub-menu a::before {
    content: "›";
    margin-right: 8px;
    color: var(--bws-orange);
    font-size: 18px;
    line-height: 1;
  }

  .ast-builder-menu-mobile .sub-menu a:hover {
    color: var(--bws-blue) !important;
    background: var(--bws-white) !important;
    transform: translateX(2px);
  }

  /* Apply Online special menu item */
  .ast-builder-menu-mobile .bws-apply-menu {
    margin-top: 13px !important;
  }

  .ast-builder-menu-mobile .bws-apply-menu > a {
    min-height: 53px !important;
    justify-content: center !important;
    padding-right: 15px !important;
    border-color: var(--bws-orange) !important;
    background:
      linear-gradient(
        135deg,
        var(--bws-orange-dark),
        var(--bws-orange)
      ) !important;
    color: var(--bws-white) !important;
    box-shadow: 0 9px 20px rgba(221, 107, 32, 0.29) !important;
  }

  .ast-builder-menu-mobile .bws-apply-menu > a::after {
    content: "→";
    margin-left: 8px;
    font-size: 18px;
  }

  /* Staff login */
  .ast-builder-menu-mobile .bws-staff-menu > a {
    border-style: dashed !important;
    border-color: rgba(26, 54, 93, 0.3) !important;
    background: var(--bws-soft) !important;
  }

  .bws-staff-menu,
  .bws-apply-menu,
  .menu-item.bws-staff-menu,
  .menu-item.bws-apply-menu {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Smaller menu drawer */
@media (max-width: 480px) {

  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    width: 92vw !important;
    max-width: 92vw !important;
  }

  .ast-mobile-popup-content {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .ast-mobile-popup-header {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .ast-mobile-popup-header::after {
    left: 15px;
  }

  .ast-mobile-popup-header .menu-toggle-close {
    right: 14px !important;
  }
}

/* =========================================================
   10. RESPONSIVE CUSTOM FOOTER
========================================================= */

@media (max-width: 1024px) {

  .bws-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px 45px !important;
  }

  .bws-footer-cta,
  .bws-footer-bottom {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
}

@media (max-width: 700px) {

  .bws-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    width: calc(100% - 28px) !important;
    padding-top: 42px !important;
    padding-bottom: 36px !important;
  }

  .bws-footer-brand {
    align-items: flex-start !important;
  }

  .bws-footer-logo {
    width: 67px !important;
    height: 67px !important;
    flex-basis: 67px !important;
  }

  .bws-footer-brand-text strong {
    font-size: 16px !important;
  }

  .bws-footer-about > p,
  .bws-footer-motto {
    max-width: 100% !important;
  }

  .bws-footer-column h3 {
    margin-bottom: 18px !important;
  }

  .bws-footer-column li {
    margin-bottom: 9px !important;
  }

  .bws-contact-row {
    margin-bottom: 14px !important;
  }

  .bws-footer-cta {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 21px 15px !important;
  }

  .bws-footer-cta strong {
    font-size: 18px !important;
  }

  .bws-footer-cta > a {
    width: 100% !important;
  }

  .bws-footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 11px !important;
    padding: 16px 15px !important;
  }

  .bws-footer-bottom nav {
    flex-wrap: wrap !important;
    gap: 9px 17px !important;
  }
}

/* =========================================================
   11. WORDPRESS ADMIN BAR MOBILE FIX
========================================================= */

@media (max-width: 782px) {

  .admin-bar .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    padding-top: 46px;
  }
}

/* =========================================================
   12. TOUCH AND ACCESSIBILITY
========================================================= */

@media (max-width: 1024px) {

  a,
  button,
  input[type="submit"],
  .menu-toggle,
  .ast-menu-toggle {
    touch-action: manipulation;
  }

  .main-header-menu a,
  .elementor-button,
  .wp-block-button__link {
    min-height: 44px;
  }
}