/*
Theme Name: SportsbookMarks
Theme URI: https://sportsbookmarks.com/
Author: SportsbookMarks
Author URI: https://sportsbookmarks.com/
Description: ธีม WordPress สำหรับศูนย์รวมความรู้การเดิมพันกีฬา ออกแบบสำหรับแทงบอล แทงมวย แทงบาสเกตบอล ไก่ชน และวัวชน พร้อมโครงสร้าง SEO และ Internal Link
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sportsbookmarks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --sm-ink: #0b0d0c;
  --sm-paper: #f4f1e9;
  --sm-muted: #686b65;
  --sm-line: rgba(11, 13, 12, .16);
  --sm-lime: #c6ff3d;
  --sm-orange: #ff914d;
  --sm-blue: #73c5ff;
  --sm-red: #ff6b5f;
  --sm-violet: #b9a0ff;
  --sm-shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--sm-paper);
  color: var(--sm-ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; color: #000; font-weight: 700; }
.sm-shell { width: min(var(--sm-shell), calc(100% - 48px)); margin-inline: auto; }

/* Header */
.sm-site-header { position: absolute; z-index: 30; top: 0; left: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.13); color: #fff; }
.sm-header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sm-brand { display: inline-flex; align-items: center; gap: 11px; font-family: Arial, sans-serif; }
.sm-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--sm-lime); color: var(--sm-ink); font-size: 12px; font-weight: 900; transform: skew(-7deg); letter-spacing: -1px; }
.sm-brand-copy { font-size: 17px; font-weight: 900; letter-spacing: -.8px; }
.sm-brand-copy b { color: var(--sm-lime); }
.custom-logo-link img { width: auto; max-height: 46px; }
.sm-main-menu, .sm-main-menu ul { list-style: none; margin: 0; padding: 0; }
.sm-main-menu { display: flex; align-items: center; gap: 32px; color: #c5c8c4; font-size: 13px; font-weight: 700; }
.sm-main-menu a { display: block; padding: 12px 0; transition: color .2s ease; }
.sm-main-menu a:hover, .sm-main-menu .current-menu-item > a { color: var(--sm-lime); }
.sm-header-cta { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sm-lime); font-size: 13px; font-weight: 800; }
.sm-header-cta span { color: var(--sm-lime); font-size: 17px; }
.sm-menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sm-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: #fff; }

/* Hero */
.sm-hero { position: relative; min-height: 790px; display: flex; overflow: hidden; background: #0c0f0e; color: #f7f6f1; }
.sm-hero::after { content: ""; position: absolute; top: 50px; right: -80px; width: 540px; height: 540px; border: 110px solid rgba(198,255,61,.055); border-radius: 50%; box-shadow: 0 0 0 1px rgba(198,255,61,.16), inset 0 0 0 1px rgba(198,255,61,.16); }
.sm-hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(to right,#000,transparent 78%); }
.sm-score-line { position: absolute; color: transparent; font-family: Impact, Arial, sans-serif; font-size: 260px; line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.06); }
.sm-score-one { top: 130px; right: 170px; transform: rotate(-5deg); }
.sm-score-two { right: -90px; bottom: -30px; }
.sm-hero-art { position: absolute; z-index: 1; right: -70px; bottom: -25px; width: min(68vw,1000px); margin: 0; pointer-events: none; }
.sm-hero-art img { width: 100%; height: auto; opacity: .88; filter: saturate(.9) contrast(1.04); -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 18%,#000 100%); mask-image: linear-gradient(to right,transparent 0%,#000 18%,#000 100%); }
.sm-hero-inner { position: relative; z-index: 2; padding-top: 175px; padding-bottom: 70px; }
.sm-hero-kicker { display: flex; align-items: center; gap: 11px; color: #b9bdb8; font-family: Arial,sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; }
.sm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sm-lime); box-shadow: 0 0 0 5px rgba(198,255,61,.12); }
.sm-hero h1 { max-width: 790px; margin: 26px 0 22px; font-size: clamp(52px,7.4vw,100px); font-weight: 900; line-height: .98; letter-spacing: -5px; text-shadow: 0 3px 30px rgba(0,0,0,.5); }
.sm-hero h1 em { color: var(--sm-lime); font-style: normal; }
.sm-hero-lead { max-width: 650px; margin: 0; color: #babeba; font-size: 17px; line-height: 1.85; text-shadow: 0 2px 15px #0c0f0e; }
.sm-hero-lead strong { color: #fff; }
.sm-hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.sm-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 20px; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.sm-button-primary { background: var(--sm-lime); color: var(--sm-ink); }
.sm-button-primary:hover { background: #d5ff72; transform: translateY(-2px); }
.sm-text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; }
.sm-text-link span { color: var(--sm-lime); font-size: 17px; }
.sm-hero-stats { position: absolute; right: 0; bottom: 65px; display: flex; border-top: 1px solid rgba(255,255,255,.15); }
.sm-hero-stats div { min-width: 130px; padding: 17px 20px 0; border-right: 1px solid rgba(255,255,255,.15); }
.sm-hero-stats strong { display: block; color: var(--sm-lime); font-family: Arial,sans-serif; font-size: 24px; }
.sm-hero-stats span { color: #858a85; font-size: 11px; }
.sm-ticker { overflow: hidden; border-block: 1px solid var(--sm-ink); background: var(--sm-lime); }
.sm-ticker-track { width: max-content; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: 38px; padding: 13px 24px; font-family: Arial,sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; white-space: nowrap; }
.sm-ticker-track i { font-size: 7px; }

/* Home sections */
.sm-sports-section { padding: 110px 0 120px; }
.sm-section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 54px; }
.sm-eyebrow { margin: 0 0 14px; color: #6c7069; font-family: Arial,sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 2.4px; }
.sm-section-heading h2, .sm-guides-section h2, .sm-intent-inner h2 { margin: 0; font-size: clamp(38px,4.4vw,61px); font-weight: 900; line-height: 1.08; letter-spacing: -2.5px; }
.sm-section-heading > p { max-width: 480px; margin: 0; color: var(--sm-muted); font-size: 15px; line-height: 1.8; }
.sm-sport-list { border-top: 1px solid var(--sm-ink); }
.sm-sport-row { position: relative; display: grid; grid-template-columns: 70px 220px 1fr 240px 50px; align-items: center; gap: 22px; min-height: 156px; border-bottom: 1px solid var(--sm-line); transition: padding .25s ease, background .25s ease; }
.sm-sport-row:hover { padding-inline: 18px; background: #fff; }
.sm-sport-number { align-self: start; padding-top: 29px; color: #8e918b; font-family: Arial,sans-serif; font-size: 11px; font-weight: 800; }
.sm-sport-title span { display: block; color: #767a73; font-family: Arial,sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.sm-sport-title h3 { margin: 5px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: -.9px; }
.sm-sport-row > p { max-width: 490px; margin: 0; color: #5f635d; font-size: 14px; line-height: 1.75; }
.sm-sport-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-sport-tags span { padding: 5px 9px; background: #e5e3dc; color: #555852; font-size: 10px; font-weight: 700; }
.sm-sport-arrow { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--sm-ink); font-size: 18px; transition: background .2s ease; }
.sm-sport-lime:hover .sm-sport-arrow { background: var(--sm-lime); }
.sm-sport-orange:hover .sm-sport-arrow { background: var(--sm-orange); }
.sm-sport-blue:hover .sm-sport-arrow { background: var(--sm-blue); }
.sm-sport-red:hover .sm-sport-arrow { background: var(--sm-red); }
.sm-sport-violet:hover .sm-sport-arrow { background: var(--sm-violet); }
.sm-principles { padding: 110px 0; background: var(--sm-ink); color: #f4f3ee; }
.sm-principles-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.sm-eyebrow-light { color: var(--sm-lime); }
.sm-principles-intro h2 { margin: 0 0 28px; font-size: clamp(46px,5vw,69px); line-height: 1.07; letter-spacing: -3px; }
.sm-principles-intro > p:last-child { max-width: 400px; margin: 0; color: #9da19b; font-size: 15px; line-height: 1.85; }
.sm-principle-cards { border-top: 1px solid #383b38; }
.sm-principle-cards article { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid #383b38; }
.sm-principle-cards article > span { color: var(--sm-lime); font-family: Arial,sans-serif; font-size: 12px; font-weight: 800; }
.sm-principle-cards h3 { margin: 0 0 8px; font-size: 21px; }
.sm-principle-cards p { margin: 0; color: #979b96; font-size: 14px; line-height: 1.7; }
.sm-guides-section { padding: 115px 0; }
.sm-guide-heading { display: flex; align-items: end; justify-content: space-between; }
.sm-dark-link { padding-bottom: 6px; border-bottom: 1px solid var(--sm-ink); }
.sm-dark-link span { color: var(--sm-ink); }
.sm-guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sm-guide-card { min-height: 385px; display: flex; flex-direction: column; padding: 25px; border: 1px solid transparent; background: #ebe8df; transition: background .25s ease,border .25s ease,transform .25s ease; }
.sm-guide-card:hover { border-color: var(--sm-ink); background: #fff; transform: translateY(-5px); }
.sm-guide-index { color: #8d9089; font-family: Arial,sans-serif; font-size: 12px; font-weight: 800; }
.sm-guide-body { margin-top: auto; }
.sm-guide-category { display: inline-block; margin-bottom: 12px; padding: 5px 8px; background: var(--sm-lime); font-size: 10px; font-weight: 800; }
.sm-guide-card h3 { margin: 0 0 13px; font-size: 23px; line-height: 1.38; letter-spacing: -.6px; }
.sm-guide-card p { margin: 0; color: var(--sm-muted); font-size: 13px; line-height: 1.75; }
.sm-guide-footer { display: flex; justify-content: space-between; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--sm-line); font-size: 12px; font-weight: 800; }
.sm-search-intents { padding: 85px 0 95px; background: #d9d5ca; text-align: center; }
.sm-intent-inner h2 { margin-bottom: 35px; }
.sm-intent-cloud { max-width: 880px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0 auto; }
.sm-intent-cloud span { padding: 11px 16px; border: 1px solid rgba(11,13,12,.12); background: rgba(255,255,255,.48); color: #494d47; font-size: 12px; font-weight: 700; }

/* Inner content */
.sm-inner-header { padding: 150px 0 72px; background: var(--sm-ink); color: #fff; }
.sm-inner-header .sm-eyebrow { color: var(--sm-lime); }
.sm-inner-header h1 { max-width: 850px; margin: 0; font-size: clamp(42px,6vw,76px); line-height: 1.08; letter-spacing: -3px; }
.sm-content-wrap { width: min(820px,calc(100% - 48px)); margin: 0 auto; padding: 72px 0 110px; }
.sm-content-wrap > *:first-child { margin-top: 0; }
.sm-content-wrap h2 { margin-top: 2.1em; font-size: 34px; line-height: 1.3; }
.sm-content-wrap h3 { margin-top: 1.8em; font-size: 25px; }
.sm-content-wrap p, .sm-content-wrap li { color: #4e524c; font-size: 17px; line-height: 1.9; }
.sm-content-wrap a { text-decoration: underline; text-decoration-color: var(--sm-lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.sm-post-list { display: grid; gap: 18px; }
.sm-post-card { padding: 28px; border: 1px solid var(--sm-line); background: #fff; }
.sm-post-card h2 { margin: 0 0 10px; font-size: 27px; }
.sm-post-card p { margin-bottom: 0; }
.sm-pagination { margin-top: 40px; }

/* Footer */
.sm-site-footer { background: #090b0a; color: #eef0eb; }
.sm-footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; padding: 80px 0 70px; }
.sm-footer-brand { margin-bottom: 24px; }
.sm-footer-about { max-width: 380px; margin: 0; color: #838783; font-size: 13px; line-height: 1.8; }
.sm-footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; }
.sm-footer-nav h3 { margin: 0 0 17px; color: #c1c4c0; font-size: 12px; }
.sm-footer-nav a { display: block; margin: 11px 0; color: #777c77; font-size: 12px; transition: color .2s ease; }
.sm-footer-nav a:hover { color: var(--sm-lime); }
.sm-footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0 30px; border-top: 1px solid #252825; color: #626662; font-size: 10px; }
.sm-footer-bottom p { margin: 0; }
.sm-age-note { text-align: right; }
.sm-age-note b { margin-right: 6px; padding: 2px 4px; border: 1px solid #747974; color: #afb3af; }

@media (max-width: 980px) {
  .sm-menu-toggle { display: block; }
  .sm-header-cta { display: none; }
  .sm-site-nav { position: absolute; top: 80px; right: 24px; left: 24px; display: none; padding: 14px 22px; background: var(--sm-paper); color: var(--sm-ink); box-shadow: 0 18px 55px rgba(0,0,0,.3); }
  .sm-site-nav.is-open { display: block; }
  .sm-main-menu { display: block; color: var(--sm-ink); }
  .sm-main-menu li + li { border-top: 1px solid var(--sm-line); }
  .sm-main-menu a { padding: 14px 0; }
  .sm-hero { min-height: 760px; }
  .sm-hero-inner { padding-top: 155px; }
  .sm-hero-art { right: -220px; bottom: 5px; width: 920px; }
  .sm-hero-art img { opacity: .65; }
  .sm-hero-stats { position: static; width: fit-content; margin-top: 55px; }
  .sm-sport-row { grid-template-columns: 50px 190px 1fr 42px; padding-block: 25px; }
  .sm-sport-tags { display: none; }
  .sm-principles-grid { grid-template-columns: 1fr 1.2fr; gap: 65px; }
}

@media (max-width: 720px) {
  .sm-shell { width: min(100% - 32px,var(--sm-shell)); }
  .sm-header-inner { min-height: 68px; }
  .sm-site-nav { top: 68px; right: 16px; left: 16px; }
  .sm-hero { min-height: 850px; }
  .sm-hero-inner { padding-top: 132px; padding-bottom: 45px; }
  .sm-hero-art { right: -310px; bottom: 30px; width: 800px; }
  .sm-hero-art img { opacity: .42; -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 18%,#000 100%); mask-image: linear-gradient(to bottom,transparent 0%,#000 18%,#000 100%); }
  .sm-hero h1 { margin-top: 22px; font-size: clamp(47px,14vw,72px); letter-spacing: -3px; }
  .sm-hero-lead { font-size: 15px; line-height: 1.75; }
  .sm-hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .sm-hero-stats { width: 100%; margin-top: 40px; }
  .sm-hero-stats div { min-width: 0; flex: 1; padding-inline: 11px; }
  .sm-hero-stats div:first-child { padding-left: 0; }
  .sm-score-line { display: none; }
  .sm-ticker-track { justify-content: flex-start; }
  .sm-sports-section, .sm-guides-section { padding: 80px 0; }
  .sm-section-heading { display: block; margin-bottom: 38px; }
  .sm-section-heading > p { margin-top: 18px; }
  .sm-section-heading h2, .sm-guides-section h2, .sm-intent-inner h2 { font-size: 40px; letter-spacing: -1.7px; }
  .sm-sport-row { grid-template-columns: 40px 1fr 42px; gap: 10px 14px; min-height: 0; padding: 24px 0; }
  .sm-sport-row:hover { padding-inline: 8px; }
  .sm-sport-number { grid-row: span 2; padding-top: 5px; }
  .sm-sport-title h3 { font-size: 25px; }
  .sm-sport-row > p { grid-column: 2 / 4; font-size: 13px; }
  .sm-sport-arrow { grid-column: 3; grid-row: 1; }
  .sm-principles { padding: 80px 0; }
  .sm-principles-grid { grid-template-columns: 1fr; gap: 45px; }
  .sm-principles-intro h2 { font-size: 49px; letter-spacing: -2px; }
  .sm-guide-heading { align-items: flex-start; gap: 24px; }
  .sm-guide-grid { grid-template-columns: 1fr; }
  .sm-guide-card { min-height: 310px; }
  .sm-search-intents { padding: 70px 0; }
  .sm-intent-cloud { justify-content: flex-start; }
  .sm-footer-top { grid-template-columns: 1fr; gap: 50px; padding: 65px 0 50px; }
  .sm-footer-nav { gap: 15px; }
  .sm-footer-bottom { flex-direction: column; }
  .sm-age-note { text-align: left; line-height: 1.6; }
  .sm-content-wrap { width: min(100% - 32px,820px); padding-block: 55px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
