/* รีเซ็ตพื้นฐาน */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
}

a {
  text-decoration: none;
}

/* ✅ TOP BAR */
.topbar {
  background: #000;
  padding: 10px 0;
  border-bottom: 2px solid orange;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
}

/* ปุ่ม */
.btn.orange {
  background: orange;
  color: #000;
}

.btn.white {
  background: white;
  color: #000;
}

.btn.green {
  background: #06c755;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
  transition: 0.2s;
}

/* ✅ HERO IMAGE */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 90vh;
}

/* ✅ SECTION: INTRO */
.intro {
  background: #111;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid orange;
}

.intro h2 {
  color: orange;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.intro p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
  color: #ddd;
}

/* ✅ Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro h2 {
    font-size: 1.4rem;
  }

  .intro p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .nav-menu a {
    display: none;
  }

  .nav-menu a.btn {
    display: inline-block;
  }

  .logo img {
    height: 35px;
  }

  .hero-img {
    max-height: 60vh;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ✅ SECTION: บริการของเรา */
.services {
  padding: 40px 10px;
  text-align: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background: #000;
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #222;
}

.service-card h3 {
  color: orange;
  font-size: 1.1rem;
  margin: 10px 0 4px;
}

.service-card p {
  color: #bbb;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* Hover effect */
.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}


/* ข้อความด้านล่าง */
.service-text h2 {
  color: orange;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-text p {
  color: #ccc;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .service-text h2 {
    font-size: 1.3rem;
  }

  .service-text p {
    font-size: 0.95rem;
  }
}
/* ✅ CTA SECTION */
.cta-section {
  padding: 60px 20px;
  text-align: center;
}

.cta-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.cta-section h2 {
  color: orange;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.cta-section p {
  color: #ccc;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 1.3rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }
}
/* ✅ SECTION: แทงบอลออนไลน์ */
.two-column {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 20px;
}

.football-types .left {
  flex: 1;
  min-width: 300px;
}

.football-types .left h2 {
  color: orange;
  margin-bottom: 20px;
}

.football-types .left ul {
  list-style: none;
  padding-left: 0;
}

.football-types .left li {
  margin-bottom: 10px;
  color: #ccc;
  font-size: 1rem;
  position: relative;
  padding-left: 24px;
}

.football-types .left li::before {
  content: "⚽";
  position: absolute;
  left: 0;
  color: orange;
}

/* RIGHT SIDE */
.football-types .right {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.right-img {
  max-width: 50%;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.football-types .right h3 {
  color: orange;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.football-types .right p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
    align-items: center;
  }

  .football-types .right p {
    font-size: 0.95rem;
  }

  .football-types .left li {
    font-size: 0.95rem;
  }
}
/* ✅ SECTION: ยูฟ่าเบท */
.ufabet-highlight {
  padding: 60px 20px;
  text-align: center;
}

.ufabet-highlight h2 {
  color: orange;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.ufabet-highlight h3 {
  color: #ffcc00;
  font-size: 1.4rem;
  margin: 40px 0 20px;
  border-top: 2px solid orange;
  padding-top: 20px;
}

.ufabet-highlight p {
  color: #ccc;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 30px;
}

.banner-img-full {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255,165,0,0.3);
  margin: 20px auto;
  display: block;
}

.ufabet-list {
  list-style: none;
  max-width: 800px;
  margin: auto;
  padding: 0;
  text-align: left;
}

.ufabet-list li {
  padding-left: 25px;
  margin-bottom: 12px;
  position: relative;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6;
}

.ufabet-list li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  color: orange;
}

/* Responsive */
@media (max-width: 768px) {
  .ufabet-highlight h2 {
    font-size: 1.3rem;
  }

  .ufabet-highlight h3 {
    font-size: 1.2rem;
  }

  .ufabet-list li {
    font-size: 0.95rem;
  }
}
/* ✅ ARTICLE SECTION */
.article-section {
  padding: 60px 20px;
  text-align: center;
  color: #ccc;
}

.article-section h2 {
  color: orange;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.article-section h3 {
  color: #ffcc00;
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: left;
}

.article-section p {
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
  font-size: 1rem;
  text-align: left;
}

.article-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 0 10px rgba(255,165,0,0.3);
}

.odds-list {
  list-style: none;
  padding-left: 0;
  max-width: 850px;
  margin: 0 auto 20px;
  text-align: left;
}

.odds-list li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
}

.odds-list li::before {
  content: "⚽";
  position: absolute;
  left: 0;
  color: orange;
}

/* Responsive */
@media (max-width: 768px) {
  .article-section h2 {
    font-size: 1.3rem;
  }

  .article-section h3 {
    font-size: 1.15rem;
  }

  .article-section p,
  .odds-list li {
    font-size: 0.95rem;
  }
}
/* จัดหัวข้อไม่ให้ล้นขอบ */
h1, h2, h3 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  word-wrap: break-word;
  padding: 0 20px;
}
/* ✅ Reuse styles for consistency */
.article-section {
  padding: 60px 20px;
  text-align: center;
  color: #ccc;
}

.article-section h2 {
  color: orange;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.article-section h3 {
  color: #ffcc00;
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: left;
}

.article-section p {
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
  font-size: 1rem;
  text-align: left;
}

.article-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 0 10px rgba(255,165,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .article-section h2 {
    font-size: 1.3rem;
  }

  .article-section h3 {
    font-size: 1.15rem;
  }

  .article-section p {
    font-size: 0.95rem;
  }
}
/* ✅ FOOTER SECTION */
.footer {
  background: #000;
  background-image: url('https://img.freepik.com/premium-photo/dark-futuristic-background-with-light-lines-ai-generated_759095-9948.jpg');
  background-size: cover;
  background-position: center;
  color: #ccc;
  padding: 60px 20px 30px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand img {
  max-width: 150px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li strong {
  color: orange;
  display: block;
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: orange;
}

.footer-social {
  margin: 30px 0;
}

.footer-social a {
  margin: 0 8px;
  display: inline-block;
}

.footer-social img {
  width: 32px;
  height: 32px;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: orange;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links ul {
    margin-bottom: 20px;
  }
}
/* ✅ Floating Line Button */
.floating-line-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #00c300;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  transition: transform 0.2s ease-in-out;
}

.floating-line-btn:hover {
  transform: scale(1.1);
}

.floating-line-btn img {
  width: 48px;
  height: 48px;
  display: block;
}
/* จัดเนื้อหาโพสต์ให้อยู่กลาง */
.post-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* จัดกึ่งกลางแนวนอน */
}

/* จัดข้อความกับหัวข้อให้อยู่กลาง */
.post-container h1,
.post-container h2,
.post-container p {
  text-align: center;
}

/* จำกัดความกว้างของเนื้อหาให้อ่านง่าย */
.post-content {
  max-width: 800px;
  margin: 0 auto;
}

/* จัดรูปภาพให้อยู่กลาง */
.post-container img {
  display: block;
  margin: 0 auto;
  max-width: 30%;
  height: auto;
  border-radius: 10px;
}
.post-header {
  text-align: center; /* จัดกลางทั้งหัวข้อและรูป */
}

.post-header img {
  display: block;
  margin: 0 auto; /* จัดรูปให้อยู่กลาง */
  max-width: 30%;
  height: auto;
}
.post-header {
  text-align: center; /* จัดกลางทั้งหัวข้อและรูป */
  margin-bottom: 20px;
}

.post-header .post-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.post-header .post-cover {
  max-width: 30%;
  height: auto;
  display: inline-block; /* ให้รูปอยู่กลางตาม text-align */
}
.bio {
  text-align: center;
  margin: 40px auto;
}
.bio-img {
  width: 150px;
  border-radius: 50%;
}
.bio-buttons {
  margin-top: 20px;
}
.bio-buttons .btn {
  margin: 5px;
  padding: 10px 20px;
  display: inline-block;
}
.promo-section {
  margin: 50px auto;
  text-align: center;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.promo-grid img {
  width: 100%;
  border-radius: 10px;
}

