/* ==========================================================================
   Page New Template (templates/page-new-template.php)
   Moved out of an inline <style> that printed after the footer, which applied
   these rules late and caused layout shift. Enqueued in <head> from functions.php.
   ========================================================================== */

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.embed-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    max-width: 100%; 
} 

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

@media (max-width: 781px) {
    .is-style-reverse-on-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .is-style-reverse-on-mobile > .wp-block-column {
        margin-left: 0;
        margin-right: 0;
    }
}

.fullwidth-block {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    overflow: visible;
}

/* Update the fullwidth-block-inner class */
.fullwidth-block-inner {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Remove the specific fullwidth style for group blocks */
.fullwidth-block .wp-block-group.is-style-fullwidth {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.fullwidth-background {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 50vw;
    padding-right: 50vw;
}

.widewidth-block {
    width: calc(100% + 80px);
    position: relative;
    left: -40px;
}

@media (max-width: 1024px) {
    .widewidth-block {
        width: calc(100% + 40px);
        left: -20px;
    }
}

@media (max-width: 767px) {
    .widewidth-block {
        width: 100%;
        left: 0;
    }
}

/* Add more space between fullwidth blocks */
.fullwidth-block + .fullwidth-block {
    margin-top: -3rem;
}

/* RankMath FAQ Accordion Styles */
.rank-math-list-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.rank-math-question {
    background-color: #f7fafc;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
    transition: background-color 0.3s ease;
}

.rank-math-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.rank-math-question.active {
    background-color: #e2e8f0;
}

.rank-math-question.active::after {
    transform: rotate(45deg);
}

.rank-math-answer {
    background-color: #ffffff;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.rank-math-answer.active {
    padding: 1rem;
    max-height: 1000px;
    background-color: #e2e8f0;
}

/* Remove extra space before footer */
.entry-content > *:last-child {
    margin-bottom: 0 !important;
}

.entry-content {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.desktop-padding {
    padding-left: 2rem;
    padding-right: 2rem;
}

main.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Adjust fullwidth block margins */
.fullwidth-block:last-child {
    margin-bottom: 0 !important;
}

/* Add space inside the footer */
footer {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* Remove any potential gap between main content and footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.site-main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 7px 0 !important;
    padding: 0.2em 1em !important;
}

/* Button styles */
.wp-block-button__link,
.wp-element-button {
    transition: opacity 0.3s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    opacity: 0.9;
    background-color: inherit !important;
}

/* Override any default hover styles that might be changing the background */
.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button__link:focus,
.wp-element-button:focus,
.wp-block-button__link:active,
.wp-element-button:active {
    background-color: inherit !important;
    color: inherit !important;
}

/* Award Logos */
.award-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.award-logos .wp-block-image {
    flex: 0 0 calc(20% - 24px);
    max-width: calc(20% - 24px);
    margin: 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-logos img {
    filter: grayscale(100%) contrast(200%);
    transition: filter 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.award-logos img:hover {
    filter: none;
}

@media (max-width: 768px) {
    .award-logos .wp-block-image {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
        height: 80px;
    }
}

@media (max-width: 480px) {
    .award-logos .wp-block-image {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
        height: 60px;
    }
}

.absolute.inset-0 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-full.h-full.object-cover {
    object-position: top;
}

/* Modern header styles */
.relative.text-white.overflow-hidden {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.absolute.inset-0.z-0 img {
    filter: blur(5px);
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.bg-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Hover effect for the background image */
.relative.text-white.overflow-hidden:hover .absolute.inset-0.z-0 img {
    transform: scale(1.15);
}

/* Hero section styles */
.page-template-page-new-template .hero-section {
    position: relative;
    overflow: hidden;
}

.page-template-page-new-template .hero-section.bg-grey-250 {
    background-color: #eeeeef;
}

.page-template-page-new-template .cta-section {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Button styles */
.page-template-page-new-template .btn {
    transition: all 0.3s ease;
}

.page-template-page-new-template .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.entry-content p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

body:not(.page-template-page-new-template) .entry-content > div {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.page-template-page-new-template .entry-content > .entry-content-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.page-template-page-new-template .entry-content > .fullwidth-block {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.first-fullwidth-block {
    margin-top: 0rem !important;
}

/* Tighter vertical alignment between hero and first content block */
.first-content-block {
    margin-top: 1.5rem !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.page-template-page-new-template .hero-section h1 {
    color: #53535f;
}

/* Breadcrumb styling */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-nav a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.breadcrumb-nav .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #a0aec0;
}

.breadcrumb-nav .breadcrumb-current {
    font-weight: 600;
    color: #718096;
}

/* Make sure the breadcrumb links don't break in awkward places */
.breadcrumb-nav span, 
.breadcrumb-nav a {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .breadcrumb-nav {
        font-size: 0.75rem;
    }
}

/* WordPress block group inner container spacing for medium screens and up */
@media (max-width: 768px) {
    .wp-block-group__inner-container.is-layout-constrained {
        padding: 1rem;
    }
}


/* Blocks that add .sf-flush (their full-width layout) stack edge to edge:
   no gap under the header or between each other. */
.entry-content > :has(> .sf-flush) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
