.elementor-4877 .elementor-element.elementor-element-274449e .elementor-heading-title{font-family:"Bai Jamjuree", Sans-serif;font-size:25px;font-weight:300;}.elementor-4877 .elementor-element.elementor-element-274449e.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-274449e.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-b7ead48 > .elementor-widget-container{margin:-27px 0px 0px 0px;}.elementor-4877 .elementor-element.elementor-element-b7ead48 .elementor-heading-title{font-family:"Bai Jamjuree", Sans-serif;font-size:41px;font-weight:600;}.elementor-4877 .elementor-element.elementor-element-b7ead48.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-b7ead48.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-aca5740 > .elementor-widget-container{margin:-14px 0px 0px 0px;}.elementor-4877 .elementor-element.elementor-element-aca5740 .elementor-heading-title{font-family:"Archivo Black", Sans-serif;font-size:70px;font-weight:500;line-height:62px;text-shadow:0px 0px 10px rgba(48.50543478260868, 163.3016304347826, 212.50000000000003, 0.3);}.elementor-4877 .elementor-element.elementor-element-aca5740.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-aca5740.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-c4525e8 > .elementor-element-populated{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-4877 .elementor-element.elementor-element-c4525e8 > .elementor-element-populated > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-4877 .elementor-element.elementor-element-e74e81e > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-4877 .elementor-element.elementor-element-e74e81e .elementor-heading-title{font-family:"Archivo", Sans-serif;font-size:38px;font-weight:700;line-height:62px;}.elementor-4877 .elementor-element.elementor-element-e74e81e.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-e74e81e.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-6ddc8c4 .elementor-heading-title{font-family:"Bai Jamjuree", Sans-serif;font-size:25px;font-weight:300;}.elementor-4877 .elementor-element.elementor-element-6ddc8c4.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-6ddc8c4.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-9eb7fd2 > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-4877 .elementor-element.elementor-element-9eb7fd2 .elementor-heading-title{font-family:"Archivo", Sans-serif;font-size:38px;font-weight:700;line-height:62px;}.elementor-4877 .elementor-element.elementor-element-9eb7fd2.elementor-widget-heading .elementor-heading-title, .elementor-4877 .elementor-element.elementor-element-9eb7fd2.elementor-widget-heading .elementor-heading-title.elementor-heading-title a{color:var( --e-global-color-primary );}.elementor-4877 .elementor-element.elementor-element-1b4fe26 .elementor-button{background-color:transparent;fill:#FFFFFF;color:#FFFFFF;background-image:linear-gradient(45deg, var( --e-global-color-90d86cb ) 0%, var( --e-global-color-955ed07 ) 100%);}.elementor-4877 .elementor-element.elementor-element-b367dce{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;margin-top:0px;margin-bottom:0px;}.elementor-4877 .elementor-element.elementor-element-b367dce > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-4877 .elementor-element.elementor-element-b367dce.elementor-section{padding:0px 0px 0px 0px;}/* Start custom CSS for html, class: .elementor-element-f3713d5 *//* --- Global Variables --- */
:root {
    --font-primary-cards: 'Poppins', sans-serif;
    --font-secondary-cards: 'Roboto Slab', serif;
    --color-primary-cards: #00aeb9; /* Teal */
    --color-secondary-cards: #2575fc; /* Blue */
    --card-bg-cards: #ffffff;
    --card-shadow-cards: rgba(0, 0, 0, 0.15); /* Adjusted for more shadow */
    --card-shadow-hover-cards: rgba(0, 0, 0, 0.25); /* Adjusted for more shadow on hover */
    --text-light-cards: #f8f9fa; /* Very light grey, almost white */
    --text-dark-cards: #343a40; /* Dark grey */
    --text-muted-cards: #6c757d; /* Medium grey */
    --section-bg-cards: #ffffff; /* White section background */
    --light-gray-active-button: #eef2f7; /* Light grey for active nav button (same as --bg-page) */
    --border-radius-card-cards: 16px;
    --border-radius-button-cards: 8px;
}

/* --- Body Base Styles --- */
body {
    margin: 0;
    font-family: var(--font-primary-cards);
    background-color: var(--section-bg-cards); /* Changed body background to match section for seamless look */
}

/* --- Top Navigation Buttons Container --- */
.carousel-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between buttons */
    padding: 20px 20px;
    background-color: var(--section-bg-cards);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap; /* Allow buttons to wrap to next line on smaller screens */
}

/* --- Individual Carousel Nav Button & Action Button (Shared Styles) --- */
.carousel-nav-button,
.action-button { /* Applied common styles to both button types */
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary-cards), var(--color-secondary-cards));
    color: white !important; /* FIXED: Ensured text is white and important */
    padding: 10px 25px; /* Master padding for buttons */
    text-decoration: none;
    border-radius: var(--border-radius-button-cards);
    font-weight: 600;
    font-size: 1em;
    font-family: var(--font-primary-cards);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.3s ease, color 0.3s ease; /* Added background/color transition */
    box-shadow: 0 4px 10px rgba(45, 55, 227, 0.3);
    white-space: nowrap; /* Prevent button text from wrapping */
}

/* Hover effect for all buttons */
.carousel-nav-button:hover:not(.active), /* Do not apply hover effect if active */
.action-button:hover,
.carousel-nav-button:focus,
.action-button:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 15px rgba(45, 55, 227, 0.4);
    outline: none;
}
/* Ensure text color remains white on hover/focus for action buttons */
.action-button:hover,
.action-button:focus {
    color: white !important;
}


/* Active state for the top navigation buttons */
.carousel-nav-button.active {
    background-color: var(--light-gray-active-button); /* Changed to light gray */
    color: var(--text-dark-cards); /* Changed text to dark for contrast */
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0,0,0,0.05); /* Inner shadow for "pressed" look, subtle outer shadow */
    transform: translateY(0); /* Stays flat when active */
    pointer-events: none; /* Disable clicks on the active button */
    cursor: default; /* Change cursor to default */
}

/* --- General Section Titles and Descriptions --- */
.section-title-cards {
    font-family: var(--font-secondary-cards);
    font-size: 2.8em;
    font-weight: 700;
    color: var(--color-primary-cards);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
}

.section-subtitle-cards {
    font-family: var(--font-primary-cards);
    font-size: 1.3em;
    color: var(--text-muted-cards);
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.section-description-inez-house {
    font-family: var(--font-primary-cards);
    font-size: 1.05em;
    color: var(--text-dark-cards);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    line-height: 1.6;
}

.section-key-areas {
    font-family: var(--font-primary-cards);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark-cards);
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* --- CTA Cards Section Wrapper (for each carousel) --- */
.cta-cards-section-wrapper {
    background: var(--section-bg-cards);
    padding: 60px 20px;
    font-family: var(--font-primary-cards);
    color: var(--text-dark-cards);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: auto;
}

.hidden-section {
    display: none;
}

/* --- Carousel Viewport (Masks the overflowing cards) --- */
.card-carousel-viewport {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.cta-cards-container {
    display: flex;
    position: relative;
    transition: transform 1.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-card {
    background-color: var(--card-bg-cards);
    box-shadow: 0 8px 20px var(--card-shadow-cards); /* Enhanced shadow */
    border-radius: var(--border-radius-card-cards);
    width: 320px;
    flex: 0 0 320px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-family: var(--font-primary-cards);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.5s ease,
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(1) !important;
    opacity: 1 !important;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-cards), var(--color-secondary-cards));
    transition: width 0.4s ease-out;
    z-index: 2;
}

.cta-card:hover {
    box-shadow: 0 15px 35px var(--card-shadow-hover-cards), 0 5px 15px rgba(0,0,0,0.15); /* Enhanced hover shadow */
}
.cta-card:hover::before {
    width: 100%;
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-primary-cards);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}
.cta-card:hover .card-image-wrapper::after {
    opacity: 0.1;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    z-index: 1;
    color: var(--text-dark-cards);
}

.card-content h3 {
    font-family: var(--font-secondary-cards);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-primary-cards);
    margin-top: 0;
    margin-bottom: 12px;
}

.card-content p {
    font-size: 0.95em;
    color: var(--text-muted-cards);
    line-height: 1.7;
    flex-grow: 1;
    padding-bottom: 10px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary-cards);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.carousel-arrow:hover:not(.disabled) {
    background-color: var(--color-primary-cards);
    color: var(--text-light-cards);
}
.carousel-arrow:focus {
    outline: 2px solid var(--color-secondary-cards);
    outline-offset: 2px;
}
.prev-arrow {
    left: 10px;
}
.next-arrow {
    right: 10px;
}
.carousel-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-markers {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background-color: var(--text-muted-cards);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.marker-dot.active {
    background-color: var(--color-primary-cards);
    transform: scale(1.2);
}
.marker-dot:hover:not(.active) {
    background-color: var(--color-secondary-cards);
}

.card-content p .dots {
    display: inline;
}
.card-content p .more-text {
    display: none;
}
.card-content p .read-more-toggle {
    color: var(--color-primary-cards);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary-cards);
    cursor: pointer;
    font-weight: 600;
    margin-left: 5px;
    white-space: nowrap;
    display: inline-block;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.card-content p .read-more-toggle:hover {
    color: var(--color-secondary-cards);
    border-color: var(--color-secondary-cards);
}

.action-section-wrapper {
    background-color: var(--section-bg-cards);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.action-section-wrapper h2 {
    font-family: var(--font-secondary-cards);
    font-size: 2.8em;
    font-weight: 700;
    color: var(--color-primary-cards);
    margin-bottom: 30px;
}

.action-video-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    border-radius: var(--border-radius-card-cards);
    overflow: hidden;
    box-shadow: 0 8px 20px var(--card-shadow-cards);
}

.action-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.action-buttons-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Mission Trip Standalone Block Styles --- */
.mission-trip-details-block {
    background-color: var(--card-bg-cards);
    border-radius: var(--border-radius-card-cards);
    box-shadow: 0 8px 20px var(--card-shadow-cards); /* Same shadow as cards */
    max-width: 900px; /* Adjust max-width as needed */
    margin: 40px auto; /* Center and give space */
    display: flex;
    flex-direction: row; /* Default for larger screens */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-trip-details-block:hover {
    box-shadow: 0 15px 35px var(--card-shadow-hover-cards), 0 5px 15px rgba(0,0,0,0.15);
}

.mission-trip-image-container {
    flex: 0 0 50%; /* Image takes half width */
    height: 350px; /* Fixed height for consistency, adjust as needed */
    overflow: hidden;
}

.mission-trip-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mission-trip-text-content {
    flex: 0 0 50%; /* Text takes other half */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    text-align: left;
}

.mission-trip-text-content h3 {
    font-family: var(--font-secondary-cards);
    font-size: 2em;
    font-weight: 700;
    color: var(--color-primary-cards);
    margin-top: 0;
    margin-bottom: 15px;
}

.mission-trip-text-content p {
    font-size: 1.05em;
    color: var(--text-dark-cards);
    line-height: 1.7;
    margin-bottom: 0; /* Remove default paragraph margin-bottom */
}

.mission-trip-text-content p u {
    color: var(--color-secondary-cards); /* Style for underlined link in mission trip text */
}

/* Responsive Design Media Queries */
@media (max-width: 960px) {
    .card-carousel-viewport {
        max-width: 600px;
    }
    .cta-card {
        width: 280px;
        flex-basis: 280px;
        margin: 0 10px;
    }
    .mission-trip-details-block {
        flex-direction: column; /* Stack image and text vertically */
        max-width: 600px; /* Adjust max width for smaller screens */
    }
    .mission-trip-image-container {
        flex-basis: auto;
        width: 100%;
        height: 250px; /* Adjust image height when stacked */
    }
    .mission-trip-text-content {
        flex-basis: auto;
        width: 100%;
        padding: 25px;
    }
    .mission-trip-text-content h3 {
        font-size: 1.8em;
    }
    .mission-trip-text-content p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .carousel-nav-buttons {
        gap: 10px;
        padding: 15px 10px;
    }
    .carousel-nav-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .section-title-cards {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .section-subtitle-cards,
    .section-description-inez-house,
    .section-key-areas {
        font-size: 1.1em;
        margin-top: -20px;
        margin-bottom: 25px;
    }
    .cta-cards-section-wrapper,
    .action-section-wrapper { padding: 40px 20px; }
    .card-carousel-viewport {
        max-width: 100%;
        padding: 0 20px;
    }
    .prev-arrow {
        left: 5px;
    }
    .next-arrow {
        right: 5px;
    }
    .cta-card {
        width: 250px;
        flex-basis: 250px;
        margin: 0 8px;
    }
    .card-content h3 { font-size: 1.4em; }
    .card-content p { font-size: 0.9em; }
    .carousel-markers {
        margin-top: 20px;
        gap: 8px;
    }
    .marker-dot {
        width: 10px;
        height: 10px;
    }
    .action-section-wrapper h2 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }
    .action-buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    .action-button { /* General action-button in mobile */
        width: 100%;
        max-width: 250px;
        padding: 14px 30px;
    }
}

@media (max-width: 600px) {
    .carousel-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .carousel-nav-button {
        width: 100%;
        max-width: 200px;
    }
    .cta-cards-section-wrapper,
    .action-section-wrapper { padding-top: 30px; padding-bottom: 30px; }
    .cta-card {
        width: 80vw;
        flex-basis: 80vw;
        max-width: 300px;
    }
    .card-image-wrapper {
        height: 180px;
    }
    .prev-arrow,
    .next-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .mission-trip-image-container {
        height: 200px; /* Smaller image height for very small screens */
    }
    .mission-trip-text-content h3 {
        font-size: 1.6em;
    }
    .mission-trip-text-content p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .section-title-cards {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .section-subtitle-cards,
    .section-description-inez-house,
    .section-key-areas {
        font-size: 1em;
        margin-top: -15px;
        margin-bottom: 20px;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    background-color: var(--color-primary-cards);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-primary-cards);
    font-size: 1.4em;
    font-weight: 600;
}

.close-button {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    flex-grow: 1;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-overlay.hidden {
    display: none;
}
.modal-overlay.visible {
    display: flex;
}/* End custom CSS */