/*
Theme Name:   GP Georgia (Child)
Theme URI:    https://discover-georgia.com
Description:  DA VINCI Design v2.1 — Mobile-first travel magazine
Template:     generatepress
Version:      2.1.0
Author:       Da Vinci (Visual Director)
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --g-green: #2d7d46;
  --g-green-dark: #1b4d2e;
  --g-green-light: #4a9d63;
  --g-wine: #722f37;
  --g-gold: #c9a84c;
  --g-gold-light: #e0c97a;
  --g-cream: #faf6f0;
  --g-warm-gray: #f5f2ec;
  --g-dark: #1a1a1a;
  --g-body: #3a3a3a;
  --g-muted: #7a7670;
  --g-border: #e5e1db;
  --g-white: #ffffff;
  --f-display: 'Playfair Display', Georgia, 'Pretendard', serif;
  --f-body: 'Inter', 'Pretendard', -apple-system, sans-serif;
  --f-korean: 'Pretendard', -apple-system, sans-serif;
  --g-max-width: 960px;
  --g-radius: 10px;
  --g-radius-sm: 6px;
  --g-transition: 0.25s ease;
  --g-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --g-shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
  --g-shadow-card: 0 1px 6px rgba(0,0,0,0.05);
}

/* ============================================
   RESET & BASE — MOBILE FIRST
   ============================================ */
*,*::before,*::after { box-sizing: border-box; }

/* CRITICAL: Force Font Awesome font-family — override theme body font */
.fab, .fas, .far, .fal, .fat, .fa {
  font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
}
.fas, .far { font-family: "Font Awesome 6 Free" !important; }
.fab { font-family: "Font Awesome 6 Brands" !important; }

/* Override GeneratePress default 1200px container */
.site.grid-container,
.grid-container {
  max-width: var(--g-max-width) !important;
}

/* CRITICAL: Override GeneratePress inline CSS on front page */
.gp-home .site-content { display: block !important; padding: 0 !important; margin: 0 !important; }
.gp-home .content-area { width: 100% !important; float: none !important; }
.gp-home .site-main { margin: 0 !important; padding: 0 !important; }

/* CRITICAL: Override GeneratePress flex layout on article pages */
.gp-article .site-content { display: block !important; padding: 0 !important; margin: 0 !important; }
.gp-article .content-area { width: 100% !important; float: none !important; }
.gp-article .site-main { margin: 0 !important; padding: 0 !important; }
.gp-home .inside-article,
.gp-home .hentry,
.gp-home article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Hero + Category strip = full viewport width */
.gp-home .gp-scroll-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.gp-home .gp-category-strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.gp-home .gp-wave-divider {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Force grid layout — override any GP interference */
.gp-post-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  width: 100% !important;
}

.gp-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

body {
  font-family: var(--f-body);
  color: var(--g-body);
  background: var(--g-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(ko), .entry-content:lang(ko), .gp-korean {
  font-family: var(--f-korean);
  letter-spacing: -0.01em;
  word-break: keep-all;
}

a { color: var(--g-green); text-decoration: none; transition: color var(--g-transition); }
a:hover { color: var(--g-green-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TOP BAR
   ============================================ */
.gp-topbar {
  background: var(--g-dark);
  padding: 4px 0;
  border-bottom: 2px solid var(--g-green);
}

.gp-topbar-inner {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.gp-topbar-tagline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-topbar-tagline i {
  color: var(--g-green-light);
  font-size: 11px;
}

.gp-topbar-tagline span {
  font-family: var(--f-korean);
  font-size: 11px;
  color: #999;
}

/* Language Switcher */
.gp-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gp-lang-switch a {
  color: #999;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all var(--g-transition);
}

.gp-lang-switch a:hover {
  color: var(--g-white);
  background: var(--g-green);
}

.gp-lang-current {
  color: var(--g-white);
  padding: 2px 6px;
  background: var(--g-green);
  border-radius: 3px;
}

.gp-lang-sep { color: #444; font-size: 10px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--g-white);
  box-shadow: 0 1px 0 var(--g-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header.scrolled { box-shadow: var(--g-shadow); }

.inside-header {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-family: var(--f-display) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
  line-height: 1.2;
}

.site-title a { color: var(--g-dark) !important; }
.site-title a:hover { color: var(--g-green) !important; }
.site-description { display: none; }

.main-navigation { flex: 1; }
.main-navigation .inside-navigation { background: transparent !important; }

.main-navigation .main-nav ul li a {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--g-body);
  padding: 10px 12px;
  transition: color var(--g-transition);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--g-green);
}

/* ============================================
   SCROLL EXPANSION HERO — Kazbegi Immersive
   ============================================ */

/* Container: creates scroll space (150vh for ~50vh of scroll-driven expansion) */
.gp-scroll-hero {
    position: relative;
    height: 180vh; /* scroll space */
    width: 100%;
    margin-top: 0; /* pull under header */
    z-index: 1;
}

/* Sticky pinned viewport */
.gp-scroll-hero-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blurred background layer */
.gp-scroll-hero-bg {
    position: absolute;
    inset: -40px; /* extend beyond viewport to hide blur edges */
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.35);
    transform: scale(1.1);
    z-index: 0;
    transition: filter 0.3s ease;
}

/* Expanding media card — starts as centered rounded card */
.gp-scroll-hero-card {
    position: relative;
    width: 88vw;
    max-width: 640px;
    height: 68vh;
    max-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    z-index: 1;
    will-change: width, height, border-radius, max-width, max-height;
}

/* Card inner image */
.gp-scroll-hero-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Card gradient overlay (text readability) */
.gp-scroll-hero-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.25) 0%,
        rgba(26, 26, 26, 0.15) 35%,
        rgba(26, 26, 26, 0.65) 75%,
        rgba(26, 26, 26, 0.85) 100%
    );
    z-index: 1;
}

/* Text content inside card */
.gp-scroll-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 40px 32px;
    text-align: center;
    will-change: opacity, transform;
}

.gp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.gp-hero-emoji {
    font-size: 16px;
}

.gp-hero-title {
    font-family: var(--f-display);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.gp-hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 22px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.gp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(45, 125, 70, 0.5);
}

.gp-hero-cta:hover {
    background: #fff;
    color: var(--g-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.3);
}

/* Scroll hint indicator */
.gp-scroll-hero-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
    animation: gp-hint-bounce 2s ease-in-out infinite;
}

.gp-scroll-hero-hint i {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

@keyframes gp-hint-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   SCROLL EXPANSION HERO — TABLET (≥768px)
   ============================================ */
@media (min-width: 768px) {
    .gp-scroll-hero-card {
        width: 75vw;
        max-width: 800px;
        height: 72vh;
        max-height: 640px;
        border-radius: 28px;
    }

    .gp-scroll-hero-content {
        padding: 56px 48px;
    }

    .gp-hero-title {
        font-size: 44px;
    }

    .gp-hero-subtitle {
        font-size: 16px;
        max-width: 520px;
    }

    .gp-hero-cta {
        padding: 14px 34px;
        font-size: 15px;
    }
}

/* ============================================
   SCROLL EXPANSION HERO — DESKTOP (≥1024px)
   ============================================ */
@media (min-width: 1024px) {
    .gp-scroll-hero-card {
        width: 60vw;
        max-width: 960px;
        height: 78vh;
        max-height: 720px;
        border-radius: 32px;
    }

    .gp-scroll-hero-content {
        padding: 64px 56px;
    }

    .gp-hero-title {
        font-size: 52px;
    }

    .gp-hero-subtitle {
        font-size: 17px;
        max-width: 560px;
    }
}

/* ============================================
   REDUCED MOTION — disable expansion effect
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .gp-scroll-hero {
        height: auto;
        margin-top: 0;
    }
    .gp-scroll-hero-sticky {
        position: relative;
        height: 90vh;
    }
    .gp-scroll-hero-card {
        width: 100vw;
        max-width: none;
        height: 90vh;
        max-height: none;
        border-radius: 0;
    }
    .gp-scroll-hero-bg {
        display: none;
    }
    .gp-scroll-hero-hint {
        display: none;
    }
}


/* ============================================
   SECTIONS — TIGHT SPACING
   ============================================ */
.gp-section {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

.gp-section-header {
  text-align: center;
  margin-bottom: 24px;
}

.gp-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--g-green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  position: relative;
  padding: 0 16px;
}

.gp-section-label::before,
.gp-section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--g-gold);
}

.gp-section-label::before { left: -8px; }
.gp-section-label::after { right: -8px; }

.gp-section-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--g-dark);
  margin: 0 0 8px;
  line-height: 1.25;
}

.gp-section-desc {
  font-size: 14px;
  color: var(--g-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   POST CARD GRID — MOBILE: 1 COL, TABLET: 2
   ============================================ */
.gp-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gp-post-card {
  background: var(--g-white);
  border-radius: var(--g-radius);
  overflow: hidden;
  box-shadow: var(--g-shadow-card);
  transition: all var(--g-transition);
  display: flex;
  flex-direction: column;
}

.gp-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--g-shadow-hover);
}

.gp-post-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g-warm-gray);
}

.gp-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gp-post-card:hover .gp-post-card-image img { transform: scale(1.06); }

.gp-post-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--g-green-light), var(--g-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255,255,255,0.3);
}

.gp-post-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(45,125,70,0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gp-post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gp-post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--g-muted);
  margin-bottom: 8px;
}

.gp-post-card-meta i { font-size: 10px; }

.gp-post-card-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--g-dark);
  line-height: 1.35;
  margin: 0 0 8px;
}

.gp-post-card-title a { color: inherit; }
.gp-post-card-title a:hover { color: var(--g-green); }

.gp-post-card-excerpt {
  font-size: 13px;
  color: var(--g-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.gp-post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--g-green);
}

.gp-post-card-readmore:hover { gap: 8px; color: var(--g-green-dark); }

/* ============================================
   CATEGORY SHOWCASE — MOBILE: 2 COL COMPACT
   ============================================ */
.gp-category-strip {
  background: var(--g-warm-gray);
  padding: 28px 0;
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
}

.gp-category-strip .gp-section-header {
  margin-bottom: 18px;
}

.gp-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.gp-category-card {
  text-align: center;
  padding: 18px 10px;
  background: var(--g-white);
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border);
  transition: all var(--g-transition);
  text-decoration: none;
}

.gp-category-card:hover {
  border-color: var(--g-green);
  transform: translateY(-2px);
  box-shadow: var(--g-shadow);
}

.gp-category-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--gp-cat-bg, var(--g-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}

.gp-category-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--g-dark);
  margin: 0 0 2px;
}

.gp-category-count {
  font-size: 11px;
  color: var(--g-muted);
}

/* ============================================
   WAVE DIVIDER
   ============================================ */
.gp-wave-divider {
  width: 100%;
  height: 40px;
  overflow: hidden;
  line-height: 0;
}

.gp-wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--g-dark);
  color: #aaa;
  padding: 32px 0 0;
  border-top: 3px solid var(--g-green);
}

.footer-widgets {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 0 16px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.footer-widgets .widget { color: #aaa; }

.footer-widgets .widget-title,
.footer-widgets h2,
.footer-widgets h3 {
  font-family: var(--f-display);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-widgets a { color: #bbb; font-size: 13px; }
.footer-widgets a:hover { color: var(--g-green-light); }
.footer-widgets ul { list-style: none; padding: 0; }
.footer-widgets ul li { margin-bottom: 6px; }

.site-info {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.site-info a { color: #888; }

/* ============================================
   BUTTONS
   ============================================ */
.button, button, input[type="submit"] {
  background: var(--g-green) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--g-radius-sm);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all var(--g-transition);
}

.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--g-green-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================
   ARCHIVE
   ============================================ */
.gp-archive .site-main {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

.gp-archive .page-header { text-align: center; margin-bottom: 24px; }

.gp-archive .page-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--g-dark);
}

/* ============================================
   SINGLE POST CONTENT (GeneratePress entry)
   ============================================ */
.gp-article .entry-header { text-align: center; padding: 28px 16px 16px; }

.gp-article .entry-title {
  font-family: var(--f-display) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--g-dark);
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto 12px !important;
  letter-spacing: -0.01em;
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--g-muted);
  margin-bottom: 6px;
}

.entry-meta .cat-links {
  display: inline-block;
  background: #e8f5e2;
  color: var(--g-green);
  padding: 3px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 11px;
}

.gp-article .inside-article {
  background: var(--g-white);
  border-radius: 0;
  box-shadow: none;
}

.gp-article .entry-content {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--g-body);
  max-width: 720px;
  margin: 0 auto;
}

:lang(ko) .gp-article .entry-content,
.gp-article .entry-content:lang(ko) {
  font-family: var(--f-korean);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: -0.01em;
}

.entry-content h2 {
  font-family: var(--f-display);
  color: var(--g-dark);
  font-size: 22px;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--g-border);
  position: relative;
}

.entry-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--g-green);
}

.entry-content h3 {
  color: var(--g-green-dark);
  font-size: 18px;
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

.entry-content a {
  color: var(--g-green);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--g-transition);
}

.entry-content a:hover { border-bottom-color: var(--g-green); }

.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
  line-height: 1.8;
  margin-bottom: 1em;
}

.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--g-green); }

.entry-content blockquote {
  border-left: 4px solid var(--g-green);
  background: linear-gradient(135deg, #f0f8ee, #e8f5e2);
  padding: 14px 20px;
  margin: 1.5em 0;
  font-style: italic;
  font-size: 16px;
  color: var(--g-dark);
  border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
}

.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  font-size: 14px;
  border-radius: var(--g-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.entry-content th {
  background: var(--g-green);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--g-border); }
.entry-content tr:nth-child(even) td { background: var(--g-warm-gray); }
.entry-content p { margin-bottom: 1.1em; }

.gp-article .entry-content > p:first-of-type:not(.no-dropcap):first-letter {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 4px 6px 0 0;
  color: var(--g-green);
}

/* ============================================
   CUSTOM SINGLE.PHP STYLES
   ============================================ */

/* Reading Progress Bar */
.gp-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--g-green), var(--g-gold));
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Article Hero */
.gp-article-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--g-dark);
}

.gp-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.85) 100%);
}

.gp-article-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 0 28px;
  width: 100%;
}

.gp-article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--g-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}

.gp-article-breadcrumb:hover { background: var(--g-green-dark); color: #fff; }

.gp-article-title {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 14px;
  max-width: 800px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.gp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.gp-article-meta i { margin-right: 4px; opacity: 0.7; }

/* Article Body */
.gp-article-wrapper {
  background: var(--g-cream);
  padding: 32px 0 40px;
}

.gp-container {
  max-width: var(--g-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.gp-article-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Share Bar — HORIZONTAL ON MOBILE */
.gp-share-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--g-border);
  margin-bottom: 20px;
}

.gp-share-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--g-muted);
  margin-right: 6px;
}

.gp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.gp-share-btn:hover { transform: translateY(-2px); color: #fff; opacity: 0.9; }

.gp-share-fb { background: #1877f2; }
.gp-share-tw { background: #000000; }
.gp-share-wa { background: #25d366; }
.gp-share-tg { background: #0088cc; }

/* Article Content */
.gp-article-content {
  margin: 0 auto !important;
  max-width: 680px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--g-body);
}

.gp-article-content h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--g-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--g-green);
  display: inline-block;
}

.gp-article-content h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--g-green-dark);
  margin: 24px 0 10px;
}

.gp-article-content p { margin: 0 0 18px; }

.gp-article-content ul,
.gp-article-content ol { margin: 0 0 18px; padding-left: 20px; }

.gp-article-content li { margin-bottom: 8px; line-height: 1.75; }

.gp-article-content blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--g-warm-gray);
  border-left: 4px solid var(--g-green);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--g-green-dark);
}

.gp-article-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
  box-shadow: var(--g-shadow-card);
}

.gp-article-content a {
  color: var(--g-green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gp-article-content a:hover { color: var(--g-green-dark); }
.gp-article-content strong { color: var(--g-dark); font-weight: 700; }

.gp-article-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g-border), transparent);
  margin: 32px 0;
}

/* Tags */
.gp-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--g-border);
}

.gp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--g-warm-gray);
  color: var(--g-body);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.gp-tag:hover { background: var(--g-green); color: #fff; text-decoration: none; }

/* Share Bottom */
.gp-article-share-bottom {
  margin: 28px 0;
  padding: 20px;
  background: var(--g-warm-gray);
  border-radius: 10px;
  text-align: center;
}

.gp-article-share-bottom p {
  font-size: 13px;
  font-weight: 600;
  color: var(--g-dark);
  margin-bottom: 12px;
}

.gp-share-bottom-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gp-share-bottom-buttons .gp-share-btn {
  width: auto;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  color: #fff !important;
}

.gp-share-bottom-buttons .gp-share-btn i {
  font-size: 16px;
  color: #fff !important;
}

/* Force white text on ALL share buttons */
.gp-share-btn,
.gp-share-btn:link,
.gp-share-btn:visited,
.gp-share-btn:hover {
  color: #fff !important;
}
.gp-share-btn i,
.gp-share-btn svg {
  color: #fff !important;
}

/* Related Posts */
.gp-related-section {
  background: var(--g-white);
  padding: 32px 0;
}

.gp-related-grid { grid-template-columns: 1fr; }
.gp-related-card .gp-post-card-title { font-size: 16px; }

/* Back to Home */
.gp-back-home-wrapper {
  text-align: center;
  padding: 24px 0 40px;
  background: var(--g-cream);
}

.gp-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--g-green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.gp-back-home:hover {
  background: var(--g-green-dark);
  color: #fff;
  transform: translateX(-3px);
}

/* Newsletter Section */
.gp-newsletter { text-align: center; }

.gp-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 440px;
  margin: 20px auto 0;
  justify-content: center;
}

.gp-newsletter-input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--g-border);
  outline: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 100px;
  background: var(--g-white);
  font-family: var(--f-body);
}

.gp-newsletter-input:focus { border-color: var(--g-green); }

.gp-newsletter-btn {
  border-radius: 100px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

/* ============================================
   TABLET — ≥600px
   ============================================ */
@media (min-width: 600px) {
  .inside-header { padding: 12px 24px; }
  .site-title { font-size: 24px !important; }

  /* GP container padding tablet */
  .site-content .grid-container { padding-left: 24px; padding-right: 24px; }

  /* hero responsive now in scroll-expansion CSS */
  
  

  .gp-section { padding: 40px 24px; }
  .gp-section-title { font-size: 28px; }

  .gp-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .gp-post-card-body { padding: 20px; }
  .gp-post-card-title { font-size: 19px; }

  .gp-category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .gp-category-card { padding: 22px 14px; }
  .gp-category-icon { width: 46px; height: 46px; font-size: 19px; }

  .footer-widgets {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
  }

  .gp-article-hero { min-height: 400px; }
  .gp-article-title { font-size: 32px; }
  .gp-article-hero-content { padding: 40px 0 32px; }

  .gp-article-wrapper { padding: 40px 0 48px; }

  .gp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   DESKTOP — ≥900px
   ============================================ */
@media (min-width: 900px) {
  
  
  

  .gp-section { padding: 48px 24px; }
  .gp-section-title { font-size: 32px; }
  .gp-section-header { margin-bottom: 32px; }

  .gp-post-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  .gp-category-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }

  .footer-widgets {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }

  /* Sticky share bar only on desktop */
  .gp-article-container {
    grid-template-columns: 1fr;
    gap: 0;
    gap: 28px;
  }

  .gp-share-bar {
    position: sticky;
    top: 100px;
    flex-direction: column;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
  }

  .gp-share-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .gp-article-hero { min-height: 480px; }
  .gp-article-title { font-size: 38px; }

  .gp-article-content {
  margin: 0 auto !important; font-size: 17px; }
  .gp-article-content h2 { font-size: 26px; }
  .gp-article-content h3 { font-size: 20px; }

  .gp-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gp-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.gp-fade-up { animation: gp-fade-up 0.5s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   DESKTOP FIXES — Nav, Post Grid, Layout
   ============================================ */

/* Desktop: Show full navigation menu (not mobile toggle) */
@media (min-width: 769px) {
  .main-navigation .menu-toggle { display: none !important; }
  .main-navigation .mobile-menu-control-wrapper { display: none !important; }
  .main-navigation:not(.toggled) .main-nav > ul { display: block !important; }
  .main-navigation .main-nav { display: block !important; }
  .main-navigation ul { display: block !important; }
  .menu.sf-menu { display: flex !important; }
  .menu.sf-menu > li { display: inline-block !important; }
}

/* Desktop: Post card grid — single card shouldn't be tiny */
.gp-post-grid:has(.gp-post-card:only-child) {
  grid-template-columns: 1fr !important;
  max-width: 500px;
  margin: 0 auto;
}
.gp-post-grid:has(.gp-post-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 700px;
  margin: 0 auto;
}

/* Desktop: Category emoji sizing */
@media (min-width: 900px) {
  .gp-category-emoji { font-size: 26px; }
  .gp-category-icon { width: 52px; height: 52px; }
}

/* Desktop: Header layout */
@media (min-width: 769px) {
  .site-header { position: relative !important; }
    .site-header .inside-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .site-branding { flex: 0 0 auto; }
  .main-navigation { flex: 1 1 auto; }
  .main-navigation .inside-navigation {
    padding: 0 !important;
  }
}

/* Desktop: Footer cleanup */
.site-info {
  text-align: center;
  padding: 16px 20px !important;
  font-size: 13px;
  color: #999;
}
.site-info a { color: var(--g-green); }


/* ============================================
   HEADER REDESIGN — Clean, standard blog layout
   Logo left | Nav right (desktop) / Hamburger right (mobile)
   Mobile menu = dropdown panel below header (NOT inline expand)
   ============================================ */

/* --- Common: Hide redundant text title (logo replaces it) --- */
.site-header .site-branding .main-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- Desktop logo sizing --- */
@media (min-width: 769px) {
    .site-header .custom-logo,
    .site-header .is-logo-image,
    header.site-header img {
        height: 48px !important;
        width: auto !important;
    }

    /* Header flex layout */
    .site-header { position: relative !important; }
    .site-header .inside-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 64px !important;
        padding: 8px 20px !important;
    }

    /* Branding left */
    .site-branding-container {
        flex: 0 0 auto !important;
    }
    .site-branding {
        display: flex !important;
        align-items: center !important;
    }

    /* Nav right */
    #site-navigation,
    .main-navigation {
        flex: 0 0 auto !important;
    }
    .main-navigation .inside-navigation {
        padding: 0 !important;
    }
    /* Desktop nav links */
    .main-navigation .main-nav > ul > li > a {
        line-height: 48px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* Hide mobile toggle on desktop */
    #mobile-menu-control-wrapper {
        display: none !important;
    }
}

/* ============================================
   MOBILE HEADER (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- Header: flex, logo left + hamburger right --- */
    .site-header { position: relative !important; }
    .site-header .inside-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 52px !important;
        padding: 6px 16px !important;
        flex-wrap: nowrap !important;
    }

    /* Logo: smaller, left aligned */
    .site-branding-container {
        flex: 0 0 auto !important;
        order: 1 !important;
    }
    .site-header .custom-logo,
    .site-header .is-logo-image,
    header.site-header img {
        height: 34px !important;
        width: auto !important;
    }

    /* Mobile hamburger: right side, compact icon */
    #mobile-menu-control-wrapper {
        flex: 0 0 auto !important;
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
    }
    #mobile-menu-control-wrapper .menu-toggle {
        line-height: 34px !important;
        padding: 0 8px !important;
        font-size: 0 !important; /* hide text, icon only */
        min-width: 36px !important;
        width: 36px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }
    #mobile-menu-control-wrapper .menu-toggle .gp-icon svg {
        height: 18px !important;
        width: 18px !important;
    }
    #mobile-menu-control-wrapper .menu-toggle:hover {
        background: rgba(0,0,0,0.05) !important;
    }

    /* --- Navigation: absolute dropdown below header --- */
    #site-navigation {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.25s ease-in-out !important;
    }
    #site-navigation.toggled {
        max-height: 400px !important;
    }

    /* Hide the duplicate toggle inside site-navigation */
    #site-navigation > .inside-navigation > .menu-toggle {
        display: none !important;
    }

    /* Mobile menu items */
    .main-navigation.toggled .main-nav {
        display: block !important;
        padding: 8px 0 !important;
    }
    .main-navigation.toggled .main-nav > ul {
        display: block !important;
        width: 100% !important;
    }
    .main-navigation.toggled .main-nav li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .main-navigation.toggled .main-nav li:last-child {
        border-bottom: none !important;
    }
    .main-navigation.toggled .main-nav li a {
        line-height: 44px !important;
        padding: 0 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        display: block !important;
        width: 100% !important;
    }
    .main-navigation.toggled .main-nav li a:hover {
        background: #f8f8f8 !important;
        color: var(--g-green, #2d7a4f) !important;
    }

    /* Hide desktop nav when not toggled */
    .main-navigation:not(.toggled) .main-nav > ul {
        display: none !important;
    }
}

/* ============================================
   SIDEBAR & WIDGETS — Archive Pages
   ============================================ */

/* Sidebar container */
.sidebar .widget-area .widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .widget h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g-muted, #888);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--g-green, #2d7d46);
}

/* Search Widget */
.sidebar .widget_search {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.wp-block-search {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.wp-block-search .wp-block-search__input {
  width: 100%;
  flex: 1;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border: 1.5px solid #e0e0e0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.wp-block-search .wp-block-search__input:focus {
  border-color: var(--g-green, #2d7d46);
}

.wp-block-search .wp-block-search__button {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 0 8px 8px 0;
  background: var(--g-green, #2d7d46);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.wp-block-search .wp-block-search__button:hover {
  background: var(--g-green-dark, #1b5e20);
}

/* Label hidden */
.wp-block-search .wp-block-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Recent Posts Widget */
.widget_recent_entries ul,
.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_entries li,
.sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.widget_recent_entries li:last-child,
.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.widget_recent_entries a,
.sidebar .widget ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.widget_recent_entries a:hover,
.sidebar .widget ul li a:hover {
  color: var(--g-green, #2d7d46);
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* Recent Comments Widget */
.widget_recent_comments .recentcomments {
  font-size: 13px;
  color: #666;
}

/* Archive/Category page main content */
.archive .site-main,
.category .site-main,
.search .site-main {
  padding: 0;
}

.archive .page-header,
.category .page-header {
  margin-bottom: 24px;
}

.archive .page-title,
.category .page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--g-dark, #1a1a1a);
}

/* Archive post cards */
.archive .entry-summary,
.category .entry-summary {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* "Read more" link */
.archive .entry-summary a.more-link,
.category .entry-summary a {
  color: var(--g-green, #2d7d46);
  font-weight: 600;
  text-decoration: none;
}

/* === Block Widget Overrides === */
.widget-area .widget_block {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.widget-area .widget_block .wp-block-heading {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2d7d46;
}
.widget-area .wp-block-latest-posts li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  list-style: none;
}
.widget-area .wp-block-latest-posts li:last-child {
  border-bottom: none;
}
.widget-area .wp-block-latest-posts a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  line-height: 1.5;
}
.widget-area .wp-block-latest-posts a:hover {
  color: #2d7d46;
}
.widget-area .wp-block-latest-posts .wp-block-latest-posts__post-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}
.widget-area .wp-block-latest-comments {
  font-size: 13px;
  color: #666;
}
