@font-face { font-family: 'Avenir Next'; src: local('Avenir Next'), local('AvenirNext-Regular'), local('Avenir Next LT Pro'); font-weight: 400; }
@font-face { font-family: 'Avenir Next'; src: local('Avenir Next Medium'), local('AvenirNext-Medium'); font-weight: 500; }
@font-face { font-family: 'Avenir Next'; src: local('Avenir Next Demi Bold'), local('AvenirNext-DemiBold'); font-weight: 600; }
@font-face { font-family: 'Avenir Next'; src: local('Avenir Next Bold'), local('AvenirNext-Bold'); font-weight: 700; }
@font-face { font-family: 'Avenir Next'; src: local('Avenir Next Heavy'), local('AvenirNext-Heavy'); font-weight: 800; }

:root {
  --baywatch-red: #D20000;
  --baywatch-red-hover: #B00000;
  --sandstone: #786E64;
  --sandy-beach: #A6988A;
  --dusk: #231F20;
  --dusk-light: #2d2a2b;
  --dark-bg: #212529;
  --white: #FFFFFF;
  --off-white: #F4FAFF;
  --sandstone-light: #F0ECE8;
  --light-gray: #E8E4E0;
  --border-light: #E0DCD8;
  --coin-gold: #C4A24E;
  --coin-gold-light: #D4B76A;
  --success-green: #4A8B5C;
  --text-primary: #212529;
  --font-body: 'Avenir Next', -apple-system, sans-serif;
  --font-display: 'Playfair Display', serif;
}

#blog-home { font-family: var(--font-body); background: var(--white); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
#blog-home h1 { font-family: var(--font-body); font-weight: 600; }
#blog-home h2, #blog-home h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; }
#blog-home h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
#blog-home a { text-decoration: none; color: inherit; }
#blog-home img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BLOG CATEGORY NAV — sticky sub-header
   ============================================================ */
.blog-category-bar {
  background: var(--white); border-bottom: 1px solid var(--light-gray);
  padding: 0 40px; display: flex; align-items: center; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.blog-category-bar a {
  font-size: 13px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px;
  color: var(--sandstone); padding: 16px 16px; white-space: nowrap; transition: all 0.2s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.blog-category-bar a:hover { color: var(--dusk); }
.blog-category-bar a.active { color: var(--baywatch-red); border-bottom-color: var(--baywatch-red); }

/* ============================================================
   HERO FEATURED ARTICLE — full-width masonry lead
   ============================================================ */
.blog-hero {
  display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 280px 280px;
  gap: 4px; margin-bottom: 4px;
}
.blog-hero .hero-main { grid-row: 1 / 3; position: relative; overflow: hidden; cursor: pointer; }
.blog-hero .hero-side { position: relative; overflow: hidden; cursor: pointer; }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px; background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: white;
}
.hero-overlay .cat-badge {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 10px; margin-bottom: 10px;
  background: var(--baywatch-red); color: white;
}
.hero-overlay .cat-badge.gold { background: var(--coin-gold); color: var(--dusk); }
.hero-overlay h2 {
  font-family: var(--font-body); font-style: normal; font-size: 26px; font-weight: 600;
  line-height: 1.25; color: white; margin-bottom: 6px;
}
.hero-side .hero-overlay h2 { font-size: 18px; }
.hero-overlay .hero-meta {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a2523 0%, #1a1817 50%, #2a2523 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-placeholder span { color: rgba(255,255,255,0.15); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

/* Hover zoom effect */
.blog-hero > div:hover .hero-img-placeholder,
.article-card:hover .card-img-placeholder,
.blog-hero > div:hover img,
.article-card:hover img { transform: scale(1.03); transition: transform 0.4s ease; }

/* ============================================================
   MAIN CONTENT GRID — sidebar layout
   ============================================================ */
.blog-layout {
  max-width: 1200px; margin: 0 auto; padding: 40px 40px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
.blog-main { min-width: 0; }

/* ============================================================
   SECTION HEADERS — Playfair italic style from homepage
   ============================================================ */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--light-gray);
}
.section-header h3 {
  font-family: var(--font-display); font-style: italic; font-size: 32px; font-weight: 400; color: var(--dusk);
}
.section-header .see-all {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--baywatch-red); transition: opacity 0.2s;
}
.section-header .see-all:hover { opacity: 0.7; }

/* ============================================================
   ARTICLE CARDS — masonry-compatible
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.article-grid.three-col { grid-template-columns: repeat(3, 1fr); }

.article-card { cursor: pointer; transition: transform 0.2s; }
.article-card:hover { transform: translateY(-2px); }
.card-img-wrap { position: relative; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/10; }
.card-img-placeholder {
  width: 100%; height: 100%; transition: transform 0.4s ease;
  background: linear-gradient(135deg, #2a2523, #1a1817, #2a2523);
  display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder span { color: rgba(255,255,255,0.12); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 8px; background: var(--baywatch-red); color: white;
}
.card-cat.gold { background: var(--coin-gold); color: var(--dusk); }
.card-cat.vip { background: var(--dusk); color: var(--coin-gold); }
.card-read-time {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px;
  background: rgba(0,0,0,0.7); color: white;
}
.card-title {
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.35;
  color: var(--dusk); margin-bottom: 6px;
}
.card-excerpt {
  font-size: 14px; line-height: 1.5; color: var(--sandstone); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 12px; color: var(--sandy-beach); font-weight: 500; }
.card-meta .author { color: var(--sandstone); font-weight: 600; }

/* ============================================================
   FEATURED STRIP — horizontal scroll row (like "top scenes")
   ============================================================ */
.featured-strip { margin-bottom: 48px; }
.strip-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.strip-scroll::-webkit-scrollbar { height: 4px; }
.strip-scroll::-webkit-scrollbar-track { background: var(--sandstone-light); }
.strip-scroll::-webkit-scrollbar-thumb { background: var(--sandy-beach); border-radius: 2px; }
.strip-card {
  flex: 0 0 220px; scroll-snap-align: start; cursor: pointer;
}
.strip-card .card-img-wrap { aspect-ratio: 16/10; margin-bottom: 10px; }
.strip-card .card-title { font-size: 14px; }
.strip-card .card-meta { font-size: 11px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { 
    position: sticky; 
    top: 100px; 
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

.sidebar:hover {
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sandy-beach);
    border-radius: 2px;
}
.sidebar-widget-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--sandstone); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

/* Sidebar: Search */
.sidebar-search {
  display: flex; margin-bottom: 32px;
}
.sidebar-search input {
  flex: 1; height: 44px; padding: 0 14px; border: 1px solid #CBCBCB; border-right: none;
  border-radius: 0; font-family: var(--font-body); font-size: 13px; outline: none;
}
.sidebar-search input:focus { border-color: var(--baywatch-red); }
.sidebar-search button {
  width: 44px; height: 44px; background: var(--baywatch-red); border: none; border-radius: 0;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sidebar-search button:hover { background: var(--baywatch-red-hover); }

/* Sidebar: Category list */
.sidebar-cats { list-style: none; padding-left: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--sandstone-light); }
.sidebar-cats li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--dusk); transition: color 0.2s;
}
.sidebar-cats li a:hover { color: var(--baywatch-red); }
.sidebar-cats li a .count { font-size: 12px; color: var(--sandy-beach); font-weight: 600; }

/* Sidebar: Popular posts */
.sidebar-post {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sandstone-light);
  cursor: pointer; transition: opacity 0.2s;
}
.sidebar-post:hover { opacity: 0.8; }
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post-img {
  width: 72px; height: 54px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, #2a2523, #1a1817);
}
.sidebar-post-info { flex: 1; }
.sidebar-post-info .sp-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--dusk); margin-bottom: 4px; }
.sidebar-post-info .sp-meta { font-size: 11px; color: var(--sandy-beach); }
.sidebar-post-rank {
  width: 24px; flex-shrink: 0; font-size: 28px; font-weight: 800; color: var(--sandstone-light);
  display: flex; align-items: flex-start; padding-top: 4px;
}

/* Sidebar: VIP Upsell */
.vip-upsell {
  background:var(--dusk); margin-bottom: 30px; padding: 28px 24px; color: white; position: relative; overflow: hidden;
}
.vip-upsell::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px;
  background: linear-gradient(135deg, #E8D48B, #C4A24E); border-radius: 50%; opacity: 0.1;
}
.vip-upsell .vip-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--coin-gold); margin-bottom: 12px;
}
.vip-upsell h3 {
  font-family: var(--font-display); font-style: italic; font-size: 24px; font-weight: 400;
  color: var(--white); margin-bottom: 10px; line-height: 1.3;
}
.vip-upsell p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.vip-upsell .vip-perks { list-style: none; margin-bottom: 20px; }
.vip-upsell .vip-perks li {
  font-size: 13px; color: rgba(255,255,255,0.8); padding: 5px 0 5px 20px; position: relative;
}
.vip-upsell .vip-perks li::before {
  content: '✓'; position: absolute; left: 0; color: var(--coin-gold); font-weight: 700;
}
.vip-btn {
  display: block; width: 100%; padding: 14px; text-align: center;
  background: var(--baywatch-red); color: white; font-family: var(--font-body);
  font-size: 14px; font-weight: 700; text-transform: uppercase; border: none;
  border-radius: 0; cursor: pointer; transition: background 0.2s;
}

#blog-home a.vip-btn {
  color: white;
}

.vip-btn:hover { background: var(--baywatch-red-hover); }

/* Sidebar: Tags cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag-cloud a {
  font-size: 12px; font-weight: 600; padding: 6px 12px; background: var(--sandstone-light);
  color: var(--sandstone); transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--baywatch-red); color: white; }

/* Sidebar: Newsletter */
.newsletter-box {
  background: var(--sandstone-light); padding: 24px;
}
.newsletter-box h4 { font-size: 11px; letter-spacing: 2px; color: var(--sandstone); margin-bottom: 6px; }
.newsletter-box h3 {
  font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--dusk);
  margin-bottom: 10px;
}
.newsletter-box p { font-size: 13px; color: var(--sandstone); line-height: 1.5; margin-bottom: 14px; }
.newsletter-box input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #CBCBCB; border-radius: 0;
  font-family: var(--font-body); font-size: 13px; margin-bottom: 10px; outline: none;
}
.newsletter-box button {
  width: 100%; height: 44px; background: var(--dusk); color: white; border: none; border-radius: 0;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; cursor: pointer;
}
.newsletter-box button:hover { background: var(--baywatch-red); }

/* ============================================================
   VIP CONTENT BANNER — inline upsell between articles
   ============================================================ */
.vip-inline-banner {
  background: var(--dusk); padding: 40px; margin-bottom: 48px; position: relative;
  display: flex; align-items: center; gap: 32px; overflow: hidden;
}
.vip-inline-banner::before {
  content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  background: linear-gradient(135deg, rgba(232,212,139,0.08), rgba(196,162,78,0.04));
}
.vip-inline-banner .vip-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: linear-gradient(135deg, #E8D48B, #C4A24E);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--dusk);
}
.vip-inline-content { flex: 1; position: relative; z-index: 1; }
.vip-inline-content h3 {
  font-family: var(--font-display); font-style: italic; font-size: 24px; color: white; margin-bottom: 6px;
}
.vip-inline-content p { font-size: 14px; color: rgba(255,255,255,0.6); }
.vip-inline-banner .vip-btn { width: auto; padding: 14px 32px; flex-shrink: 0; }

/* ============================================================
   "RABBIT HOLE" — related cluster links
   ============================================================ */
.rabbit-hole {
  background: var(--sandstone-light); padding: 32px; margin-bottom: 48px;
}
.rabbit-hole h4 { font-size: 11px; letter-spacing: 2px; color: var(--sandstone); margin-bottom: 16px; }
.rabbit-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rabbit-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--white); border: 1px solid var(--border-light);
  font-size: 14px; font-weight: 600; color: var(--dusk); transition: all 0.2s; cursor: pointer;
}
.rabbit-link:hover { border-color: var(--baywatch-red); color: var(--baywatch-red); }
.rabbit-link .arrow { font-size: 16px; color: var(--sandy-beach); transition: color 0.2s; }
.rabbit-link:hover .arrow { color: var(--baywatch-red); }

/* ============================================================
   LOAD MORE / PAGINATION
   ============================================================ */
.load-more-wrap { text-align: center; margin-bottom: 48px; }
.load-more-btn {
  padding: 14px 48px; background: transparent; border: 1.5px solid var(--dusk);
  color: var(--dusk); font-family: var(--font-body); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s;
  border-radius: 0;
}
.load-more-btn:hover { background: var(--dusk); color: white; }

.pagination-custom {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 8px;
}
.pagination-custom .page-item .page-link {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  color: var(--dusk);
  font-weight: 600;
  transition: all 0.2s;
}
.pagination-custom .page-item.active .page-link {
  background: var(--baywatch-red);
  color: white;
  border-color: var(--baywatch-red);
}
.pagination-custom .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background: var(--dark-bg); padding: 80px 40px; text-align: center; color: white;
}
.footer-cta h3 {
  font-family: var(--font-display); font-style: italic; font-size: 42px; color: white; margin-bottom: 12px;
}
.footer-cta p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.footer-cta .btn-join { font-size: 16px; padding: 16px 40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .blog-hero { grid-template-columns: 1fr; grid-template-rows: auto; }
  .blog-hero .hero-main { grid-row: auto; min-height: 320px; }
  .blog-hero .hero-side { min-height: 200px; }
  .blog-layout { grid-template-columns: 1fr; padding: 20px; }
  .sidebar { position: static; }
  .article-grid { grid-template-columns: 1fr; }
  .vip-inline-banner { flex-direction: column; text-align: center; }
  .navbar { padding: 0 20px; }
  .blog-category-bar { padding: 0 20px; }
  .vip-inline-banner::before { display: none; }
}
