.section-break {
    height: 8rem;
}

header {
    width: 100vw;
}

header #primary-menu li > a {
    padding-bottom: 20px;
    padding-top: 20px;
    position: relative;
	color: white;
}

.scrolled-header #primary-menu li > a {
	color: var(--wp--preset--color-text);
}

.transparent-header .menu-item-has-children > a:after {
    -webkit-filter: invert(0%); /* For Safari 6.0 - 9.0 */
    filter: invert(0%);
}


.scrolled-header .light-logo {
  display: none;
  opacity: 0;
}

.scrolled-header .dark-logo {
  display: block;
  opacity: 1;
}

#hero-section {
    color: white;
    position: relative;
    top: 0;
    height: 600px;
    padding-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 25, 45, 0.7) 0%, rgba(0, 25, 45, 0.7) 40%, rgba(0, 0, 75, 0.0) 100%);
    /* Black overlay with 50% opacity */
}

#hero-section .hero-content {
    width: 90%;
    max-width: 1600px;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

#hero-section .hero-text p {
    font-size: 22px;
}

#hero-section .hero-text a {
    width: fit-content;
}

#hero-section .hero-accent {
    position: absolute;
    bottom: -40px;
    right: 100px;
    padding: 24px;
    display: grid;
    grid-template: 1fr 1fr / auto 1fr;
    gap: 30px;
    background-color: var(--wp--preset--color--dark-blue);
    font-weight: 450;
}
#hero-section .hero-accent>div  {
    display: flex;
    align-items: center;
    gap: 10px;
}
#hero-section .hero-accent svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

h1,
h2,
h3 {
    margin: 0;
}

#about-section {
    background-color: var(--wp--preset--color--bg-blue);
    padding-top: 130px;
    padding-bottom: 100px;
    width: 100vw;
}

#about-section h2 {
    text-align: center;
}

#about-section p {
    line-height: 1.8;
}

.heading-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.heading-with-lines h2 {
    position: relative;
    z-index: 1;
    /* Match the background color of the container */
    padding: 0 20px;
    /* Adjust space around text to avoid overlapping with lines */
}

.heading-with-lines::before,
.heading-with-lines::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    /* Thickness of the line */
    background-color: var(--wp--preset--color--blue);
    /* Color of the line */
    margin: 0 20px;
    /* Space between text and lines */
}

.iframe-container {
    position: relative;
    width: 100%;
    /* Full width of the container */
    padding-top: 56.25%;
    /* Aspect ratio of 16:9 (9 / 16 = 0.5625) */
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.blue-radial.top {
    top: -100px;
    right: -70%;
}
.blue-radial.bottom {
    bottom: -100px;
    left: -50%;
}

#timeline-container,
#timeline-section {
    position: relative;
}

#timeline-section {
    overflow-y: visible;
    overflow-x: clip;
    position: relative;
}


#timeline-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#timeline-section .image-container {
    padding-left: 24px;
    padding-right: 24px;
}

#timeline-section .image-container-mobile {
    display: none;
} 

.timeline-section {
    display: grid;
    grid-template-columns: 1fr min-content 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 4px;
    ;
    position: relative;
    transform: rotate(45deg);
}

.timeline-text-content {
    background-color: white;
    margin: 24px;
    padding: 12px 24px;
    font-size: 16px;
}

.timeline-text-content> :nth-child(1) {
    margin: 0;

}


.timeline-text-content> :nth-child(4) {
    font-size: 0.9rem;
    margin: 0px;
}


.icon-container {
    position: relative;
}

.icon-container svg {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-container::before {
    content: "";
    /* Required for ::after to show */
    position: absolute;
    top: 30%;
    /* Center the line vertically */
    left: 0px;
    /* Extend 20px to the left beyond the square */
    right: -40px;
    /* Extend 20px to the right beyond the square */
    height: 2px;
    /* Example thickness of the line */
    background-color: var(--wp--preset--color--blue);
    /* Line color */
    transform: translateY(-50%);
    /* Ensure the line is perfectly centered */
    z-index: -10;
}

.icon-container::after {
    content: "";
    /* Required for ::after to show */
    position: absolute;
    top: 70%;
    /* Center the line vertically */
    left: -40px;
    /* Extend 20px to the left beyond the square */
    right: 0px;
    /* Extend 20px to the right beyond the square */
    height: 2px;
    /* Example thickness of the line */
    background-color: var(--wp--preset--color--blue);
    /* Line color */
    transform: translateY(-50%);
    /* Ensure the line is perfectly centered */
    z-index: -10;
}

.vertical-line {
    position: absolute;
    left: 50%;
    /* Center the line horizontally */
    top: 0;
    /* Start from the top edge of the container */
    height: 100%;
    /* Stretch to the bottom edge of the container */
    width: 2px;
    /* Width of the line */
    background-color: var(--wp--preset--color--blue);
    /* Line color */
    transform: translateX(-50%);
    /* Ensure it's perfectly centered horizontally */
}

.ball {
    position: absolute;
    width: 6px;
    /* Diameter of the ball */
    height: 6px;
    /* Diameter of the ball */
    background-color: var(--wp--preset--color--blue);
    /* Ball color */
    border-radius: 50%;
    /* Make it circular */
    left: 50%;
    /* Center the ball on the line */
    transform: translateX(-50%);
    /* Adjust horizontal centering */
}

.ball.top {
    top: -3px;
    /* Move the top ball so that its center aligns with the top edge of the container */
}

.ball.bottom {
    bottom: -3px;
    /* Move the bottom ball so that its center aligns with the bottom edge of the container */
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 340px);
    justify-content: center;
    gap: 32px;
}

.card p {
    margin: 0;
    z-index: 10;
}

.chevron {
    padding-left: 12px;
    fill: white;
    /* Adjust color as needed */
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card-subtitle {
    font-size: 0.9rem;
}

.card-link {
    display: inline-block;
    text-decoration: none;
    width: min-content;
}

.card:hover {
    transform: scale(1.05);
    /* Scale up on hover */

}

.card {
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 20px;
    gap: 0px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 200px;
    width: 300px;
}

#orc {
    background-image: url(https://hcana.com/wp-content/uploads/2024/04/orc-center-front.webp);
}

#krc {
    background-image: url(https://hcana.com/wp-content/uploads/2024/04/krc-center-front.webp);
}

#adc {
    background-image: url(https://hcana.com/wp-content/uploads/2024/04/adc-center-front.webp);
}

#orr {
    background-image: url(https://hcana.com/wp-content/uploads/2024/04/orr-center-front.webp);
}

#ecr {
    background-image: url(https://hcana.com/wp-content/uploads/2024/04/ecr-center-front.webp);
}

#orc-ii {
    background-image: url(https://hcana.com/wp-content/uploads/2024/05/oasis-two-front-768x432.jpg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 49.84%, rgba(0, 0, 0, 0.68) 100%);
    pointer-events: none;
    /* Ensures the gradient layer doesn't interfere with clicking */
}

#our-centers-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

#our-centers-section .map-section {
    margin-top: 8rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 3rem;
}

#our-centers-section .map-section #centers-map {
    width: 100%;
}

#testimonials-section {
	overflow-x: clip;
}

.testimonials {
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    padding: 30px;
    max-width: min(90vw, 300px);
    background-color: white;
}

.testimonial .reviewer {
    margin: 0;
    font-weight: 600;
}

.testimonial .location {
    margin: 0;
    font-weight: 300;
    font-size: 14px;
}

.testimonial .top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial .review {
    margin: 0;
    padding: 0;
}

.masonry-container {
    column-count: 3;
    column-gap: 30px;
    width: fit-content;
    max-width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

#insurance-section > div:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center
}

#resources-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

#resources-section h3 button {
    cursor: pointer;
}

@media (max-width: 1000px) {
    header .light-logo {
        display: none;
    }
}

@media (max-width: 767px) {
    .masonry-container {
        column-count: 1;
    }

    #hero-section .hero-content {
        grid-template-columns: 1fr;
    }

    #hero-section {
        height: unset;
        padding-bottom: 200px;
        padding-top: 150px;
    }

    #hero-section .hero-text a {
        margin-left: auto;
        margin-right: auto;
    }

    #hero-section::after {
        background: rgba(0, 10, 25, 0.70);
    }

    #hero-section .hero-accent {
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%); 
        width: 90%;
        padding: 16px;
        grid-template: 1fr 1fr / 1fr 1fr;
        gap: 5px;
    }

    #about-section {
        padding-top: 180px;
    }

    #about-section div.row-50-50 {
        grid-template-columns: 1fr;
    }

    .section-break {
        height: 50px;
    }

    #timeline-section .image-container {
        display: none;
    } 

    #timeline-section .image-container-mobile {
        display: block;
        margin-bottom: 12px;
    } 

    #timeline-section .image-container-mobile img {
        border-radius: 10px 10px 0px 0px;
        box-shadow: unset;
    } 

    #timeline-section .icon-container::after {
        display: none;
    }

    #timeline-section .timeline-section {
        display: flex;
    }

    #timeline-section .timeline-section.alt {
        flex-direction: row-reverse;
    }

    #timeline-section .timeline-text-content {
        padding: 0px;
        padding-bottom: 12px;
        margin-right: 8px;
    }

    #timeline-section .timeline-text-content p,
    #timeline-section .timeline-text-content h3 {
        padding-left: 24px;
        padding-right: 24px;
    }

    #timeline-section .vertical-line {
        left: 38px;
    }

    #our-centers-section .card-container {
        grid-template-columns: unset;
    }

    #our-centers-section .map-section {
        display: flex;
        flex-direction: column-reverse;
    }

    #insurance-section > div:first-of-type {
        display: flex;
        flex-direction: column;
    }

    #resources-section {
        display: flex;
        flex-direction: column-reverse;
    }
}