.b3-layout {
            display: flex;
            margin-top: 80px; /* navbar height */
            height: calc(100vh - 80px);
            overflow: hidden;
        }

        /* Sol teref — Naviqasiya */
        .b3-sidebar {
            width: 380px;
            flex-shrink: 0;
            height: 100%;
            overflow-y: auto;
            background: var(--bg-card, #ffffff);
            border-right: 1px solid var(--border, #e2ddd4);
            padding: 36px 32px;
            display: flex;
            flex-direction: column;
            scrollbar-width: thin;
            scrollbar-color: var(--border, #e2ddd4) transparent;
        }
        .b3-sidebar::-webkit-scrollbar { width: 6px; }
        .b3-sidebar::-webkit-scrollbar-thumb { background: var(--border, #e2ddd4); border-radius: 3px; }

        .b3-sidebar-brand {
            font-size: 20px;
            font-weight: 800;
            color: var(--heading, #0b1f3a);
            margin-bottom: 28px;
            padding-bottom: 18px;
            border-bottom: 2px solid var(--gold, #c8922a);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .b3-sidebar-brand i { color: var(--gold, #c8922a); font-size: 18px; }

        .b3-toc-title {
            font-size: 11px;
            font-weight: 700;
            color: var(--gold, #c8922a);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 18px;
        }
        .b3-toc-list { list-style: none; padding: 0; margin: 0; }
        .b3-toc-list li { margin-bottom: 6px; }
        .b3-toc-list a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            color: var(--text-muted, #64594e);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            border-radius: 10px;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            cursor: pointer;
            line-height: 1.4;
        }
        .b3-toc-list a:hover {
            background: var(--bg-section, #f5f6f8);
            color: var(--gold, #c8922a);
            border-left-color: var(--gold, #c8922a);
            transform: translateX(4px);
        }
        .b3-toc-list a.active {
            background: linear-gradient(90deg, rgba(200,146,42,0.12) 0%, transparent 100%);
            color: var(--gold, #c8922a);
            border-left-color: var(--gold, #c8922a);
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(11,31,58,0.07);
        }
        .b3-toc-list a i { font-size: 9px; color: var(--gold, #c8922a); width: 14px; text-align: center; flex-shrink: 0; }

        .b3-sidebar-footer {
            margin-top: auto;
            padding-top: 24px;
            border-top: 1px solid var(--border, #e2ddd4);
            font-size: 12px;
            color: var(--text-muted, #64594e);
            line-height: 1.6;
        }
        .b3-sidebar-footer strong {
            color: var(--heading, #0b1f3a);
            display: block;
            margin-bottom: 4px;
            font-size: 13px;
        }

        /* Sag teref — Mezmun (Yalniz bu hisse scroll edir) */
        .b3-content {
            flex: 1;
            height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            background: var(--bg-section, #f5f6f8);
            scroll-behavior: smooth;
            position: relative;
        }
        .b3-content::-webkit-scrollbar { width: 8px; }
        .b3-content::-webkit-scrollbar-track { background: transparent; }
        .b3-content::-webkit-scrollbar-thumb { background: var(--border, #e2ddd4); border-radius: 4px; }
        .b3-content::-webkit-scrollbar-thumb:hover { background: var(--text-light, #9c9487); }

        /* Hero */
        .b3-hero {
            position: relative;
            height: 420px;
            background: url('https://images.unsplash.com/photo-1581093458791-9f3c3900df4b?w=1920&h=600&fit=crop') center/cover no-repeat;
            display: flex;
            align-items: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .b3-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(18,51,104,0.88) 0%, rgba(27,66,128,0.82) 50%, rgba(18,51,104,0.88) 100%);
        }
        .dark-mode .b3-hero::before {
            background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.85) 50%, rgba(18,51,104,0.88) 100%);
        }
        .b3-hero-content {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            width: 100%;
        }
        .b3-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(10px);
            padding: 8px 20px;
            border-radius: 30px;
            color: white;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 24px;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .b3-hero h1 {
            font-size: 42px;
            font-weight: 800;
            color: white;
            line-height: 1.2;
            max-width: 700px;
            margin-bottom: 16px;
            text-shadow: 0 2px 20px rgba(0,0,0,0.3);
        }
        .b3-hero-subtitle {
            font-size: 18px;
            color: rgba(255,255,255,0.95);
            max-width: 600px;
            font-weight: 400;
            line-height: 1.5;
        }
        .b3-hero-meta {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-top: 28px;
            color: rgba(255,255,255,0.9);
            font-size: 14px;
        }
        .b3-hero-meta span { display: flex; align-items: center; gap: 8px; }

        /* Mezmun grid-i */
        .b3-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 32px;
            align-items: start;
        }

        /* Merkezi metn hissesi */
        .b3-article {
            background: var(--bg-card, #ffffff);
            border-radius: var(--radius-lg, 16px);
            padding: 40px;
            box-shadow: 0 2px 12px rgba(27, 66, 128, 0.07);
            min-width: 0;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        .b3-section { margin-bottom: 40px; }
        .b3-section:last-child { margin-bottom: 0; }
        .b3-section-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 20px;
        }
        .b3-section-num {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, var(--gold, #c8922a), var(--orange, #d4762a));
            color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            flex-shrink: 0;
        }
        .b3-section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--heading, #0b1f3a);
            line-height: 1.3;
            word-break: break-word;
        }
        .b3-section p {
            font-size: 15px;
            color: var(--text-muted, #64594e);
            line-height: 1.8;
            margin-bottom: 14px;
            word-break: break-word;
        }
        .b3-highlight {
            background: linear-gradient(135deg, rgba(200,146,42,0.08) 0%, rgba(200,146,42,0.04) 100%);
            border-left: 4px solid var(--gold, #c8922a);
            padding: 20px 24px;
            border-radius: 0 10px 10px 0;
            margin: 20px 0;
        }
        .b3-highlight p { margin: 0; color: var(--heading, #0b1f3a); font-weight: 500; }
        .b3-points { list-style: none; margin: 20px 0; padding: 0; }
        .b3-points li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border, #e2ddd4);
        }
        .b3-points li:last-child { border-bottom: none; }
        .b3-points li i { color: var(--gold, #c8922a); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
        .b3-points li span { font-size: 14px; color: var(--text, #1a1810); line-height: 1.6; word-break: break-word; }

        /* Sag teref widget-lari (sticky) */
        .b3-widgets {
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: sticky;
            top: 20px;
        }
        .b3-widget {
            background: var(--bg-card, #ffffff);
            border-radius: var(--radius-md, 10px);
            padding: 20px;
            box-shadow: 0 2px 12px rgba(27, 66, 128, 0.07);
            border: 1px solid var(--border, #e2ddd4);
        }
        .b3-widget-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--heading, #0b1f3a);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gold, #c8922a);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .b3-widget-title i { color: var(--gold, #c8922a); }
        .b3-trend-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border, #e2ddd4);
        }
        .b3-trend-row:last-child { border-bottom: none; }
        .b3-trend-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, rgba(200,146,42,0.08), rgba(200,146,42,0.2));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold, #c8922a);
            font-size: 12px;
            flex-shrink: 0;
        }
        .b3-trend-info h4 { font-size: 13px; font-weight: 600; color: var(--heading, #0b1f3a); margin-bottom: 3px; word-break: break-word; }
        .b3-trend-info p { font-size: 12px; color: var(--text-light, #9c9487); line-height: 1.4; word-break: break-word; }

/* ===== VIDEO SECTIONS - ENLARGED CARD STYLE ===== */
.blog-video {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.blog-video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-video-title i {
  color: var(--gold);
}

/* Video Card - Large Style */
.video-card-large {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.video-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.video-card-large:hover .video-play-btn {
  background: var(--gold);
}
.video-card-large .video-play-btn {
  background: var(--gold);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-card-large:hover .video-thumbnail-wrapper img {
  transform: scale(1.08);
}

.video-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(200, 146, 42, 0.5);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.video-play-btn i {
  margin-left: 4px;
}

.video-card-info {
  padding: 16px 18px;
  background: var(--bg-card);
}

.video-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
}

.video-card-meta i {
  color: var(--gold);
  font-size: 11px;
}

/* b3-video container (used for widget wrapper) */
.b3-video {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.b3-video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b3-video-title i {
  color: var(--gold);
}


/* ===== VIDEO MODAL / LIGHTBOX ===== */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-modal-overlay.active .video-modal-container {
  transform: scale(1);
}

.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-modal-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

        /* Responsive */
        @media (max-width: 1100px) {
            .b3-sidebar { width: 320px; padding: 28px 24px; }
            .b3-wrapper { grid-template-columns: 1fr; padding: 24px; }
            .b3-widgets { position: static; display: grid; grid-template-columns: 1fr 1fr; }
            .b3-hero h1 { font-size: 32px; }
        }
        @media (max-width: 768px) {
            .b3-layout { flex-direction: column; margin-top: 72px; height: calc(100vh - 72px); }
            .b3-sidebar {
                width: 100%;
                height: auto;
                max-height: 220px;
                border-right: none;
                border-bottom: 1px solid var(--border, #e2ddd4);
                padding: 20px;
            }
            .b3-sidebar-brand { margin-bottom: 16px; padding-bottom: 12px; font-size: 18px; }
            .b3-toc-title { margin-bottom: 12px; }
            .b3-toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
            .b3-toc-list li { margin-bottom: 0; }
            .b3-toc-list a { padding: 8px 12px; font-size: 12px; border-left: none; border-bottom: 2px solid transparent; }
            .b3-toc-list a.active { border-left: none; border-bottom-color: var(--gold, #c8922a); transform: none; }
            .b3-sidebar-footer { display: none; }
            .b3-content { height: calc(100vh - 72px - 220px); }
            .b3-hero { height: 280px; }
            .b3-hero h1 { font-size: 24px; }
            .b3-article { padding: 20px; }
            .b3-widgets { grid-template-columns: 1fr; }
        

  /* Video card mobile */
  .video-thumbnail-wrapper {
    aspect-ratio: 16/11;
  }

  .video-play-btn {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .video-card-title {
    font-size: 14px;
  }

  /* Modal mobile */
  .video-modal-container {
    border-radius: 12px;
  }

  .video-modal-close {
    top: -44px;
    width: 36px;
    height: 36px;
  }
}
        @media (max-width: 480px) {
  .video-thumbnail-wrapper {
    aspect-ratio: 16/12;
  }

  .video-play-btn {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .video-card-info {
    padding: 12px 14px;
  }

  .video-card-title {
    font-size: 13px;
  }


            .b3-hero h1 { font-size: 20px; }
            .b3-hero-subtitle { font-size: 15px; }
            .b3-section-title { font-size: 17px; }
        }

/* ========== DARK MODE OVERRIDES ========== */
.dark-mode .b3-hero::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.85) 50%, rgba(18,51,104,0.88) 100%);
}

.dark-mode #footer {
    background: #071426;
}

.dark-mode .footer-tagline-txt {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .footer-contact-text {
    color: rgba(255, 255, 255, 0.55);
}

.dark-mode .footer-col-links a {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .footer-col-links a:hover {
    color: var(--gold-bright);
}

.dark-mode .footer-expert-form {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(200, 146, 42, 0.18);
}

.dark-mode .footer-expert-form h4 {
    color: #fff;
}

.dark-mode .footer-expert-form p {
    color: rgba(255, 255, 255, 0.4);
}

.dark-mode .footer-expert-form input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-mode .footer-expert-form input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.dark-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.07);
}

.dark-mode .footer-copy {
    color: rgba(255, 255, 255, 0.3);
}

.dark-mode .social-link {
    border-color: #e2b36b;
    color: #e2b36b;
}

#theme-switch .fa-sun { display: none; }
#theme-switch .fa-moon { display: inline-block; }
body.dark-mode #theme-switch .fa-sun { display: inline-block; }
body.dark-mode #theme-switch .fa-moon { display: none; }
/* ========== /DARK MODE OVERRIDES ========== */