
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #17345f;
    background: #f4fbff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */

.header {
    background: #ffffff;
    border-bottom: 4px solid #16a34a;
    padding: 18px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6633FF;
}

.logo::first-letter {
    color: #16a34a;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: #17345f;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: 0.3s;
}

.menu a:hover {
    color: #16a34a;
}

/* =========================
   HERO
========================= */

/*.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(
        #FFFFFF,
        #FFFFCC,
        #6633FF
    );
} */
.hero {
    position: relative;
    overflow: hidden;

    text-align: center;
    padding: 100px 20px;

    background: #222;
}

/* ภาพ Background */
.hero::before {
    content: "";

    position: absolute;
    inset: -20px;

    background-image: url("../images/hero_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(3px);

    z-index: 0;
}

/* ชั้นดำบาง ๆ ช่วยให้ข้อความอ่านง่าย */
.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.20);

    z-index: 1;
}

/* เนื้อหาใน Hero อยู่ด้านบน */
.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 34px;
    font-weight: 600;
    color: #17345f;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 35px;
}

.button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.button:hover {
    background: #f5c400;
    color: #17345f;
    transform: translateY(-2px);
}

/* =========================
   CAPABILITIES
========================= */

.capabilities {
    padding: 80px 0;
    text-align: center;
    background: #f4fbff;
}

.capabilities h2 {
    font-size: 36px;
    font-weight: 700;
    color: #17345f;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.capabilities-intro {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 45px;
}

.capability-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.capability {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid #d8f0ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.capability h3 {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 700;
    color: #17345f;
}

.capability p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.capability-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef9ff;
    border: 2px solid #d8f0ff;

    color: #17345f;
    font-size: 26px;
    font-weight: 700;

    transition: 0.3s;
}

.capability:hover .capability-icon {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-3px);
}

/* =========================
   SERVICES
========================= */

.services {
    padding: 80px 0;
    text-align: center;
    background: #ffffff;
}

.services h2 {
    font-size: 36px;
    font-weight: 700;
    color: #17345f;
    margin-bottom: 45px;
    letter-spacing: 0.5px;
}
.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service {
    padding: 40px 20px;
    min-height: 190px;
    background: #f8fdff;
    border-radius: 20px;
    border: 3px solid #d8f0ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service:nth-child(1) {
    border-top: 6px solid #17345f;
}

.service:nth-child(2) {
    border-top: 6px solid #16a34a;
}

.service:nth-child(3) {
    border-top: 6px solid #f5c400;
}

.service:nth-child(4) {
    border-top: 6px solid #f97316;
}

.service h3 {
    margin-bottom: 15px;
    color: #17345f;
    font-size: 21px;
    font-weight: 700;
}

.service p {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.service-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 25px;
    font-weight: 700;

    background: #f8fdff;
    border: 2px solid #d8f0ff;

    color: #17345f;

    transition: 0.3s;
}

.service:nth-child(1) .service-icon {
    color: #17345f;
}

.service:nth-child(2) .service-icon {
    color: #16a34a;
}

.service:nth-child(3) .service-icon {
    color: #f5c400;
}

.service:nth-child(4) .service-icon {
    color: #f97316;
}

.service:hover .service-icon {
    transform: translateY(-3px);
}

/* =========================
   WHY US
========================= */

.why-us {
    padding: 80px 0;
    text-align: center;
    background: #ffffff;
}

.why-us h2 {
    font-size: 36px;
    font-weight: 700;
    color: #17345f;
    margin-bottom: 15px;
}

.why-us-intro {
    max-width: 800px;
    margin: 0 auto 45px;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.why-us-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-us-item {
    padding: 30px 20px;
    background: #f8fdff;
    border-radius: 18px;
    border: 2px solid #d8f0ff;
}

.why-us-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #17345f;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.why-us-item h3 {
    margin-bottom: 12px;
    color: #17345f;
    font-size: 20px;
}

.why-us-item p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================
   CONTACT
========================= */

.contact {
    padding: 80px 0;
    text-align: center;
    background: #f4fbff;
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    color: #17345f;
    margin-bottom: 15px;
}

.contact-intro {
    max-width: 750px;
    margin: 0 auto 45px;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-item {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid #d8f0ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.contact-item h3 {
    margin-bottom: 12px;
    color: #17345f;
    font-size: 20px;
}

.contact-item p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.contact-item p a {
    color: #17345f;
    text-decoration: none;
    font-weight: 600;
}

.contact-item p a:hover {
    color: #16a34a;
}

.contact-facebook {
    margin-top: 40px;
}

.contact-map {
    margin-top: 40px;
}

.contact-facebook {
    margin-top: 15px;
}

.contact-button {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;

    background: #17345f;
    color: #ffffff;

    text-decoration: none;
    font-weight: bold;
    font-size: 17px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);

    transition: 0.3s;
}

.contact-button:hover {
    background: #16a34a;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #17345f;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    border-top: 6px solid #16a34a;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {
	
	.contact {
    padding: 60px 0;
}

.contact h2 {
    font-size: 30px;
}

.contact-intro {
    font-size: 17px;
    padding: 0 10px;
}

.contact-list {
    grid-template-columns: 1fr;
}
	
	.why-us {
    padding: 60px 0;
}

.why-us h2 {
    font-size: 30px;
}

.why-us-intro {
    font-size: 17px;
    padding: 0 10px;
}

.why-us-list {
    grid-template-columns: 1fr;
}
	
	.capability-list {
    grid-template-columns: 1fr;
}

.capabilities {
    padding: 60px 0;
}

.capabilities h2 {
    font-size: 30px;
}

.capabilities-intro {
    font-size: 17px;
    padding: 0 10px;
}

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 70px 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
	
	#visitor-counter {
    text-align: center;
    padding: 10px;
    font-size: 16px;
}
	
}

