/*
Theme Name: BROGASIS Travel
Theme URI: https://brogasis.com
Author: BROGASIS
Description: Custom Travel Blog Theme for BROGASIS - เที่ยวไต้หวัน จีน ฮ่องกง เอเชีย
Version: 1.0
Tags: travel, blog, custom
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Thai', 'Sarabun', -apple-system, sans-serif;
  background: #f2f2ef;
  color: #1a1a2e;
  line-height: 1.6;
}

a { color: #f5a623; text-decoration: none; }
a:hover { color: #d4891a; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
#site-header {
  background: #1a1a2e;
  border-bottom: 3px solid #f5a623;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 12px;
  gap: 10px;
}

.site-branding { text-align: center; }

.site-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.site-title span { color: #f5a623; }
.site-title a { color: inherit; }

.site-description {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #f5a623;
  background: rgba(245,166,35,0.1);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.brogasis-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #1a1a2e;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,30,0.85) 0%, rgba(10,10,30,0.3) 55%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  text-align: center;
  padding: 0 32px;
}

.slide-cat {
  display: inline-block;
  background: #f5a623;
  color: #1a1a2e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 28px;
  transition: background 0.2s, color 0.2s;
}
.slide-btn:hover { background: #f5a623; color: #1a1a2e; }

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: #f5a623; color: #1a1a2e; }
.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.dot.active { background: #f5a623; transform: scale(1.4); }

/* ============================================
   CATEGORY BAR
   ============================================ */
.cat-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-bar-inner {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.cat-bar a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  color: #555;
  white-space: nowrap;
  transition: all 0.15s ease;
  background: #fff;
}
.cat-bar a:hover,
.cat-bar a.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
#main { padding: 32px 20px 48px; max-width: 1100px; margin: 0 auto; }

/* ============================================
   FEATURED POST
   ============================================ */
.featured-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 300px;
  margin-bottom: 36px;
  transition: box-shadow 0.2s ease;
}
.featured-post:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.1); }

.feat-thumb {
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
}
.feat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-post:hover .feat-thumb img { transform: scale(1.04); }

.feat-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #f5a623;
  color: #1a1a2e;
  font-size: 9px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.feat-new {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 8px;
  backdrop-filter: blur(4px);
}

.feat-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-meta {
  font-size: 11px; color: #aaa;
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.feat-title {
  font-size: 20px; font-weight: 700;
  color: #1a1a2e; line-height: 1.45;
  margin-bottom: 12px;
}
.feat-title a { color: inherit; }
.feat-title a:hover { color: #f5a623; }
.feat-excerpt {
  font-size: 13px; color: #666; line-height: 1.8;
  margin-bottom: 20px; flex: 1;
}
.feat-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f5a623; color: #1a1a2e;
  font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: 24px;
  width: fit-content;
  transition: background 0.15s;
}
.feat-link:hover { background: #d4891a; color: #fff; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title-wrap .section-eyebrow {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: #aaa;
  display: block; margin-bottom: 2px;
}
.section-title-wrap .section-title {
  font-size: 20px; font-weight: 700;
  color: #1a1a2e;
  border-left: 3px solid #f5a623;
  padding-left: 10px;
}
.section-see-all {
  font-size: 12px; font-weight: 600;
  color: #aaa;
}
.section-see-all:hover { color: #f5a623; }

/* ============================================
   POST GRID
   ============================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.card-thumb {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.06); }

.card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 10px;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.card-cat:hover { background: #f5a623; color: #1a1a2e; }

.card-body { padding: 14px 16px 18px; }
.card-title {
  font-size: 14px; font-weight: 600;
  color: #1a1a2e; line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; }
.card-title a:hover { color: #f5a623; }
.card-date { font-size: 11px; color: #bbb; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: #1a1a2e;
  transition: all 0.15s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.pagination .page-numbers.dots {
  background: none; border: none; width: auto;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-header {
  background: #1a1a2e;
  padding: 40px 24px;
  margin-bottom: 0;
}
.single-header .post-cat a {
  background: #f5a623; color: #1a1a2e;
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
  display: inline-block; margin-bottom: 16px;
}
.single-header h1 {
  font-size: 28px; font-weight: 700;
  color: #fff; line-height: 1.4;
  max-width: 800px;
}
.single-header .post-meta {
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-top: 12px; display: flex; gap: 16px;
}

.single-thumb {
  width: 100%; max-height: 480px;
  object-fit: cover;
}

.single-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  font-size: 16px; line-height: 1.9; color: #333;
}
.single-content h2, .single-content h3 {
  color: #1a1a2e;
  margin: 32px 0 14px;
  border-left: 3px solid #f5a623;
  padding-left: 12px;
}
.single-content h2 { font-size: 22px; }
.single-content h3 { font-size: 18px; }
.single-content p { margin-bottom: 18px; }
.single-content img {
  border-radius: 12px;
  margin: 20px 0;
  max-width: 100%;
}
.single-content ul, .single-content ol {
  padding-left: 24px; margin-bottom: 18px;
  list-style: disc;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: #1a1a2e;
  border-top: 3px solid #f5a623;
  padding: 32px 20px;
  text-align: center;
  margin-top: 0;
}
.footer-logo {
  font-size: 22px; font-weight: 800;
  letter-spacing: 4px; color: #fff;
  margin-bottom: 8px;
}
.footer-logo span { color: #f5a623; }
.footer-desc {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-bottom: 16px; letter-spacing: 1px;
}
.footer-nav {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 4px; margin-bottom: 20px;
}
.footer-nav a {
  font-size: 11px; color: rgba(255,255,255,0.5);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px;
}
.footer-nav a:hover { color: #f5a623; }
.footer-copy {
  font-size: 11px; color: rgba(255,255,255,0.25);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .brogasis-slider { height: 320px; }
  .slide-title { font-size: 18px; }
  .slide-content { bottom: 44px; padding: 0 16px; }
  .slider-arrow { display: none; }

  .featured-post { grid-template-columns: 1fr; }
  .feat-thumb { height: 220px; }
  .feat-body { padding: 20px; }
  .feat-title { font-size: 17px; }

  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-thumb { height: 150px; }

  .single-header h1 { font-size: 20px; }
  .single-content { padding: 24px 16px 36px; font-size: 15px; }
}

@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .cat-bar-inner { justify-content: flex-start; }
}
