/* Custom CSS for Your Website (Continued) */

/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --theme-color1: #08439b;
    --theme-color2: #ffc107;
    --theme-color3: #e3edfd;
    --theme-color4: #ffffff;
    --theme-color5: #222222;
}

body {
    font-family: 'Prompt', sans-serif;
    /* background-color: #f8f9fa; */
    font-size: 0.85rem;
}

h1 {
    color: #000000;
    /* Darker heading color */
    font-size: 1.5rem;
}

h2 {
    /* Darker heading color */
    font-size: 1.2rem;
}

h3,
h4,
h5,
h6 {
    /* color: #000000; */
    /* Darker heading color */
    font-size: 1rem;
}

.btn-success {
    --bs-btn-bg: #01c100;
    --bs-btn-border-color: #00ad5d;
}

.top-bar {
    background-color: var(--theme-color1);
    color: var(--theme-color3);
    padding: 5px 0;
    font-size: 0.85rem;
}

.top-bar .nav-link {
    color: var(--theme-color4);
    padding: 0 10px;
}

/* Adjustments for Navbar Brand and Toggler in mobile */
.navbar-brand {
    font-weight: 700;
    color: var(--theme-color1) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--theme-color1) !important;
    margin-right: 15px;
    font-size: 18px;
}

.navbar-nav .nav-link :before {

    color: var(--theme-color2) !important;

}

.btn-primary {
    background-color: var(--theme-color1);
    border-color: var(--theme-color1);
}


.contact-section {
    background-color: #f1f7fe;
    /* Light green background, similar to the image */
    padding: 80px 0;
}

.contact-title {
    /*color: #004d40;*/
    /* Dark teal/green for the title */
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-description {
    /*color: #2e7d32;*/
    /* Slightly lighter green for description */
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background-color: var(--theme-color4);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    /* Space for the icon */
}

.contact-icon-wrapper {
    position: absolute;
    top: -30px;
    /* Half out of the card */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--theme-color1);
    /* Dark teal/green background for icon */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 5px solid #ffffff;
    /* Border color matching section background */
}

.contact-icon-wrapper i {
    font-size: 2em;
    color: var(--theme-color4);
}

.card-heading {
    color: var(--theme-color1);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text-main {
    color: var(--theme-color1);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.card-text-sub {
    color: #6c757d;
    font-size: 0.9em;
}






.steps-section {
    background-color: var(--theme-color3)fff;
    /* Light green background, similar to the image */
    padding: 80px 0;
    overflow: hidden;
    /* เพื่อจัดการเส้นที่ลาก */
}

.steps-title {
    color: #004d40;
    /* Dark teal/green for the title */
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 50px;
}

.step-item {
    position: relative;
    margin-bottom: 40px;
    /* ระยะห่างระหว่างแถว */
}

.step-icon-wrapper {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: var(--theme-color2);
    /* Icon background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* ให้อยู่เหนือเส้น */
}

.step-icon-wrapper i {
    font-size: 2.2em;
    color: var(--theme-color4);
}

.step-content-wrapper {
    background-color: var(--theme-color1);
    /* var(--theme-color3) card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 180px;
    /* กำหนดความสูงขั้นต่ำ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* position: relative;  Removed from here */
    z-index: 1;
    /* ให้อยู่ใต้ไอคอน */
}

.step-content-title {
    color: var(--theme-color5);
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-content-text {
    color: var(--theme-color4);
    font-size: 1em;
    line-height: 1.6;
}

/* --- Global Vertical Line for Mobile (Timeline-like) --- */
/* This line will only appear on smaller screens */
.logo {
    height: 50px;
}

@media (max-width: 991.98px) {

    /* For screens smaller than lg (mobile/tablet) */
    .logo {
        height: 30px;
    }

    .section-header {
        font-size: 1.3rem !important;
    }

    h1 {
        color: #000000;
        /* Darker heading color */
        font-size: 1.2rem;
    }

    h2 {
        /* Darker heading color */
        font-size: 1rem;
    }

    h3,
    h4,
    h5,
    h6 {
        /* color: #000000; */
        /* Darker heading color */
        font-size: 1rem;
    }

    .service-card p:last-child {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.5rem !important;

    }

    .hero-content h1 {
        font-size: 40px !important;
        color: var(--theme-color1) !important;
    }

    .hero-content p {
        color: var(--theme-color5) !important;
    }

    .step-item {
        display: flex;
        /* Use flex for alignment */
        align-items: center;
        justify-content: center;
        flex-direction: column;
        /* Stack content vertically */
        text-align: center;
    }

    .step-icon-wrapper {
        /* position: absolute; */
        /* left: auto; */
        /* right: auto; */
        /* transform: none; */
        /* margin-bottom: 20px; */
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--theme-color2);
        border-radius: 50%;
        /* width: 60px; */
        /* height: 60px; */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border: 5px solid var(--theme-color4);
    }

    .step-content-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        /* Take full width */
    }

    .step-item:nth-child(odd) .step-content-wrapper,
    .step-item:nth-child(even) .step-content-wrapper {
        /* No specific margin adjustments for mobile */
        padding: 60px 30px 30px 30px;
    }

    .steps-section {
        position: relative;
        /* Make steps-section the positioning context */
    }

    /* --- Central Vertical Line for Desktop --- */
    .steps-section::before {
        content: '';
        position: absolute;
        top: 180px;
        /* Start below title, adjust as needed */
        bottom: 80px;
        /* End above section bottom padding */
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        background-color: var(--theme-color1);
        z-index: 0;
        /* Keep it below icons and cards */
    }


    .hero-section {
        /* Replace with your actual hero image */
        padding: 50px 0 400px !important;
    }


}


/* --- Desktop (lg and up) Specific Styling --- */
@media (min-width: 992px) {
    .steps-section {
        position: relative;
        /* Make steps-section the positioning context */
    }

    /* --- Central Vertical Line for Desktop --- */
    .steps-section::before {
        content: '';
        position: absolute;
        top: 180px;
        /* Start below title, adjust as needed */
        bottom: 80px;
        /* End above section bottom padding */
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        background-color: var(--theme-color1);
        z-index: 0;
        /* Keep it below icons and cards */
    }

    .step-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Space out content and icon */
        margin-bottom: 80px;
        /* Increased margin for desktop to give more space for lines */
    }

    .step-item:last-child {
        margin-bottom: 0;
        /* No margin below the last item */
    }

    .step-icon-wrapper {
        position: relative;
        /* Revert to relative for desktop within its col */
        margin: 0;
        /* Remove previous margins */
        flex-shrink: 0;
        /* Prevent it from shrinking */
    }

    /* Position icons centrally on the timeline */
    /* We now use Bootstrap's flexbox 'order' and padding to position content */
    .step-item:nth-child(odd) .col-lg-6:first-child {
        /* Content on right, so icon is on left (order-lg-2) */
        order: 2;
        /* The icon column */
        display: flex;
        justify-content: flex-end;
        /* Push icon to the right edge of its col */
        padding-right: 0;
        /* Remove default padding to align icon precisely */
    }

    .step-item:nth-child(odd) .step-icon-wrapper {
        /* Adjust icon position if needed */
        margin-right: -35px;
        /* Half of icon width to overlap the line */
    }

    .step-item:nth-child(even) .col-lg-6:last-child {
        /* Content on left, so icon is on right (order-lg-1) */
        order: 1;
        /* The icon column */
        display: flex;
        justify-content: right;
        /* Push icon to the left edge of its col */
        padding-left: 0;
        /* Remove default padding */
    }

    .step-item:nth-child(even) .step-icon-wrapper {
        /* Adjust icon position if needed */
        margin-left: -35px;
        /* Half of icon width to overlap the line */
    }

    /* Adjust content wrapper padding to make space for the icon/line */
    .step-item:nth-child(odd) .col-lg-6:last-child .step-content-wrapper {
        padding-right: 70px;
        /* Space for icon + some margin */
        text-align: right;
    }

    .step-item:nth-child(even) .col-lg-6:first-child .step-content-wrapper {
        padding-left: 70px;
        /* Space for icon + some margin */
        text-align: left;
    }
}






.hero-section {
    /* Replace with your actual hero image */
    background-size: cover;
    background-position: center;
    color: var(--theme-color3);
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--theme-color1);*/
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--theme-color4);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.banner-info {
    background-color: #ffc107;
    padding: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-color5);
}

.contact-bar {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-bar img {
    height: 40px;
    margin-right: 10px;
}

.section-header {
    font-size: 2rem;
    font-weight: 600;
    color: var(--theme-color1);
    margin-bottom: 30px;
    text-align: center;
}

.service-section {
    padding: 50px 0;
}

.service-card {
    background-color: var(--theme-color4);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    height: 100%;
}

.service-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    margin-top: -50px;
}


.service-card i {
    font-size: 3rem;
    color: var(--theme-color1);
    margin-bottom: 15px;
}

.service-card h5 {
    font-weight: 600;
    color: var(--theme-color1);
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.service-card p:last-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e74c3c;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 25px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.service-card:hover p:last-child {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scale(1.05);
}

.grid-section {
    padding: 50px 0;
}

.grid-item2 {

    margin-bottom: 25px;

}

.grid-item {
    background-color: var(--theme-color4);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.grid-item .p-3 {
    min-height: 100px;
    /* Ensure consistent height for text content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item h3 {
    font-weight: 600;
    color: var(--theme-color1);
    margin-bottom: 5px;
}

.grid-item p {
    font-size: 0.85rem;
    color: var(--theme-color5);
    margin-bottom: 0;
}


.faq-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--theme-color4);
    background-color: var(--theme-color1);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--theme-color1);
}

.testimonial-section {
    padding: 50px 0;
    background-color: #f1f7fe;
    text-align: center;
}

.testimonial-card {
    background-color: var(--theme-color4);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card h6 {
    font-weight: 600;
    color: var(--theme-color1);
    margin-bottom: 5px;
}

.testimonial-card .text-muted {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-top: 10px;
    font-size: 1.1rem;
}

.footer {
    background-color: var(--theme-color1);
    color: var(--theme-color4);
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}

.footer h5 {
    color: var(--theme-color3);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--theme-color3)fff;
    text-decoration: none;
}

.footer ul li a:hover {
    color: var(--theme-color3);
}

.footer .social-icons a {
    color: var(--theme-color3);
    font-size: 1.5rem;
    margin-right: 15px;
}

.bottom-footer {
    background-color: #ffc107;
    color: #000000;
    padding: 15px 0;
    font-size: 0.8rem;
}

/* Custom styles for the search box */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 12px 20px 12px 50px;
    /* Add padding for the icon */
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 1rem;
}

.search-container .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}

/* Adjustments for images to match original layout */
.grid-images-container .col-md-3 {
    padding: 5px;
    /* Adjust spacing between images */
}

.grid-images-container .img-fluid {
    width: 100%;
    height: 300px;
    /* Consistent height for these images */
    object-fit: cover;
    border-radius: 5px;
}

.service-images-container .col-md-4 {
    padding: 5px;
}

.service-images-container .img-fluid {
    width: 100%;
    height: 220px;
    /* Consistent height */
    object-fit: cover;
    border-radius: 5px;
}

.main-service-blocks {
    background-color: #f1f7fe;
    padding: 50px 0;
}

.main-service-block {
    background-color: var(--theme-color4);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    /* min-height: 180px;*/
    /* Adjust as needed */
}

.main-service-block i {
    font-size: 2.5rem;
    color: var(--theme-color1);
    margin-right: 20px;
}

.main-service-block .text-content h3 {
    font-weight: 600;
    color: var(--theme-color1);
    margin-bottom: 5px;
}

.main-service-block .text-content p {
    font-size: 0.9rem;
    color: var(--theme-color5);
    margin-bottom: 0;
}

/* Offcanvas Navbar specific styles */
@media (max-width: 991.98px) {
    .offcanvas-body {
        padding: 0;
    }

    .offcanvas-body .navbar-nav {
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .offcanvas-body .navbar-nav .nav-item {
        width: 100%;
    }

    .offcanvas-body .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, .05);
        margin-right: 0;
        /* Remove right margin for vertical links */
        color: var(--theme-color1) !important;
    }

    .offcanvas-body .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }

    .offcanvas-body .btn {
        width: calc(100% - 2rem);
        margin: 1rem;
    }
}

/* Area Section */

/* ป้องกันซ้อนกับ section ถัดไป */
.area-section {
    background-color: #e9f2ff;
    padding: 60px 0;
}



/* 🔹 Masonry Layout */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔹 Card style */
.card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Header */
.card-header {
    background-color: var(--theme-color1, #007bff);
    color: var(--theme-color3, #fff);
    font-weight: 600;


}

/* Body */
.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 15px;
}

.card-body ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    text-align: left;
}

.card-body ul li:last-child {
    border-bottom: none;
}

.card-body ul li a {
    color: var(--theme-color1, #007bff);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-body ul li a:hover {
    color: #1e88e5;
}


.accordion-body {
    padding: 30px 30px;
}

.main-service-blocks {
    background-size: cover;
    background-position: center;
    color: var(--theme-color3);
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.main-service-blocks::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--theme-color1); */
}