/* CSS Variables for better maintainability and browser support */
:root {
    --primary-color: #07074D;
    --accent-color: #eabce4;
    --accent-color-light: #eabce428;
    --background-color: #e7e7e7;
    --text-color: #07074D;
    --white: #fff;
    --shadow-light: 0 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 15px 30px rgba(0, 0, 0, 0.3);
    --transition-smooth: 0.5s ease;
    --border-radius: 10px;
    --font-family: "Barlow Condensed", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    /* Use rem instead of medium for better accessibility */
    line-height: 1.5;
    /* Add line-height for better readability */
    overflow-x: hidden;
    margin: 0;
    color: var(--text-color);
}

footer {
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    padding: 4rem;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Improved focus indicators for accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Better focus for interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(234, 188, 228, 0.3);
}

/*---- Wraps & Flexbox ----*/
.bae_section_left {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.bae_footer_social {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.bae_flex_row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
}

.bae_section_right {
    display: flex;
    flex-direction: row-reverse;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.bae_nav_wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 2px solid var(--accent-color);
}

.bae_contact_social {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2vw;
    align-items: center;
}

.bae_pink_bg {
    background-color: var(--accent-color-light);
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bae_social_wrap {
    display: flex;
    flex-direction: row;
    gap: 1vw;
}

.bae_services_wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 1.5rem;
    flex: 3;
}

.bae_services_list {
    margin-left: 15px;
}

.bae_events_wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.2rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    flex: 3;
}

.bae_partner_wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    flex: 3;
}

.bae_event_details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 20px;
    margin-top: -30px;
}

.bae_services_img_text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.bae_about_wrap {
    background-color: var(--background-color);
    height: 10rem;
    margin: 0;
    padding: 0.1rem;
    border-bottom: 2px solid var(--accent-color);
}

.bae_services_block {
    margin: 10px;
    width: 302px;
}

.bae_events_block {
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-medium);
    margin: 10px;
    width: 720px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    background-color: var(--white);
}

.bae_partner_block {
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-medium);
    margin: 10px;
    width: 320px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: var(--white);
}

.bae_events_block:hover,
.bae_partner_block:hover,
.bae_events_block:focus-within,
.bae_partner_block:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.bae_block_header_1 {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding-top: 1rem;
    padding-left: 8%;
    text-align: left;
    flex: 1;
}

.bae_block_header_2 {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding-top: 1rem;
    padding-left: 8%;
    text-align: right;
    flex: 1;
}

.bae_team_wrap {
    padding: 20px;
    margin: 0 auto;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    flex: 3;
    padding-left: 8%;
}

.bae_member {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: start;
    gap: 20px;
    background-color: var(--accent-color-light);
    box-shadow: var(--shadow-medium);
    padding: 20px;
    height: auto;
    width: 720px;
}

.bae_footer_layer_1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: var(--background-color) 1px solid;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    align-content: center;
}

.bae_footer_layer_2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    align-content: center;
}

.bae_footer_info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    gap: 0.5rem;
}

.bae_footer_nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
}

.bae_main_nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    gap: 1rem;
}

.privacy_policy_wrap {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 3rem;
}

/*---- Images ----*/
.bae_home_logo {
    width: 150px;
    margin-left: 2rem;
}

.bae_social_icon {
    width: 40px;
    height: 40px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    background-image: linear-gradient(to bottom right, #f0eff4, var(--accent-color));
    box-shadow: var(--shadow-light);
    border-radius: 18px;
}

.bae_social_icon:hover,
.bae_social_icon:focus {
    transform: scale(1.1);
    /* Slightly enlarges the image on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bae_services_img {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    padding: 5px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    background-image: linear-gradient(to bottom right, #f0eff4, var(--accent-color));
    box-shadow: var(--shadow-light);
    margin-top: 18px;
    margin-right: 18px;
}

.bae_services_img:hover,
.bae_services_img:focus {
    transform: scale(1.1);
    /* Slightly enlarges the image on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bae_minus_img {
    height: 20px;
    margin-right: 19px;
}

.bae_member_img {
    width: 225px;
    height: 340px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bae_events_img {
    width: 300px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.bae_partner_image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bae_footer_social_icon {
    width: 20px;
    height: 20px;
}

/*---- Text & Fonts ----*/
.bae_header_primary {
    text-shadow: none;
    animation: flickerAnimation 1.5s linear 1;
    animation-delay: 0s;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

.bae_header_sub {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    opacity: 0;
    animation: fadeInSubHeader 1s ease-in-out 1;
    animation-delay: 5s;
    animation-fill-mode: forwards;
}

.bae_h2 {
    font-size: clamp(3rem, 8vw, 8rem);
    /* Responsive font size */
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    margin: 0;
    padding: 0;
}

.bae_h3 {
    color: var(--primary-color);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    /* Responsive font size */
}

.bae_h3_center {
    color: var(--primary-color);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    /* Responsive font size */
    font-weight: 500;
    text-align: center;
}

.bae_p {
    color: var(--primary-color);
    font-size: clamp(0.875rem, 2vw, 1rem);
    /* Responsive font size */
    text-wrap: wrap;
    max-width: 65ch;
    /* Limit line length for better readability */
}

.bae_footer_nav_item {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    /* Responsive font size */
    font-weight: bolder;
    color: var(--white);
    text-decoration: none;
}

.bae_main_nav_item {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    /* Responsive font size */
    font-weight: bolder;
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color var(--transition-smooth);
    margin: 0 10px;
    border-radius: 4px;
    /* Add slight border radius for better visual appearance */
}

.bae_main_nav_item:hover,
.bae_main_nav_item:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

/*---- buttons ----*/
.bae_contact_button {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    color: var(--white);
    font-weight: bolder;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    /* Responsive font size */
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    border-radius: 4px;
    /* Add border radius for modern appearance */
    font-family: inherit;
    /* Ensure button inherits font family */
    text-decoration: none;
    /* Remove underline if used as link */
    display: inline-block;
    /* Better for spacing */
}

.bae_contact_button:hover,
.bae_contact_button:focus {
    background-color: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.bae_hero {
    width: 100vw;
    height: 75vh;
    text-align: center;
    color: #CCC;
    position: relative;
    text-transform: uppercase;
}

.bae_hero_one {
    transition: background-image 1s ease-in-out;
    top: 0;
    position: absolute;
    width: 60%;
    background-color: black;
    height: 75vh;
    clip-path: polygon(0 0, 60vw 0, 40vw 100vh, 0 100vh);
    z-index: 1;
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(/public/images/CDN/hero_images/hero_left1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bae_hero_two {
    transition: background-image 1s ease-in-out;
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    background-color: green;
    height: 75vh;
    background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .5)), url(/public/images/CDN/hero_images/hero_right1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bae_header_title {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bae_header_primary {
    font-size: clamp(3rem, 10vw, 8rem);
    /* Responsive font size */
    letter-spacing: 0.2rem;
    display: block;
    font-weight: 700;
}

/*---- Animations ----*/
/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    @keyframes flickerAnimation {

        0%,
        100% {
            opacity: 1;
            color: var(--accent-color);
            text-shadow: 0 0 5px, 0 0 5px #e800e8;
        }

        10% {
            opacity: 0.3;
            color: var(--accent-color);
            text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
        }

        20% {
            opacity: 1;
            color: var(--accent-color);
            text-shadow: 0 0 5px var(--accent-color), 0 0 20px var(--accent-color);
        }

        30% {
            opacity: 0.5;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
        }

        40%,
        60% {
            opacity: 1;
            color: var(--accent-color);
            text-shadow: 0 0 5px var(--accent-color), 0 0 40px #e800e8;
        }

        50% {
            opacity: 0.3;
            color: var(--accent-color);
            text-shadow: 0 0 80px #e800e8;
        }

        70% {
            opacity: 0.7;
            color: var(--accent-color);
            text-shadow: 0 0 90px #e800e8, 0 0 100px #e800e8;
        }

        80%,
        90% {
            opacity: 1;
            color: var(--accent-color);
            text-shadow: 0 0 100px #e800e8, 0 0 150px #e800e8;
        }
    }

    @keyframes fadeInSubHeader {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .bae_header_primary {
        text-shadow: none;
        animation: flickerAnimation 1.5s linear 1;
        animation-delay: 0s;
        animation-duration: 5s;
        animation-fill-mode: forwards;
    }

    .bae_header_sub {
        font-size: clamp(0.875rem, 2vw, 1.5rem);
        /* Responsive font size */
        letter-spacing: 0.1rem;
        opacity: 0;
        animation: fadeInSubHeader 1s ease-in-out 1;
        animation-delay: 5s;
        animation-fill-mode: forwards;
    }
}

/* Fallback for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bae_header_primary {
        color: var(--accent-color);
        opacity: 1;
    }

    .bae_header_sub {
        font-size: clamp(0.875rem, 2vw, 1.5rem);
        letter-spacing: 0.1rem;
        opacity: 1;
    }
}

/*---- Form Styling ----*/
.bae_form_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
    z-index: 999;
    overflow-y: auto;
    padding: 1rem; /* Add padding for mobile */
}

.bae_form_overlay.show {
    visibility: visible;
    opacity: 1;
}

.bae_form_wrap {
    background-color: var(--white);
    border: 1px solid var(--accent-color);
    border-radius: 12px; /* Rounded corners for modern look */
    padding: 2rem;
    max-width: 700px; /* Slightly wider for better field spacing */
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.bae_form_wrap.show {
    transform: translateY(0);
}

.bae_form_h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Responsive heading */
    font-weight: 600;
    margin-top: 0;
}

.bae_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Better spacing between sections */
}

/* Improved flex row for side-by-side fields */
.bae_from_flex_row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.bae_from_flex_row > div {
    flex: 1;
    min-width: 250px; /* Ensure fields don't get too narrow */
}

/* Form sections for better organization */
.bae_form_section {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.bae_form_section_title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bae_form_item {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.bae_form_input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    box-sizing: border-box;
}

.bae_form_input::placeholder {
    color: #999;
    font-style: italic;
}

.bae_text_area {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    resize: vertical;
    box-sizing: border-box;
}

.bae_text_area::placeholder {
    color: #999;
    font-style: italic;
}

.bae_main_text {
    min-height: 150px;
    resize: vertical;
}

.bae_form_input:focus,
.bae_text_area:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 188, 228, 0.2);
    background-color: #fefefe;
}

.bae_close_button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bae_close_button:hover,
.bae_close_button:focus {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.bae_form_submit {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    color: var(--white);
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(234, 188, 228, 0.3);
}

.bae_form_submit:hover,
.bae_form_submit:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 7, 77, 0.3);
}

.bae_form_message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.bae_form_message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bae_form_message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Required field indicator */
.bae_form_item.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Field grouping for related inputs */
.bae_form_group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Additional form styling classes for better organization */
.bae_form_row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bae_form_col {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their content size */
}

.bae_form_col-half {
    flex: 0 0 calc(50% - 0.5rem);
}

.bae_form_col-third {
    flex: 0 0 calc(33.333% - 0.667rem);
}

/* Select dropdown styling */
.bae_form_select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.bae_form_select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 188, 228, 0.2);
}

/* Checkbox and radio styling */
.bae_form_checkbox,
.bae_form_radio {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.bae_form_checkbox input,
.bae_form_radio input {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Error state styling */
.bae_form_input.error,
.bae_text_area.error,
.bae_form_select.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.bae_form_error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Success state styling */
.bae_form_input.success,
.bae_text_area.success,
.bae_form_select.success {
    border-color: #27ae60;
    background-color: #f8fff8;
}

/* Loading state for submit button */
.bae_form_submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.bae_form_submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .bae_form_overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .bae_form_wrap {
        padding: 1.5rem;
        margin: 0;
        border-radius: 12px 12px 0 0; /* Rounded top only on mobile */
        max-height: 95vh;
        width: 100%;
        max-width: none;
    }
    
    .bae_form_h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .bae_from_flex_row,
    .bae_form_row {
        flex-direction: column;
        gap: 0;
    }
    
    .bae_from_flex_row > div,
    .bae_form_col,
    .bae_form_col-half,
    .bae_form_col-third {
        min-width: unset;
        flex: 1;
    }
    
    .bae_form_section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .bae_form_input,
    .bae_text_area,
    .bae_form_select {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .bae_form_submit {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .bae_close_button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bae_form_wrap {
        padding: 1rem;
    }
    
    .bae_form_section {
        padding: 0.75rem;
        border-left-width: 3px;
    }
    
    .bae_form_section_title {
        font-size: 1rem;
    }
}

/* No less than 0px, no greater than 320px */
@media (min-width:0px) and (max-width:320px) {
    .bae_main_nav {
        gap: 0rem;
    }

    .bae_home_logo {
        margin-left: 0;
    }

    .bae_hero,
    .bae_hero_one,
    .bae_hero_two {
        height: 60vh;
    }

    .bae_header_primary {
        font-size: 3rem;
    }

    .bae_header_sub {
        font-size: .6rem;
    }

    .bae_services_wrap {
        padding: 0.5rem;
    }

    .bae_services_block {
        width: 302px;
    }

    .bae_h3 {
        font-size: 1.5rem;
    }

    .bae_services_img_text {
        gap: 0rem;
    }

    .bae_block_header_1,
    .bae_block_header_2 {
        padding-left: 0;
        text-align: center;
    }

    .bae_h2 {
        font-size: 3rem;
    }

    .bae_events_block {
        width: 90%;
        flex-direction: column;
    }

    .bae_events_img {
        width: 100%;
    }

    .bae_section_left,
    .bae_section_right {
        flex-direction: column;
    }

    .bae_team_wrap {
        padding-left: 0;
        padding: 0;
        align-items: center;
        flex-direction: column;
    }

    .bae_member {
        width: 90%;
        padding: 0;
        height: auto;
        flex-direction: column;
    }

    .bae_member_img {
        width: 100%;
    }

    .bae_main_text {
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .bae_p {
        margin-right: 0rem;
    }

    .bae_nav_wrap {
        flex-direction: row;
        text-align: center;
    }

    .mobile_nav_icon {
        display: flex;
    }

    /* Form styling is now handled by dedicated mobile media queries above */

    .bae_footer_layer_1 {
        flex-direction: column;
        gap: 2rem;
    }

    .bae_footer_layer_2 {
        justify-content: center;
    }

    .bae_footer_nav {
        flex-direction: column;
    }

    .bae_footer_social {
        justify-content: space-evenly;
    }

    .bae_footer_info {
        justify-content: center;
    }

    .mobile_nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile_nav a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Mobile navigation open state */
    .mobile_nav.open {
        display: flex;
    }
}

/* No less than 321px, no greater than 576px */
@media (min-width:321px) and (max-width:576px) {
    .bae_main_nav {
        gap: 0rem;
    }

    .bae_home_logo {
        margin-left: 0;
    }

    .bae_hero,
    .bae_hero_one,
    .bae_hero_two {
        height: 60vh;
    }

    .bae_header_primary {
        font-size: 3rem;
    }

    .bae_header_sub {
        font-size: .6rem;
    }

    .bae_services_wrap {
        padding: 0.5rem;
    }

    .bae_services_block {
        width: 302px;
    }

    .bae_h3 {
        font-size: 1.5rem;
    }

    .bae_services_img_text {
        gap: 0rem;
    }

    .bae_block_header_1,
    .bae_block_header_2 {
        padding-left: 0;
        text-align: center;
    }

    .bae_h2 {
        font-size: 3rem;
    }

    .bae_events_block {
        width: 90%;
        flex-direction: column;
    }

    .bae_events_img {
        width: 100%;
    }

    .bae_section_left,
    .bae_section_right {
        flex-direction: column;
    }

    .bae_team_wrap {
        padding-left: 0;
        padding: 0;
        align-items: center;
        flex-direction: column;
    }

    .bae_member {
        width: 90%;
        padding: 0;
        height: auto;
        flex-direction: column;
    }

    .bae_member_img {
        width: 100%;
        height: 400px;
        object-position: 50% 20%;
    }

    .bae_main_text {
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .bae_p {
        margin-right: 0rem;
    }

    .bae_nav_wrap {
        flex-direction: row;
        text-align: center;
    }

    .mobile_nav_icon {
        display: flex;
    }

    /* Form styling is now handled by dedicated mobile media queries above */

    .bae_footer_layer_1 {
        flex-direction: column;
        gap: 2rem;
    }

    .bae_footer_layer_2 {
        justify-content: center;
    }

    .bae_footer_nav {
        flex-direction: column;
    }

    .bae_footer_social {
        justify-content: space-evenly;
    }

    .bae_footer_info {
        justify-content: center;
    }

    .mobile_nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile_nav a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Mobile navigation open state */
    .mobile_nav.open {
        display: flex;
    }
}

/* No less than 577px, no greater than 992px */
@media (min-width:577px) and (max-width:992px) {
    .bae_main_nav {
        gap: 0rem;
    }

    .bae_home_logo {
        margin-left: 0;
    }

    .bae_hero,
    .bae_hero_one,
    .bae_hero_two {
        height: 60vh;
    }

    .bae_header_primary {
        font-size: 4rem;
    }

    .bae_header_sub {
        font-size: 1rem;
    }

    .bae_services_wrap {
        padding: 0.5rem;
    }

    .bae_services_block {
        width: 302px;
    }

    .bae_h3 {
        font-size: 1.5rem;
    }

    .bae_services_img_text {
        gap: 0rem;
    }

    .bae_block_header_1,
    .bae_block_header_2 {
        padding-left: 0;
        text-align: center;
    }

    .bae_h2 {
        font-size: 3rem;
    }

    .bae_events_block {
        width: 90%;
        flex-direction: column;
    }

    .bae_events_img {
        width: 100%;
    }

    .bae_section_left,
    .bae_section_right {
        flex-direction: column;
    }

    .bae_team_wrap {
        padding-left: 0;
        padding: 0;
        align-items: center;
        flex-direction: column;
    }

    .bae_member {
        width: 90%;
        padding: 0;
        height: auto;
        flex-direction: column;
    }

    .bae_member_img {
        width: 100%;
        height: 500px;
        object-position: 50% 20%;
    }

    .bae_main_text {
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .bae_p {
        margin-right: 1rem;
    }

    .bae_nav_wrap {
        flex-direction: column;
        text-align: center;
    }

    .mobile_nav_icon {
        display: flex;
    }

    /* Form styling is now handled by dedicated mobile media queries above */

    .mobile_nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile_nav a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Mobile navigation open state */
    .mobile_nav.open {
        display: flex;
    }
}

/* No less than 993px, no greater than 1199px */
@media (min-width:993px) and (max-width:1199px) {
    .bae_main_nav {
        gap: 0rem;
    }

    .bae_home_logo {
        margin-left: 0;
    }

    .bae_hero,
    .bae_hero_one,
    .bae_hero_two {
        height: 60vh;
    }

    .bae_header_primary {
        font-size: 4rem;
    }

    .bae_header_sub {
        font-size: 1rem;
    }

    .bae_services_wrap {
        padding: 0.5rem;
    }

    .bae_services_block {
        width: 302px;
    }

    .bae_h3 {
        font-size: 1.5rem;
    }

    .bae_services_img_text {
        gap: 0rem;
    }

    .bae_block_header_1,
    .bae_block_header_2 {
        padding-left: 0;
        text-align: center;
    }

    .bae_h2 {
        font-size: 3rem;
    }

    .bae_events_block {
        width: 90%;
    }

    .bae_section_left,
    .bae_section_right {
        flex-direction: column;
    }

    .bae_team_wrap {
        padding-left: 0;
        padding: 0;
        align-items: center;
        flex-direction: column;
    }

    .bae_member {
        width: 90%;
        padding: 0;
        height: auto;
    }

    .bae_p {
        margin-right: 1rem;
    }

}

/* No less than 1200px, no greater than 1837px */
@media (min-width:1200px) and (max-width:1837px) {

    .bae_events_block {
        width: 90%;
        height: 480px;
    }

    .bae_events_img {
        height: 100%;
    }

    .bae_events_wrap {
        flex-wrap: nowrap;
        padding-left: 2%;
        padding-right: 2%;
    }

    .bae_block_header_1 {
        padding-left: 4%;
        margin: 0;
    }

    .bae_block_header_2 {
        padding-left: 4%;
        margin: 0;
    }

    .bae_h2 {
        font-size: 4rem;
    }

    .bae_member {
        width: 90%;
        height: auto;
    }

    .bae_member_img {
        height: 99%;
    }

    .bae_team_wrap {
        flex-wrap: nowrap;
        padding-left: 2%;
        padding-right: 2%;
    }

    .bae_block_header_2 {
        padding-right: 4%;
        padding-left: 4%;
    }

    .bae_section_left,
    .bae_section_right {
        flex-direction: column;
        align-content: flex-start;
    }
}

/* No less than 1838px */
@media (min-width:1838px) {

    .bae_events_block {
        width: 1200px;
    }

    .bae_block_header_1 {
        padding-left: 4%;
    }

    .bae_h2 {
        font-size: 6rem;
    }

    .bae_member {
        width: 640px;
        height: auto;
    }

    .bae_member_img {
        height: 400px;
    }

    .bae_team_wrap {
        width: 640px;
        flex-wrap: nowrap;
        padding-left: 2%;
        flex: 5;
    }

    .bae_block_header_2 {
        padding-right: 4%;
        padding-left: 4%;
    }
}

/* Show mobile navigation icon on small screens */
@media screen and (max-width: 992px) {

    .bae_main_nav,
    .bae_contact_social {
        display: none;
    }

    .mobile_nav_icon {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        align-items: center;
        margin-top: 0.5rem;
    }

    .mobile_nav_icon span {
        height: 3px;
        width: 25px;
        background-color: var(--accent-color);
        margin: 4px 0;
        transition: 0.4s;
    }

    .mobile_nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile_nav a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Mobile navigation open state */
    .mobile_nav.open {
        display: flex;
        margin-top: 4.5rem;
        z-index: 999;
    }

    .bae_social_icon_wrap {
        visibility: hidden;
        display: none;
    }
}

@media (min-width: 993px) {
    .mobile_nav {
        display: none !important;
    }

    .mobile_nav_icon {
        display: none !important;
    }

    .burger_menu {
        display: none !important;
    }
}

/*---- Events Page Specific Styles ----*/
.bae_event_info {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.bae_event_info p {
    margin: 0.5rem 0;
}

.bae_no_events {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    width: 100%;
}

.bae_no_events h3 {
    margin-bottom: 1rem;
    color: #333;
}

.bae_past_event_note {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
}

/* Past Events Compact Tiles */
.bae_events_tile {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    width: 280px;
    height: 320px;
    margin: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.bae_events_tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.bae_events_tile_image {
    height: 160px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.bae_events_tile_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bae_events_tile:hover .bae_events_tile_image img {
    transform: scale(1.05);
}

.bae_events_tile_content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.bae_events_tile_title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bae_events_tile_info {
    margin-bottom: 1rem;
}

.bae_events_tile_date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 0.25rem 0;
}

.bae_events_tile_location {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.bae_events_tile_footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bae_events_tile_status {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bae_events_tile_button {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.bae_events_tile_button:hover {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}

/* Additional Accessibility Improvements */

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.skip-to-main:focus {
    left: 6px;
    top: 7px;
}

/* Ensure sufficient color contrast for text */
.bae_p,
.bae_h2,
.bae_h3,
.bae_h3_center {
    /* Colors already meet WCAG AA standards */
    color: var(--primary-color);
}

/* Improve touch targets for mobile */
@media (max-width: 992px) {

    .bae_main_nav_item,
    .bae_contact_button,
    .bae_form_submit,
    button,
    .mobile_nav a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Events page mobile styles */
@media (max-width: 768px) {
    .bae_events_wrap {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .bae_events_block {
        width: 100%;
        flex-direction: column;
        margin: 10px 0;
    }
    
    .bae_events_img {
        width: 100%;
        height: 200px;
    }
    
    .bae_event_details {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .bae_event_info {
        padding: 0.75rem;
    }
    
    /* Past Events Tiles Mobile */
    .bae_events_tile {
        width: 100%;
        height: auto;
        margin: 10px 0;
        flex-direction: row;
        max-width: none;
    }
    
    .bae_events_tile_image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .bae_events_tile_content {
        padding: 1rem;
        flex: 1;
    }
    
    .bae_events_tile_title {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .bae_social_icon,
    .bae_services_img,
    .bae_events_block,
    .bae_partner_block,
    .bae_member {
        border: 2px solid var(--primary-color);
    }
}

/* Dark mode support (basic) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --text-color: #ffffff;
        --background-color: #2a2a2a;
        --white: #000000;
    }

    body {
        background-color: #1a1a1a;
        color: var(--text-color);
    }
}

/* Print styles */
@media print {

    .bae_nav_wrap,
    .mobile_nav,
    .mobile_nav_icon,
    .bae_form_overlay {
        display: none !important;
    }

    .bae_hero {
        height: auto;
        background: none !important;
    }

    .bae_hero_one,
    .bae_hero_two {
        background: none !important;
        clip-path: none !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Browser-specific fallbacks */

/* Fallback for browsers that don't support clamp() */
@supports not (font-size: clamp(1rem, 4vw, 1.25rem)) {
    .bae_h2 {
        font-size: 8rem;
    }

    .bae_h3 {
        font-size: 1.75rem;
    }

    .bae_header_primary {
        font-size: 8rem;
    }
}

/* Homepage upcoming event styles */
.bae_homepage_event_buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bae_secondary_button {
    background: transparent !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.bae_secondary_button:hover {
    background: var(--accent-color) !important;
    color: white !important;
}

.bae_no_events {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.bae_no_events h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.bae_no_events p {
    margin-bottom: 25px;
    color: #7f8c8d;
}

/* Event description read more functionality */
.bae_event_description_wrapper {
    margin: 15px 0;
}

.bae_event_description_content {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.bae_event_description_content.expanded {
    max-height: none;
}

.bae_event_description_content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bae_event_description_content.expanded::after {
    opacity: 0;
}

.bae_read_more_btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 10px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.bae_read_more_btn:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .bae_homepage_event_buttons {
        flex-direction: column;
    }
    
    .bae_event_description_content {
        max-height: 100px;
    }
}