/* ============================================================
   DEVLUNIQ SOLUTIONS — Independent Advanced Blog Platform
   Premium Light Theme (Slate & Deep Blue Accents)
   Google Fonts loaded via <link> in <head> for non-blocking delivery
   ============================================================ */


:root {
  --blog-bg: #ffffff;
  --blog-bg-surface: #f8fafc;
  --blog-bg-elevated: #ffffff;
  --blog-primary: #143c8c;
  --blog-primary-hover: #0f3070;
  --blog-secondary: #3b82f6;
  --blog-text-main: #334155;
  --blog-text-muted: #64748b;
  --blog-border: #e2e8f0;
  --blog-border-active: #cbd5e1;
  --blog-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  --blog-glow: 0 0 25px rgba(20, 60, 140, 0.08);
  --blog-radius-sm: 8px;
  --blog-radius-md: 14px;
  --blog-radius-lg: 20px;
  --blog-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --nav-h: 76px;
  --white: #0f172a; /* Slate 900 for dark text/headings on white bg */
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #143c8c;
  --accent-h: #0f3070;
  --r: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--blog-bg);
  color: var(--blog-text-main);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--blog-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* ============================================================ NAVBAR (Exact Website Replica) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  display: flex;
  align-items: center;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--blog-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1;
}

.logo-text small {
  font-weight: 400;
  font-size: .68rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  padding: 8px 14px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu > li > a:hover, 
.nav-menu > li > a.active {
  color: var(--accent);
  background: rgba(20, 60, 140, 0.07);
}

.nav-menu > li > a i {
  font-size: .65rem;
  transition: transform .3s;
}

.has-dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 228px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: var(--blog-transition);
  box-shadow: var(--shadow);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: .84rem;
  border-radius: 6px;
  transition: var(--blog-transition);
}

.dropdown a:hover {
  color: var(--accent);
  background: rgba(20, 60, 140, 0.07);
  padding-left: 20px;
}

.dropdown a i {
  font-size: .75rem;
  color: var(--accent);
  width: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: var(--blog-transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(20, 60, 140, .15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 60, 140, .25);
  color: #ffffff;
  background: var(--accent-h);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--blog-transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ CONTAINERS */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ HERO SECTION */
.blog-hero {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
  border-bottom: 1px solid var(--blog-border);
}

.blog-hero h1 {
  margin: 16px 0 12px;
  color: var(--white);
  letter-spacing: -0.5px;
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--blog-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-tag {
  display: inline-block;
  background: rgba(20, 60, 140, 0.05);
  border: 1px solid rgba(20, 60, 140, 0.12);
  color: var(--blog-primary);
  padding: 5px 12px;
  border-radius: var(--blog-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================================ BLOG LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 60px 0 100px;
}

/* ============================================================ FEATURED POST CARD */
.blog-featured-card {
  grid-column: span 2;
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 48px;
  transition: var(--blog-transition);
  box-shadow: var(--blog-shadow);
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  border-color: var(--blog-border-active);
}

.blog-featured-img {
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--blog-transition);
}

.blog-featured-card:hover .blog-featured-img img {
  transform: scale(1.02);
}

.blog-featured-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

/* ============================================================ BLOG GRID & CARDS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-content: start;
}

.blog-card {
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--blog-transition);
  box-shadow: var(--blog-shadow);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--blog-border-active);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--blog-transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--blog-text-muted);
  margin-bottom: 14px;
}

.blog-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--white);
}

.blog-card-body p {
  color: var(--blog-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--blog-border);
  padding-top: 20px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--blog-text-muted);
}

.blog-card-footer span i {
  color: var(--blog-primary);
}

/* ============================================================ PAGINATION */
.blog-pagination {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.blog-pag-btn {
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  color: var(--blog-text-main);
  padding: 10px 20px;
  border-radius: var(--blog-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--blog-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-pag-btn:hover, .blog-pag-btn.active {
  border-color: var(--blog-primary);
  background: var(--blog-primary);
  color: #ffffff;
}

/* ============================================================ SIDEBAR */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.blog-widget {
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-md);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.blog-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--blog-primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
  width: fit-content;
  color: var(--white);
}

/* Search Box Widget */
.blog-search-form {
  position: relative;
}

.blog-search-input {
  width: 100%;
  background: var(--blog-bg-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-sm);
  padding: 12px 44px 12px 16px;
  color: var(--white);
  outline: none;
  font-size: 0.9rem;
  transition: var(--blog-transition);
}

.blog-search-input:focus {
  border-color: var(--blog-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 60, 140, 0.08);
}

.blog-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--blog-text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.blog-search-btn:hover {
  color: var(--blog-primary);
}

/* Categories List */
.blog-cat-list {
  list-style: none;
}

.blog-cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--blog-border);
  color: var(--blog-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-cat-item:last-child a {
  border-bottom: none;
}

.blog-cat-item a span {
  background: var(--blog-bg-surface);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--blog-text-main);
  border: 1px solid var(--blog-border);
  font-weight: 600;
}

.blog-cat-item a:hover, 
.blog-cat-item.active a {
  color: var(--blog-primary);
  padding-left: 6px;
}

.blog-cat-item.active a span {
  background: var(--blog-primary);
  color: #ffffff;
  border-color: var(--blog-primary);
}

/* Trending insights */
.blog-pop-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-pop-item:last-child {
  margin-bottom: 0;
}

.blog-pop-img {
  width: 68px;
  height: 68px;
  border-radius: var(--blog-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--blog-border);
}

.blog-pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-pop-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-pop-info h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--white);
}

.blog-pop-info h4 a:hover {
  color: var(--blog-primary);
}

.blog-pop-info span {
  font-size: 0.78rem;
  color: var(--blog-text-muted);
}

/* Newsletter Widget */
.blog-newsletter-widget p {
  color: var(--blog-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-newsletter-input {
  width: 100%;
  background: var(--blog-bg-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-sm);
  padding: 12px 16px;
  color: var(--white);
  outline: none;
  font-size: 0.9rem;
  margin-bottom: 14px;
  transition: var(--blog-transition);
}

.blog-newsletter-input:focus {
  border-color: var(--blog-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 60, 140, 0.08);
}

.blog-newsletter-btn {
  width: 100%;
  background: var(--blog-primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--blog-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--blog-transition);
  font-size: 0.9rem;
}

.blog-newsletter-btn:hover {
  background: var(--blog-primary-hover);
  transform: translateY(-1px);
}

/* ============================================================ DETAIL / SINGLE POST PAGE */
.blog-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--blog-text-muted);
  margin-bottom: 20px;
}

.blog-detail-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.5px;
}

.blog-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  padding: 20px 0;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 60, 140, 0.08);
  border: 1px solid rgba(20, 60, 140, 0.15);
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.blog-author-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.blog-author-title {
  font-size: 0.8rem;
  color: var(--blog-text-muted);
  margin-top: 2px;
}

.blog-stats-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--blog-text-muted);
  font-size: 0.9rem;
}

.blog-like-button {
  background: var(--blog-bg-surface);
  border: 1px solid var(--blog-border);
  color: var(--blog-text-main);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--blog-transition);
}

.blog-like-button:hover {
  background: #fff0f1;
  border-color: #ffa3a9;
  color: #ff4b5c;
}

.blog-like-button.liked {
  background: #fff0f1;
  border-color: #ffa3a9;
  color: #ff4b5c;
}

.blog-detail-img {
  border-radius: var(--blog-radius-lg);
  overflow: hidden;
  border: 1px solid var(--blog-border);
  margin-bottom: 48px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.blog-detail-img img {
  width: 100%;
  height: auto;
}

/* Post Contents */
.blog-rich-content {
  color: var(--blog-text-main);
  font-size: 1.12rem;
  line-height: 1.85;
}

.blog-rich-content h2, 
.blog-rich-content h3 {
  margin: 44px 0 20px;
  color: var(--white);
}

.blog-rich-content p {
  margin-bottom: 28px;
}

.blog-rich-content ul, 
.blog-rich-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.blog-rich-content li {
  margin-bottom: 10px;
}

/* ============================================================ COMMENTS SECTION */
.blog-comments-wrap {
  margin-top: 80px;
  border-top: 1px solid var(--blog-border);
  padding-top: 50px;
}

.comments-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-node {
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.01);
}

.comment-node.comment-reply-depth {
  background: var(--blog-bg-surface);
}

.comment-body {
  margin-top: 12px;
  color: var(--blog-text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Comment Form Design */
.blog-comment-form-wrap {
  background: var(--blog-bg-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-md);
  padding: 36px;
  margin-top: 50px;
}

.blog-comment-form-wrap h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--white);
}

.blog-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-input-group label {
  font-size: 0.85rem;
  color: var(--blog-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-form-input {
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius-sm);
  padding: 14px 18px;
  color: var(--white);
  outline: none;
  font-size: 0.92rem;
  transition: var(--blog-transition);
}

.blog-form-input:focus {
  border-color: var(--blog-primary);
  box-shadow: 0 0 0 3px rgba(20, 60, 140, 0.08);
}

/* ============================================================ CUSTOM FOOTER */
.blog-footer {
  border-top: 1px solid var(--blog-border);
  background: var(--blog-bg-surface);
  padding: 50px 0;
  margin-top: 100px;
  font-size: 0.9rem;
  color: var(--blog-text-muted);
}

.blog-footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-footer-links {
  display: flex;
  gap: 24px;
}

.blog-footer-links a {
  font-weight: 500;
}

.blog-footer-links a:hover {
  color: var(--blog-primary);
}

/* ============================================================ RESPONSIVE DESIGN */
@media(max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    min-height: 280px;
    height: 280px;
  }
}

@keyframes fadeInBlogMenu {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInBlogItem {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
  .navbar:not(.menu-open) {
    height: auto !important;
    padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 14px !important;
    transition: padding 0.3s ease;
  }
  .navbar:not(.menu-open).scrolled {
    padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 8px !important;
  }

  /* Navbar Hamburger toggling */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1000000;
  }
  
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blog-text-main);
    border-radius: 2px;
    transition: var(--blog-transition);
  }
  
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Force elements to high z-index when open & resolve backdrop-filter clipping */
  .navbar.menu-open {
    z-index: 99999999 !important;
    height: 100vh !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(15,23,42,0.05) !important;
    align-items: flex-start !important; /* Prevent vertical centering of container in 100vh height */
  }
  .navbar.menu-open .container {
    height: var(--nav-h) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Align only the close button to the right */
  }
  .navbar.menu-open .logo {
    display: none !important; /* Hide logo when menu is open */
  }
  .navbar.menu-open .hamburger {
    z-index: 1000000 !important;
    position: relative;
  }
  .navbar.menu-open .hamburger span {
    background: var(--white) !important;
  }

  /* Full screen premium white menu overlay matching website */
  .nav-menu {
    display: none;
  }
  
  .nav-menu.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff !important;
    padding: 20px 24px 40px 24px;
    gap: 8px;
    overflow-y: auto;
    z-index: 999999 !important;
    transform: none; /* Override desktop transition transform */
    border-top: 1px solid var(--border);
    box-shadow: none;
    align-items: stretch;
    animation: fadeInBlogMenu 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  /* Staggered slide-in animation for list items */
  .nav-menu.open>li {
    width: 100%;
    opacity: 0;
    animation: slideInBlogItem 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-menu.open>li:nth-child(1) { animation-delay: 0.08s; }
  .nav-menu.open>li:nth-child(2) { animation-delay: 0.12s; }
  .nav-menu.open>li:nth-child(3) { animation-delay: 0.16s; }
  .nav-menu.open>li:nth-child(4) { animation-delay: 0.20s; }
  .nav-menu.open>li:nth-child(5) { animation-delay: 0.24s; }
  
  .nav-menu.open>li>a {
    font-size: 1.15rem;
    padding: 12px 16px;
    border-radius: var(--blog-radius-sm);
    color: var(--text) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-menu.open>li>a:hover, .nav-menu.open>li>a.active {
    background: rgba(20, 60, 140, 0.07) !important;
    color: var(--accent) !important;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .blog-pagination {
    grid-column: span 1;
  }
}

/* ============================================================ PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(20, 60, 140, 0.08);
  border-top-color: #143c8c;
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes preloader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}