* {
    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;
}

.hero {
    background: url('/img/pro/banner_pro.png') no-repeat center center/cover;
    height: 500px;
    color: white;
    padding: 120px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .textbox {
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    position: relative;
    margin-top: 100px;
    letter-spacing: 5px;
    overflow: hidden;
    background-size: 80%;
    border-bottom: solid 5px #ffffff;
}

.general-text {
    margin-top: 50px;
}
.page-margin .wrap{
    display: flex;
}
.top-col{
    display: flex;
    align-items: center;
    margin: 20px;
    margin-bottom: 150px;
}
.general-text h1 {
    font-size: 24px;
    color: #1E2B4F;
    font-weight: bold;
    text-align: center;
}
.top-text{
    margin-bottom: 50px;
}
.top-text h1{
    display: flex;
    justify-content: center;
}
.top-text h2{
    display: flex;
    justify-content: center;
}
.general-chem {
    background-color: #ffffff;
}

.general-chem h2 {
    font-size: 16px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}
a {
    text-decoration: none;
}
.general-chem {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background-color: #ffffff;
}
.general-chem .general-chem-photo-grid {
    background: linear-gradient(to bottom, #ffffff, #747474);
    border-radius: 10px;
    width: 280px;
    margin-bottom: 50px ;
}
.general-chem .general-chem-photo-grid img {
    width: auto;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gen-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}
.general-text :hover{
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
    text-decoration: underline;
}
.gen-chem-item:hover{
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
    text-decoration: underline;
    color:#ffffff;
}
.gen-chem-item h1{
    font-size: 18px;
    color: #ffffff;
}

/* .palm-text {
    padding-top: 150px;
}

.palm-text h1 {
    font-size: 36px;
    color: #1E2B4F;
    font-weight: bold;
}

.palm-chem {
    background-color: #ffffff;
}

.palm-chem h2 {
    font-size: 28px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}

.palm-chem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
}

.palm-chem .palm-chem-photo-grid img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.palm-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.palm-chem-item:hover{
    color:#1E2B4F;
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
}
.sugar-text {
    padding-top: 150px;
}

.sugar-text h1 {
    font-size: 36px;
    color: #1E2B4F;
    font-weight: bold;
}

.sugar-chem {
    background-color: #ffffff;
}

.sugar-chem h2 {
    font-size: 28px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}

.sugar-chem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
}

.sugar-chem .sugar-chem-photo-grid img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sugar-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.sugar-chem-item:hover{
    color:#1E2B4F;
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
}
.etha-text {
    padding-top: 100px;
}

.etha-text h1 {
    font-size: 36px;
    color: #1E2B4F;
    font-weight: bold;
}

.etha-chem {
    background-color: #ffffff;
}

.etha-chem h2 {
    font-size: 28px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}

.etha-chem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
}

.etha-chem .etha-chem-photo-grid img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.etha-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.etha-chem-item:hover{
    color:#1E2B4F;
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
}
.rubber-text {
    margin-top: 50px;
}

.rubber-text h1 {
    font-size: 36px;
    color: #1E2B4F;
    font-weight: bold;
}

.rubber-chem {
    background-color: #ffffff;
}

.rubber-chem h2 {
    font-size: 28px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}

.rubber-chem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
}

.rubber-chem .rubber-chem-photo-grid img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rubber-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.rubber-text {
    padding-top: 100px;
}

.rubber-text h1 {
    font-size: 36px;
    color: #1E2B4F;
    font-weight: bold;
}

.rubber-chem {
    background-color: #ffffff;
}

.rubber-chem h2 {
    font-size: 28px;
    color: #34495e;
    font-weight: bold;
    background-color: #ffffff;
}

.rubber-chem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #ffffff;
}

.rubber-chem .rubber-chem-photo-grid img {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rubber-chem-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.rubber-chem-item:hover{
    color:#1E2B4F;
    transform: translateY(-5px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out;
    transform: translateY(-5px);
} */
.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;
}