/*
Theme Name: Hello Elementor Child - คลับบอลสด
Theme URI: https://clubballsod.com/
Description: Child theme สำหรับ Hello Elementor ของเว็บ คลับบอลสด — กำหนดโครง Header/Footer และโทนสีฟ้า-ดำ
Author: ClubBallSod
Author URI: https://clubballsod.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
*/

/* ────────────────────────────────────────────────
   พื้นหลังทั้งเว็บ + ซ่อน page title default
   ──────────────────────────────────────────────── */
html, body {
  background: linear-gradient(160deg, #05070d 0%, #0a1322 45%, #06234d 100%) !important;
  color: #ffffff;
  min-height: 100vh;
}

.site, .site-main, #content, .elementor-section-wrap {
  background: transparent !important;
}

/* ซ่อน page title default ของ theme */
.page-header,
.entry-header,
.entry-title,
h1.entry-title,
.page-title,
.elementor-page-title,
.elementor-widget-theme-post-title,
.site-main > article > header,
.site-main > .page > header {
  display: none !important;
}

/* ────────────────────────────────────────────────
   SINGLE POST — Title Header + Featured Image
   ──────────────────────────────────────────────── */

/* Title block (H1 + meta) */
.cbs-post-header {
  max-width: 1280px;
  margin: 0 auto 22px;
  padding: 0 4px;
}

.cbs-post-title {
  font-family: "Kanit", sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0 0 14px;
}

.cbs-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: "Kanit", sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, .75);
  padding-bottom: 16px;
  border-bottom: 1px solid #1e2c45;
}

.cbs-post-meta a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .15s;
}

.cbs-post-meta a:hover {
  color: #5aa0ff;
}

.cbs-post-meta span,
.cbs-post-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Featured image — กว้าง 1280px สูงตามสัดส่วนภาพต้นฉบับ */
.cbs-featured-img {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #1e2c45;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  background: #0a1322;
  line-height: 0;
}

.cbs-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}

.cbs-featured-img:hover img {
  transform: scale(1.02);
}

/* อักษรในเนื้อหา post = ขาวทั้งหมด */
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content blockquote,
.single-post .post,
.single-post article,
.single-post .elementor-widget-theme-post-content,
.single-post .elementor-widget-theme-post-content p,
.single-post .elementor-widget-theme-post-content li {
  color: #ffffff !important;
}

/* heading ใน post ก็เป็นขาว */
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6,
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
  color: #ffffff !important;
}

/* ลิงก์ในเนื้อหา = สีฟ้าอ่อน (ยังคงเห็นว่าเป็นลิงก์) */
.single-post .entry-content a {
  color: #5aa0ff;
}

.single-post .entry-content a:hover {
  color: #006cfc;
}

/* meta info (วันที่, แท็ก) = อักษรขาวอ่อน */
.single-post .entry-meta,
.single-post .entry-meta a,
.single-post .tags-links,
.single-post .tags-links a,
.single-post .post-meta,
.single-post .post-meta a {
  color: rgba(255, 255, 255, .85) !important;
}

/* ────────────────────────────────────────────────
   ปิด COMMENT SECTION ทั้งหมด (frontend)
   ──────────────────────────────────────────────── */
#comments,
.comments-area,
.comments-title,
.comment-list,
.comment-respond,
.comment-reply-title,
#respond,
#commentform,
.comment-form,
.no-comments,
.comments-link,
.elementor-widget-theme-post-comments,
.elementor-comments,
section.comments {
  display: none !important;
}
