:root {
  --primary: #097bc0;
  --primary-dark: #0a5a8a;
  --secondary: #2b4a72;
  --accent: #4fc3f7;
  --light: #f5f7fb;
  --white: #ffffff;
  --text-dark: #122235;
  --text-light: #5b6b80;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-title p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.15);
  color: var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  height: clamp(36px, 7vw, 44px);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

.mobile-only {
  display: none;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cta-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(9, 123, 192, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(9, 123, 192, 0.2);
}

.cta-nav {
  background: var(--gradient);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero */
.page-header {
  margin-top: 78px;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 7vw, 4rem);
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.2), transparent 50%);
  opacity: 0.9;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-header p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 640px;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions a {
  background: white;
  color: var(--primary-dark);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.hero-actions a.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-actions a:hover {
  transform: translateY(-2px);
}

/* Blog Layout */
.main-content {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--light);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: white;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  max-width: 320px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.category-card {
  background: white;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 123, 192, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:focus-visible {
  outline: 2px solid rgba(9, 123, 192, 0.4);
  outline-offset: 3px;
}

.card-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 2.2rem;
  color: rgba(9, 123, 192, 0.18);
  transition: var(--transition);
  pointer-events: none;
}

.category-card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  color: rgba(9, 123, 192, 0.28);
}

.category-card .badge {
  align-self: flex-start;
  background: rgba(9, 123, 192, 0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.category-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-card:focus-visible,
.featured-mini:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.featured-card img {
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.featured-content {
  padding: 1.5rem;
}

.featured-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

.featured-list {
  display: grid;
  gap: 1rem;
}

.featured-mini {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
  background: white;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.featured-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.featured-mini img {
  width: 100%;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.featured-mini h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.post-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.post-content h3 {
  font-size: 1.1rem;
}

.post-content p {
  color: var(--text-light);
  font-size: 0.92rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

.post-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.post-footer span {
  color: var(--text-light);
  font-weight: 500;
}

.post-footer a {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(9, 123, 192, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(9, 123, 192, 0.2);
  transition: var(--transition);
}

.post-footer a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.post-share {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-share span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.share-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

.load-more {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.load-more:hover {
  background: var(--primary);
  color: white;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: grid;
  gap: 0.8rem;
}

.newsletter-form input,
.newsletter-form button {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.newsletter-modal.show {
  opacity: 1;
  pointer-events: all;
}

.newsletter-modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.8rem;
}

.newsletter-modal-content h3 {
  font-size: 1.4rem;
}

.newsletter-modal-content p {
  color: var(--text-light);
}

.newsletter-modal-close {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  padding: 0.35rem 0.7rem;
  background: rgba(9, 123, 192, 0.08);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Post Template */
.post-hero {
  margin-top: 78px;
  background: var(--gradient);
  color: white;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.post-hero .container {
  display: grid;
  gap: 1.5rem;
}

.post-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.post-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr);
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.post-content-area {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.wp-block {
  margin-bottom: 1.6rem;
}

.wp-block h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.wp-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--secondary);
  background: rgba(9, 123, 192, 0.06);
  border-radius: 0 12px 12px 0;
}

.wp-block-image img {
  border-radius: 12px;
}

.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.wp-block-gallery img {
  border-radius: 10px;
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}

.wp-block-table th {
  background: rgba(9, 123, 192, 0.08);
}

.post-content-area ul {
  padding-left: 1.2rem;
  color: var(--text-dark);
}

.post-content-area li {
  margin-bottom: 0.4rem;
}

.toc {
  position: sticky;
  top: 100px;
}

.toc h3 {
  margin-bottom: 0.8rem;
}

.toc ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.toc a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.toc a.active {
  color: var(--primary);
  font-weight: 600;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 1200;
}

/* Responsive */
@media (max-width: 980px) {
  .blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-only {
    display: block;
  }

  .cta-nav {
    display: none;
  }

  .search-box {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-card img {
    height: 200px;
  }

  .post-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .post-footer a {
    justify-self: start;
  }
}
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.15);
  color: var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  height: clamp(36px, 7vw, 44px);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cta-nav {
  background: var(--gradient);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero */
.page-header {
  margin-top: 78px;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 7vw, 4rem);
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.2), transparent 50%);
  opacity: 0.9;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-header p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 640px;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions a {
  background: white;
  color: var(--primary-dark);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.hero-actions a.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-actions a:hover {
  transform: translateY(-2px);
}

/* Blog Layout */
.main-content {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--light);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: white;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  max-width: 320px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.category-card {
  background: white;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 123, 192, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:focus-visible {
  outline: 2px solid rgba(9, 123, 192, 0.4);
  outline-offset: 3px;
}

.card-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 2.2rem;
  color: rgba(9, 123, 192, 0.18);
  transition: var(--transition);
  pointer-events: none;
}

.category-card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  color: rgba(9, 123, 192, 0.28);
}

.category-card .badge {
  align-self: flex-start;
  background: rgba(9, 123, 192, 0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.category-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-rows: auto 1fr;
}

.featured-card img {
  height: 260px;
  object-fit: cover;
  width: 100%;
}

.featured-content {
  padding: 1.5rem;
}

.featured-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

.featured-list {
  display: grid;
  gap: 1rem;
}

.featured-mini {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
  background: white;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.featured-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.featured-mini img {
  width: 100%;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.featured-mini h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.post-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.post-content h3 {
  font-size: 1.1rem;
}

.post-content p {
  color: var(--text-light);
  font-size: 0.92rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

.post-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.post-share {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-share span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.share-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

.load-more {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.load-more:hover {
  background: var(--primary);
  color: white;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: grid;
  gap: 0.8rem;
}

.newsletter-form input,
.newsletter-form button {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.newsletter-modal.show {
  opacity: 1;
  pointer-events: all;
}

.newsletter-modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.8rem;
}

.newsletter-modal-content h3 {
  font-size: 1.4rem;
}

.newsletter-modal-content p {
  color: var(--text-light);
}

.newsletter-modal-close {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  padding: 0.35rem 0.7rem;
  background: rgba(9, 123, 192, 0.08);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Post Template */
.post-hero {
  margin-top: 78px;
  background: var(--gradient);
  color: white;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.post-hero .container {
  display: grid;
  gap: 1.5rem;
}

.post-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.post-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr);
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.post-content-area {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.wp-block {
  margin-bottom: 1.6rem;
}

.wp-block h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.wp-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--secondary);
  background: rgba(9, 123, 192, 0.06);
  border-radius: 0 12px 12px 0;
}

.wp-block-image img {
  border-radius: 12px;
}

.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.wp-block-gallery img {
  border-radius: 10px;
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}

.wp-block-table th {
  background: rgba(9, 123, 192, 0.08);
}

.post-content-area ul {
  padding-left: 1.2rem;
  color: var(--text-dark);
}

.post-content-area li {
  margin-bottom: 0.4rem;
}

.toc {
  position: sticky;
  top: 100px;
}

.toc h3 {
  margin-bottom: 0.8rem;
}

.toc ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.toc a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.toc a.active {
  color: var(--primary);
  font-weight: 600;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 1200;
}

/* Responsive */
@media (max-width: 980px) {
  .blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .cta-nav {
    display: none;
  }

  .search-box {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-card img {
    height: 200px;
  }
}
