/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  padding-top: 70px; /* เพิ่มตรงนี้ */
}

header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}


.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

nav {
  display: flex;
}

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

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #4CAF50;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: #333;
}

/* Side menu */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 2000;
}

.side-menu a {
  padding: 15px 30px;
  text-decoration: none;
  font-size: 18px;
  color: #333;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  color: #4CAF50;
}

.side-menu .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.intro-text {
  text-align: center;
  margin-bottom: 20px;
}

.intro-text p {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #333;
}

.copy-trade-section {
  text-align: center;
  margin-bottom: 20px;
}

.copy-trade-section h2 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 15px;
}

.copy-trade-section p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.three-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.column {
  flex: 1 1 30%;
  padding: 15px;
  text-align: center;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.column img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.column b {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
}

.column .myfxbook-widget {
  width: 100%;
  height: auto;
  margin-top: 15px;
}

.column p {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.message-box {
  margin-top: 10px;
  font-size: 1rem;
  color: #444;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.button-container a button {
  font-size: 16px;
  padding: 10px 20px;
  margin-right: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.open-port-button {
  background-color: #4CAF50;
  color: white;
}

.copy-trade-button {
  background-color: #008CBA;
  color: white;
}

.open-port-button:hover,
.copy-trade-button:hover {
  transform: translateY(-3px);
}

.open-port-button:focus,
.copy-trade-button:focus {
  outline: none;
}

footer {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.footer-content {
  max-width: 1200px; /* ขนาดเดียวกับ container */
  margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px; /* ถ้าอยากเผื่อขอบซ้ายขวานิดนึง */
}

.footer-left {
  max-width: 60%;
}

.footer-left p {
  margin: 5px 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-right a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-right a:hover img {
  transform: scale(1.2);
}

footer p a {
  color: #008CBA;
  text-decoration: none;
}

/* ส่วนที่ปรับเฉพาะสำหรับมือถือ */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 2000;
}

.side-menu a {
  padding: 15px 30px;
  text-decoration: none;
  font-size: 18px;
  color: #333;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  color: #4CAF50;
}

.side-menu .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

/* Media Queries สำหรับมือถือ */
@media (max-width: 768px) {
  /* ซ่อนเมนูหลัก */
  nav {
    display: none;
  }

  /* แสดงปุ่มเมนู */
  .menu-toggle {
    display: block;
  }

  /* ซ่อนเมนูข้างเริ่มต้น */
  .side-menu {
    width: 0;
  }

  /* แสดงเมนูข้างเมื่อเปิด */
  .side-menu.open {
    width: 250px;
  }

  /* ปรับขนาดข้อความในเมนู */
  .side-menu a {
    font-size: 1.2rem;
  }

  /* ลดขนาดโลโก้บนมือถือ */
  .logo {
    font-size: 1.2rem;
  }
}
/* ส่วนเพิ่มเติมใหม่ */
.row-four {
  margin-top: 40px;
  margin-bottom: 20px;
}

.widget-container {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.food {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.food div {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.icon-container a img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.icon-container a img:hover {
  transform: scale(1.15);
}

section, .container, .copy-trade-section, .row-four, .intro-text {
  scroll-margin-top: 60px;
}

