@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Noto+Sans+Thai:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');

:root {
    --background-color: #ffffff;
    --font-color: #0e0d0d;
    --hover-color: #ff5c05;
    --navborder-color: #ea0303;
    --seconadry-color: #3ec8ff;
    --font2-color: #006ac0;
    --font3-color: #002d5b;
}


/*line*/
.contact-container1 {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.contact-item1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.contact-item1:nth-child(2) {
    background-color: white;
    border: 1px solid #28a745;
    color: #28a745;
}

.contact-item1 .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.2rem;
}

.contact-item1:hover {
    background-color: #1e7e34;
    color: white;
}

.contact-item1:nth-child(2):hover {
    background-color: #28a745;
    color: white;
}

@media screen and (max-width: 768px) {
    .contact-container1 {
        flex-direction: row;
        gap: 15px;
        bottom: 10px;
    }

    .contact-item1 {
        width: 90%;
        padding: 12px;
        font-size: 1rem;
        text-align: center;
        white-space: nowrap;
    }

    .contact-item11 .icon {
        margin-right: 8px;
        /* Maintain spacing between icon and text */
    }
}

.review-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.review-page h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.review-page p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.category-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.category-btn.active {
    background-color: #003f87;
    color: #fff;
}

.category-btn:hover {
    background-color: #ddd;
}

/* hr line */
hr {
    border: none;
    height: 2px;
    background-color: #333;
    width: 40%;
    margin: 20px auto;
}

/* review card */
.review-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    text-decoration: none;
    padding: 20px;
}

.review-cards .card {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 320px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.review-cards .card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}


.review-cards .card::before {
    content: "ดูเพิ่มเติม";
    font-size: 18px;
    color: white;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.review-cards .card:hover::before {
    opacity: 1;
}

.review-cards .card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


.review-cards .card:hover .overlay {
    opacity: 1;
    color: var(--background-color);
}

.review-cards .card .overlay p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.review-cards .card p {
    padding: 12px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}


@media (max-width: 768px) {
    .review-cards {
        flex-direction: column;
        align-items: center;
    }

    .review-cards .card {
        width: 90%;
    }
}


/* video carousel of review interior */

.video-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px;
    background-color: #222;
    margin-bottom: 50px;
}


.video-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.video-item {
    flex: 0 0 33.33%;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.video-item iframe {
    width: 90%;
    height: 250px;
    border-radius: 10px;
}


.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 5px;
    z-index: 100;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .video-item {
        flex: 0 0 100%;
    }
}


.map-container {
    text-align: left;
    /* Align iframe container to the left */
}

.map-container iframe {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.get-direction-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 12px;
    /* Adjust padding for better sizing */
    font-size: 14px;
    background-color: #003f87;
    /* Button background color */
    color: #fff !important;
    /* Ensure white text is applied */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    /* Remove underline */
    text-align: center;
    cursor: pointer;
}

.get-direction-btn:hover {
    background-color: #002e6d;
    color: #fff !important;
}


.map-container {
    margin-top: 0;
    display: block;
    text-align: left;
}

.map-container iframe {
    display: inline-block;
    margin-left: 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 20px;
    height: auto;
    transition: transform 0.5s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* form */
.contact-form {
    flex: 1;
    background-color: #e8f4ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-form h2 {
    margin-bottom: 20px;
    color: #003f87;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #003f87;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #002e6d;
}


/* Footer Base */
.footer {
    background: rgb(236, 236, 236);
    color: white;
    padding: 50px 20px;
    font-size: 16px;
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* .footer-left {
    flex: 1;
    max-width: 300px;
    text-align: left;
}

.footer-left h2 {
    font-size: 20px;
    color: var(--font2-color);
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-logo {
    width: 180px;
} */
.footer-left h2 {
    font-size: 20px;
    color: var(--font2-color);
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-left {
    flex: 1 1 20%;
    margin-bottom: 20px;
}

.footer-logo {
    height: auto;
    width: 50%;
    display: inline-block;
}

.footer-left p {
    font-size: 16px;
    color: var(--font-color);
    margin-top: 10px;
    font-weight: 600;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 20px;
    height: auto;
    transition: transform 0.5s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Footer Center & Right (Company & Services) */
.footer-center,
.footer-right,
.footer-help,
.footer-payment {
    flex: 1;
    text-align: left;
    min-width: 200px;
}

.footer-center h2,
.footer-right h2,
.footer-help h2,
.footer-payment h2 {
    font-size: 18px;
    color: #002d5b;
    /* border-bottom: 2px solid var(--font2-color); */
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-center ul,
.footer-right ul,
.footer-help ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li,
.footer-right ul li,
.footer-help ul li {
    margin: 5px 0;
}

.footer-center ul li a,
.footer-right ul li a,
.footer-help ul li a {
    color: #002d5b;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-center ul li a:hover,
.footer-right ul li a:hover,
.footer-help ul li a:hover {
    color: var(--font2-color);
}

/* Payment Logos */
.payment-logos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-logos img {
    width: 50px;
    transition: transform 0.3s ease;
}

.payment-logos img:hover {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    color: var(--font2-color);
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right,
    .footer-help,
    .footer-payment {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-left {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-left,
    .footer-center,
    .footer-right,
    .footer-help,
    .footer-payment {
        width: 100%;
    }

    .footer-logo {
        margin: 10px auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        padding: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 10px;
    }

    .footer-left h2,
    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        font-size: 16px;
    }

    .footer-center ul li a,
    .footer-right ul li a,
    .footer-help ul li a {
        font-size: 14px;
    }

    .footer-logo {
        width: 100px;
    }

    .social-icons img {
        width: 28px;
    }

    .payment-logos img {
        width: 40px;
    }
}

@media (max-width: 768px) {

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: none;
        /* Hide lists initially */
    }

    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #002d5b;
        /* Adjust color */
        padding: 10px 0;
        border-bottom: 1px solid #ccc;
    }

    .toggle-icon {
        font-size: 18px;
        font-weight: bold;
        transition: transform 0.3s ease;
        display: inline-block;
    }
}

/* Hide the "+" symbol on larger screens */
@media (min-width: 769px) {
    .toggle-icon {
        display: none;
    }

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: block;
    }
}

/* logo */
@media (max-width: 768px) {
    .footer-left {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }

    .footer-left h2 {
        font-size: 18px;
    }

    .footer-logo {
        width: 140px;
    }
}
/* for tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px;
    }

    .footer-sections {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }

    .footer-center,
    .footer-right,
    .footer-help {
        flex: 1 1 calc(33.33% - 20px); 
        max-width: 33.33%;
        text-align: left;
    }

    .footer-payment {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .payment-logos {
        display: flex;
        gap: 10px;
        margin-top: 5px;
    }

    .payment-logos img {
        width: 50px;
        transition: transform 0.3s ease;
    }

    .payment-logos img:hover {
        transform: scale(1.1);
    }
}

/* phone */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .footer-sections {
        width: 100%;
    }

    .footer-center,
    .footer-right,
    .footer-help {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        font-size: 16px;
        font-weight: bold;
        color: #002d5b;
        padding: 8px 0;
        border-bottom: 1px solid #ccc;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
    }

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: none;
        list-style: none;
        padding-left: 0;
        margin-top: 5px;
    }

    .footer-center.active ul,
    .footer-right.active ul,
    .footer-help.active ul {
        display: block;
    }

    .footer-payment {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .payment-logos {
        display: flex;
        gap: 10px;
    }

    .payment-logos img {
        width: 50px;
        transition: transform 0.3s ease;
    }

    .payment-logos img:hover {
        transform: scale(1.1);
    }
}
