/* DatingFarang.com — hand-written stylesheet reproducing the old
   GeneratePress look: light gray base, white cards, navy nav/footer,
   Thai-red category ribbons and CTAs. */

:root {
  --contrast: #161616;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #13233F;
  --cta-red: #a51931;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--base-2);
  color: var(--contrast);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: underline; }
a:hover, a:focus, a:active { color: var(--contrast); }

.grid-container { max-width: 1200px; margin: 0 auto; }

/* ===== Header ===== */
.site-header { background-color: var(--base-3); }
.inside-header { padding: 30px 20px; }
.main-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.main-title a { color: var(--contrast); text-decoration: none; }

/* ===== Navigation: full-width row below header, dark navy, white text ===== */
.main-navigation { background-color: var(--accent); }
.inside-navigation { padding: 0 20px; }
.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  margin-left: -24px;
}
.main-nav li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
}
.main-nav li:hover > a,
.main-nav li:focus-within > a,
.main-nav li.current > a { color: var(--base-2); opacity: 0.85; }
.menu-toggle { display: none; }

/* ===== Layout ===== */
.site-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 20px;
}
.content-area { width: 70%; }
.sidebar { width: 30%; }
.site-content.no-sidebar .content-area { width: 100%; }

/* ===== Cards (blog loop) ===== */
.inside-article {
  background-color: var(--base-3);
  border: 1px solid var(--base);
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  padding: 60px 32px 28px;
}
.entry-title { margin: 0 0 4px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
h2.entry-title { font-size: 28px; }
.entry-title a { color: var(--contrast); text-decoration: none; }
.entry-title a:hover { color: var(--contrast-2); }
.entry-meta { color: var(--contrast-2); font-size: 13px; margin-top: 4px; }

/* Category ribbon: pinned to the card's top-left corner */
.cat-links {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--cta-red);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.cat-links a { color: #ffffff; text-decoration: none; }

/* Read more as a red button */
.read-more {
  display: block;
  width: fit-content;
  margin-top: 14px;
  margin-left: auto;
  padding: 13px 32px;
  background-color: var(--cta-red);
  color: #ffffff !important;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
}
.read-more:hover { background-color: var(--contrast); }

/* ===== Single posts / pages ===== */
.single-post .inside-article { padding: 40px; }
h1.entry-title, .page-title { font-weight: 900; font-size: 36px; }
.page-header { margin-bottom: 24px; }
.page-title { margin: 0; }
.entry-content h2, .entry-content h3 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.entry-content h2 { margin-top: 2em; font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--base); padding: 10px 14px; text-align: left; }
.entry-content th { background-color: var(--base-2); }
.entry-content blockquote {
  border-left: 4px solid var(--cta-red);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.25em;
  color: var(--contrast-2);
}

.entry-footer { margin-top: 40px; border-top: 1px solid var(--base); padding-top: 20px; }
.term-links { color: var(--contrast-2); font-size: 14px; }
.term-links a { color: var(--contrast-2); }
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  font-size: 15px;
}
.nav-next { text-align: right; }

/* ===== Sidebar ===== */
.widget {
  background-color: var(--base-3);
  border: 1px solid var(--base);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { margin-bottom: 10px; font-size: 15px; line-height: 1.4; }
.widget-list li:last-child { margin-bottom: 0; }

/* "Advertise Here" box: dark, rounded, centered */
.advert-widget {
  background-color: var(--contrast);
  color: var(--base-3);
  border: none;
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
}
.advert-widget p { margin: 0 0 10px; }
.advert-widget p:last-child { margin-bottom: 0; }
.advert-kicker { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* ===== Footer: dark navy bar, white text ===== */
.site-footer { background-color: var(--accent); }
.inside-site-info { padding: 20px; }
.copyright-bar { color: #ffffff; font-size: 15px; }
.copyright-bar a { color: #ffffff; }
.copyright-bar a:hover { color: var(--base-2); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .site-content { flex-direction: column; padding: 30px 20px; }
  .content-area, .sidebar { width: 100%; }
  .inside-article { padding: 55px 30px 25px; }
  .single-post .inside-article { padding: 30px; }
  h1.entry-title, .page-title { font-size: 30px; }
  h2.entry-title { font-size: 24px; }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
  }
  .main-nav { display: none; flex-direction: column; margin-left: 0; }
  .main-nav.toggled { display: flex; padding-bottom: 10px; }
  .main-nav li a { padding: 10px 0; white-space: normal; }
}
