/* ============================================================
   Hon. Leke Abejide — style.css
   Complete stylesheet — all pages, dark mode, animations
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #1a3c5e;
  --accent: #c8971f;
  --light-bg: #f9f5ef;
  --dark-text: #1a1a1a;
  --muted: #6c757d;
  --border: #e5ddd0;
  --white: #ffffff;
  --green: #2a7a4b;
  --red: #dc3545;
  --header-height: 72px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.14);
  --transition: 0.28s ease;
}

/* ===== Dark Mode Variables ===== */
[data-theme="dark"] {
  --primary:   #4a9eda;
  --accent:    #e0aa3e;
  --light-bg:  #1a1f2e;
  --dark-text: #e8e6e1;
  --muted:     #9aa3b0;
  --border:    #2e3447;
  --white:     #13171f;
  --green:     #3db56a;
  --red:       #f05766;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.5);
}

[data-theme="dark"] body { background: #0f1219; }
[data-theme="dark"] #header {
  background: rgba(19,23,31,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .navbar { background: #13171f; box-shadow: -6px 0 28px rgba(0,0,0,0.5); }
[data-theme="dark"] .navbar a:hover  { background: #1e2535; }
[data-theme="dark"] .navbar a.active { background: #1e3a5f; }
[data-theme="dark"] .search-overlay  { background: #13171f; }
[data-theme="dark"] .search-overlay input { background: #1a1f2e; color: var(--dark-text); }
[data-theme="dark"] .post-card       { background: #13171f; }
[data-theme="dark"] .post-card:hover { background: #181d28; }
[data-theme="dark"] .post-card-img-placeholder { background: #1e2535; }
[data-theme="dark"] .achievement-card { background: #13171f; }
[data-theme="dark"] .team-card        { background: #13171f; }
[data-theme="dark"] .contact-form-card { background: #13171f; }
[data-theme="dark"] .contact-form-card input,
[data-theme="dark"] .contact-form-card textarea { background: #1a1f2e; color: var(--dark-text); border-color: var(--border); }
[data-theme="dark"] .contact-form-card input::placeholder,
[data-theme="dark"] .contact-form-card textarea::placeholder { color: var(--muted); }
[data-theme="dark"] .about-hero       { background: #1a1f2e; }
[data-theme="dark"] .profile-section  { background: #0f1219; }
[data-theme="dark"] .achievements-section { background: #13171f; }
[data-theme="dark"] .team-section     { background: #0f1219; }
[data-theme="dark"] #site-footer      { background: #0a0d14; border-top-color: var(--border); }
[data-theme="dark"] .footer-bottom    { border-top-color: var(--border); }
[data-theme="dark"] .sidebar-post     { background: #13171f; }
[data-theme="dark"] .single-post-hero { background: #1a1f2e; }
[data-theme="dark"] .single-post-body { background: #0f1219; color: var(--dark-text); }
[data-theme="dark"] .comment-card     { background: #13171f; }
[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea { background: #1a1f2e; color: var(--dark-text); border-color: var(--border); }
[data-theme="dark"] .nav-overlay      { background: rgba(0,0,0,0.75); }
[data-theme="dark"] .hero-slider-section { background: #0f1219; }
[data-theme="dark"] .blog-section     { background: #0f1219; }
[data-theme="dark"] .blog-section-header h2 { color: var(--dark-text); }
[data-theme="dark"] .cat-btn          { background: #1a1f2e; color: var(--muted); border-color: var(--border); }
[data-theme="dark"] .cat-btn:hover,
[data-theme="dark"] .cat-btn.active   { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .post-card-body h3 { color: var(--dark-text); }
[data-theme="dark"] .post-card-body p  { color: var(--muted); }
[data-theme="dark"] .post-meta-row     { border-top-color: var(--border); color: var(--muted); }
[data-theme="dark"] .newsletter-section { background: #13171f; }
[data-theme="dark"] .newsletter-form input { background: #1a1f2e; color: var(--dark-text); border-color: var(--border); }
[data-theme="dark"] .profile-content p { color: var(--muted); }
[data-theme="dark"] .section-header p,
[data-theme="dark"] .blog-section-header p { color: var(--muted); }
[data-theme="dark"] .post-single-content { color: #e8e6e1; }
[data-theme="dark"] .comment-item { background: #1a1f2e; }
[data-theme="dark"] .sidebar-widget { background: #13171f; border-color: var(--border); }
[data-theme="dark"] .sidebar-cat-link { background: #1a1f2e; border-color: var(--border); }
[data-theme="dark"] .newsletter-form input { background: #1a1f2e; color: var(--dark-text); }

/* Smooth theme transition */
body, #header, .navbar, .post-card, .achievement-card,
.team-card, .contact-form-card, #site-footer,
.search-overlay, .about-hero, .blog-section,
.hero-slider-section, .cat-btn {
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

/* ── Dark Mode Toggle Button ── */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--muted);
  transition: color var(--transition), background var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { color: var(--primary); background: var(--light-bg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle { color: var(--accent); }

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); color: var(--dark-text);
  background: var(--white); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d5f8a; }

/* ================================================================
   READING PROGRESS BAR — fixed at very top of viewport
   ================================================================ */
#reading-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ================================================================
   HEADER
   ================================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height); display: flex; align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}
#header.sticked { box-shadow: 0 2px 24px rgba(0,0,0,0.10); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.1rem;
  font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.navbar ul { display: flex; align-items: center; gap: 4px; }
.navbar a {
  padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
  color: var(--dark-text); border-radius: 6px;
  transition: background var(--transition), color var(--transition); letter-spacing: 0.3px;
}
.navbar a:hover, .navbar a.active { background: var(--primary); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-social a { color: var(--muted); font-size: 1.1rem; padding: 4px 6px; transition: color var(--transition); }
.header-social a:hover { color: var(--primary); }

.search-toggle, .mobile-nav-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 6px; transition: color var(--transition); color: var(--muted);
}
.search-toggle:hover, .mobile-nav-toggle:hover { color: var(--primary); }
.mobile-nav-toggle { display: none; font-size: 1.4rem; color: var(--dark-text); }

.search-overlay {
  position: fixed; top: var(--header-height); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999; display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.search-overlay.open { display: block; }
.search-overlay form { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.search-overlay input {
  flex: 1; padding: 10px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; outline: none;
  transition: border-color var(--transition);
}
.search-overlay input:focus { border-color: var(--primary); }
.search-overlay button {
  padding: 10px 20px; background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; transition: background var(--transition);
}
.search-overlay button:hover { background: #2d5f8a; }

/* ================================================================
   HERO SLIDER
   ================================================================ */
main { padding-top: var(--header-height); min-height: 80vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hero-slider-section { background: #0d0d0d; }
.sliderFeaturedPosts { width: 100%; }

.slider-slide-link {
  display: block; height: 540px;
  position: relative; text-decoration: none; overflow: hidden;
}
.slider-bg-blur {
  position: absolute; inset: -24px;
  background-size: cover; background-position: center;
  filter: blur(20px) brightness(0.45) saturate(1.3);
  transform: scale(1.12); z-index: 0;
}
.slider-bg-main {
  position: absolute; inset: 0;
  background-size: contain; background-repeat: no-repeat;
  background-position: center; z-index: 1;
}
.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 48px; z-index: 2;
}
.slider-content { color: white; max-width: 700px; }
.slider-badge {
  display: inline-block; background: var(--accent); color: white;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}
.slider-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.3; margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slider-read {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 3px; transition: gap var(--transition);
}
.slider-slide-link:hover .slider-read { gap: 14px; }

.slider-empty, .slider-placeholder {
  height: 540px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #2d5f8a);
  color: rgba(255,255,255,0.5);
}
.swiper-button-next, .swiper-button-prev {
  color: white !important; background: rgba(0,0,0,0.35);
  width: 44px !important; height: 44px !important;
  border-radius: 50%; transition: background var(--transition);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(0,0,0,0.6); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ================================================================
   BLOG SECTION
   ================================================================ */
.blog-section { padding: 64px 0; background: var(--light-bg); }
.blog-section-header { text-align: center; margin-bottom: 48px; }
.blog-section-header .section-tag {
  display: inline-block; padding: 5px 18px; background: #deeaf7; color: var(--primary);
  border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px;
}
.blog-section-header h2 {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--dark-text); margin-bottom: 12px;
}
.blog-section-header p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 0.95rem; line-height: 1.7; }

.category-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 32px; justify-content: center;
}
.cat-btn {
  padding: 8px 20px; border-radius: 24px; border: 2px solid var(--border);
  background: var(--white); font-size: 0.85rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all var(--transition);
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── Post Card ── */
.post-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.post-card.show { opacity: 1; transform: translateY(0); }
.post-card.show:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .post-card:hover { background: #181d28; }

@media (prefers-reduced-motion: reduce) {
  .post-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.post-card-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--light-bg); flex-shrink: 0;
}
.post-card-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; transition: transform 0.5s ease;
}
.post-card:hover .post-card-img { transform: scale(1.05); }
.post-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: var(--muted);
  background: linear-gradient(135deg, #e8e0d0, #d0c8b8);
}
.featured-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: white;
  font-size: 0.68rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  letter-spacing: 0.5px; text-transform: uppercase; z-index: 2;
}
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat-badge {
  display: inline-block; background: #deeaf7; color: var(--primary);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px; width: fit-content;
}
.post-card h3 {
  font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.45;
  margin-bottom: 10px; color: var(--dark-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover h3 { color: var(--primary); }
.post-card p {
  font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.post-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 16px;
  flex-wrap: wrap; gap: 6px;
}
.post-meta-row .meta-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.read-time-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--muted);
}
.read-more {
  color: var(--primary); font-weight: 600; font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 4px; transition: gap var(--transition);
}
.post-card:hover .read-more { gap: 8px; }

/* ── Tags on cards ── */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.tag-pill {
  display: inline-block; padding: 2px 10px;
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: 12px; font-size: 0.68rem; color: var(--muted);
  font-weight: 500; transition: all var(--transition);
}
.tag-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }
[data-theme="dark"] .tag-pill { background: #1e2535; border-color: var(--border); }

.load-more-wrap { text-align: center; margin-top: 44px; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 36px; border: 2px solid var(--primary);
  color: var(--primary); background: transparent;
  border-radius: 32px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-load-more:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ================================================================
   LAYOUT WITH SIDEBAR
   ================================================================ */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.post-main { padding: 48px 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; transition: color var(--transition);
}
.back-link:hover { color: var(--primary); }

.sidebar { position: sticky; top: calc(var(--header-height) + 24px); padding-top: 48px; }
.sidebar-widget {
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-family: var(--font-serif); font-size: 1rem; color: var(--primary);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.recent-post-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity var(--transition);
}
.recent-post-item:hover { opacity: 0.72; }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.recent-post-thumb-placeholder {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  background: var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--muted); flex-shrink: 0;
}
.recent-post-info h6 { font-size: 0.82rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-info span { font-size: 0.75rem; color: var(--muted); }

.sidebar-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-cat-link {
  display: inline-block; padding: 5px 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.82rem; color: var(--primary);
  transition: all var(--transition);
}
.sidebar-cat-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Tag Cloud in sidebar ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud-item {
  display: inline-block; padding: 4px 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; font-size: 0.78rem; color: var(--muted);
  transition: all var(--transition); cursor: pointer;
}
.tag-cloud-item:hover { background: var(--accent); color: white; border-color: var(--accent); }
[data-theme="dark"] .tag-cloud-item { background: #1e2535; }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  padding: 10px; background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; font-size: 0.9rem; transition: background var(--transition);
}
.newsletter-form button:hover { background: #2d5f8a; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--primary); transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }

/* ================================================================
   SINGLE POST
   ================================================================ */
.post-single-header h1 {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.3; margin: 16px 0;
}

/* ── Reading time + author row on single post ── */
.post-header-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px; font-size: 0.85rem; color: var(--muted);
}
.post-header-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-header-meta .read-time-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--light-bg); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem;
  color: var(--primary); font-weight: 600;
}
[data-theme="dark"] .post-header-meta .read-time-pill { background: #1e2535; border-color: var(--border); }

.post-single-img-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 32px; background: #0d0d0d;
}
.post-single-img-blur {
  position: absolute; inset: -24px;
  background-size: cover; background-position: center;
  filter: blur(20px) brightness(0.45) saturate(1.3);
  transform: scale(1.12); z-index: 0;
}
.post-single-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  z-index: 1; border-radius: 0; margin-bottom: 0; display: block;
}
.post-single-content {
  font-size: 1.06rem; line-height: 1.95;
  color: #333; font-family: 'EB Garamond', Georgia, serif;
}
[data-theme="dark"] .post-single-content { color: #e8e6e1; }
.post-single-content p { margin-bottom: 22px; }

/* ── Markdown content styles ── */
.post-single-content h1,.post-single-content h2,
.post-single-content h3,.post-single-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark-text); margin: 1.6em 0 0.6em; line-height: 1.3;
}
.post-single-content h1 { font-size: 2rem; }
.post-single-content h2 { font-size: 1.55rem; }
.post-single-content h3 { font-size: 1.25rem; }
.post-single-content h4 { font-size: 1.05rem; }
.post-single-content ul, .post-single-content ol { margin: 0 0 1.2em 1.6em; }
.post-single-content li { margin-bottom: 0.4em; line-height: 1.7; }
.post-single-content blockquote {
  border-left: 4px solid var(--accent); margin: 1.4em 0;
  padding: 12px 20px; background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--muted);
}
.post-single-content blockquote p { margin-bottom: 0; }

/* ── Code blocks with copy button ── */
.code-block-wrap { position: relative; margin: 1.4em 0; }
.copy-code-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.12); color: #e0e0e0;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 4px; letter-spacing: 0.3px;
  font-family: var(--font-sans);
}
.copy-code-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.copy-code-btn.copied { background: var(--green); border-color: var(--green); color: white; }
.post-single-content pre {
  background: #1a1a2e; color: #e0e0e0; padding: 18px 20px;
  border-radius: 10px; overflow-x: auto;
  font-size: 0.9rem; line-height: 1.6; margin: 0;
}
.post-single-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.post-single-content code {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 2px 7px; border-radius: 4px;
  font-family: 'Courier New', monospace; font-size: 0.88em; color: var(--primary);
}
.post-single-content hr { border: none; border-top: 2px solid var(--border); margin: 2em 0; }
.post-single-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-single-content a:hover { opacity: 0.75; }
.post-single-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.92rem; }
.post-single-content th, .post-single-content td {
  border: 1px solid var(--border); padding: 10px 14px; text-align: left;
}
.post-single-content th { background: color-mix(in srgb, var(--primary) 8%, transparent); font-weight: 700; }
.post-single-content tr:nth-child(even) td { background: color-mix(in srgb, var(--border) 30%, transparent); }

.share-row {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.share-row strong { font-size: 0.88rem; color: var(--muted); }

/* ── Like / Clap Button ── */
.like-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding: 16px 20px;
  background: var(--light-bg); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 24px;
  border: 2px solid var(--border); background: var(--white);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all 0.25s;
}
.like-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.04); }
.like-btn.liked { background: var(--accent); border-color: var(--accent); color: white; }
.like-btn.liked:hover { transform: scale(1.04); }
.like-btn .like-icon { font-size: 1.1rem; transition: transform 0.3s; }
.like-btn:hover .like-icon { transform: scale(1.25); }
.like-btn.liked .like-icon { animation: clapPop 0.4s ease; }
.like-count { font-size: 0.88rem; color: var(--muted); }
[data-theme="dark"] .like-row { background: #1a1f2e; border-color: var(--border); }
[data-theme="dark"] .like-btn { background: #13171f; }
@keyframes clapPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5) rotate(-10deg); }
  70%  { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(1); }
}

/* ── Related Posts Section ── */
.related-posts-section {
  margin-top: 52px; padding-top: 36px; border-top: 2px solid var(--border);
}
.related-posts-section h3 {
  font-family: var(--font-serif); font-size: 1.4rem;
  color: var(--primary); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.related-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-post-card {
  display: flex; gap: 14px; padding: 16px;
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition);
}
.related-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.related-post-thumb {
  width: 80px; height: 70px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.related-post-thumb-placeholder {
  width: 80px; height: 70px; border-radius: var(--radius-sm);
  background: var(--border); display: flex;
  align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0; font-size: 1.5rem;
}
.related-post-info .related-cat {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent); margin-bottom: 5px; display: block;
}
.related-post-info h5 {
  font-family: var(--font-serif); font-size: 0.92rem; line-height: 1.4;
  color: var(--dark-text); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-post-info span { font-size: 0.75rem; color: var(--muted); }
[data-theme="dark"] .related-post-card { background: #13171f; }

/* ================================================================
   IMAGE LIGHTBOX
   ================================================================ */
#lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { max-width: 90vw; max-height: 90vh; position: relative; text-align: center; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block; margin: 0 auto;
}
.lightbox-caption {
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
  margin-top: 12px; font-style: italic;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12); color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: white; border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.comments-section h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 24px; color: var(--primary); }
.comment-item {
  background: var(--light-bg); border-radius: 10px; padding: 18px; margin-bottom: 14px;
}
.comment-author { font-weight: 600; font-size: 0.92rem; color: var(--primary); }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-item p { margin-top: 8px; font-size: 0.95rem; }
.comment-form { margin-top: 32px; }
.comment-form h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 20px; }

/* ================================================================
   VIEW COUNTER BADGE
   ================================================================ */
.view-count-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: var(--muted);
}

/* ================================================================
   FORMS, BUTTONS, ALERTS (unchanged)
   ================================================================ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.88rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: var(--font-sans); outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #2d5f8a; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 12px; display: none; }
.alert.show { display: block; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
.spinner-sm { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; display: block; }
.spinner-lg { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; display: block; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-posts { text-align: center; padding: 64px 20px; color: var(--muted); }
.no-posts { text-align: center; padding: 64px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; }
.no-posts i { font-size: 3.2rem; margin-bottom: 16px; opacity: 0.5; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5f8a 100%);
  color: white; padding: 72px 0; text-align: center;
}
.about-hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.about-hero p { opacity: 0.88; max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.profile-section { padding: 72px 0; }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }
.profile-img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.profile-content h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.title-badge { display: inline-block; background: var(--accent); color: white; padding: 5px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px; }
.profile-content p { font-size: 1rem; line-height: 1.88; color: #444; margin-bottom: 16px; }

.achievements-section { padding: 64px 0; background: var(--white); }
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.achievement-card {
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition); animation: fadeIn 0.7s ease both;
}
.achievement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.achievement-icon { font-size: 2.2rem; margin-bottom: 14px; }
.achievement-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.achievement-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.team-section { background: var(--light-bg); padding: 72px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.team-card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px 20px 26px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition); animation: fadeIn 0.7s ease both;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-img-wrap { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden; border: 3px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.team-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 0.4s ease; }
.team-card:hover .team-img { transform: scale(1.07); }
.team-card h5 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.team-card span { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500; }

.section-header { text-align: center; margin-bottom: 44px; }
.section-header .section-tag {
  display: inline-block; padding: 5px 18px; background: #deeaf7; color: var(--primary);
  border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px;
}
.section-header h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--primary); margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 0.95rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-section { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 52px; }
.contact-info h2 { font-family: var(--font-serif); font-size: 1.9rem; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 28px; line-height: 1.75; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon { width: 46px; height: 46px; background: var(--primary); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item h5 { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.contact-item p { font-size: 0.95rem; color: var(--dark-text); margin: 0; }
.contact-form-card { background: var(--light-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-form-card h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 28px; color: var(--primary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer { background: var(--primary); color: rgba(255,255,255,0.82); padding: 52px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.footer-brand h3 { font-family: var(--font-serif); font-size: 1.3rem; color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; }
.footer-col h4 { color: white; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; opacity: 0.8; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; }
.footer-recent li { margin-bottom: 14px; }
.footer-recent-item { display: flex; align-items: center; gap: 12px; }
.footer-recent-item img { width: 50px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.footer-recent-item div { display: flex; flex-direction: column; gap: 3px; }
.footer-post-date { font-size: 0.72rem; opacity: 0.6; }
.footer-post-title { font-size: 0.82rem; opacity: 0.88; line-height: 1.4; }
.newsletter-footer-form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter-footer-form input {
  flex: 1; padding: 9px 12px; border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.10);
  color: white; font-size: 0.88rem; outline: none; transition: border-color var(--transition);
}
.newsletter-footer-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-footer-form input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-footer-form button {
  padding: 9px 18px; background: var(--accent); color: white; border: none;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; transition: background var(--transition);
}
.newsletter-footer-form button:hover { background: #b8841a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; opacity: 0.75; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.65); font-size: 0.78rem; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: white; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,0.72); font-size: 1.1rem; transition: color var(--transition), transform var(--transition); }
.footer-social a:hover { color: white; transform: translateY(-2px); }

/* ================================================================
   SCROLL TOP
   ================================================================ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md); z-index: 900;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.page-fade { animation: fadeIn 0.45s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   MOBILE NAV OVERLAY
   ================================================================ */
.nav-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(0,0,0,0.48); z-index: 997;
  backdrop-filter: blur(3px); animation: fadeOverlay 0.25s ease;
}
.nav-overlay.open { display: block; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #111827; color: #e5e7eb;
  padding: 16px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  transform: translateY(100%); transition: transform 0.4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { margin: 0; font-size: 0.875rem; flex: 1; min-width: 200px; line-height: 1.6; }
#cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept { background: var(--primary); color: #fff; border: none; padding: 9px 22px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background var(--transition); }
.cookie-btn-accept:hover { background: #2d5f8a; }
.cookie-btn-decline { background: transparent; color: #9ca3af; border: 1px solid #4b5563; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: border-color var(--transition), color var(--transition); }
.cookie-btn-decline:hover { border-color: #9ca3af; color: #e5e7eb; }

/* ================================================================
   LAZY IMAGES + SKELETON
   ================================================================ */
img.lazy-img { transition: opacity 0.4s ease; }
img.lazy-img.skeleton { opacity: 0; }
img.lazy-img:not(.skeleton) { opacity: 1; }
.skeleton {
  animation: shimmer 1.6s infinite linear;
  background: linear-gradient(90deg, var(--border) 25%, color-mix(in srgb, var(--border) 50%, white) 50%, var(--border) 75%);
  background-size: 200% 100%; border-radius: var(--radius-sm); display: block;
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e2535 25%, #2a3348 50%, #1e2535 75%);
  background-size: 200% 100%;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-hero { background: linear-gradient(135deg, var(--primary) 0%, #2d5f8a 100%); color: white; padding: 64px 0; text-align: center; }
.legal-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.legal-hero p { opacity: 0.85; font-size: 0.95rem; }
.legal-body { padding: 64px 0 80px; }
.legal-content { max-width: 780px; margin: 0 auto; font-family: 'EB Garamond', Georgia, serif; font-size: 1.05rem; line-height: 1.9; color: #333; }
[data-theme="dark"] .legal-content { color: #e0ddd8; }
.legal-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; color: var(--primary); margin: 2.2em 0 0.7em; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.legal-content p { margin-bottom: 1.2em; }
.legal-content ul { margin: 0.5em 0 1.2em 1.8em; }
.legal-content ul li { margin-bottom: 0.5em; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   RESPONSIVE — 1024px
   ================================================================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: 280px 1fr; gap: 36px; }
  .related-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE — 768px
   ================================================================ */
@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--dark-text); border-radius: 8px; transition: background var(--transition); flex-shrink: 0; }
  .mobile-nav-toggle:hover { background: var(--light-bg); }
  .navbar { position: fixed; top: 0; right: 0; width: min(300px, 82vw); height: 100vh; height: 100dvh; background: var(--white); z-index: 998; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; box-shadow: -6px 0 28px rgba(0,0,0,0.16); overflow-y: auto; }
  .navbar.open { transform: translateX(0); }
  .navbar::before { content: "Menu"; display: block; padding: 22px 24px 16px; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--primary); border-bottom: 1px solid var(--border); }
  .navbar ul { flex-direction: column; gap: 0; padding: 12px 0; flex: 1; }
  .navbar ul li { width: 100%; }
  .navbar a { display: flex; align-items: center; padding: 14px 24px; font-size: 1rem; font-weight: 500; border-radius: 0; border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
  .navbar a:hover { background: var(--light-bg); color: var(--primary); border-left-color: var(--accent); }
  .navbar a.active { background: #deeaf7; color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
  .header-social { display: none; }
  .slider-slide-link { height: 340px; }
  .slider-overlay { padding: 24px; }
  .slider-content h2 { font-size: 1.15rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .achievements-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .like-row { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   RESPONSIVE — 480px
   ================================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .slider-slide-link { height: 260px; }
  .slider-content h2 { font-size: 1rem; }
  .blog-section { padding: 40px 0; }
  .achievements-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-form-card { padding: 20px; }
  .newsletter-footer-form { flex-direction: column; }
  .newsletter-footer-form button { width: 100%; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-btns { width: 100%; }
  .cookie-btn-accept { flex: 1; text-align: center; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 425px) {
  #site-logo-text { display: none; }
}