/* Reset box model and set global font */
* {
    box-sizing: border-box;
}

/* Testimonials section */
.testimonials {
    background: #ffffff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #475569;
}
.testimonial-author {
    align-self: flex-end;
    font-weight: 600;
    color: #1e40af;
}

/* Solutions section */
.solutions {
    background: #f9fafb;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.solutions h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.solution-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.solution-card h3 {
    margin-top: 0;
    color: #1e40af;
    font-size: 1.4rem;
}
.solution-card p {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

body {
    margin: 0;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #1e293b;
    background: #f9fafb;
    line-height: 1.6;
}

/* Utility container */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Navigation bar styling */
header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e40af;
}

/* Adjust logo image */
.logo img {
    height: 48px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #1e40af;
}

/* Hero section */
.hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 71, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #1e40af;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #1e3a8a;
}

.btn.secondary {
    background: #fbbf24;
    color: #1e293b;
}

.btn.secondary:hover {
    background: #f59e0b;
    color: #ffffff;
}

/* Services section */
.services {
    background: #ffffff;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1e293b;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #1e40af;
    margin-top: 0;
    font-size: 1.4rem;
}

.service-card h4 {
    margin: 0.8rem 0 0.4rem;
    color: #1e293b;
    font-size: 1.1rem;
}

.service-card p {
    margin: 0 0 0.6rem;
    color: #475569;
    font-size: 0.95rem;
}

/* Why consult section */
.why-consult {
    background: #f9fafb;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.why-consult h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.reasons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reason .number {
    background: #1e40af;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.reason p {
    margin: 0;
    color: #475569;
}

/* Why us section */
.why-us {
    background: #ffffff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.why-us h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.why-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.why-us-text {
    flex: 1 1 300px;
}

.why-us-text ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.why-us-text li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.why-us-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #1e40af;
}

.why-us-image {
    flex: 1 1 300px;
}

.why-us-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ section */
.faq {
    background: #f9fafb;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin: 0;
    color: #1e40af;
    font-size: 1.2rem;
}

.faq-item p {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

/* Contact section */
.contact {
    background: #ffffff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-info .cta {
    color: #1e40af;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.contact-details a {
    color: #1e40af;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-image {
    flex: 1 1 300px;
}

.contact-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Footer */
footer {
    background: #1e40af;
    color: #ffffff;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

footer p {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .why-us-content {
        flex-direction: column;
    }
    .contact-wrapper {
        flex-direction: column;
    }
}