/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}

.main-nav {
    padding: 0;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.utility-links a:hover {
    color: #4CAF50;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
}

.main-nav {
    padding: 0;
    margin-left: auto;
    background: rgba(255,255,255,0.8);
    border-radius: 25px;
    padding: 8px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.main-nav a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.main-nav a:hover::before {
    left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,25 50,50 T100,50 V100 H0 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text {
    flex: 1;
    color: white;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.filter-group {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    color: #333;
}

.filter-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #FF9800;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #4CAF50;
}

.filter-btn.active {
    background: #FF9800;
    color: white;
    border-color: #FF9800;
}

/* Search Bar Section */
.search-bar-section {
    background: white;
    padding: 0;
    margin-top: 0;
}

.search-bar-white-area {
    background: white;
    padding: 15px 0;
    text-align: center;
    margin: 0;
}

.search-bar-white-area input {
    width: 100%;
    max-width: 600px;
    padding: 20px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 35px;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background: white;
}

.search-bar-white-area input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.search-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    padding: 15px 35px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.search-btn:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.reset-btn {
    padding: 15px 30px;
    background: rgba(255,255,255,0.9);
    color: #333;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.reset-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: image-float 6s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-gentle 8s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.floating-icon i {
    font-size: 24px;
    color: white;
    animation: icon-pulse 3s ease-in-out infinite;
}

.family-icon {
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    animation-delay: 0s;
}

.heart-icon {
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #E91E63, #C2185B);
    animation-delay: 2s;
}

.star-icon {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFC107, #FF9800);
    animation-delay: 4s;
}

/* New Animations */
@keyframes image-float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-10px) scale(1.02); 
    }
}

@keyframes float-gentle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(5deg); 
    }
}

@keyframes icon-pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

/* News Section */
.news-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.news-section .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-column h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.news-column h2 i {
    color: #4CAF50;
    cursor: pointer;
    transition: transform 0.3s;
}

.news-column h2 i:hover {
    transform: rotate(45deg);
}

.news-column ul {
    list-style: none;
}

.news-column li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-column li:last-child {
    border-bottom: none;
}

.date {
    color: #666;
    font-size: 14px;
    min-width: 80px;
}

/* Service Blocks */
.service-blocks {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-block {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-block.pink {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.service-block.blue {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.service-block.green {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.service-block.white {
    background: white;
    color: #333;
}

.service-illustration {
    margin-bottom: 20px;
}

.pink-blob-small {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50% 30% 70% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.blue-hex {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.green-blob {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 30% 70% 70% 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-illustration i {
    font-size: 30px;
    color: white;
}

.service-block h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-block p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.service-links {
    margin-bottom: 20px;
}

.service-links a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: background 0.3s;
}

.service-links a:hover {
    background: rgba(255,255,255,0.3);
}

.go-btn {
    padding: 12px 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.go-btn:hover {
    background: rgba(255,255,255,0.3);
}

.service-block.white .go-btn {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.service-block.white .go-btn:hover {
    background: #388E3C;
}

/* Promotional Carousel */
.promo-carousel {
    padding: 80px 0;
    background: #f8f9fa;
}

/* แก้ไขปัญหาสไลด์แรกไม่แสดงผล */
.carousel-slide:first-child {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2;
    visibility: visible;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.carousel-nav {
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: #4CAF50;
    color: white;
}

.carousel-nav i {
    font-size: 18px;
}

.carousel-slides {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.carousel-slide {
    min-width: 100%;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2;
    visibility: visible;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    border-radius: 20px;
    color: white;
    min-height: 200px;
    width: 100%;
    height: 100%;
}

.promo-card.pink {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
}

.promo-card.teal {
    background: linear-gradient(135deg, #20B2AA, #008B8B);
}

.promo-card.blue {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.promo-illustration {
    flex-shrink: 0;
}

.woman-baby, .man-child, .family {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.promo-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.promo-content p {
    font-size: 16px;
    opacity: 0.9;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: #4CAF50;
    transform: scale(1.2);
}

.dot.active {
    background: #4CAF50;
    border-color: #4CAF50;
    transform: scale(1.1);
}

/* Footer */
.footer-top {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-logos {
    display: flex;
    gap: 30px;
}

.logo-item {
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.scroll-top {
    width: 50px;
    height: 50px;
    border: none;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: #1976D2;
}

.footer-bottom {
    background: #1a237e;
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #90CAF9;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #BBDEFB;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.dropdown-group select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 5px;
}

.dropdown-group select option {
    background: #1a237e;
    color: white;
}

.footer-info {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.contact-info {
    margin-bottom: 20px;
}

.address, .phone {
    margin-bottom: 5px;
    color: #BBDEFB;
}

.copyright p {
    margin-bottom: 10px;
    color: #90CAF9;
}

.disclaimer {
    font-size: 12px;
    color: #BBDEFB;
    line-height: 1.4;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* Statistics Section */
.statistics-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 35px;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-item {
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #FF9800;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
}

.step-icon i {
    font-size: 45px;
    color: white;
}

.step-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.step-item p {
    color: #666;
    line-height: 1.6;
}

/* Safety & Standards Section */
.safety-standards {
    padding: 80px 0;
    background: #f8f9fa;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.standard-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.standard-item:hover {
    transform: translateY(-10px);
}

.standard-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E91E63, #C2185B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.standard-icon i {
    font-size: 35px;
    color: white;
}

.standard-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.standard-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #666;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer.active {
    padding: 25px 30px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.testimonial-item:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 20px;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.author-info span {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
/* Mobile Menu Toggle (แฮมเบอร์เกอร์เมนู) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-section .container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* ปรับขนาด Statistics สำหรับมือถือ */
    .statistics-section {
        padding: 50px 0;
    }
    
    .stat-item {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
        margin-bottom: 8px;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* แสดงแฮมเบอร์เกอร์เมนู */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* ซ่อนเมนูปกติและแสดงเป็น slide-in menu */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 0 20px 0;
        overflow-y: auto;
        border-radius: 0;
        backdrop-filter: blur(20px);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        align-items: stretch;
    }
    
    .main-nav li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 18px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        border-radius: 0;
        transition: all 0.3s ease;
        position: relative;
        background: transparent;
    }
    
    .main-nav a:hover,
    .main-nav a:active {
        background: linear-gradient(135deg, #4CAF50, #66BB6A);
        color: white;
        transform: translateX(5px);
        box-shadow: none;
    }
    
    .main-nav a::before {
        display: none;
    }
    
    /* ปรับ header layout สำหรับมือถือ */
    .header-top {
        justify-content: space-between;
        padding: 15px 20px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .carousel-container {
        flex-direction: column;
        position: relative;
        min-height: 250px;
    }
    
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    /* แก้ไขปัญหาสไลด์ไม่แสดงบนมือถือ */
    .carousel-slides {
        height: 220px;
        background: #f8f9fa;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
    }
    
    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide.active {
        opacity: 1 !important;
        transform: translateX(0) !important;
        z-index: 2;
        visibility: visible;
    }
    
    .carousel-slide.prev {
        transform: translateX(-100%);
        z-index: 1;
    }
    
    .promo-card {
        padding: 20px;
        border-radius: 15px;
        gap: 15px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .woman-baby, .man-child, .family {
        width: 80px;
        height: 80px;
        font-size: 30px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        margin-bottom: 10px;
    }
    
    .promo-content {
        flex: 1;
        text-align: center;
    }
    
    .promo-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .promo-content p {
        font-size: 13px;
        line-height: 1.4;
        opacity: 0.9;
    }
    
    .carousel-dots {
        margin-top: 20px;
        gap: 8px;
        display: flex;
        justify-content: center;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #ddd;
        border: 2px solid transparent;
    }
    
    .dot.active {
        background: #4CAF50;
        border-color: #4CAF50;
        transform: scale(1.1);
    }
    
    .dot:active {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .filter-group {
        padding: 20px;
    }
    
    .service-block {
        padding: 30px 20px;
    }
    
    /* ปรับขนาด Statistics สำหรับหน้าจอเล็กมาก */
    .statistics-section {
        padding: 40px 0;
    }
    
    .stats-grid {
        gap: 12px;
        padding: 0 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }
    
    .stat-icon i {
        font-size: 18px;
        line-height: 45px;
    }
    
    .stat-number {
        font-size: 22px;
        margin-bottom: 5px;
        font-weight: 700;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 12px;
        line-height: 1.2;
        color: #666;
    }
}
