/* Typography */

@font-face {
    font-family: 'Aston Martin Flare';
    src: url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF2_AstonMartinFlare_W_Rg.woff2') format('woff2'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF_AstonMartinFlare_W_Rg.woff') format('woff'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Desktop_AstonMartinFlare_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aston Martin Flare';
    src: url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF2_AstonMartinFlare_W_Md.woff2') format('woff2'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF_AstonMartinFlare_W_Md.woff') format('woff'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Desktop_AstonMartinFlare_Md.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aston Martin Flare';
    src: url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF2_AstonMartinFlare_W_Bd.woff2') format('woff2'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF_AstonMartinFlare_W_Bd.woff') format('woff'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Desktop_AstonMartinFlare_Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aston Martin Flare';
    src: url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF2_AstonMartinFlare_W_XBd.woff2') format('woff2'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Web_WOFF_AstonMartinFlare_W_XBd.woff') format('woff'),
         url('https://d36rd0l160k43h.cloudfront.net/f68f5d3c36c141d762caff9c56504503/d16f2dace1c4a1474e94418a2f4938b0/Fonts/2022%20Aston%20Martin%20Fonts_Aston%20Martin%20Flare_Desktop_AstonMartinFlare_XBd.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

html {
  scroll-padding-top: 160px;
}

body, p, span, li {
  font-family: 'Aston Martin Flare';  
  letter-spacing: normal;
  line-height: normal;
  font-weight: 400;
}

body, p, li {
  font-size: 18px;
  line-height: 26px;  
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Aston Martin Flare';  
  letter-spacing: normal;
  line-height: normal;
  font-weight: 400;
}

h1 { size: 36px; line-height: 45px; }
h2 { size: 30px; line-height: 40px; }
h3 { size: 26px; line-height: 36px; }
h4 { size: 24px; line-height: 32px; }
h5 { size: 20px; line-height: 24px; }

@media (min-width: 768px) {
  h1 { size: 54px; line-height: 70px; }
  h2 { size: 40px; line-height: 40px; }
  h3 { size: 32px; line-height: 40px; }
}

/* Color Palette Settings */
:root {
    --am-dark-matte: #0e0e0e;
    --am-solid-black: #0a0a0a;
    --am-bright-white: #ffffff;
    --am-dim-gray: #a1a1a1;
    --am-nav-height: 70px;
    --opal-green: #00665e;
    --ocean-blue: #004F59;
    --jet-black:  #121212;
    --white: #fff;
    --bs-accordion-active-color: #212529;
    --modern-blue-1: #01665e;
    --bs-primary-rgb: #01665e;
}

/* Navbar Structuring */
.am-navbar {
    height: var(--am-nav-height);
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 3001;
}

@media (min-width: 768px) {
  .page-body.page.editing {
    padding-top: 69px;
  }
}

/* Master Hamburger Button */
.am-master-toggle {
    background: none;
    border: none;
    width: 22px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    z-index: 3100;
    position: relative;
}

.am-master-toggle .am-line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--am-bright-white);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.am-master-toggle.is-active {
    height: 14px; 
    justify-content: center;
}

.am-master-toggle.is-active .line-top {
    transform: translateY(0.5px) rotate(45deg);
}

.am-master-toggle.is-active .line-bottom {
    transform: translateY(-0.5px) rotate(-45deg);
}

.am-logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.am-wings-img {
    height: 95px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
  .am-wings-img {
      height: 60px;
  }
}

/* Dynamic Side Navigation Drawer Layout */
.am-navigation-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--am-dark-matte);
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.am-navigation-drawer.is-open {
    transform: translateX(0);
}

.drawer-header-spacer {
    height: var(--am-nav-height);
    flex-shrink: 0;
}

/* Desktop Two-Column Slide-Out Mechanics */
@media (min-width: 768px) {
    .am-navigation-drawer {
        width: 360px; /* Column 1 Width */
    }

    .am-navigation-drawer.is-expanded {
        width: 720px; /* Two-Column Width */
    }

    .am-nav-columns-wrapper {
        width: 720px;
        display: flex;
        height: 100%;
    }

    .am-nav-col.primary-col {
        width: 360px;
        flex-shrink: 0;
        padding: 2.5rem 3rem;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        box-sizing: border-box;
    }

    .am-nav-col.secondary-col {
        width: 360px;
        flex-shrink: 0;
        padding: 2.5rem 3rem;
        box-sizing: border-box;
        background-color: #0b0b0b;
        opacity: 0;
        transition: opacity 0.3s ease 0.1s;
    }

    .am-navigation-drawer.is-expanded .am-nav-col.secondary-col {
        opacity: 1;
    }
}

/* Mobile Horizontally Sliding Drill-Down Layout */
@media (max-width: 767px) {
    .am-nav-columns-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .am-nav-col.primary-col {
        width: 100%;
        padding: 1.5rem 2rem;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .am-nav-col.secondary-col {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 1.5rem 2rem;
        background-color: var(--am-dark-matte);
        transform: translateX(100%); /* Hidden off-screen right */
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 10;
    }

    /* When submenu item is clicked on mobile, Column 2 slides over Column 1 */
    .am-navigation-drawer.is-expanded .am-nav-col.primary-col {
        transform: translateX(-30%); /* Subtle push back effect for depth */
    }

    .am-navigation-drawer.is-expanded .am-nav-col.secondary-col {
        transform: translateX(0); /* Fully slides into view */
    }
}

/* Back Button for Mobile View */
.am-back-btn {
    background: none;
    border: none;
    color: var(--am-dim-gray);
    font-size: 1.1rem;
    font-weight: 300;
    padding: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.am-back-btn:hover {
    color: var(--am-bright-white);
}

.am-back-arrow {
    font-size: 1.4rem;
    line-height: 1;
}

.am-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--am-dim-gray);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 300;
    padding: 0.85rem 0;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.am-link-item.is-active,
.am-link-item:hover {
    color: var(--am-bright-white) !important;
}

.am-chevron {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease, color 0.25s ease;
}

.am-link-item.is-active .am-chevron {
    color: var(--am-bright-white);
    transform: translateX(4px);
}

.am-submenu-panel {
    display: none;
}

.am-submenu-panel.is-active {
    display: block;
    animation: fadeInRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.am-sublink-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--am-bright-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 300;
    padding: 0.8rem 0;
    letter-spacing: -0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.am-sublink-item:hover {
    color: var(--am-dim-gray);
    transform: translateX(4px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.am-right-btn {
    color: var(--am-bright-white);
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.3);
}

.am-right-btn:hover {
    color: var(--am-bright-white);
    background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .am-right-btn {
    font-size: 12px;
    padding: 10px 15px;
  }
}

a, a:visited {
    color: #00665e;
}

.am-menu-list a, 
.am-menu-list a:visited {
    color: #ffffff;
}

.am-right-btn, 
.am-right-btn:visited {
    color: #fff;
}

.am-backdrop-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.am-backdrop-mask.is-visible {
    opacity: 1;
    visibility: visible;
}

.am-hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
}

.am-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(0, 0, 0, 0) 50%, rgba(10, 10, 10, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.am-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.no-padding .row>*,
.no-padding .container-fluid {
  padding: 0;
}

.am-hero-text-container {
    position: absolute;
    bottom: 10%;
    left: 4%;
    z-index: 3;
    color: var(--am-bright-white, #ffffff);
    pointer-events: none;
}

.am-hero-title {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: normal;
    color: #fff;
}

.am-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

@media (max-width: 767px) {
    .am-hero-title {
        font-size: 2.25rem;
      line-height: normal;
    }
    .am-hero-subtitle {
        font-size: 0.95rem;
      line-height: normal;
    }
    .am-hero-text-container {
        bottom: 8%;
        left: 5%;
    }
}

.input-group input, .input-group-btn button {
    height: 56px;
}

.job-search-control .form-control {
    margin-right: 15px;
}

.easy-autocomplete input {
    border-radius: 2px;
}

.btn, a.button {
  font-size: 16px;
  text-transform: capitalize;
  padding: 15px 40px!important;
  border-radius: 2px;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-light,
.btn-light:focus,
.btn-light:active,
.btn-light:visited,
a.button.button1,
a.button.button1:focus,
a.button.button1:active,
a.button.button1:visited {
    border: 1px solid var(--opal-green);
    background: var(--opal-green);
    color: var(--white);
}

.btn-primary:hover,
.btn-light:hover,
a.button.button1:hover {
  background-color: #005750;
  border: 1px solid #005750;
}

.btn-success,
.btn-success:focus,
.btn-success:active,
.btn-success:visited,
.btn-info,
.btn-info:focus,
.btn-info:active,
.btn-info:visited {
  background-color: #EEF0F0;
  color: #00665E;
  border: 1px solid #EEF0F0;
}

.btn-success:hover,
.btn-info:hover {
  background-color: #E3F1F0;
  color: #00665E;
  border: 1px solid #E3F1F0;
}

.am-corporate-footer {
    background-color: #ffffff; 
    color: #000000;
}

.am-footer-brand-title {
    font-size: 1.4rem;
    font-weight: 300;
    color: #000000;
    margin: 0;
}

.am-brand-hr {
    border-color: #000000;
    opacity: 1;
    margin: 0;
}

.am-directory-links li {
    margin-bottom: 0.95rem;
}

.am-directory-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: opacity 0.2s ease;
}

.am-directory-links a:hover {
    opacity: 0.6;
}

.am-dealer-search-form {
    display: block;
    width: 100%;
}

.am-dealer-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 1.25rem;
}

.am-input-group-wrapper {
    position: relative;
    border-bottom: 1px solid #000000;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
}

.am-dealer-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #000000;
    outline: none;
}

.am-dealer-input::placeholder {
    color: #757575;
    font-weight: 300;
}

.am-dealer-search-submit {
    background: none;
    border: none;
    color: #000000;
    padding: 0 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.am-dealer-search-submit:hover {
    transform: scale(1.05);
}

.am-compliance-link {
    color: #000000;
    text-decoration: underline;
    font-size: 0.75rem;
    font-weight: 400;
}

.am-regulatory-disclaimer {
    font-size: 0.72rem;
    line-height: 1.7;
    color: #000000;
    max-width: 900px;
}

.am-social-icon-link {
    color: #000000;
    transition: opacity 0.2s ease;
}

.am-social-icon-link:hover {
    opacity: 0.5;
}

.am-bottom-meta {
    font-size: 0.9rem;
}

.am-meta-link {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}

.am-meta-link:hover {
    text-decoration: underline;
}

.am-copyright-label {
    color: #000000;
    font-weight: 400;
}

.am-corporate-footer a.button.button1 {
  float: right;
}

@media (max-width: 767px) {
    .am-footer-brand-title {
        font-size: 1.15rem;
    }
    .am-directory-links {
        margin-bottom: 0.5rem;
    }
    .am-dealer-search-form {
        margin-top: 1.5rem;
    }
}

.center-align .col-md-6 {
  align-self: center;
}

.custom-carousel1 .row {
  display: flex !important;
  flex-wrap: nowrap !important; 
  gap: 24px !important; 
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
}

.custom-carousel1 .carousel-item-block {
  position: relative !important;
  width: calc((100% - 48px) / 3) !important; 
  flex: 0 0 calc((100% - 48px) / 3) !important;
  max-width: calc((100% - 48px) / 3) !important;
  min-width: 0 !important; 
  aspect-ratio: 565 / 520 !important; 
  border-radius: 4px !important;
  overflow: hidden !important;
  background-color: #00665e; 
  padding: 0 !important;
}

.custom-carousel1 .carousel-item-block-image {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; 
  z-index: 1;
}

.custom-carousel1 .carousel-caption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important; 
  align-items: flex-start !important;  
  text-align: left !important;         
  padding: 6% !important; 
  box-sizing: border-box !important;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.85) 0%, 
    rgba(0, 0, 0, 0.3) 60%, 
    rgba(0, 0, 0, 0) 100%
  ) !important;
}

.custom-carousel1 .carousel-item-block:not(:has(img)) .carousel-caption {
  background: transparent !important; 
}

.custom-carousel1 .carousel-item-block:nth-child(3) {
  background-color: #00665e !important; 
}

.custom-carousel1 .carousel-item-caption-header {
  color: #ffffff !important;
  font-size: clamp(18px, 2vw, 24px) !important; 
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 0 0 12px 0 !important;
}

.custom-carousel1 .carousel-item-caption-detail p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: clamp(12px, 1.2vw, 15px) !important; 
  line-height: normal !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.custom-carousel1 .carousel-item-block:empty {
  display: none !important;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -20px;
}

.carousel-indicators [data-bs-target] {
    background-color: #00665e;
}

@media (min-width: 768px) {
  .custom-carousel1 h2 {
    size: 28px;
  }

  .custom-carousel1 p {
    size: 18px;
  }
}

@media (max-width: 768px) {
  .custom-carousel1 .row {
    flex-wrap: wrap !important;
    gap: 16px !important; 
    padding: 10px !important;
  }

  .custom-carousel1 .carousel-item-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    aspect-ratio: auto !important; 
    min-height: 380px !important; 
    height: auto !important; 
  }

  .custom-carousel1 .carousel-caption {
    position: relative !important; 
    padding: 30px 20px !important; 
    background: #2c3e4b !important; 
  }

  .custom-carousel1 .carousel-item-block:has(img) .carousel-caption {
    position: absolute !important; 
    top: 0 !important;
    background: linear-gradient(
      to top, 
      rgba(0, 0, 0, 0.9) 0%, 
      rgba(0, 0, 0, 0.5) 70%, 
      rgba(0, 0, 0, 0.2) 100%
    ) !important;
  }

  .custom-carousel1 .carousel-item-caption-header {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .custom-carousel1 .carousel-item-caption-detail p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .custom-carousel1 .carousel-indicators {
    bottom: -30px;
  }
}

.left-cta .block-call-to-action {
    form {
        max-width: 400px;
        margin: 0;
    }
}

.form-call-to-action {
    input[type='file'].form-control {
        border: 1px solid #dee2e6;
    }
}

@media (min-width: 767px) {
    .left-cta .col-md-6, .left-cta .col-md-4, .left-cta .col-md-8 {
        .block-image-cover {
            height: 850px;
        }
    }
}

.page-body.page.not-editing .five-col .page-row-border > div:nth-child(6) {
  display: none !important;
}

@media (min-width: 768px) {
.page-body.page.not-editing .five-col .page-row-border > div:not(:nth-child(6)) {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

@media (max-width: 768px) {
  .header .block-image-cover {
      min-height: 500px;
    }
}

.header .block-image-text {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .header .block-image-text {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .header .block-image-text {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .header .block-image-text {
    width: 1170px;
  }
}
@media (min-width: 1400px) {
  .header .block-image-text {
    width: 1320px;
  }
}

.benefits-carousel h2 {
  font-size: 21px;
  line-height: normal;
}

.benefits-carousel .carousel {
  margin-bottom: 70px !important;
  overflow: visible !important; 
}

.benefits-carousel .carousel-control-prev,
.benefits-carousel .carousel-control-next {
  top: auto !important;
  bottom: 0px !important; 
  width: 30px !important;   
  height: 30px !important;  
  opacity: 0.8 !important;
  background-color: transparent !important; 
  transition: opacity 0.2s ease;
}

.benefits-carousel .carousel-control-prev {
  left: 0 !important;
}

.benefits-carousel .carousel-control-next {
  right: 0 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

.benefits-carousel .carousel-control-prev-icon,
.benefits-carousel .carousel-control-next-icon {
  display: none !important;
}

.benefits-carousel .carousel-control-prev::before {
  content: "" !important;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://d8yy0r0qfxgnb.cloudfront.net/public/uploads/e7b2094b44cf0e79d0dedfc36b6ea239/images/files/2726c7696df3ff60ebc5d464467a4803/medium/arrow_back_1.png?1784112510") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.benefits-carousel .carousel-control-next::before {
  content: "" !important;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://d8yy0r0qfxgnb.cloudfront.net/public/uploads/e7b2094b44cf0e79d0dedfc36b6ea239/images/files/6a357517411ac92e6bda72a7e251728a/medium/arrow_back.png?1784112510") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.benefits-carousel .carousel-item .row {
  justify-content: center !important;
}

.benefits-carousel .carousel-item-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start!important;
  text-align: left !important;       
  margin-bottom: 20px;  
  padding: 0 40px;
}

.benefits-carousel .carousel-item-block-image {
  display: block !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 50px !important;
  object-fit: cover !important;
}

.benefits-carousel .carousel-caption {
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  padding-top: 15px !important;     
  padding-bottom: 15px !important; 
}

.benefits-carousel .carousel-item-caption-header {
  text-align: left !important;
  margin: 0 auto !important;
}

.accordion-item {
  border: none;
}

.accordion-button:not(.collapsed) {
    background: none;
    border: none;
    box-shadow: none;
}

.accordion-item .accordion-collapse.collapse.show {
  border-bottom: 1px solid #01665e;
}

.accordion-button {
  font-size: 28px;
  border-bottom: 1px solid #01665e;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion h2 {
    margin: 0;
}

.tab-toggle p,
.toggle-styling p {
    display: flex;
    width: 100%;
    gap: 0;           
    margin: 0;          
    padding: 0;
    box-sizing: border-box;
}

.tab-toggle .button1,
.toggle-styling .button1 {
    flex: 1;            
    text-align: center; 
    box-sizing: border-box;
    white-space: nowrap; 
}

.tab-toggle a.button.button1,
.tab-toggle a.button.button1:focus,
.tab-toggle a.button.button1:visited,
.toggle-styling a.button.button1,
.toggle-styling a.button.button1:focus,
.toggle-styling a.button.button1:visited {
  border: none;
  background-color: #fff;
  border-bottom: 1px solid #fff;
  padding: 15px 15px;
  color: #505656;
}

.tab-toggle,
.toggle-styling {
  border-bottom: 1px solid #e9ebeb;
  margin-top: -1px;
}

.tab-toggle a.button.button1:hover,
.tab-toggle a.button.button1.active,
.toggle-styling a.button.button1:hover,
.toggle-styling a.button.button1.active {
  color: var(--opal-green);
  border-bottom: 1px solid var(--opal-green);  
  padding: 15px 15px;
  border-radius: 0;
}

.tab-toggle .col-md-12,
.tab-toggle .container-fluid {
  padding: 0;
}

.tab-toggle.p-b-15 {
  padding-bottom: 0 !important;
}


/* Mobile Tab Fix for .tab-toggle and .toggle-styling */
@media (max-width: 768px) {
  /* 1. Track setup: Single horizontal scrolling row */
  .tab-toggle p,
  .toggle-styling p {
    display: flex !important;
    flex-wrap: nowrap !important;       /* Prevents tabs from stacking into rows */
    overflow-x: auto !important;         /* Enables side-swiping/scrolling */
    -webkit-overflow-scrolling: touch;   /* Smooth physics scrolling on iOS */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;               /* Hides scrollbar on Firefox */
    width: 100% !important;
    margin: 0 !important;
  }

  /* 2. Hide Webkit (Chrome/Safari) scrollbars for clean visual UI */
  .tab-toggle p::-webkit-scrollbar,
  .toggle-styling p::-webkit-scrollbar {
    display: none !important;
  }

  /* 3. Tab Buttons: Maintain auto width without shrinking */
  .tab-toggle .button1,
  .toggle-styling .button1 {
    flex: 0 0 auto !important;          /* Keeps original label widths */
    width: auto !important;
    scroll-snap-align: start;
  }

  /* 4. Touch Targets & Spacing */
  .tab-toggle a.button.button1,
  .toggle-styling a.button.button1 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;     /* Prevents text from breaking onto 2 lines */
    min-height: 48px !important;         /* Accessibility touch target height */
    padding: 12px 20px !important;      /* Comfortable side-padding on mobile */
  }
}

@media (min-width: 768px) {
  /* 1. Enable flex wrapping and row/column gaps */
  .tab-toggle p,
  .toggle-styling p,
  .tab-toggle .page-block p,
  .toggle-styling .page-block p {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important; /* Ensures perfectly equal spacing horizontally and vertically */
  }

  /* 2. Target the correct anchor button classes */
  .tab-toggle a.button.button1,
  .toggle-styling a.button.button1 {
    flex: 1 1 auto !important; /* Allows items to shrink/grow equally while filling lines */
    white-space: normal !important; /* Allows text to wrap inside buttons if needed */
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.grid-select img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.grid-select a {
  color: #000000;
}

.popup3 .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    line-height: 46px!important;
}

.page-body.page.not-editing .page-row.popup1,
.page-body.page.not-editing .page-row.popup2,
.page-body.page.not-editing .page-row.popup3 {
    display: none !important;
}

body.am-modal-open {
    overflow: hidden !important; 
}

body.am-modal-open .am-modal-active,
body.am-modal-open .am-modal-active:has(~ *),
body.am-modal-open :has(> .am-modal-active) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important; 
}

#amCustomBackdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999990 !important;
    display: none;
    cursor: pointer;
}
#amCustomBackdrop.is-active {
    display: block !important;
}

#amCustomCloseBtn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 55px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 999999 !important;
    line-height: 1;
}

.page-body.page.not-editing .page-row.am-modal-active {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999995 !important;
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    width: 90% !important;
    max-width: 920px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
}

.page-row.am-modal-active .video-container,
.page-row.am-modal-active [class*="video"] {
    position: relative !important;
}

.page-row.am-modal-active [class*="play"],
.page-row.am-modal-active .vjs-big-play-button,
.page-row.am-modal-active .video-play-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
}

.video-block-new p:first-child {
  margin-bottom: 0;
}

.title-banner .block-image-cover {
  height: 400px;
}

.top-80 .block-image-cover {
  background-position: 50% 20%!important;
}

.top-60 .block-image-cover {
  background-position: 50% 64%!important;
}

.title-banner .block-image-cover {
    .block-image-text {
        top: 80%;
    }
}

.page-row.scroll-text .scroll-char {
    color: rgba(255, 255, 255, 0.25); 
    transition: color 0.15s ease-out;
    display: inline;
}

.page-row.scroll-text .scroll-char.is-active {
    color: #ffffff; 
}

.accordion-button:not(.collapsed) {
    color: #212529;
}

.block-job-search-results {
    & .job-search-results {
        table, .table-counts {
            font-size: 100%;
        }
    }
}

.block-job-description .job-title {
    display: none;
}

.side-panel {
  padding-bottom: 30px;
}

.am-nav-col a:hover {
  text-decoration: none;
}

.am-nav-col a,
.am-nav-col a:hover,
.am-nav-col a:visited {
  color: #fff;
}

.block-jobs {
    .job {
        margin-bottom: 15px;
    }
}

.side-panel .block-jobs {
    .job {
        border: 1px solid #e2e4e4;
        padding: 15px;
        box-shadow: var(--bs-box-shadow-sm) !important;
    }
}

.side-panel .block-jobs .job_spacer {
  display: none;
}

/* Modal */

.modal-content {
  top: 100px;
}

.consent-modal {
    & .image-wrapper {
        img {
            max-height: 25px;
        }
    }
}

/* Job Search */

.job-search-control {
    .near-me-control {
        margin-left: 15px;
    }
}

@media (max-width: 767px) {
  /* 1. Flex container layout setup */
  .job-search-control .input-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  /* 2. Override inline inline-style on easy-autocomplete wrapper */
  .job-search-control .easy-autocomplete.fix-autocomplete {
    width: 100% !important;
    flex: 0 0 100%;
    margin-bottom: 0.5rem; /* Space between input and buttons */
  }

  /* 3. Force input field inside to span 100% */
  .job-search-control .easy-autocomplete input {
    width: 100% !important;
  }

  /* 4. Make each button container take 50% width */
  .job-search-control .input-group-btn {
    flex: 1 0 calc(50% - 0.5rem); /* Splitting width equally with gap allowance */
    display: block;
  }

  /* Optional: Spacing gap between the two buttons */
  .job-search-control .input-group-btn:first-of-type {
    margin-right: 0.5rem;
  }
  .job-search-control .input-group-btn:last-of-type {
    margin-left: 0.5rem;
  }

  /* 5. Ensure buttons fill their parent containers fully */
  .job-search-control .btn,
  .job-search-control .near-me-control {
    width: 100% !important;
    display: block;
  }

    .job-search-control .btn {
      padding: 15px 10px !important;
    }

  .job-search-control {
    .near-me-control {
        margin-left: 0;
    }
  }

  .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    width: 100% !important;
 }

  .job-search-control .form-control {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.iti {
  width: 100%;
}

.row {
    margin-right: -9px;
    margin-left: -9px;
}

/* Mobile Padding */
@media (max-width: 767px) {
  .p-b-60 {
      padding-bottom: 30px !important;
  }
  
  .p-t-60 {
      padding-top: 30px !important;
  }

  .scroll-text .block-image-cover {
    height: 400px;
  }
}

.page-link {
  color: #01665e;
}

.page-link:hover {
  color: #01665e;  
  font-weight: 800;
}

.call-to-action-create p {
  text-align: center;
}

.carousel-item-next, .carousel-item-prev, .carousel-item.active {
  min-height: 170px;
}

@media (min-width: 767px) {
  .benefits-carousel .carousel-item-block { 
    border-left: 1px solid #e3e3e3;
  }
}

.carousel-control-next, .carousel-control-prev {
  width: 3%;
}

.carousel-control-next, .carousel-control-prev {
  z-index: 10;
}

@media (max-width: 767px) {
  .five-col .col-md-2 {
    padding-bottom: 40px;
  }
}


/* 1. Set the image container as a positioning context */
.scroll-text .block-image-cover,
.green-overlay .block-image-cover {
  position: relative !important;
  z-index: 1;
}

@media (max-width: 767px) {
.green-overlay .block-image-cover {
    min-height: 500px;
  }
}

/* 2. Create the #00665e overlay between the background image and text */
.scroll-text .block-image-cover::after,
.green-overlay .block-image-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Brand color #00665e with 60% opacity (adjust decimal 0.1 to 0.9 as needed) */
  background-color: rgba(0, 102, 94, 0.6); 
  
  /* Sits directly behind text, over the image */
  z-index: 2; 
  pointer-events: none;
}

/* 3. Elevate the text wrapper above the overlay layer */
.scroll-text .block-image-text,
.green-overlay .block-image-text {
  position: relative !important;
  z-index: 3 !important;
}

.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), 
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control, 
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select, 
.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.job-search-results {
    input.form-control {
        border-radius: 2px;
    }
}

.form-control {
  border-radius: 2px;
}

.selectize-input {
  border-radius: 2px;
}

.opacity-p p:last-child {
    opacity: .5;
}

/* uppercase */

.uppercase strong {
  text-transform: uppercase;
  font-weight: 400;
}


small {
  color: #00665e;
}

.apprentices h3 {
  margin-bottom: 0;
}

@media (min-width: 768px) {
    .apprentices h3 {
      size: 32px;
      line-height: 35px;
      margin-bottom: 0;
    }
}

@media (min-width: 992px) {
  .green-overlay.header .block-image-text {
     width: 792px;
  }
}

@media (min-width: 767px) {
    .img-large .col-md-6, .img-large .col-md-4, .img-large .col-md-8 {
        .block-image-cover {
            height: 700px;
        }
    }
}

@media (min-width: 992px) {
  .width-792 .page-block {
    width: 792px;
    margin: 0 auto;
  }
}

  .width-1142 .container {
    max-width: 1142px;
  }
}

.section1 em,
.section2 em,
.section3 em,
.section4 em,
.section5 em,
.section6 em,
.section7 em,
.section8 em,
.section9 em,
.section10 em {
  font-size: 18px;
  text-transform: uppercase;
  font-style: normal;
}

.badge {
  background-color: var(--modern-blue-1) !important;
}

/* Mobile First: Paragraph is always visible */
.custom-carousel1 .carousel-item-caption-detail p {
  opacity: 1;
  visibility: visible;
  max-height: none;
}

/* Desktop Only: Hide and only reveal on hover */
@media (min-width: 992px) and (hover: hover) {
  .custom-carousel1 .carousel-item-caption-detail p {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .custom-carousel1 .carousel-item-block:hover .carousel-item-caption-detail p {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }

  .custom-carousel1 .carousel-item-block:hover .carousel-item-caption-detail p {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }
}

.custom-carousel1 .carousel-item-block:hover .carousel-caption {
  background: #006662 !important;
}

.custom-carousel1  .carousel-control-prev,
.custom-carousel1  .carousel-control-next {
  top: auto !important;
  bottom: 0px !important; 
  width: 30px !important;   
  height: 30px !important;  
  opacity: 0.8 !important;
  background-color: transparent !important; 
  transition: opacity 0.2s ease;
}

.custom-carousel1  .carousel-control-prev {
  left: 0 !important;
}

.custom-carousel1  .carousel-control-next {
  right: 0 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

.custom-carousel1  .carousel-control-prev-icon,
.custom-carousel1 .carousel-control-next-icon {
  display: none !important;
}

.custom-carousel1 .carousel-control-prev::before {
  content: "" !important;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://d8yy0r0qfxgnb.cloudfront.net/public/uploads/e7b2094b44cf0e79d0dedfc36b6ea239/images/files/2726c7696df3ff60ebc5d464467a4803/medium/arrow_back_1.png?1784112510") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.custom-carousel1  .carousel-control-next::before {
  content: "" !important;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("https://d8yy0r0qfxgnb.cloudfront.net/public/uploads/e7b2094b44cf0e79d0dedfc36b6ea239/images/files/6a357517411ac92e6bda72a7e251728a/medium/arrow_back.png?1784112510") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

@media (min-width: 767px) {
  .custom-carousel1 .carousel-inner {
    height: 269px;
  }
}

@media (min-width: 992px) {
    .custom-carousel1 .carousel-inner {
        height: 350px;
    }
}

@media (min-width: 1200px) {
    .custom-carousel1 .carousel-inner {
        height: 372px;
    }
}

@media (min-width: 1400px) {
    .custom-carousel1 .carousel-inner {
      height: 490px; 
    }
}

@media (max-width: 1200px) {
  .custom-carousel1 .carousel-item-caption-header {
      font-size: 18px!important;
      line-height: normal !important;
    margin: 0!important;
  }

  .custom-carousel1 h2 {
    margin: 0!important;
    font-size: 18px;
    line-height: normal !important;
  }
}


/* Boostrap Changes */

@media (min-width: 1400px) {
    .container {
      max-width: 1500px;
    }
}

.p-b-60 {
    padding-bottom: 150px !important;
}

.p-t-60 {
    padding-top: 150px !important;
}

/* Right Image */
    @media (min-width: 768px) {
      .full-right .col-md-6:first-child {
          /* Adjust the left margin for the left column to start its content from a desired position (considering a 12-column grid) */
          margin-left: calc((100% - 750px) / 2);
          
          /* Control the maximum width of the left column content */
          max-width: calc(750px / 12 * 6);
          padding-right: 80px;
      }
    }
    
    @media (min-width: 992px) {
      .full-right .col-md-6:first-child {
          /* Adjust the left margin for the left column to start its content from a desired position (considering a 12-column grid) */
          margin-left: calc((100% - 970px) / 2);
          
          /* Control the maximum width of the left column content */
          max-width: calc(970px / 12 * 6);
      }
    }
    
    @media (min-width: 1200px) {
      .full-right .col-md-6:first-child {
          /* Adjust the left margin for the left column to start its content from a desired position (considering a 12-column grid) */
          margin-left: calc((100% - 1170px) / 2);
          
          /* Control the maximum width of the left column content */
          max-width: calc(1170px / 12 * 6);
      }
    }
    
    @media (min-width: 1400px) {
      .full-right .col-md-6:first-child {
          /* Adjust the left margin for the left column to start its content from a desired position (considering a 12-column grid) */
          margin-left: calc((100% - 1320px) / 2);
          
          /* Control the maximum width of the left column content */
          max-width: calc(1320px / 12 * 6);
      }
    }

/* Left */
@media (min-width: 768px) {
  .full-left .col-md-6:last-child {
      margin-right: calc((100% - 750px) / 2);
      margin-left: auto;
      max-width: calc(750px / 12 * 6);
      padding-left: 80px;
  }
}

@media (min-width: 992px) {
  .full-left .col-md-6:last-child {
      margin-right: calc((100% - 970px) / 2);
      margin-left: auto;
      max-width: calc(970px / 12 * 6);
  }
}

@media (min-width: 1200px) {
  .full-left .col-md-6:last-child {
      margin-right: calc((100% - 1170px) / 2);
      margin-left: auto;
      max-width: calc(1170px / 12 * 6);
  }
}

@media (min-width: 1400px) {
  .full-left .col-md-6:last-child {
      margin-right: calc((100% - 1320px) / 2);
      margin-left: auto;
      max-width: calc(1320px / 12 * 6);
  }
}

@media (max-width: 767px) {
  .am-reverse-mobile {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

.five-col .page-row-border > div:nth-child(6) {
  display: none !important;
}

@media (min-width: 767px) {
    .five-col .clinch-video-player.video-js {
        height: 200px;
    }

    .height1 .clinch-video-player.video-js {
        height: 300px;
    }

  .two-video .row {
    display: flex;
    justify-content: center;
  }
  .two-video .col-md-6 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

span.vjs-icon-placeholder {
    line-height: unset;
}

@media (min-width: 768px) {
  /* Full-Left Layout: Left image reaches exact center */
  .full-left .col-md-6:first-child {
    padding-right: 0 !important;
  }
  .full-left .col-md-6:first-child .block-image {
    margin-right: 0 !important;
  }

  /* Full-Right Layout: Right image starts at exact center */
  .full-right .col-md-6:last-child {
    padding-left: 0 !important;
  }
  .full-right .col-md-6:last-child .block-image {
    margin-left: 0 !important;
  }
}