/* ============================================
   ICSS Blog — Indian Cyber Security Solutions
   Premium Professional Stylesheet v2.0
   ============================================ */

/* ── Design Tokens ── */
:root {
  --icss-navy: #0B1929;
  --icss-navy-mid: #122A4A;
  --icss-blue: #1A3A8F;
  --icss-blue-light: #2563EB;
  --icss-cyan: #0EA5E9;
  --icss-red: #c0192b;
  --icss-gradient: linear-gradient(135deg, #122A4A 0%, #1A3A8F 50%, #0B1929 100%);
  --icss-gradient-accent: linear-gradient(135deg, #2563EB, #0EA5E9);
  --icss-gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
  --icss-gradient-hero: linear-gradient(160deg, #0B1929 0%, #122A4A 35%, #1A3A8F 70%, #0B1929 100%);
  --text-primary: #101828;
  --text-secondary: #5F6B7A;
  --text-muted: #8896A6;
  --bg-body: #F6F8FB;
  --bg-card: #ffffff;
  --bg-section: #EEF2F8;
  --border-light: #e2e8f0;
  --border-card: rgba(0, 0, 0, 0.08);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.06);
  --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.12s var(--easing);
  --transition: all 0.15s var(--easing);
  --transition-slow: all 0.3s var(--easing);
  --content-max-width: 1260px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: blur(20px);
}

.main-body {

  /* ── Base Reset ── */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* ── Content Container ── */
  .content-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
  }

  /* ══════════════════════════════════════════
   NAVBAR — Frosted Glass Premium
   ══════════════════════════════════════════ */
  .navbar-icss {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    z-index: 1050;
  }

  .navbar-icss.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
  }

  .navbar-icss .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff !important;
    letter-spacing: -0.03em;
    transition: var(--transition-fast);
  }

  .navbar-icss .navbar-brand:hover {
    opacity: 0.92;
  }

  .navbar-icss .navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
  }

  .navbar-icss .navbar-brand:hover img {
    border-color: rgba(255, 255, 255, 0.35);
  }

  .navbar-icss .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
  }

  .navbar-icss .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--icss-blue-light);
    border-radius: 1px;
    transition: var(--transition);
    transform: translateX(-50%);
  }

  .navbar-icss .nav-link:hover::after {
    width: 50%;
  }

  .navbar-icss .nav-link.active::after {
    width: 70%;
  }

  .navbar-icss .nav-link:hover {
    color: #fff !important;
  }

  .navbar-icss .nav-link.active {
    color: #fff !important;
  }

  .navbar-icss .dropdown-menu {
    background: rgba(15, 32, 64, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: dropdownReveal 0.25s var(--easing);
  }

  @keyframes dropdownReveal {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .navbar-icss .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    border-radius: 6px;
    padding: 8px 14px;
    transition: var(--transition-fast);
  }

  .navbar-icss .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
  }

  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 4px 8px;
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }

  /* ══════════════════════════════════════════
   HERO — Immersive Animated Section
   ══════════════════════════════════════════ */
  .hero-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
      var(--icss-gradient-hero);
  }

  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    z-index: 0;
  }

  /* Floating particles effect */
  .hero-section .hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0) rotate(0deg);
    }

    33% {
      transform: translateY(-20px) rotate(120deg);
    }

    66% {
      transform: translateY(10px) rotate(240deg);
    }
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.04em;
    line-height: 1.12;
    animation: heroTitleIn 0.9s var(--easing) both;
  }

  .hero-title span {
    background: var(--icss-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: heroSubIn 1s var(--easing) 0.15s both;
  }

  @keyframes heroTitleIn {
    from {
      opacity: 0;
      transform: translateY(40px);
      filter: blur(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  @keyframes heroSubIn {
    from {
      opacity: 0;
      transform: translateY(25px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Hero Search ── */
  .search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    animation: heroSubIn 1.1s var(--easing) 0.3s both;
  }

  .search-input {
    border-radius: 50px;
    padding: 16px 56px 16px 26px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-size: 0.95rem;
    width: 100%;
    color: #fff;
    transition: var(--transition);
  }

  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--icss-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--icss-gradient-accent);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  }

  /* ══════════════════════════════════════════
   BREADCRUMB BAR
   ══════════════════════════════════════════ */
  .breadcrumb-bar {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.8rem;
  }

  .breadcrumb-bar a {
    color: var(--icss-blue-light);
    text-decoration: none;
    font-weight: 500;
  }

  .breadcrumb-bar a:hover {
    text-decoration: underline;
  }

  .breadcrumb-bar span {
    color: var(--text-muted);
  }

  .breadcrumb-bar .separator {
    margin: 0 8px;
    color: #dde3ea;
  }

  .breadcrumb-bar.breadcrumb-hidden {
    display: none;
  }

  /* ══════════════════════════════════════════
   CATEGORY PILLS — Pill Bar
   ══════════════════════════════════════════ */
  .category-bar {
    padding: 18px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 56px;
    z-index: 100;
    transition: var(--transition);
  }

  .category-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-section);
    border: 1.5px solid transparent;
    margin: 4px;
    color: var(--text-secondary);
    user-select: none;
  }

  .category-pill:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--icss-blue);
    transform: translateY(-1px);
  }

  .category-pill.active {
    background: var(--icss-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 58, 143, 0.25);
  }

  /* ══════════════════════════════════════════
   BLOG LAYOUT — Grid + Sidebar
   ══════════════════════════════════════════ */
  .blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
  }

  .blog-main {
    min-width: 0;
  }

  /* ══════════════════════════════════════════
   BLOG CARDS — Premium Elevated Design
   ══════════════════════════════════════════ */
  .blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-card);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    position: relative;
  }

  .blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
  }

  .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }

  .blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
  }

  .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
  }

  .blog-card:hover .blog-card-image img {
    transform: scale(1.04);
  }

  .blog-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
  }

  .category-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--icss-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
  }

  .blog-card:hover .category-tag {
    background: var(--icss-blue);
    color: #fff;
  }

  .featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--icss-gradient-warm);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  }

  .blog-card-body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .blog-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
  }

  .blog-card:hover .blog-card-title {
    color: var(--icss-blue);
  }

  .blog-card-excerpt {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }

  .blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
  }

  .blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .blog-card-meta i {
    font-size: 0.82rem;
    color: var(--icss-blue-light);
  }

  /* Read More Button */
  .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--icss-blue);
    border: none;
    border-left: 3px solid var(--icss-blue);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
  }

  .read-more-btn:hover {
    background: var(--icss-blue);
    color: #fff;
    border-left-color: var(--icss-blue);
    border-radius: var(--radius-sm);
  }

  /* ── Card Stagger Animation ── */
  .blog-card {
    animation: cardReveal 0.5s var(--easing) both;
  }

  .col-md-6:nth-child(1) .blog-card {
    animation-delay: 0s;
  }

  .col-md-6:nth-child(2) .blog-card {
    animation-delay: 0.08s;
  }

  .col-md-6:nth-child(3) .blog-card {
    animation-delay: 0.16s;
  }

  .col-md-6:nth-child(4) .blog-card {
    animation-delay: 0.24s;
  }

  .col-md-6:nth-child(5) .blog-card {
    animation-delay: 0.32s;
  }

  .col-md-6:nth-child(6) .blog-card {
    animation-delay: 0.4s;
  }

  @keyframes cardReveal {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.97);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* ══════════════════════════════════════════
   SIDEBAR — Clean Widget Cards
   ══════════════════════════════════════════ */
  .blog-sidebar {
    position: sticky;
    top: 120px;
  }

  .sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-left: 2px solid transparent;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    animation: sidebarSlide 0.5s var(--easing) both;
  }

  .sidebar-widget:nth-child(1) {
    animation-delay: 0.1s;
  }

  .sidebar-widget:nth-child(2) {
    animation-delay: 0.2s;
  }

  .sidebar-widget:nth-child(3) {
    animation-delay: 0.3s;
  }

  .sidebar-widget:nth-child(4) {
    animation-delay: 0.4s;
  }

  .sidebar-widget:nth-child(5) {
    animation-delay: 0.5s;
  }

  @keyframes sidebarSlide {
    from {
      opacity: 0;
      transform: translateX(20px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .sidebar-widget:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--icss-blue);
  }

  .sidebar-widget h4 {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: var(--icss-gradient-accent) 1;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar-widget h4 i {
    color: var(--icss-blue-light);
    font-size: 0.95rem;
  }

  /* Search Widget */
  .sidebar-search input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: var(--transition);
    background: var(--bg-section);
  }

  .sidebar-search input:focus {
    outline: none;
    border-color: var(--icss-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
  }

  .sidebar-search button {
    width: 100%;
    margin-top: 10px;
    background: var(--icss-gradient-accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .sidebar-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
  }

  /* Sidebar Lists */
  .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar-list li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-fast);
  }

  .sidebar-list li:last-child {
    border-bottom: none;
  }

  .sidebar-list li:hover {
    padding-left: 4px;
  }

  .sidebar-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    transition: var(--transition-fast);
    display: block;
    line-height: 1.5;
  }

  .sidebar-list a:hover {
    color: var(--icss-blue);
  }

  .sidebar-list .post-date {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .sidebar-list .count {
    float: right;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--icss-blue-light);
  }

  /* Scrollable sidebar sections */
  .sidebar-scroll-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--icss-blue-light) transparent;
  }

  .sidebar-scroll-list::-webkit-scrollbar {
    width: 4px;
  }

  .sidebar-scroll-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar-scroll-list::-webkit-scrollbar-thumb {
    background: var(--icss-blue-light);
    border-radius: 2px;
  }

  .sidebar-scroll-list::-webkit-scrollbar-thumb:hover {
    background: var(--icss-blue);
  }

  /* ── Mobile Sidebar Toggle ── */
  .sidebar-toggle {
    display: none;
    background: var(--icss-gradient);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    transition: var(--transition);
  }

  .sidebar-toggle:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
  }

  /* ══════════════════════════════════════════
   PAGINATION — Modern Pill Style
   ══════════════════════════════════════════ */
  .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
  }

  .pagination {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.84rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pagination button:hover:not(.active) {
    background: var(--bg-section);
    border-color: var(--icss-blue-light);
    color: var(--icss-blue);
    transform: translateY(-1px);
  }

  .pagination button.active {
    background: var(--icss-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(26, 58, 143, 0.25);
  }

  .pagination .dots {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 0 4px;
    font-weight: 600;
  }

  /* ══════════════════════════════════════════
   FULLSCREEN READER — Premium Reading
   ══════════════════════════════════════════ */
  .fullscreen-reader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    animation: readerOpen 0.4s var(--easing);
  }

  @keyframes readerOpen {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--icss-gradient-accent);
    z-index: 10001;
    transition: width 0.15s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  }

  .reader-header {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10000;
  }

  .close-reader {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
  }

  .close-reader:hover {
    background: var(--icss-blue);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
  }

  /* Reader Content */
  .reader-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px clamp(20px, 5vw, 60px) 40px;
  }

  .reader-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }

  .reader-breadcrumb a {
    color: var(--icss-blue-light);
    text-decoration: none;
    font-weight: 500;
  }

  .reader-breadcrumb a:hover {
    text-decoration: underline;
  }

  .reader-breadcrumb .sep {
    margin: 0 6px;
    color: #cbd5e1;
  }

  .reader-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }

  .reader-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    align-items: center;
  }

  .reader-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .reader-meta i {
    color: var(--icss-blue-light);
  }

  .reader-meta .reader-category-tag,
  .reader-meta .category-tag {
    background: var(--icss-gradient-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .reader-content .lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.75;
    color: #475569;
    border-left: 4px solid var(--icss-blue-light);
    padding-left: 20px;
    margin-bottom: 2rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.04), transparent);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .reader-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    color: #334155;
  }

  .reader-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
  }

  .reader-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--icss-gradient-accent);
    border-radius: 2px;
  }

  .reader-content img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
  }

  .reader-source {
    padding: 14px 18px;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--icss-blue-light);
  }

  .reader-source a {
    color: var(--icss-blue-light);
    word-break: break-all;
  }

  /* ── Related Posts ── */
  .related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
  }

  .related-posts h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
  }

  .related-post-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    height: 100%;
  }

  .related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }

  .related-post-card h5 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ══════════════════════════════════════════
   COMMENTS — WP-Style
   ══════════════════════════════════════════ */
  .comments-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) 60px;
  }

  .comment-item {
    border-left: 3px solid var(--icss-blue-light);
    padding: 14px 18px;
    margin-bottom: 16px;
    background: var(--bg-section);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition-fast);
  }

  .comment-item:hover {
    border-left-color: var(--icss-cyan);
    background: rgba(241, 245, 249, 0.8);
  }

  .comment-header {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }

  .comment-body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
  }

  .comment-form .form-control {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-section);
  }

  .comment-form .form-control:focus {
    border-color: var(--icss-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
  }

  .comment-form .form-check-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
  }

  /* ══════════════════════════════════════════
   BUTTONS — Primary CTA
   ══════════════════════════════════════════ */
  .btn-icss {
    background: var(--icss-gradient);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
  }

  .btn-icss::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
  }

  .btn-icss:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.35);
    color: #fff;
  }

  .btn-icss:hover::before {
    opacity: 1;
  }

  .btn-icss:active {
    transform: translateY(0);
  }

  /* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
  .about-section {
    padding: 80px 0;
    background: var(--bg-section);
    position: relative;
  }

  .about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--icss-blue-light), transparent);
    opacity: 0.3;
  }

  .about-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1rem;
  }

  .about-numbers>div {
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 100px;
    border: 1px solid var(--border-light);
  }

  .about-numbers>div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .about-numbers h3 {
    background: var(--icss-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
  }

  .about-numbers p {
    margin: 4px 0 0;
    font-size: 0.85rem;
  }

  /* ══════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════ */
  .contact-section {
    padding: 80px 0;
    background: var(--bg-card);
  }

  .contact-form .form-control {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--bg-section);
  }

  .contact-form .form-control:focus {
    border-color: var(--icss-blue-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
    background: #fff;
  }

  /* ══════════════════════════════════════════
   FOOTER — Deep Navy
   ══════════════════════════════════════════ */
  .footer {
    background: linear-gradient(160deg, #0a1628, #0f2040);
    color: #fff;
    padding: 60px 0 24px;
    position: relative;
  }

  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--icss-gradient-accent);
  }

  .footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
  }

  .footer a:hover {
    color: var(--icss-cyan);
  }

  .footer h5,
  .footer h6 {
    font-weight: 700;
    color: #fff;
  }

  .footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* ══════════════════════════════════════════
   SCROLL TO TOP — Floating Action
   ══════════════════════════════════════════ */
  .scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--icss-gradient);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
    z-index: 999;
  }

  .scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(30, 64, 175, 0.45);
  }

  /* ══════════════════════════════════════════
   SECTION TITLES — Uniform Heading Style
   ══════════════════════════════════════════ */
  #blog>.content-container>h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 14px;
  }

  #blog>.content-container>h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--icss-gradient-accent);
    border-radius: 2px;
  }

  /* ══════════════════════════════════════════
   UTILITY ANIMATIONS
   ══════════════════════════════════════════ */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ══════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════ */
  @media (max-width: 992px) {
    .blog-layout {
      grid-template-columns: 1fr;
    }

    .blog-sidebar {
      position: static;
    }

    .sidebar-toggle {
      display: block;
      background: var(--bg-section);
      color: var(--text-primary);
      border: 1.5px solid var(--border-light);
      padding: 10px 16px;
    }

    .sidebar-toggle:hover {
      box-shadow: var(--shadow-sm);
      border-color: var(--icss-blue-light);
    }

    .sidebar-collapsible {
      display: none;
    }

    .sidebar-collapsible.show {
      display: block;
    }

    .hero-title {
      font-size: 2.4rem;
    }

    .hero-section {
      padding: 100px 0 70px;
    }

    .category-bar {
      top: 56px;
    }

    .category-bar .content-container {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      text-align: left;
    }

    .category-bar .content-container::-webkit-scrollbar {
      display: none;
    }

    .category-pill {
      white-space: nowrap;
    }
  }

  @media (max-width: 576px) {
    .hero-section {
      padding: 90px 0 60px;
    }

    .hero-title {
      font-size: 1.9rem;
    }

    .hero-subtitle {
      font-size: 0.92rem;
    }

    .reader-content {
      padding: 40px 16px 40px;
    }

    .reader-content h1 {
      font-size: 1.5rem;
    }

    .comments-section {
      padding: 0 16px 40px;
    }

    .category-pill {
      padding: 6px 14px;
      font-size: 0.76rem;
    }

    .blog-card-image {
      height: 160px;
    }

    .sidebar-widget {
      padding: 14px;
    }

    .about-numbers {
      gap: 1rem;
    }

    .about-numbers>div {
      min-width: 80px;
      padding: 12px 14px;
    }

    .about-numbers h3 {
      font-size: 1.4rem;
    }
  }

  /* ══════════════════════════════════════════
   SINGLE POST PAGE — Article Styles
   ══════════════════════════════════════════ */

  /* Reading Progress Bar */
  .reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--icss-gradient-accent);
    z-index: 10001;
    transition: width 0.15s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  }

  /* Article Header */
  .single-post-article {
    animation: slideUp 0.6s var(--easing);
  }

  .article-header {
    margin-bottom: 2rem;
  }

  .article-category-tag {
    display: inline-block;
    background: var(--icss-gradient-accent);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
  }

  .article-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1rem;
  }

  .article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .article-meta i {
    color: var(--icss-blue-light);
  }

  /* Article Hero Image */
  .article-hero-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .article-hero-image img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
  }

  /* Article Content — WordPress HTML Rendering */
  .article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #334155;
  }

  .article-content p {
    margin-bottom: 1.4rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
  }

  .article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--icss-gradient-accent);
    border-radius: 2px;
  }

  .article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
  }

  .article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .article-content ul,
  .article-content ol {
    margin: 0.8rem 0 1.4rem 1.2rem;
    padding-left: 0.8rem;
  }

  .article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
  }

  .article-content blockquote {
    border-left: 4px solid var(--icss-blue-light);
    margin: 1.5rem 0;
    padding: 16px 20px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.04), transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #475569;
  }

  .article-content blockquote p:last-child {
    margin-bottom: 0;
  }

  .article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .article-content code {
    background: rgba(59, 130, 246, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--icss-blue);
  }

  .article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
  }

  .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    overflow-x: auto;
    display: block;
  }

  .article-content th,
  .article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    text-align: left;
  }

  .article-content th {
    background: var(--bg-section);
    font-weight: 700;
    color: var(--text-primary);
  }

  .article-content tr:hover td {
    background: rgba(59, 130, 246, 0.02);
  }

  .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
  }

  .article-content a {
    color: var(--icss-blue-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
  }

  .article-content a:hover {
    border-bottom-color: var(--icss-blue-light);
  }

  .article-content figure {
    margin: 1.5rem 0;
    text-align: center;
  }

  .article-content figcaption {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
  }

  .article-content .wp-block-image {
    margin: 1.5rem 0;
    text-align: center;
  }

  .article-content .wp-block-image img {
    display: inline-block;
  }

  /* Article Source */
  .article-source {
    padding: 14px 18px;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--icss-blue-light);
    margin: 2rem 0;
  }

  .article-source a {
    color: var(--icss-blue-light);
    word-break: break-all;
    text-decoration: none;
  }

  .article-source a:hover {
    text-decoration: underline;
  }

  /* Share Buttons */
  .article-share {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }

  .article-share h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
  }

  .share-twitter {
    background: #1da1f2;
  }

  .share-linkedin {
    background: #0077b5;
  }

  .share-facebook {
    background: #1877f2;
  }

  .share-copy {
    background: var(--icss-blue);
  }

  .share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
  }

  /* Related Posts — Single Post Page */
  .related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
  }

  .related-posts-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .related-posts-section .related-post-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-card);
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .related-posts-section .related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .related-posts-section .related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }

  .related-post-body {
    padding: 12px 14px;
  }

  .related-post-body h5 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Comments — Standalone (post page) */
  .comments-section-standalone {
    margin-top: 2rem;
  }

  /* ── Single Post Responsive ── */
  @media (max-width: 576px) {
    .article-title {
      font-size: 1.5rem;
    }

    .article-content {
      font-size: 0.95rem;
    }

    .article-content h2 {
      font-size: 1.3rem;
    }

    .article-content h3 {
      font-size: 1.1rem;
    }

    .article-hero-image img {
      max-height: 260px;
    }

    .share-buttons {
      gap: 8px;
    }

    .share-btn {
      width: 38px;
      height: 38px;
      font-size: 0.95rem;
    }
  }

  /* ── Selection Color ── */
  ::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
  }

  /* ── Scrollbar Styling ── */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-section);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--icss-blue-light), var(--icss-cyan));
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--icss-blue);
  }

}