/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 100px auto 20px auto; /* เพิ่ม margin-top เพื่อหลีกเลี่ยงการทับซ้อนกับ header ของเว็บไซต์หลัก */
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.daily-chat-label {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.top-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9em;
}

.chat-now-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.chat-now-btn:hover {
    background-color: #004085;
}

/* Main Navigation */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.my-text-element {
    position: relative;
    top: -60px; /* เลื่อนขึ้นไป 20px */
}


.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.nav-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-item {
    flex-shrink: 0;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.nav-link.active {
    border-bottom: 2px solid #007bff;
}

.nav-link.travel-active {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    border-bottom: none;
}

.nav-link.travel-active:hover {
    background-color: #0056b3;
    color: white;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
}

.card-chart .chart-placeholder {
    width: 100%;
    height: 150px; /* Adjust as needed */
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-chart .chart-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85em;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-item::before {
    content: '';
    width: 15px;
    height: 3px;
    margin-right: 5px;
    border-radius: 2px;
}

.line-pink::before {
    background-color: #FF6B6B;
}

.line-blue::before {
    background-color: #007bff;
}

.line-purple::before {
    background-color: #9B59B6;
}

/* Hotel List Card */
.card-list .subtitle {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 15px;
}

.hotel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.hotel-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #333;
}

.hotel-list li:last-child {
    margin-bottom: 0;
}

.hotel-list .rank {
    font-weight: bold;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.hotel-list img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 3px;
    object-fit: cover;
}

.hotel-list .percentage {
    margin-left: auto;
    font-weight: bold;
    color: #007bff;
}

.view-full-list {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto; /* Pushes it to the bottom */
}

.view-full-list i {
    font-size: 0.8em;
}

.view-full-list:hover {
    text-decoration: underline;
}

/* Text Only Card */
.card-text-only {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px; /* Ensure consistent height */
}

.card-text-only p {
    margin: 0;
    font-weight: 500;
}

/* Image Text Card (New York City) */
.card-image-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-image-text .text-content {
    flex: 1;
}

.card-image-text .image-content {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-text .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container5{
    max-width: 1200px;
    margin: 40px auto 60px auto; /* ลองปรับค่านี้ */
    padding: 0 20px;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.stats-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
}

.stats-list li i {
    margin-right: 8px;
    color: #ffc107; /* Star color */
}

.stats-list li .percentage {
    margin-left: auto;
    font-weight: bold;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .top-banner p {
        margin-bottom: 10px;
    }

    .nav-list {
        padding: 0 10px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .card-image-text {
        flex-direction: column;
        text-align: center;
    }

    .card-image-text .image-content {
        order: -1; /* Move image above text on small screens */
        margin-bottom: 15px;
    }

    .stats-list {
        justify-content: center;
    }
}



/* Styles from testimonials-section.css */
.testimonials-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    background: linear-gradient(to right, #ff6b6b, #6a0dad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}


.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.testimonials-section .container {
    max-width: 1200px; /* หรือค่าที่เหมาะสมกับความกว้างสูงสุดที่คุณต้องการ */
    margin: 0 auto; /* ทำให้ container อยู่กึ่งกลาง */
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* กำหนดให้มี 4 คอลัมน์เท่ากัน */
    gap: 30px;
    /* ไม่ต้องเพิ่ม margin: 0 auto; ที่นี่ เพราะ container ด้านนอกจัดการแล้ว */
}

/* เพิ่ม Media Query สำหรับ Responsive Design */
@media (max-width: 1200px) { /* ปรับจำนวนคอลัมน์เมื่อหน้าจอเล็กลง */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์สำหรับหน้าจอขนาดกลาง */
    }
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์สำหรับหน้าจอแท็บเล็ต */
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* 1 คอลัมน์สำหรับหน้าจอมือถือ */
    }
}


.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: contain;
}

.initials-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author {
    font-weight: bold;
    color: #333;
    margin: 0;
    font-size: 1.1em;
}

.author-title {
    color: #777;
    font-size: 0.9em;
    margin: 0;
}

.quote {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '“';
    font-size: 4em;
    color: #e0e0e0;
    position: absolute;
    left: 0;
    top: -10px;
    line-height: 1;
}

.star-rating {
    color: #ffc107; /* Gold color for stars */
    margin-bottom: 15px;
}

.star-rating i {
    margin-right: 2px;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: auto; /* Pushes tag to the bottom */
    align-self: flex-start; /* Aligns tag to the left */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px;
    }

    .quote {
        font-size: 0.95em;
    }
}

