/* =============================================================================
   UNPRETTY GHOST THEME - Main Stylesheet
   ============================================================================= */

/* =============================================================================
   ## CSS VARIABLES
   ============================================================================= */
:root {
  --color-primary: #e8734a;
  --color-primary-light: #f5c5a3;
  --color-primary-bg: #fde8d8;
  --color-text: #1a1a1a;
  --color-text-secondary: rgba(0, 0, 0, 0.55);
  --color-text-light: rgba(0, 0, 0, 0.4);
  --color-bg: #fff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-dark-overlay: rgba(0, 0, 0, 0.35);

  --color-cat-beauty: #e8734a;
  --color-cat-fashion: #9b8559;
  --color-cat-inspirational: #c97a4a;
  --color-cat-entertainment: #8b6d5c;
  --color-cat-health: #6b8f71;
  --color-cat-lifestyle: #7a7a7a;
  --color-cat-celebrity: #c97a4a;
  --color-cat-home: #8b8b6d;
  --color-cat-inspiration: #c97a4a;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-heading: var(--font-serif);

  --container-width: 1200px;
  --container-padding: 20px;
  --header-height: 60px;
}


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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 1.2em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}


/* =============================================================================
   ## LAYOUT
   ============================================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--wide {
  max-width: 1400px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.section {
  padding: 50px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}


/* =============================================================================
   ## SITE HEADER
   ============================================================================= */
.site-header {
  position: relative;
  background: var(--color-bg);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--container-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-center {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.site-logo img {
  max-height: 36px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0;
  }
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: var(--header-height);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Header Icons */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  transition: opacity 0.2s ease;
}

.header-icon:hover {
  opacity: 0.6;
}

.header-icon svg {
  width: 20px;
  height: 20px;
}


/* =============================================================================
   ## HERO SLIDER SECTION
   ============================================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-main {
  position: relative;
  height: 560px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero-main {
    height: 400px;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.hero-slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: #fff;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-slide__content {
    max-width: 55%;
    padding: 60px;
  }
}

.hero-slide__title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-slide__title {
    font-size: 2.4rem;
  }
}

.hero-slide__excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  color: #fff;
}

.hero-slider-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-slider-nav button:hover {
  background: rgba(255,255,255,0.3);
}

.hero-slider-counter {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Hero Sub Items */
.hero-sub {
  display: flex;
}

.hero-sub__item {
  flex: 1;
  position: relative;
  height: 320px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero-sub {
    flex-direction: column;
  }
  .hero-sub__item {
    height: 250px;
  }
}

.hero-sub__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sub__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}

.hero-sub__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 30px;
  color: #fff;
  z-index: 2;
}

.hero-sub__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero-sub__title {
    font-size: 1.3rem;
  }
}

/* Right-side article (in hero area) */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right__content {
  padding: 20px 30px;
}

.hero-right__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-right__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* =============================================================================
   ## CATEGORY BADGE
   ============================================================================= */
.category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.category-badge--overlay {
  padding: 5px 12px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
}

.category-badge--beauty { color: var(--color-cat-beauty); }
.category-badge--fashion { color: var(--color-cat-fashion); }
.category-badge--inspirational,
.category-badge--inspiration { color: var(--color-cat-inspirational); }
.category-badge--entertainment { color: var(--color-cat-entertainment); }
.category-badge--health-fitness { color: var(--color-cat-health); }
.category-badge--lifestyle { color: var(--color-cat-lifestyle); }
.category-badge--celebrity { color: var(--color-cat-celebrity); }
.category-badge--home { color: var(--color-cat-home); }


/* =============================================================================
   ## EDITOR'S PICKS SECTION
   ============================================================================= */
.editors-picks {}

.editors-picks__featured {
  display: block;
  position: relative;
  height: 480px;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 0;
}

@media (max-width: 767px) {
  .editors-picks__featured {
    height: 320px;
  }
}

.editors-picks__featured img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editors-picks__featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
}

.editors-picks__featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 40px;
  color: #fff;
  z-index: 2;
}

@media (min-width: 768px) {
  .editors-picks__featured-content {
    max-width: 60%;
  }
}

.editors-picks__featured-title {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .editors-picks__featured-title {
    font-size: 2.2rem;
  }
}

.editors-picks__featured-excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Editor's picks cards row */
.editors-picks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .editors-picks__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.editors-card {
  position: relative;
  overflow: hidden;
}

.editors-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.editors-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card with overlay (style 1) */
.editors-card--overlay {
  height: 250px;
}

.editors-card--overlay .editors-card__image {
  height: 100%;
}

.editors-card--overlay .editors-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* Card with separate content (style 2) */
.editors-card--separate .editors-card__content {
  padding: 15px 0;
}

/* Card with pink/peach background */
.editors-card--accent {
  background: var(--color-primary-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  height: 250px;
}

.editors-card--accent .editors-card__title {
  color: var(--color-text);
}

/* Author on card */
.editors-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.editors-card__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.editors-card__author-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =============================================================================
   ## READERS RECOMMEND SECTION
   ============================================================================= */
.readers-recommend {}

.readers-recommend__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .readers-recommend__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
  }
}

.readers-recommend__main {
  position: relative;
}

.readers-recommend__main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .readers-recommend__main-image {
    aspect-ratio: auto;
    max-height: 600px;
  }
}

.readers-recommend__main-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

/* Side articles */
.readers-recommend__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-article {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.side-article__image {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
}

.side-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-article__content {
  flex: 1;
  min-width: 0;
}

.side-article__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
}


/* =============================================================================
   ## FEATURED POST (with sidebar) SECTION
   ============================================================================= */
.featured-sidebar-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 992px) {
  .featured-sidebar-section {
    grid-template-columns: 2fr 1fr;
    gap: 0;
  }
}

.featured-post-large {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: block;
}

@media (min-width: 992px) {
  .featured-post-large {
    min-height: 600px;
    height: 100%;
  }
}

.featured-post-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-large__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.featured-post-large__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 30px;
  color: #fff;
  z-index: 2;
}

@media (min-width: 768px) {
  .featured-post-large__content {
    padding: 40px;
    max-width: 80%;
  }
}

.featured-post-large__title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .featured-post-large__title {
    font-size: 2.2rem;
  }
}

.featured-post-large__excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 12px;
}

.featured-post-large__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
}

.featured-post-large__meta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-post-large__meta-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sidebar trending */
.sidebar-trending {
  background: #3d4a3c;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  min-height: 500px;
}

@media (min-width: 992px) {
  .sidebar-trending {
    padding: 30px 25px;
    overflow-y: auto;
    min-height: 0;
    height: 100%;
  }
}

.sidebar-trending__item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-trending__item:last-child {
  border-bottom: none;
}

.sidebar-trending__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-trending__content {
  flex: 1;
  min-width: 0;
}

.sidebar-trending__category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.sidebar-trending__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.sidebar-trending__title a {
  color: #fff;
}

.sidebar-trending__title a:hover {
  opacity: 0.8;
}


/* =============================================================================
   ## LATEST POSTS GRID
   ============================================================================= */
.latest-section {}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (min-width: 992px) {
  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

.post-card {
  position: relative;
}

.post-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.post-card:hover .post-card__image img {
  transform: scale(1.03);
}

.post-card__content {
  position: relative;
}

.post-card__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
  padding-right: 30px;
}

.post-card__title a {
  color: var(--color-text);
}

.post-card__title a:hover {
  color: var(--color-primary);
}

.post-card__arrow {
  position: absolute;
  top: 30px;
  right: 0;
  width: 10px;
  height: 10px;
  color: var(--color-primary);
}

.post-card__arrow svg {
  width: 12px;
  height: 12px;
}


/* =============================================================================
   ## LOAD MORE BUTTON
   ============================================================================= */
.load-more-wrap {
  text-align: center;
  padding: 40px 0 10px;
  position: relative;
  z-index: 5;
  clear: both;
}

.load-more-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  z-index: 5;
}

.load-more-btn:hover {
  background: #d4633c;
}


/* =============================================================================
   ## SITE FOOTER
   ============================================================================= */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-logo__icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-weight: 700;
  font-size: 16px;
}

.footer-logo__text {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-logo img {
  max-height: 42px;
  width: auto;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  gap: 15px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-copyright a {
  color: var(--color-primary);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.footer-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-text);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}


/* =============================================================================
   ## SINGLE POST
   ============================================================================= */
.post-header {
  text-align: center;
  padding: 50px var(--container-padding) 30px;
  max-width: 800px;
  margin: 0 auto;
}

.post-header__category {
  margin-bottom: 14px;
}

.post-header__title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .post-header__title {
    font-size: 2.6rem;
  }
}

.post-header__excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-light);
}

.post-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta__name {
  font-weight: 600;
  color: var(--color-text);
}

.post-meta__date {
  color: var(--color-text-light);
}

.post-feature-image {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto 40px;
  padding: 0 var(--container-padding);
}

.post-feature-image img {
  width: 100%;
  border-radius: 0;
}

.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.75);
}

.post-content h2 {
  font-size: 1.6rem;
  margin-top: 2em;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5em;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.5em;
  border-left: 3px solid var(--color-primary);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-secondary);
}

.post-content img {
  margin: 1.5em 0;
}

.post-content figure {
  margin: 2em 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  list-style: initial;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.5em;
}

/* Post Tags */
.post-tags {
  max-width: 740px;
  margin: 30px auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: #f5f5f5;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.post-tags a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Related Posts */
.related-posts {
  padding: 50px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.related-posts__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
}


/* =============================================================================
   ## TAG / AUTHOR ARCHIVE PAGES
   ============================================================================= */
.archive-header {
  text-align: center;
  padding: 50px var(--container-padding) 40px;
}

.archive-header__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.archive-header__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.archive-header__description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Author Page */
.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px var(--container-padding) 40px;
}

.author-header__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.author-header__name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.author-header__bio {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 12px;
}

.author-header__social {
  display: flex;
  gap: 12px;
}

.author-header__social a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.author-header__social a:hover {
  color: var(--color-primary);
}


/* =============================================================================
   ## PAGINATION
   ============================================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.pagination a:hover {
  color: var(--color-primary);
}

.pagination .page-number {
  font-size: 13px;
  color: var(--color-text-light);
}


/* =============================================================================
   ## MOBILE MENU
   ============================================================================= */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 30px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--color-text);
}

.mobile-menu__nav {
  margin-top: 30px;
}

.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__nav a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}


/* =============================================================================
   ## SEARCH OVERLAY
   ============================================================================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.97);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--color-text);
}

.search-overlay__form {
  width: 90%;
  max-width: 600px;
}

.search-overlay__input {
  width: 100%;
  padding: 15px 0;
  font-size: 2rem;
  font-family: var(--font-heading);
  border: none;
  border-bottom: 2px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  outline: none;
}

.search-overlay__input::placeholder {
  color: var(--color-text-light);
}


/* =============================================================================
   ## ERROR PAGE
   ============================================================================= */
.error-page {
  text-align: center;
  padding: 100px var(--container-padding);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.error-page__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page__description {
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.error-page__link {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 30px;
}


/* =============================================================================
   ## GHOST KOENIG EDITOR CLASSES
   ============================================================================= */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5em auto;
  transform: translateX(calc(50% - 50vw + (50vw - 42.5vw)));
}

@media (max-width: 1040px) {
  .kg-width-wide {
    width: calc(100% + 2 * var(--container-padding));
    min-width: calc(100% + 2 * var(--container-padding));
    margin-left: calc(-1 * var(--container-padding));
    transform: none;
  }
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  transform: none;
}

.kg-width-full img {
  width: 100%;
}

.kg-width-wide img {
  width: 100%;
}

/* Koenig card styles */
.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card {
  margin: 1.5em 0;
}

.kg-image-card img {
  margin: 0 auto;
}

.kg-image-card figcaption,
.kg-gallery-card figcaption,
.kg-embed-card figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 10px;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 100%;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-image {
  flex: 1 1 0%;
  margin: 0 4px;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 4px 0 0;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bookmark card */
.kg-bookmark-card {
  width: 100%;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--color-border);
  overflow: hidden;
  border-radius: 4px;
}

.kg-bookmark-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px;
}

.kg-bookmark-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.kg-bookmark-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.kg-bookmark-author::after {
  content: "•";
  margin: 0 6px;
}

.kg-bookmark-thumbnail {
  position: relative;
  flex: 0 0 180px;
  min-height: 160px;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .kg-bookmark-container {
    flex-direction: column;
  }
  .kg-bookmark-thumbnail {
    flex: 0 0 auto;
    min-height: 160px;
    width: 100%;
    order: 1;
  }
  .kg-bookmark-content {
    order: 2;
  }
}

/* Button card */
.kg-button-card {
  display: flex;
  position: static;
  align-items: center;
  width: 100%;
  justify-content: center;
  margin: 1.5em 0;
}

.kg-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.2s ease;
}

.kg-btn:hover {
  opacity: 0.85;
}

/* Callout card */
.kg-callout-card {
  display: flex;
  padding: 20px 28px;
  border-radius: 4px;
  margin: 1.5em 0;
}

.kg-callout-emoji {
  padding-right: 16px;
  line-height: 1.3;
  font-size: 1.2em;
}

.kg-callout-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin: 1.5em 0;
  padding: 20px;
}

.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.kg-toggle-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.kg-toggle-content {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Header card */
.kg-header-card {
  padding: 6em 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 1.5em 0;
}

.kg-header-card h2 {
  font-size: 3rem;
  margin: 0;
}

.kg-header-card h3 {
  font-size: 1.25rem;
  margin: 0.5em 0 0;
  font-weight: 400;
}

/* Product card */
.kg-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 30px;
  margin: 1.5em 0;
}

.kg-product-card img {
  max-width: 200px;
  margin-bottom: 16px;
}

/* Video card */
.kg-video-card {
  margin: 1.5em 0;
}

/* Audio card */
.kg-audio-card {
  margin: 1.5em 0;
}

/* File card */
.kg-file-card {
  margin: 1.5em 0;
}


/* =============================================================================
   ## UTILITIES
   ============================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }


/* =============================================================================
   ## RESPONSIVE
   ============================================================================= */
@media (max-width: 991px) {
  .site-header__inner {
    height: 56px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 35px 0;
  }

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 25px;
  }

  .post-header__title {
    font-size: 1.6rem;
  }
}


/* =============================================================================
   ## GHOST KOENIG EDITOR - Required Classes
   ============================================================================= */

/* Wide images */
.post-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

/* Full-width images */
.post-content .kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.post-content .kg-width-full img {
  width: 100%;
}

/* Koenig image card */
.kg-image-card,
.kg-gallery-card {
  margin: 1.5em 0 2em;
}

.kg-image-card img {
  margin: 0 auto;
}

.kg-image-card figcaption,
.kg-gallery-card figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 10px;
  line-height: 1.4;
}

/* Koenig gallery */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 100%;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.75em 0 0;
}

.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.75em;
}

/* Koenig bookmark card */
.kg-bookmark-card {
  width: 100%;
  margin: 1.5em 0 2em;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  color: var(--color-text);
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px;
}

.kg-bookmark-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.kg-bookmark-description {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 6px;
  max-height: 48px;
  overflow-y: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.kg-bookmark-author::after {
  content: "•";
  margin: 0 6px;
}

.kg-bookmark-publisher {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.kg-bookmark-thumbnail {
  position: relative;
  min-width: 33%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Koenig embed / video */
.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 1.5em 0 2em;
}

.kg-embed-card iframe {
  width: 100%;
}

/* Koenig callout card */
.kg-callout-card {
  display: flex;
  padding: 20px 28px;
  border-radius: 3px;
  margin: 1.5em 0;
}

.kg-callout-emoji {
  padding-right: 16px;
  line-height: 1.25;
  font-size: 1.15rem;
}

.kg-callout-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Koenig button card */
.kg-button-card {
  display: flex;
  position: static;
  align-items: center;
  width: 100%;
  justify-content: center;
  margin: 1.5em 0;
}

.kg-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.2s ease;
}

.kg-btn:hover {
  opacity: 0.85;
}

/* Koenig toggle card */
.kg-toggle-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin: 1.5em 0;
  padding: 20px;
}

.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.kg-toggle-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.kg-toggle-content {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Koenig header card */
.kg-header-card {
  padding: 6em 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 1.5em 0;
}

.kg-header-card h2 {
  font-size: 3em;
  margin: 0 0 0.2em;
}

.kg-header-card h3 {
  font-size: 1.25em;
  font-weight: 400;
  margin: 0;
}
