/*
Theme Name: SolidityScan Blog
Description: Custom blog theme.
Author: Admin
Version: 1.0.0
*/

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

    :root {
      --brand-green: #3DCC70;
      --brand-blue: #3300FF;
      --brand-gradient: linear-gradient(129.18deg, #52FF00 8.52%, #00EEFD 93.94%);
      --text-primary: #1A1A1A;
      --text-secondary: #657795;
      --border-color: rgba(38,38,38,0.12);
      --bg-page: #FAFBFC;
      --bg-white: #FFFFFF;
      --radius-btn: 8px;
      --shadow-btn: 0 4px 14px rgba(0,0,0,0.15);
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: #323B4B;       /* React theme: color 'text' = #323B4B */
      font-weight: 500;     /* React theme global: fontWeight 500 */
      line-height: 1.6;
      min-height: 100vh;
    }

    /* ─── HEADER ─────────────────────────────────────────────────────── */
    /* React: px={5} = 20px horizontal padding */
    .header-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      background: var(--bg-white);
      padding: 0 20px;
    }
    /* React: py={5} = 20px vertical, maxW 1800px */
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 98%;
      max-width: 1800px;
      padding: 20px 0;
    }

    /* Logo: React source width ["250px","250px","200px","250px"], height ["50px","50px","45px","50px"] */
    .logo-group {
      display: flex;
      align-items: center;
      gap: 0;
      text-decoration: none;
      flex-shrink: 0;
      cursor: pointer;
    }
    .logo-main-img {
      width: 250px;
      height: 50px;         /* React: height 50px */
      object-fit: contain;
    }

    /* Nav: spacing={6}=24px between items, no forced margin-left — flex handles centering */
    .nav {
      display: flex;
      align-items: center;
      gap: 24px;            /* Chakra HStack spacing={6} = 24px */
      margin-left: 64px;    /* Chakra HStack ml={16} = 64px */
      white-space: nowrap;
    }
    /* Nav links: navigation variant = fontWeight 500, color #000000, fontSize md=16px */
    .nav a, .nav-dropdown-toggle {
      font-size: 16px;
      font-weight: 600;     /* CORRECTED: navigation variant uses fontWeight 600 */
      color: #000000;       /* navigation variant: color #000000 */
      text-decoration: none;
      cursor: pointer;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 3px;
      background: none;
      border: none;
      font-family: inherit;
      padding: 8px 0;       /* py={2} = 8px */
    }
    .nav a:hover, .nav-dropdown-toggle:hover {
      color: rgba(51, 0, 255, 1); /* navigation variant hover = rgba(51,0,255,1) */
    }
    /* ChevronDownIcon fontSize xl ≈ 20px */
    .chevron {
      width: 20px;
      height: 20px;
      margin-left: 4px;
      transition: transform 0.2s;
    }

    /* Dropdown: bgColor white, borderRadius={10}, zIndex={100} */
    .nav-dropdown { position: relative; }
    .nav-dropdown::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 8px;
    }
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: #fff;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      min-width: 200px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.08);
      z-index: 100;
      overflow: hidden;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }
    .nav-dropdown:hover .chevron { transform: rotate(180deg); }
    /* Dropdown items: fontSize sm=14px */
    .nav-dropdown-menu a {
      display: block;
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      text-decoration: none;
      transition: background 0.15s;
      border-bottom: 1px solid var(--border-color);
    }
    .nav-dropdown-menu a:last-child { border-bottom: none; }
    .nav-dropdown-menu a:hover { background: #f7f7f7; }

    /* Buttons: React header.tsx — ghost width 150px p={6}=24px, brand width 160px, fontSize md=16px */
    .header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .btn-ghost {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      background: transparent;
      border: none;
      padding: 0 24px;
      height: 48px;
      width: 150px;
      border-radius: var(--radius-btn);
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s;
    }
    .btn-ghost:hover { background: #f0f0f0; }
    /* brand button: exact from theme.ts Button variants.brand */
    .btn-brand {
      font-size: 15px;      /* theme: fontSize: "15px" */
      font-weight: 600;     /* Chakra default button fontWeight */
      color: #000;          /* theme: color: "black" */
      background: linear-gradient(129.18deg, #52FF00 8.52%, #00EEFD 93.94%); /* exact gradient */
      border: none;         /* theme: border: "none" */
      padding: 15px 16px;   /* theme: py: 6 = 24px, default px ~16px */
      border-radius: 15px;  /* Button baseStyle: borderRadius "15px" */
      cursor: pointer;
      font-family: inherit;
      box-shadow: 0px 4px 23px rgba(47, 248, 107, 0.45); /* exact shadow from theme */
      transition: opacity 0.2s, transform 0.1s;
      white-space: nowrap;
      min-width: 160px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .btn-brand:hover {
      background: linear-gradient(129.18deg, #52FF00 10.52%, #00EEFD 93.94%);
    }

    /* Header divider: width 95%, mb={5}=20px */
    .header-divider { width: 95%; height: 1px; background: rgba(38,38,38,0.12); margin: 0 auto 20px auto; }

    /* Mobile hamburger: fontSize 2xl ≈ 24px */
    .hamburger {
      display: none;
      background: none;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      padding: 6px 10px;
      cursor: pointer;
      font-size: 24px;
    }

    /* Mobile nav: fontWeight 400 matches React ghost variant */
    .mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid #eee; padding: 8px 0; width: 100%; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { padding: 10px 24px; font-size: 16px; font-weight: 400; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid #f0f0f0; }
    .mobile-nav a:hover { background: #f9f9f9; }
    .mobile-nav .mobile-btn-wrap { padding: 20px 24px; }

    /* ─── WHY SOLIDITYSCAN SECTION ───────────────────────────────────── */
    .hero-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding: 40px 40px 56px; /* py=10 from PublicLayout, mb=14 from Infographics */
      text-align: center;
      background: var(--bg-white);
    }
    
    .hero-content-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 90vw;
      margin-bottom: 80px; /* ContentHeader mb="80px" */
    }
    
    /* ContentHeader heading: fontSize 3xl Chakra = 30px */
    .hero-heading {
      font-size: 30px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 32px; /* mb={8} = 32px */
      line-height: 1.5; /* lineHeight={1.5} */
    }
    .hero-heading .brand-highlight {
      color: var(--brand-blue);
      border-bottom: 3px solid var(--brand-blue);
      padding: 4px 0; /* py={1} */
      white-space: nowrap;
    }
    /* ContentHeader text: fontSize xl = 20px, w=60% */
    .hero-subheading {
      font-size: 20px;
      font-weight: 500;
      color: #8A94A6; /* subtle */
      width: 60%;
      text-align: center;
    }

    /* Features: Grid maxW 900px w 70% mb 20=80px */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      width: 70%;
      max-width: 900px;
      margin: 0 auto 80px auto;
      background-color: transparent;
    }
    .feature-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 250px;
    }
    /* Image: height 140px, width 140px from infographics.tsx */
    .feature-icon-wrap { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
    .feature-icon-wrap img { width: 140px; height: 140px; object-fit: contain; }
    /* Label: fontSize sm=14px, ml=2=8px, mt={4}=16px, fontWeight 600 */
    .feature-label { font-size: 14px; font-weight: 600; text-align: center; margin-top: 16px; margin-left: 8px; }

    /* ─── CTA BANNER ─────────────────────────────────────────────────── */
    .cta-section {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 40px 40px 40px;   /* Container vertical py={10}=40px, plus px=[0,0,10]=40px */
      background: var(--bg-white);
    }

    /* Outer box: borderRadius=20, overflow=hidden, pattern.png bg, w=90%, maxW=1200px */
    .cta-outer {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
      border-radius: 20px;
      overflow: hidden;
      background-image: url("assets/background/pattern.png");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    /* Inner flex: px=[2,2,10]=40px, py=[8,8,20]=80px, bg rgba(82,255,0,0.06) */
    .cta-inner {
      display: flex;
      align-items: center;
      flex-direction: row; 
      padding: 80px 40px;     /* py=20*4=80px, px=10*4=40px */
      width: 100%;
      background: rgba(82, 255, 0, 0.06);
    }

    /* Left: w=70% */
    .cta-text-side {
      width: 70%;
    }

    /* Heading: fontSize 3xl=30px, lineHeight=1.4, mb={4}=16px, fontWeight 700 */
    .cta-heading {
      font-size: 30px;          /* Chakra 3xl = 30px */
      font-weight: 700;
      color: #323B4B;           /* theme text color */
      line-height: 1.4;
      margin-bottom: 16px;      /* mb={4} = 16px */
    }
    /* "contracts" span: color=accent=#3300FF */
    .cta-heading span { color: #3300FF; }

    /* Divider: mt={10}=40px, mb={5}=20px, w=120px, border 1px solid accent */
    .cta-divider {
      width: 120px;             /* w="120px" from signupBox */
      height: 1px;
      background: #3300FF;      /* borderColor="accent" = #3300FF */
      box-shadow: 0 1px 0 #3300FF; /* mimic border 1px solid */
      margin-top: 40px;         /* mt={10} = 40px */
      margin-bottom: 20px;      /* mb={5} = 20px */
    }

    /* Subtext: color=accent=#3300FF, fontSize lg=18px */
    .cta-subtext {
      font-size: 18px;          /* fontSize="lg" = 18px */
      color: #3300FF;           /* color="accent" = #3300FF */
      font-weight: 500;
    }

    /* Right: w=30%, button w=100%, my={10}=40px */
    .cta-btn-side {
      width: 30%;
      display: block; /* React is just a Box here */
    }

    /* btn-cta: brand variant from theme.ts */
    .btn-cta {
      font-size: 15px;          /* brand variant: fontSize 15px */
      font-weight: 600;
      color: #000;
      background: linear-gradient(129.18deg, #52FF00 8.52%, #00EEFD 93.94%);
      border: none;
      padding: 15px 16px;       /* py:6=24px */
      border-radius: 15px;      /* Button baseStyle */
      cursor: pointer;
      font-family: inherit;
      box-shadow: 0px 4px 23px rgba(47, 248, 107, 0.45);
      transition: background 0.2s;
      white-space: nowrap;
      width: 100%;              /* w="100%" from signupBox */
      min-width: 200px;         /* minWidth="200px" from signupBox */
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 40px 0;           /* my={10}=40px */
    }
    .btn-cta:hover {
      background: linear-gradient(129.18deg, #52FF00 10.52%, #00EEFD 93.94%);
    }

    @media (max-width: 768px) {
      .cta-section { padding: 40px 20px 0; }
      .cta-inner { flex-direction: column; padding: 32px 16px; align-items: center; text-align: center; }
      .cta-text-side { width: 100%; }
      .cta-btn-side { width: 80%; margin-top: 0; }
      .cta-divider { display: none; }
    }

       /* ─── FOOTER ─────────────────────────────────────────────────────── */
    .footer {
      width: 100%;
      background: #FAFBFC;      /* --bg-page equivalent from body */
      margin-top: 80px;         /* flex mt={20}=80px */
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1800px;
      width: 90%;
      margin: 0 auto;
      gap: 48px;
      flex-wrap: wrap;
      background-image: url("assets/background/footer_bg.svg");
      background-size: contain;
      background-position: left center;
      background-repeat: no-repeat;
      padding: 80px 0;          /* flex py={20}=80px */
    }

    /* Left: flexDir column, alignItems flex-start, width 50%, maxW 350px */
    .footer-left { display: flex; flex-direction: column; align-items: flex-start; width: 50%; max-width: 350px; }

    /* Footer logo: same 250×50 as header */
    .footer-logo-wrap { display: flex; align-items: center; gap: 0; text-decoration: none; }
    .footer-logo-img { height: 54px; width: auto; object-fit: contain; }
    .footer-cred-svg { height: 38px; width: auto; margin-left: 8px; }

    /* Social icons: m={2}=8px margin, height 50px, width 50px from footer.tsx */
    .social-icons {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center; /* justifyContent=["center"] */
      width: 100%;
      margin-top: 40px; /* mt={10}=40px */
    }
    .social-icon { margin: 8px; width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 50%; transition: opacity 0.2s, transform 0.15s; }
    .social-icon:hover { opacity: 0.8; transform: translateY(-2px); }
    .social-icon img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

    /* Badges container: mt={6}=24px, gap={6}=24px, px={6}=24px, py={4}=16px */
    .trust-badges { display: flex; align-items: center; justify-content: flex-start; gap: 24px; margin-top: 24px; padding: 16px 24px; border-radius: 16px; width: 100%; }
    /* SOC: height 70px, width 70px */
    .soc-badge img { height: 70px; width: 70px; cursor: pointer; transition: opacity 0.2s; }
    .soc-badge img:hover { opacity: 0.85; }
    /* Divider: w=1px h=35px bg=black */
    .badge-divider { width: 1px; height: 35px; background: #000; }
    /* OWASP: height 80px from footer.tsx */
    .owasp-badge img { height: 80px; width: auto; cursor: pointer; transition: opacity 0.2s; }
    .owasp-badge img:hover { opacity: 0.85; }

    /* Footer links: templateColumns repeat(2,1fr), columnGap 150px, rowGap={3}=12px,
       fontWeight 600, navigation variant = 14px */
    .footer-links-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      column-gap: 150px;
      row-gap: 12px;
      justify-content: center;
      text-align: left;
      width: 50%;
      max-width: 500px;
      padding: 8px;
      margin-top: 16px;
    }
    .footer-link {
      font-size: 16px; /* standard navigation variant */
      font-weight: 600;
      color: var(--text-primary);
      text-decoration: none;
      transition: color 0.2s;
      justify-self: start;
      max-width: 150px;
      display: block;
    }
    .footer-link:hover { color: var(--brand-blue); }

    /* ─── RESPONSIVE ─────────────────────────────────────────────────── */
    /* React uses 1250px as desktop breakpoint (min-width: 1250px) */
    @media (max-width: 1250px) {
      .nav { display: none; }
      .hamburger { display: block; }
      .header-actions { display: none; }
    }
    /* doubleRow query from infographics: max-width 1200px */
    @media (max-width: 1200px) {
      .features-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        margin-bottom: 40px;
      }
      .feature-item { margin-bottom: 32px; } /* mb={8} */
    }
    @media (max-width: 992px) {
      .cta-inner { flex-direction: column; padding: 32px 8px; align-items: center; text-align: center; } /* py=[8] and px=[2] */
      .cta-text-side { width: 100%; text-align: center; }
      .cta-heading { text-align: center; }
      .cta-subtext { text-align: center; }
      .cta-btn-side { width: 70%; margin-top: 0; }
      .cta-divider { display: none; }
    }
    @media (max-width: 768px) {
      .logo-main-img { width: 200px; height: 45px; } /* React md: 200px/45px */
      .hero-section { padding: 40px 20px 32px; }
      .hero-heading { font-size: 28px; }
      .hero-subheading { font-size: 18px; width: 90%; } /* fontSize lg=18px, width 90% */
      .hero-content-header { margin-bottom: 40px; }
      .cta-section { padding: 40px 20px 40px; }
      .cta-outer { margin: 0; width: 100%; } /* removed mx */
      .cta-btn-side { width: 80%; }
      
      /* Footer responsive */
      .footer-inner { flex-direction: column; align-items: center; background-image: none; }
      .footer-left { align-items: center; width: 100%; max-width: none; }
      .social-icons { justify-content: center; }
      .trust-badges { justify-content: center; flex-direction: column; gap: 16px; }
      .badge-divider { display: none; } /* Hide divider if stacking badges */
      .footer-links-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 12px; 
        margin-top: 24px; 
        width: 100%; 
        justify-content: center;
      }
      .footer-link { justify-self: center; }
    }
    /* singleRow query from infographics: max-width 600px */
    @media (max-width: 600px) {
      .features-grid { grid-template-columns: repeat(1, 1fr); }
    }
    @media (max-width: 480px) {
      .btn-brand { padding: 10px 16px; font-size: 13px; }
      .hero-section { padding: 40px 16px 24px; }
      .feature-icon-wrap { width: 100px; height: 100px; }
      .feature-icon-wrap img { width: 100px; height: 100px; }
    }

/* == CS Hero Slider == */
.cs_hero_slider_wrap {
  width: 100%;
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.cs_hero_slider {
  background: linear-gradient(108deg, #0d1a12 0%, #030a06 100%);
  border-radius: 24px;
  border: 1px solid #1c3023;
  overflow: visible;
}



.cs_hero_slide_inner {
  display: flex !important;
  align-items: stretch;
  min-height: 445px;
  position: relative;
}

.cs_hero_slide_left {
  flex: 0 0 41%;
  padding: 40px 31px 40px 53px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs_hero_meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cs_hero_badge {
  color: #00FF88;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cs_hero_readtime {
  color: #8A94A6;
  font-size: 0.85rem;
  font-weight: 500;
  background: #111A15;
  padding: 4px 10px;
  border-radius: 6px;
}

.cs_hero_title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px 0;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs_hero_title a {
  color: #ffffff;
  text-decoration: none;
}

.cs_hero_excerpt {
  color: #A0AABF;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 40px 0;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs_hero_cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(108deg, #52FF00 13.56%, #00EEFD 88.08%);
  color: #000000;
  padding: 12px 50px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  border: none;
}

.cs_hero_cta:hover {
  background: linear-gradient(108deg, #52FF00 20.56%, #00EEFD 95.08%);
  color: #000000;
}

.cs_hero_slide_right {
  flex: 0 0 59%;
  align-self: stretch; /* fill height */
  overflow: hidden;
  position: relative;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.cs_hero_slide_right a {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cs_hero_slide_right img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* display full image without clipping */
  object-position: center right;
  /* Add scale transition for polish */
  transition: transform 0.6s ease;
}

.cs_hero_slider:hover .cs_hero_slide_right img {
  transform: scale(1.02);
}

/* Slick Override */
.cs_hero_slider .slick-list {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
}
.cs_hero_slider .slick-track {
  display: flex !important;
  align-items: stretch;
}
.cs_hero_slide {
  height: auto;
  float: none;
}

/* Move dots OUTSIDE the slider container */
.cs_hero_slider_wrap {
  margin-bottom: 40px; /* Make room underneath for dots */
}

.cs_hero_slider_wrap .slick-dots {
  position: absolute;
  bottom: -40px; /* Pos outside the container */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  z-index: 5;
}
.cs_hero_slider_wrap .slick-dots li {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}
.cs_hero_slider_wrap .slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: #C4C4C4;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.cs_hero_slider_wrap .slick-dots li button:before {
  display: none !important;
}
.cs_hero_slider_wrap .slick-dots li.slick-active button {
  background: #52FF00;
  width: 32px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 991px) {
  .cs_hero_slide_left {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  .cs_hero_slider_wrap {
    padding: 0 16px;
    margin: 30px auto;
  }
  .cs_hero_slide_inner {
    flex-direction: column;
    min-height: auto;
  }
  .cs_hero_slide_left {
    flex: 0 0 100%;
    width: 100%;
    padding: 30px 24px 50px 24px; /* extra padding bottom for slick dots */
    order: 1;
    text-align: center;
    align-items: center;
  }
  .cs_hero_slide_right {
    flex: 0 0 250px;
    width: 100%;
    order: -1; 
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .cs_hero_meta {
    justify-content: center;
  }
  .cs_hero_title {
    font-size: 1.6rem;
  }
  .cs_hero_excerpt {
    font-size: 0.95rem;
  }
}

/* == Blog List Header == */
.blog-list-header {
  margin-top: 185px;
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
}

.blh-title {
  font-size: 40px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 24px;
}

.blh-highlight {
  position: relative;
  display: inline-block;
  color: #000000;
}

.blh-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background-color: #3300FF;
}

.blh-subtitle {
  font-size: 18px;
  color: #8A94A6;
  max-width: 650px;
  margin: 0 auto 56px auto;
  line-height: 1.6;
  font-weight: 500;
}

.blh-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 32px auto;
  padding-inline: 20px;
  /* padding: 0 50px; Aligns with slider arrows */
}

.blh-category-dropdown {
  position: relative;
  width: 240px;
  margin-left: 5px;
}

.blh-category-dropdown select {
  width: 100%;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  font-family: inherit;
}

.blh-dropdown-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  pointer-events: none;
}

.blh-search {
  position: relative;
  width: 350px;
}

.blh-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.blh-search input {
  width: 100%;
  background: #F4F5F7;
  border: none;
  border-radius: 12px;
  padding: 14px 20px 14px 44px;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.blh-search input::placeholder {
  color: #8A94A6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .blh-title {
    font-size: 32px;
  }
  .blh-filters {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  .blh-category-dropdown, .blh-search {
    width: 100%;
    max-width: 100%;
  }
}

/* == Latest Posts Slider & Cards == */
.latest-posts-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
}

.lps-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #3399ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s, transform 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.lps-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(0,100,255,0.5));
}

.lps-arrow:hover {
  color: #66bbff;
  transform: translateY(-50%) scale(1.15);
}

.lps-prev {
  left: 20px;
}

.lps-next {
  right: 20px;
}

.lps-dots {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  gap: 8px;
}

.lps-dots .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.lps-dots .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.lps-dots .slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: #C4C4C4;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.lps-dots .slick-dots li button:before {
  display: none !important;
}

.lps-dots .slick-dots li.slick-active button {
  background: #3300FF;
  width: 28px;
}

/* Offset margins so slides can have padding */
.latest-posts-slider {
  margin: 0 -15px; 
}

.lps-slide {
  padding: 0 15px;
  height: auto; 
}

/* Force equal height via flex */
.latest-posts-slider .slick-track {
  display: flex !important;
}

.latest-posts-slider .slick-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Card Design */
.lpc-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lpc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.lpc-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #252830;
  overflow: hidden;
}

.lpc-bg-pattern {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.lpc-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 3;
  background: rgba(16, 185, 129, 0.05);
}

.lpc-img-link {
  position: relative;
    z-index: 2;
    text-decoration: none;
}

.lpc-img {
  width: 100%;
  height: 100%;
  object-position: center;
  transition: transform 0.5s ease;
}

.lpc-img.fallback {
  object-fit: contain;
}

.lpc-card:hover .lpc-img {
  transform: scale(1.05);
}

.lpc-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  background: rgb(250, 251, 252);
}

.lpc-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lpc-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lpc-title a:hover {
  color: var(--brand-blue);
}

.lpc-excerpt {
  color: #657795;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.lpc-btn-wrap {
  margin-top: auto;
}

.lpc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1.5px solid #3300FF;
  color: #3300FF;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.lpc-btn:hover {
  background: #3300FF;
  color: #fff;
}

@media (max-width: 1024px) {
  .latest-posts-slider-wrap {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .latest-posts-slider-wrap {
    padding: 0 16px;
  }
  .lps-arrow {
    display: none !important; /* Hide arrows on mobile */
  }
  .latest-posts-slider {
    margin: 0;
  }
  .lps-slide {
    padding: 0 10px;
  }
  .lpc-card {
    border-radius: 16px;
  }
  .lpc-content {
    padding: 24px;
  }
}

/* ── Partnerships & Integrations Section ──────────────────────────── */
.pi-section {
  width: 100%;
  background: #ffffff;
  padding: 70px 0 40px;
}

/* Section header: title + subtitle */
.pi-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
  padding: 0 24px;
}

.pi-section-title {
  font-size: 40px;
  font-weight: 800;
  color: #000000;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.pi-title-highlight {
  position: relative;
  display: inline-block;
  color: #000000;
}

.pi-title-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background-color: #3300FF;
  border-radius: 2px;
}

.pi-section-subtitle {
  font-size: 18px;
  color: #8A94A6;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.pi-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Column header */
.pi-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}

.pi-col-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0;
}

.pi-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3300FF;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.pi-view-all:hover {
  gap: 10px;
  color: #3300FF;
}

/* Post row */
.pi-post-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.pi-post-row:last-child {
  border-bottom: none;
}

.pi-post-row:hover .pi-post-title {
  color: #3300FF;
}

/* Thumbnail */
.pi-post-thumb {
  flex: 0 0 110px;
  width: 110px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
}

.pi-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pi-post-row:hover .pi-post-thumb img {
  transform: scale(1.06);
}

/* Post info */
.pi-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pi-post-date {
  font-size: 12px;
  color: #8A94A6;
  font-weight: 500;
}

.pi-post-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pi-post-excerpt {
  font-size: 13px;
  color: #657795;
  line-height: 1.5;
  margin: 0;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pi-no-posts {
  color: #8A94A6;
  font-size: 14px;
  padding: 24px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .pi-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .pi-section {
    padding: 40px 0 24px;
  }
  .pi-post-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
  }
  .pi-post-title {
    font-size: 14px;
  }
}

/* ────────────────────────────────────────────────────────────
   HACK ANALYSIS SECTION
──────────────────────────────────────────────────────────── */
.ha-section {
  width: 100%;
  background: #ffffff;
  padding: 48px 0 60px;
}

/* --- Header --- */
.ha-section-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 24px;
}

.ha-section-title {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 20px;
  line-height: 1.25;
}

.ha-title-highlight {
  color: #3300FF;
  border-bottom: 3px solid #3300FF;
  padding-bottom: 2px;
}

.ha-section-subtitle {
  font-size: 16px;
  color: #8A94A6;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* --- Slider wrapper (arrows overlay the track) --- */
.ha-slider-wrap {
  position: relative;
  width: 95%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
}

.ha-slider {
  margin: 0 -15px;
  background: transparent !important;
}
.ha-slider .slick-list {
  background: transparent !important;
}
.ha-slider .slick-track {
  display: flex !important;
  background: transparent !important;
}
.ha-slider .slick-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  background: transparent !important;
}

/* --- Individual Slide --- */
.ha-slide {
  padding: 0 15px; /* gutter between cards */
  height: auto;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

/* --- Dark Card --- */
.ha-card {
  position: relative;
  background: #0d1117;
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ha-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

/* Background image — visible, subtle brightness only */
.ha-card-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.0);
  z-index: 0;
}

/* Bottom gradient overlay for text readability only */
.ha-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,13,10,0.85) 0%, rgba(6,13,10,0.3) 50%, transparent 100%);
  opacity: 1;
  z-index: 1;
}

/* Binary / matrix dot pattern */
.ha-binary-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  overflow: hidden;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #00ff88 1px, transparent 1px),
    radial-gradient(circle, #00eefd 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px;
  background-position: 0 0, 15px 15px;
}

/* Card Content */
.ha-card-content {
  position: relative;
  z-index: 3;
  padding: 24px 22px 20px;
}

.ha-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
  opacity: 0.85;
}

.ha-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #3DCC70; /* neon green */
  line-height: 1.25;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ha-card-date {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin: 0;
}

/* --- "Read Full Article" Button --- */
.ha-card-btn {
  display: block;
  margin-top: 16px;
  margin-inline: auto;
  text-align: center;
  padding: 13px 20px;
  border: 2px solid #3300FF;
  border-radius: 15px;
  color: #3300FF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s, color 0.2s;
  width: 80%;
}

.ha-card-btn:hover {
  background: #3300FF;
  color: #fff;
}

/* --- Arrow buttons — overlay on top of cards --- */
.ha-arrow {
  position: absolute;
  top: 42%;                      /* center on card area, not the button below */
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #3399ff;                /* bright blue chevron, no circle border */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s, transform 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.ha-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(0,100,255,0.5));
}

.ha-arrow:hover {
  color: #66bbff;
  transform: translateY(-50%) scale(1.15);
}

/* Prev sits on the very left edge of the slider track */
.ha-prev { left: 20px; }
/* Next sits on the right edge, factoring in the partially visible 4th card */
.ha-next { right: 20px; }

/* --- Dots --- */
.ha-dots {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  gap: 8px;
}

.ha-dots .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.ha-dots .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.ha-dots .slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: #C4C4C4;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.ha-dots .slick-dots li button:before { display: none !important; }

.ha-dots .slick-dots li.slick-active button {
  background: #3300FF;
  width: 28px;
}

/* --- No-posts fallback --- */
.ha-no-posts {
  text-align: center;
  color: #8A94A6;
  font-size: 16px;
  padding: 40px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ha-slider-wrap { padding: 0 16px; }
}

@media (max-width: 768px) {
  .ha-section { padding: 48px 0 60px; }
  .ha-section-title { font-size: 26px; }
  .ha-slider-wrap { padding: 0 16px; }
  .ha-slider { margin: 0; }
  .ha-slide { padding: 0 10px; }
  .ha-arrow { display: none; }
  .ha-card { height: 210px; border-radius: 16px; }
  .ha-card-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .ha-section-title { font-size: 22px; }
  .ha-section-subtitle { font-size: 14px; }
}

/* ────────────────────────────────────────────────────────────
   SECTION SPACING
──────────────────────────────────────────────────────────── */
.blog-list-section {
  width: 95%;
  margin: 0 auto;
}

.section-spacing {
  margin-bottom: 180px;
}

@media (max-width: 1200px) {
  .section-spacing {
    margin-bottom: 140px;
  }
}

@media (max-width: 991px) {
  .section-spacing {
    margin-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .section-spacing {
    margin-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .section-spacing {
    margin-bottom: 60px;
  }
}

/* ────────────────────────────────────────────────────────────
   SINGLE POST PAGE (sp-)
──────────────────────────────────────────────────────────── */
.sp-container {
  max-width: 1240px;
  margin: 60px auto;
  padding: 0 20px;
  background: transparent;
}

.sp-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.sp-main {
  flex: 1;
  min-width: 0;
}

.sp-article {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 40px;
}

.sp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sp-category {
  color: #3300FF;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sp-read-time {
  color: #8A94A6;
  font-size: 14px;
  font-weight: 500;
}

.sp-title {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 0 0 32px 0;
}

.sp-thumbnail {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.sp-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.sp-content {
  font-size: 17px;
  line-height: 1.8;
  color: #323B4B;
}

/* Sidebar */
.sp-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sp-sidebar-inner {
  background: transparent;
  padding: 0;
}

.sp-sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 24px 0;
  letter-spacing: 1px;
}

.sp-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-categories-list li a {
  text-decoration: none;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sp-categories-list li a.active {
  color: #3300FF;
}

.sp-categories-list li a:hover {
  color: #3300FF;
}

/* Post Navigation (Next / Prev) */
.sp-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.sp-nav-wrap {
  flex: 1;
}

.sp-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #3300FF;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.sp-nav-link:hover {
  opacity: 0.7;
}

.sp-nav-prev-wrap {
  text-align: left;
}

.sp-nav-next-wrap {
  text-align: right;
}

.sp-nav-next {
  justify-content: flex-end;
}

.sp-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-nav-title {
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .sp-inner {
    flex-direction: column;
  }
  .sp-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .sp-title {
    font-size: 32px;
  }
  .sp-post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  .sp-nav-next {
    justify-content: flex-start;
  }
  .sp-nav-next-wrap {
    text-align: left;
  }
}