* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pridi", serif;
    font-weight: 300;
    font-style: normal;
}

body {
    background-color: #f8f9fa;
}

/* ===== NAVIGATION BAR ===== */
header {
    position: fixed;
    width: 100%;
    height: 120px;
    top: 0;
    left: 0;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    background: #ffffff;
    /* เริ่มต้นโปร่งใส */
}

/* Navbar มีพื้นหลังเมื่อเลื่อนลง */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
}

.logo img {
    display: flex;
    align-items: center;
    width: 150px;
}

.logo:hover {
    color: #0056b3;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* เอฟเฟกต์เส้นใต้ไล่สี */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #008cff, #00c3ff);
    transition: width 0.4s ease, left 0.4s ease;
    border-radius: 5px;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #008cff;
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #008cff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        padding: 15px;
        display: none;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* เมื่อเมนูเปิด */
    nav ul.active {
        display: flex;
    }
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
}

.page-margin {
    width: 90%;
    height: auto;
    margin: 0 auto;
}
.contract-text h1{
    display: flex;
    justify-content: center;
    margin-top: 115px;

}
.branch-container{
    margin-left: 10%;
    margin-right: 10%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
}
.branch{
    display: flex;
    justify-content: center;
    position: relative;
    display: inline-block;
}
.branch img {
    padding: 10px;
    display: block;
    width: 90%;
    border-radius: 5px; /* เพิ่มความโค้ง */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ดูมีมิติ */
    transition: transform 1500ms ease-out;
}
.branch-container :hover{
    transition: transform 1500ms ease-out;
    transform: scale(1.02);
}
.branch h1{
    position: absolute;
    bottom: 50px; /* ตำแหน่งจากด้านล่าง */
    color: white; /* เปลี่ยนสีข้อความให้มองเห็นชัด */
    background: rgba(0, 0, 0, 0.5); /* เพิ่มพื้นหลังโปร่งแสงให้ข้อความอ่านง่าย */
    padding: 10px;
    font-size: 1.5em;
    text-align: center;
    width: 90%;
    height: 20%;
}
.contact-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
}
.info {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.info img{
    width: 35px;
}
.info h1{
    font-size: 24px;
    text-align: center;
}
.google-map{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}
.google-map iframe{
    width: 80%;
    height: 500px;
    
}
.form-container {
    max-width: 600px;
    background: white;
    padding: 20px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
button:hover {
    background-color: #0056b3;
}
.footer-container{
  width: 100% !important;
  background-color:#003c81;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 30px;
  padding-bottom: 30px;

}
.footer-block{
  margin-left : 10px;
  display: flex;
  justify-content: center;
  width: 80%;
}
.col-1 h1{
  color: whitesmoke;
  font-size: 16px;
  text-align: center;
  padding-bottom: 20px;
}
.col-1 h2{
  color: whitesmoke;
  font-size: 12px;
  text-align: center;
} 
.col-2 h1{
  color: whitesmoke;
  font-size: 18px;
  text-align: center;
  padding-bottom: 20px;
}
.col-2 h2{
  color: whitesmoke;
  font-size: 14px;
  text-align: center;
}
.col-3 h1{
  color: whitesmoke;
  font-size: 18px;
  text-align: center;
  padding-bottom: 20px;
}
.col-3 h2{
  color: whitesmoke;
  font-size: 14px;
  text-align: center;
}
.col-4 h1{
  color: whitesmoke;
  font-size: 18px;
  text-align: center;
  padding-bottom: 20px;
}
.col-4 h2{
  color: whitesmoke;
  font-size: 14px;
  text-align: center;
}