/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #6d9e11;
}

body.home {
    background-color: #6d9e11;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Header Styles */
#main-header {
    background-color: #fff;
    position: static;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sticky header for desktop only */
@media (min-width: 981px) {
    #main-header {
        position: relative;
    }

    .header-bottom {
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: top 0.3s ease;
    }

    .header-bottom.sticky-top {
        top: 0;
    }

    .header-top-wrapper {
        position: relative;
        height: 110px;
        z-index: 1000;
    }

    .header-top {
        transition: transform 0.3s ease, opacity 0.3s ease;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background-color: #fff;
    }

    .header-top.logo-hidden {
        transform: translateY(-100%);
        opacity: 0;
    }

    .header-top.logo-visible {
        transform: translateY(0);
        opacity: 1;
    }

    #et-main-area {
        margin-top: 60px;
    }
}

/* Header Top Section */
.header-top {
    padding: 15px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo_container {
    flex: 0 0 auto;
}

#logo {
    max-height: 80px;
    width: auto;
}

.header-contact {
    text-align: right;
    font-size: 14px;
    display: block;
}

.header-contact p {
    margin: 5px 0;
    color: #333;
}

.header-contact a {
    color: #6d9e11;
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}

/* Header Bottom Section */
.header-bottom {
    background-color: #fff;
    padding: 10px 0;
}

.header-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
}

/* Navigation */
#top-menu-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

#top-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top-menu li {
    position: relative;
    margin: 0 5px;
}

#top-menu li a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#top-menu li a:hover {
    color: #6d9e11;
}

#top-menu li.current-menu-item a {
    color: #6d9e11;
}

/* Submenu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

#top-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    padding: 12px 20px;
    border-top: 1px solid #eee;
}

/* Mobile Menu */
#et_mobile_nav_menu {
    display: none;
    position: relative;
}

.mobile_nav {
    cursor: pointer;
    background-color: #e8e8e8;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
}

.select_page {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.mobile_menu_bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #6d9e11;
    position: relative;
}

.mobile_menu_bar::before,
.mobile_menu_bar::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #6d9e11;
    left: 0;
}

.mobile_menu_bar::before {
    top: -6px;
}

.mobile_menu_bar::after {
    top: 6px;
}

/* Mobile Dropdown Menu */
.mobile_menu_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media (max-width: 980px) {
    .mobile_menu_dropdown {
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: 0;
        background-color: #f5f5f5;
        border: 1px solid #ccc;
        border-top: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
    }
}

.mobile_menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile_menu_list li {
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.mobile_menu_list li:last-child {
    border-bottom: none;
}

.mobile_menu_list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.mobile_menu_list a:hover {
    background-color: #e8e8e8;
}

.mobile_submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #ebebeb;
    display: none;
}

.mobile_submenu li {
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.mobile_submenu a {
    padding: 12px 40px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.mobile_submenu a:hover {
    background-color: #ddd;
}

.has-submenu.open .mobile_submenu {
    display: block;
}

/* Main Content Area */
#et-main-area {
    margin-top: 0;
    background-color: #fff;
}

/* Section Styles */
.et_pb_section {
    padding: 50px 0;
}

.et_pb_fullwidth_section {
    padding: 0;
}

/* Fullwidth Header */
.et_pb_fullwidth_header {
    padding: 100px 0;
    color: #fff;
}

.et_pb_fullwidth_header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

/* Table Styles */
.tripTimes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tripTimes thead tr {
    background-color: #6d9e11;
    color: white;
}

.tripTimes th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.tripTimes tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tripTimes tbody tr:hover {
    background-color: #f0f0f0;
}

.tripTimes td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Itineraries Grid */
.itineraries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.itinerary-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.itinerary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.itinerary-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itinerary-content {
    padding: 20px;
}

.itinerary-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-decoration: underline;
}

.itinerary-content p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.et_pb_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.et_pb_column {
    padding: 0 15px;
    flex: 1;
}

.et_pb_column_1_3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.et_pb_column_1_2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.et_pb_column_4_4 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Slider */
.et_pb_slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.et_pb_slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.et_pb_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.et_pb_slide.et-pb-active-slide {
    opacity: 1;
    z-index: 1;
}

.et_pb_container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Module */
.et_pb_text {
    margin-bottom: 30px;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
}

.et_pb_text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Centered text section override */
.centered-text-section {
    text-align: center !important;
}

.centered-text-section p {
    text-align: center !important;
}

.centered-text-section h3 {
    text-align: center !important;
}

.et_pb_text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

/* Divider */
.et_pb_divider {
    height: 23px;
    border-top: 2px solid #000;
    margin: 30px 0;
}

/* Image Module */
.et_pb_image {
    margin-bottom: 30px;
    text-align: center;
}

.et_pb_image img {
    max-width: 100%;
    height: 200px;
    width: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.et_pb_image a:hover img {
    transform: scale(1.05);
}

/* Testimonial */
.et_pb_testimonial {
    background-color: #f5f5f5;
    padding: 30px;
    min-height: 450px;
    border-radius: 5px;
}

.et_pb_testimonial_description_inner p {
    margin-bottom: 15px;
}

.et_pb_testimonial_author {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    color: #6d9e11;
}

/* Footer */
#main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

#footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    margin-bottom: 30px;
}

.footer-widget {
    padding: 0 15px;
    flex: 1;
    min-width: 300px;
}

.footer-widget h4.title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #6d9e11;
}

.footer-widget table {
    border-collapse: collapse;
}

.footer-widget table td {
    padding: 10px;
    vertical-align: middle;
}

.footer-widget table img {
    max-width: 100%;
    height: auto;
}

.footer-widget p {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #6d9e11;
    text-decoration: none;
}

.footer-widget a:hover {
    text-decoration: underline;
}

/* Footer Navigation */
#et-footer-nav {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.bottom-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-nav li {
    margin: 0 15px;
}

.bottom-nav li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-nav li a:hover {
    color: #6d9e11;
}

/* Footer Bottom */
#footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.et-social-icons {
    list-style: none;
    display: flex;
    justify-content: center;
}

.et-social-icons li {
    margin: 0 10px;
}

.et-social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.et-social-icons a:hover {
    color: #6d9e11;
}

/* Responsive Styles */
@media (max-width: 980px) {
    #top-menu-nav {
        display: none;
    }

    #et_mobile_nav_menu {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    .et_pb_column_1_3,
    .et_pb_column_1_2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .header-top .container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
    }

    .logo_container {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .header-contact {
        display: none;
        text-align: center;
        margin-top: 0;
        font-size: 12px;
        flex: none;
        margin-left: 0;
    }

    .header-contact p {
        margin: 2px 0;
        line-height: 1.2;
    }

    .header-bottom {
        position: relative;
        text-align: center;
        padding: 10px 0;
    }

    .header-bottom .container {
        justify-content: center;
    }

    #et-main-area {
        margin-top: 0;
    }

    .et_pb_slider {
        height: 300px;
        margin-top: -85px;
    }

    .et_pb_testimonial {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-bottom {
        padding: 5px 0;
    }

    #logo {
        max-height: 60px;
    }

    .header-contact {
        font-size: 12px;
    }

    #et-main-area {
        margin-top: 160px;
    }

    .et_pb_slider {
        height: 200px;
    }

    .footer-widget {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bottom-nav {
        flex-direction: column;
        align-items: center;
    }

    .bottom-nav li {
        margin: 5px 0;
    }
}

/* Animation Classes */
.et_animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.et_animated.et-waypoint {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top */
.et_pb_scroll_top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #6d9e11;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.et_pb_scroll_top.visible {
    opacity: 1;
    visibility: visible;
}

.et_pb_scroll_top::before {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
}

.et_pb_scroll_top:hover {
    background-color: #5a8a0e;
}

/* Community Outreach Page Styles */
.et_pb_section_0.et_pb_section {
    background-color: #6d9e11 !important;
}

.et_pb_fullwidth_header.et_pb_fullwidth_header_0 {
    background-color: rgba(255,255,255,0);
    min-height: 300px;
}

.et_pb_fullwidth_header_0 .et_pb_fullwidth_header_container .header-content {
    max-width: 100%;
}

.et_pb_image_0,
.et_pb_image_1 {
    text-align: center;
    margin: 20px 0;
}

.et_pb_image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contact Form Styles */
.et_pb_contact_form_container {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.et_pb_contact_main_title {
    color: #6d9e11;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.et_pb_contact_field {
    margin-bottom: 20px;
}

.et_pb_contact_form_label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.et_pb_contact_field .input,
.et_pb_contact_field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.et_pb_contact_field .input:focus,
.et_pb_contact_field textarea:focus {
    outline: none;
    border-color: #6d9e11;
}

.et_pb_contact_field_half {
    width: 48%;
    float: left;
    margin-right: 4%;
}

.et_pb_contact_field_last {
    margin-right: 0 !important;
}

.et_contact_bottom_container {
    clear: both;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.et_pb_contact_right {
    display: flex;
    align-items: center;
}

.et_pb_contact_captcha_question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.et_pb_contact_captcha {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.et_pb_contact_submit {
    background-color: #6d9e11;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.et_pb_contact_submit:hover {
    background-color: #5a8a0e;
}

/* Contact Form Responsive Styles */
@media only screen and (max-width: 980px) {
    .et_pb_contact_form_container {
        padding: 30px 20px;
    }

    .et_pb_contact_field_half {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .et_contact_bottom_container {
        flex-direction: column;
        align-items: stretch;
    }

    .et_pb_contact_right {
        margin-bottom: 20px;
        justify-content: center;
    }

    .et_pb_contact_submit {
        width: 100%;
    }
}
