:root {
    --primary-blue: #dbeafe;
    --primary-orange: #f97316;
    --dark-blue: #1e40af;
    --light-gray: #f8fafc;
    --light-orange: #fff7f0;
}

/* ส่วนหัวข้อหลัก */
.hero-section {    
    /* padding: 60px 0 0 0; */
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 100%;
    height: calc(100vh - 188.8px);
}

@media screen and (max-width: 1024px) {
    .hero-section {
        height: calc(100vh - 100px);
    }
}

.hero-bg {
    filter: blur(2px) brightness(0.7);
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    filter: blur(0px) brightness(1);
    /* position: relative; */
    z-index: 2;

    /* max-width: 1200px; */
    width: 100vw;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0%;
}

.logo-container {
    /* margin-bottom: 30px; */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.5s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.2s;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    /* transition-delay: 0.4s; */
    position: relative;
    overflow: hidden;
}

.hero-btn:hover, .submit-btn:hover {
    background-color: #e65c00;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.remove-filter{
    filter: blur(0px) brightness(1);
    object-fit: contain;
    background-color: black;
}

.hero-detail-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-detail-container > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background-color: black;
}

.carousel-control-next, .carousel-control-prev, .carousel-indicators {
    z-index: 10;
}

 /* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

.hero-btn, .submit-btn {
    position: relative;
    overflow: hidden;
}






/* ------------------------------------------------------------------------- */
/* ส่วนบริการ */
.services-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    width: 100%;
    font-style: bold;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 15px auto 0;
    transition: all 0.5s ease;
}

.section-title:hover::after {
    width: 120px;
}

.services-description {
    text-align: center;
    /* max-width: 700px; */
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #555;
}

.services-description > div {
    max-width: 90%;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px 20px;
    width: min(20%, 400px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    scale: 1.05;
    cursor: pointer;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.service-text {
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 768px) {
    .services-grid {
        gap: 15px;
    }
    
    .service-card {
        width: 45%;
        /* max-width: 400px; */
    }
}


/* ------------------------------------------------------------------------- */
/* ส่วนเกี่ยวกับเรา */
.about-section {
    /* display: flex;
    justify-content: center;
    align-items: center; */
    padding: 60px 0;
    background: 
        linear-gradient(rgba(255, 247, 240, 0.95), rgba(255, 233, 214, 0.95)), 
        url('https://www.bhg.com/thmb/U3sY3Up-M6It4eE7wyu6_zKBZN0=/1920x0/filters:no_upscale():strip_icc()/stylemaker-secret-white-den-b21ab396-d2636ff8d24449a99561054dc983475b.jpg') center/cover no-repeat;
    /* background: 
        linear-gradient(to bottom right, var(--light-orange), #ffe9d6),
    url('https://www.bhg.com/thmb/U3sY3Up-M6It4eE7wyu6_zKBZN0=/1920x0/filters:no_upscale():strip_icc()/stylemaker-secret-white-den-b21ab396-d2636ff8d24449a99561054dc983475b.jpg') center/cover no-repeat;; */
    overflow: hidden;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* backdrop-filter: blur(2px); */
    z-index: 0;
}
.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-container {
    display: flex;
    /* align-items: center; */
    flex-wrap: wrap;
    align-items: stretch;
    gap: 50px;
}

.about-container > div {
    min-width: 200px;
}

.about-image {
    display: flex;
    flex: 2;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease;

    height: 300px;
    width: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;

    background-image: url('/img/hero-bg/construct/section/1.jpg');
    background-size: cover;
    background-position: center;
}

.about-content {
    flex: 2;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease;
}

.about-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;
}

.about-description {
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    padding-left: 1rem;
}

.about-feature {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-icon {
    color: var(--primary-orange);
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.about-feature:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: #e65c00;
}

h2 {
    font-weight: 700;
}

.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: #ff5e00;
    color: #fff;
}

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

/* 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;
}