@charset "utf-8";
/* CSS Document */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --cb-red: #e8002a;
    --cb-dark: #1a1a2e;
    --cb-nav-dark: #0d1117;
    --cb-text: #333;
    --cb-muted: #777;
    --cb-border: #e5e5e5;
    --cb-bg: #f7f7f7;
    --cb-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
  }

  body { font-family: var(--font-body); color: var(--cb-text); background: var(--cb-white); }
  a { text-decoration: none; color: inherit; }

  /* ── UTILITY BAR ── */
  .util-bar {
    background: #111;
    color: #aaa;
    font-size: 11px;
    font-family: var(--font-main);
    letter-spacing: .5px;
    padding: 6px 0;
    display: none; /* hidden on mobile, visible md+ */
  }
  @media(min-width:768px){ .util-bar { display: block; } }
  .util-bar .container { display:flex; justify-content:flex-end; gap:24px; }

  /* ── HEADER COMMON ── */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: background .3s;
  }

  /* LIGHT HEADER (about_us style) */
  .site-header.light {
    background: var(--cb-white);
  }
  .site-header.light nav a { color: #222; }
  .site-header.light .nav-link:hover,
  .site-header.light .nav-link.active { color: var(--cb-red); }
  .site-header.light .dropdown-menu { background: var(--cb-white); }
  .site-header.light .hamburger span { background: #222; }

  /* DARK HEADER (products style) */
  .site-header.dark {
    background: var(--cb-nav-dark);
  }
  .site-header.dark nav a { color: #e0e0e0; }
  .site-header.dark .nav-link:hover,
  .site-header.dark .nav-link.active { color: var(--cb-red); }
  .site-header.dark .dropdown-menu { background: #1c2030; }
  .site-header.dark .dropdown-menu a { color: #ccc; }
  .site-header.dark .hamburger span { background: #fff; }

  /* ── NAV LAYOUT ── */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 68px; }

  .logo img { height: 38px; display: block; }

  nav.main-nav { display: flex; align-items: center; gap: 4px; }
  .nav-item { position: relative; }
  .nav-link {
    font-family: var(--font-main);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
    white-space: nowrap;
  }
  .nav-link .caret {
    font-size: 9px;
    opacity: .6;
    transition: transform .2s;
  }
  .nav-item:hover .caret { transform: rotate(180deg); }
  .nav-link.active { color: var(--cb-red) !important; }

  /* Dropdown */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 210px;
    border-top: 3px solid var(--cb-red);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
    z-index: 200;
  }
  .nav-item:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .dropdown-menu a {
    display: block;
    font-family: var(--font-main);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 10px 18px;
    transition: color .15s, background .15s;
  }
  .dropdown-menu a:hover { color: var(--cb-red) !important; background: rgba(232,0,42,.06); }
  .dropdown-menu .group-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--cb-muted) !important;
    padding: 10px 18px 4px;
    pointer-events: none;
    text-transform: uppercase;
  }
  .dropdown-menu a.blog-link { color: var(--cb-red) !important; font-weight: 700; }

  /* Hamburger */
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .hamburger span { width: 24px; height: 2px; border-radius: 2px; transition: .3s; }
  @media(max-width:900px){
    nav.main-nav { display: none; }
    .hamburger { display: flex; }
  }

  /* ── THEME TOGGLE DEMO ── */
  .theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .theme-btn {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 2px solid var(--cb-red);
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
  }
  .theme-btn.active, .theme-btn:hover {
    background: var(--cb-red);
    color: #fff;
  }
  .theme-btn:not(.active) { background: #fff; color: var(--cb-red); }

  /* ── PAGE HERO ── */
  .blog-hero {
    background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 60%, #2d0a12 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
  }
  .blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,0,42,.12) 0%, transparent 70%);
  }
  .blog-hero .container { position: relative; }
  .blog-hero-tag {
    display: inline-block;
    background: var(--cb-red);
    color: #fff;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 16px;
  }
  .blog-hero h1 {
    font-family: var(--font-main);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .blog-hero p {
    color: rgba(255,255,255,.6);
    font-size: 15px;
    max-width: 520px;
    line-height: 1.7;
  }

  /* ── FILTER TABS ── */
  .filter-bar {
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-border);
    position: sticky;
    top: 68px;
    z-index: 50;
  }
  .filter-bar .container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-bar .container::-webkit-scrollbar { display: none; }
  .filter-tab {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 14px 20px;
    color: var(--cb-muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
  }
  .filter-tab:hover { color: var(--cb-text); }
  .filter-tab.active { color: var(--cb-red); border-bottom-color: var(--cb-red); }

  /* ── BLOG GRID ── */
  .blog-section { padding: 56px 0 80px; background: var(--cb-bg); }

  /* Featured post */
  .featured-post {
    background: var(--cb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
    transition: transform .25s, box-shadow .25s;
  }
  .featured-post:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
  @media(max-width:768px){ .featured-post { grid-template-columns: 1fr; } }

  .featured-img {
    background: linear-gradient(135deg, #0d1117, #2d0a12);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .featured-img .img-placeholder {
    font-size: 72px;
    opacity: .25;
  }
  .featured-img .cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cb-red);
    color: #fff;
    font-family: var(--font-main);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
  }
  .featured-content { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }

  .featured-content .meta {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--cb-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cb-muted); }
  .featured-content h2 {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--cb-dark);
  }
  .featured-content p {
    color: var(--cb-muted);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
  }
  .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--cb-red);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s, gap .2s;
  }
  .read-more:hover { border-bottom-color: var(--cb-red); gap: 12px; }

  /* Post grid */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media(max-width:900px){ .posts-grid { grid-template-columns: repeat(2,1fr); } }
  @media(max-width:560px){ .posts-grid { grid-template-columns: 1fr; } }

  .post-card {
    background: var(--cb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
  }
  .post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }

  .card-img {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }
  .card-img .cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cb-red);
    color: #fff;
    font-family: var(--font-main);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
  }

  /* Color schemes for card images */
  .card-img.scheme-1 { background: linear-gradient(135deg, #0d1117, #1a3a5c); }
  .card-img.scheme-2 { background: linear-gradient(135deg, #1a1a2e, #3a1a2e); }
  .card-img.scheme-3 { background: linear-gradient(135deg, #0a2a1a, #1a3a2a); }
  .card-img.scheme-4 { background: linear-gradient(135deg, #2a1a0a, #3a2a0a); }
  .card-img.scheme-5 { background: linear-gradient(135deg, #1a0a2a, #2a1a3a); }
  .card-img.scheme-6 { background: linear-gradient(135deg, #0a1a2a, #1a2a3a); }

  .card-img .emoji { opacity: .3; }

  .card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
  .card-body .meta {
    font-family: var(--font-main);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--cb-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .card-body h3 {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cb-dark);
    margin-bottom: 10px;
  }
  .card-body p {
    font-size: 13px;
    color: var(--cb-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
  }
  .card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--cb-border);
  }
  .author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cb-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
  }
  .author-name {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    color: var(--cb-text);
  }
  .read-time {
    font-family: var(--font-main);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--cb-muted);
  }

  /* ── PAGINATION ── */
  .pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .page-btn {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1.5px solid var(--cb-border);
    color: var(--cb-text);
    transition: .2s;
    background: var(--cb-white);
  }
  .page-btn:hover, .page-btn.active {
    background: var(--cb-red);
    border-color: var(--cb-red);
    color: #fff;
  }

  /* ── FOOTER ── */
  .site-footer { background: #111; color: #aaa; padding: 48px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
  @media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }

  .footer-brand img { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .8; }
  .footer-brand p { font-size: 12.5px; line-height: 1.8; max-width: 280px; }
  .footer-col h4 {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
  }
  .footer-col a {
    display: block;
    font-size: 12.5px;
    color: #888;
    margin-bottom: 8px;
    transition: color .15s;
  }
  .footer-col a:hover { color: var(--cb-red); }
  .footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }
  .footer-bottom a { color: #666; margin-left: 16px; transition: color .15s; }
  .footer-bottom a:hover { color: var(--cb-red); }
