/*
 * Blog listing page styles (is_home). Ported 1:1 from the blog.html design.
 * Loaded after header.css/footer.css so its selectors win ties.
 */
    /* =================== RESET & BASE =================== */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --primary: #1565C0;
      --primary-dark: #0D47A1;
      --primary-light: #1976D2;
      --accent: #F9D67B;
      --accent-dark: #f0c44a;
      --dark: #1a1a2e;
      --gray: #5a6a85;
      --light-gray: #EEF4FF;
      --border: #D0DEF5;
      --white: #ffffff;
      --font-head: 'Sora', sans-serif;
      --font-body: 'DM Sans', sans-serif;
      --shadow-sm: 0 2px 12px rgba(21, 101, 192, .08);
      --shadow-md: 0 8px 32px rgba(21, 101, 192, .14);
      --shadow-lg: 0 16px 48px rgba(21, 101, 192, .20);
      --hero-grad: linear-gradient(135deg, #0D47A1 0%, #1565C0 55%, #1976D2 100%);
      --radius: 12px;
      --radius-sm: 8px;
      --transition: all .3s ease;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      color: var(--dark);
      background: var(--white);
      font-size: 16px;
      line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
      font-family: var(--font-head);
      line-height: 1.25;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .section-pad {
      padding: 80px 0;
    }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(249, 214, 123, .22);
      color: var(--primary);
      font-family: var(--font-head);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      padding: 6px 16px;
      border-radius: 50px;
      border: 1px solid rgba(249, 214, 123, .5);
      margin-bottom: 14px;
    }

    .section-label::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent-dark);
      flex-shrink: 0;
    }

    .section-title {
      font-size: clamp(26px, 4vw, 40px);
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 16px;
    }

    .section-title span {
      color: var(--primary);
    }

    .section-sub {
      color: var(--gray);
      font-size: 16px;
      max-width: 560px;
      line-height: 1.7;
    }

    .section-header {
      margin-bottom: 48px;
    }

    .section-header.center {
      text-align: center;
    }

    .section-header.center .section-sub {
      margin: 0 auto;
    }

    /* =================== BUTTONS =================== */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 600;
      padding: 14px 28px;
      border-radius: 50px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: var(--transition);
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      border-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .btn-accent {
      background: var(--accent);
      color: var(--primary);
      border-color: var(--accent);
    }

    .btn-accent:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(249, 214, 123, .4);
    }

    .btn-outline {
      background: transparent;
      color: var(--primary);
      border-color: var(--primary);
    }

    .btn-outline:hover {
      background: var(--primary);
      color: var(--white);
      transform: translateY(-2px);
    }

    .btn-outline-white {
      background: transparent;
      color: var(--white);
      border-color: rgba(255, 255, 255, .6);
    }

    .btn-outline-white:hover {
      background: var(--white);
      color: var(--primary);
    }

    .btn-sm {
      padding: 10px 20px;
      font-size: 13px;
    }

    /* =================== TOP BAR =================== */
    .top-bar {
      background: var(--primary);
      color: rgba(255, 255, 255, .85);
      font-size: 13px;
      padding: 8px 0;
      position: relative;
      overflow: hidden;
    }

    .top-bar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .top-bar-social {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-shrink: 0;
    }

    .top-bar-social a {
      color: rgba(255, 255, 255, .7);
      font-size: 13px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .2);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .top-bar-social a:hover {
      background: var(--accent);
      color: var(--primary);
      border-color: var(--accent);
    }

    .news-ticker {
      flex: 1;
      overflow: hidden;
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 16px;
    }

    .ticker-label {
      background: var(--accent);
      color: var(--primary);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: .1em;
      padding: 3px 10px;
      border-radius: 4px;
      flex-shrink: 0;
      text-transform: uppercase;
    }

    .ticker-wrap {
      overflow: hidden;
      flex: 1;
    }

    .ticker-track {
      display: flex;
      gap: 0;
      white-space: nowrap;
      animation: ticker 30s linear infinite;
    }

    .ticker-track span {
      padding-right: 60px;
    }

    @keyframes ticker {
      from {
        transform: translateX(0);
      }

      to {
        transform: translateX(-50%);
      }
    }

    .top-bar-right {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-shrink: 0;
      font-size: 12px;
    }

    .top-bar-right a {
      color: rgba(255, 255, 255, .75);
      transition: var(--transition);
    }

    .top-bar-right a:hover {
      color: var(--accent);
    }

    /* =================== PAGE BANNER =================== */
    .page-banner {
      background: var(--hero-grad);
      position: relative;
      overflow: hidden;
      padding: 70px 0 100px;
      min-height: 400px;
      display: flex;
      align-items: center;
    }

    .page-banner::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 56px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cpath fill='%23f5f8ff' fill-opacity='1' d='M0,36 C360,0 1080,56 1440,18 L1440,56 L0,56 Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
    }

    /* Floating shapes */
    .banner-shape {
      position: absolute;
      pointer-events: none;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .07);
    }

    .banner-shape-1 {
      width: 420px;
      height: 420px;
      top: -160px;
      right: -80px;
    }

    .banner-shape-2 {
      width: 220px;
      height: 220px;
      bottom: -80px;
      left: 5%;
    }

    .banner-shape-3 {
      width: 80px;
      height: 80px;
      top: 40px;
      left: 18%;
      border: 2px solid rgba(249, 214, 123, .15);
      animation: floatVertical 5s ease-in-out infinite;
    }

    .banner-shape-4 {
      width: 48px;
      height: 48px;
      bottom: 60px;
      right: 22%;
      border: 2px solid rgba(249, 214, 123, .12);
      animation: moveBounce 4.5s ease-in-out infinite;
    }

    .banner-dot {
      position: absolute;
      pointer-events: none;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(249, 214, 123, .35);
    }

    .banner-dot-1 {
      top: 30%;
      left: 8%;
      animation: floatVertical 4s .5s ease-in-out infinite;
    }

    .banner-dot-2 {
      top: 60%;
      right: 12%;
      animation: moveBounce 5s 1s ease-in-out infinite;
    }

    .banner-dot-3 {
      top: 20%;
      right: 30%;
      animation: floatVertical 6s .3s ease-in-out infinite;
    }

    .page-banner .container {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .banner-inner {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 60px;
      align-items: center;
    }

    .banner-left {
      /* intentionally no text-align: center */
    }

    .banner-right {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      animation: heroEntrance .7s .55s cubic-bezier(.25, .46, .45, .94) both;
    }

    .banner-stat-card {
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .15);
      border-radius: var(--radius);
      padding: 20px 18px;
      backdrop-filter: blur(6px);
    }

    .banner-stat-card strong {
      display: block;
      font-family: var(--font-head);
      font-size: 28px;
      font-weight: 800;
      color: var(--white);
      line-height: 1;
    }

    .banner-stat-card strong span {
      color: var(--accent);
    }

    .banner-stat-card p {
      font-size: 12px;
      color: rgba(255, 255, 255, .65);
      margin-top: 6px;
      line-height: 1.4;
    }

    .banner-stat-card .stat-icon {
      width: 32px;
      height: 32px;
      background: rgba(249, 214, 123, .18);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      font-size: 14px;
      margin-bottom: 12px;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: rgba(255, 255, 255, .65);
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .breadcrumb a {
      color: rgba(255, 255, 255, .65);
      transition: var(--transition);
    }

    .breadcrumb a:hover {
      color: var(--accent);
    }

    .breadcrumb-sep {
      font-size: 10px;
      color: rgba(255, 255, 255, .35);
    }

    .breadcrumb-current {
      color: var(--accent);
      font-weight: 600;
    }

    .banner-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(249, 214, 123, .18);
      border: 1px solid rgba(249, 214, 123, .45);
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 6px 16px;
      border-radius: 50px;
      margin-bottom: 16px;
      animation: heroEntrance .7s .1s cubic-bezier(.25, .46, .45, .94) both;
    }

    .banner-badge::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    .page-banner h1 {
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 800;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 16px;
      animation: heroEntrance .7s .25s cubic-bezier(.25, .46, .45, .94) both;
    }

    .page-banner h1 span {
      color: var(--accent);
    }

    .banner-desc {
      font-size: 16px;
      color: rgba(255, 255, 255, .75);
      max-width: 520px;
      line-height: 1.7;
      animation: heroEntrance .7s .4s cubic-bezier(.25, .46, .45, .94) both;
    }

    /* banner-stats removed — replaced by banner-stat-card grid */

    /* =================== BLOG LAYOUT =================== */
    .blog-section {
      background: #f5f8ff;
      padding: 64px 0 80px;
    }

    .blog-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 36px;
      align-items: start;
    }

    /* =================== FILTER TABS =================== */
    .blog-filter-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .filter-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--gray);
      margin-right: 4px;
    }

    .filter-tab {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      border-radius: 50px;
      font-size: 13px;
      font-weight: 600;
      border: 1.5px solid var(--border);
      background: var(--white);
      color: var(--gray);
      cursor: pointer;
      transition: var(--transition);
    }

    .filter-tab:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--light-gray);
    }

    .filter-tab.active {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .filter-tab .tab-count {
      font-size: 11px;
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 50px;
      background: rgba(255, 255, 255, .25);
    }

    .filter-tab:not(.active) .tab-count {
      background: var(--light-gray);
      color: var(--gray);
    }

    /* Empty state (no posts / empty category filter) */
    .blog-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 48px 24px;
      color: var(--gray);
      background: var(--white);
      border: 1px dashed var(--border);
      border-radius: var(--radius);
    }

    /* Newsletter inline feedback */
    .newsletter-note {
      margin-top: 10px;
      font-size: 13px;
      color: var(--white);
      position: relative;
      z-index: 1;
    }

    .newsletter-note.is-error {
      color: #ffd7d7;
    }

    /* =================== BLOG CARDS GRID =================== */
    .blog-cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .blog-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    /* Beat the legacy parent-theme `.blog-card { width: calc(33.33% - 27px) }`
       in style.css (single-class, no width here) — let grid tracks size cards. */
    .blog-cards-grid .blog-card {
      width: auto;
      text-align: left;
    }

    .blog-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-5px);
      border-color: var(--primary);
    }

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

    .blog-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .5s ease;
    }

    .blog-card:hover .blog-thumb img {
      transform: scale(1.06);
    }

    .blog-cat-tag {
      position: absolute;
      top: 14px;
      left: 14px;
      padding: 4px 12px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .blog-cat-tag.neet {
      background: #E3F2FD;
      color: #1565C0;
    }

    .blog-cat-tag.jee {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .blog-cat-tag.nursing {
      background: #FCE4EC;
      color: #C62828;
    }

    .blog-cat-tag.guide {
      background: rgba(249, 214, 123, .3);
      color: #7B5800;
    }

    .blog-cat-tag.counseling {
      background: #EDE7F6;
      color: #4527A0;
    }

    .blog-read-time {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(0, 0, 0, .55);
      color: rgba(255, 255, 255, .9);
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 50px;
      backdrop-filter: blur(4px);
    }

    .blog-body {
      padding: 22px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .blog-meta-top {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 10px;
    }

    .blog-date {
      font-size: 12px;
      color: var(--gray);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .blog-date i {
      color: var(--primary);
      font-size: 11px;
    }

    .blog-card-title {
      font-family: var(--font-head);
      font-size: 16px;
      font-weight: 700;
      color: var(--dark);
      line-height: 1.4;
      margin-bottom: 10px;
      transition: var(--transition);
    }

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

    .blog-card-excerpt {
      font-size: 14px;
      color: var(--gray);
      line-height: 1.65;
      margin-bottom: 18px;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .blog-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      margin-top: auto;
    }

    .blog-author {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .blog-author-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border);
    }

    .blog-author-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--dark);
    }

    .blog-read-link {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 5px;
      transition: var(--transition);
    }

    .blog-read-link:hover {
      gap: 9px;
      color: var(--primary-dark);
    }

    .blog-read-link i {
      font-size: 11px;
    }

    /* =================== FEATURED BLOG CARD =================== */
    .blog-card.featured {
      grid-column: 1 / -1;
      flex-direction: row;
    }

    .blog-card.featured .blog-thumb {
      width: 380px;
      min-width: 380px;
      height: auto;
      flex-shrink: 0;
    }

    .blog-card.featured .blog-body {
      padding: 30px;
    }

    .blog-card.featured .blog-card-title {
      font-size: 20px;
    }

    .blog-card.featured .blog-card-excerpt {
      -webkit-line-clamp: 4;
    }

    .blog-featured-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(249, 214, 123, .2);
      border: 1px solid rgba(249, 214, 123, .5);
      color: #7B5800;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 50px;
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .blog-featured-badge i {
      color: var(--accent-dark);
    }

    /* =================== PAGINATION =================== */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 48px;
      flex-wrap: wrap;
    }

    .page-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      border: 1.5px solid var(--border);
      background: var(--white);
      color: var(--gray);
      cursor: pointer;
      transition: var(--transition);
    }

    .page-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--light-gray);
    }

    .page-btn.active {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .page-btn.nav-btn {
      width: auto;
      padding: 0 16px;
      gap: 6px;
      font-size: 13px;
    }

    .page-btn.nav-btn:disabled {
      opacity: .4;
      cursor: not-allowed;
    }

    .page-dots {
      color: var(--gray);
      font-weight: 700;
      padding: 0 4px;
    }

    /* =================== SIDEBAR =================== */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 28px;
    }

    .sidebar-widget {
      background: var(--white);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .widget-header {
      padding: 18px 22px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .widget-header h3 {
      font-family: var(--font-head);
      font-size: 15px;
      font-weight: 700;
      color: var(--dark);
    }

    .widget-header-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-sm);
      background: var(--light-gray);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 14px;
    }

    .widget-body {
      padding: 20px 22px;
    }

    /* Search */
    .search-form {
      position: relative;
    }

    .search-form input {
      width: 100%;
      padding: 11px 44px 11px 16px;
      border: 1.5px solid var(--border);
      border-radius: 50px;
      font-family: var(--font-body);
      font-size: 14px;
      color: var(--dark);
      background: var(--light-gray);
      outline: none;
      transition: var(--transition);
    }

    .search-form input:focus {
      border-color: var(--primary);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(21, 101, 192, .1);
    }

    .search-form input::placeholder {
      color: var(--gray);
    }

    .search-form button {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: var(--transition);
    }

    .search-form button:hover {
      background: var(--primary-dark);
    }

    /* Categories */
    .cat-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .cat-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 0;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
      color: var(--dark);
      cursor: pointer;
      transition: var(--transition);
    }

    .cat-item:last-child {
      border-bottom: none;
    }

    .cat-item:hover {
      color: var(--primary);
    }

    .cat-item-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cat-item-icon {
      width: 28px;
      height: 28px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    .cat-item-name {
      font-weight: 500;
    }

    .cat-count {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 50px;
      background: var(--light-gray);
      color: var(--gray);
    }

    .cat-item:hover .cat-count {
      background: rgba(21, 101, 192, .1);
      color: var(--primary);
    }

    /* Popular Posts */
    .popular-posts {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .popular-post {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      cursor: pointer;
      transition: var(--transition);
    }

    .popular-post:hover .popular-post-title {
      color: var(--primary);
    }

    .popular-post-thumb {
      width: 70px;
      height: 70px;
      border-radius: var(--radius-sm);
      object-fit: cover;
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .popular-post-info {
      flex: 1;
    }

    .popular-post-cat {
      font-size: 11px;
      font-weight: 700;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 4px;
    }

    .popular-post-title {
      font-family: var(--font-head);
      font-size: 13px;
      font-weight: 600;
      color: var(--dark);
      line-height: 1.4;
      margin-bottom: 5px;
      transition: var(--transition);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .popular-post-date {
      font-size: 11px;
      color: var(--gray);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* Tags */
    .tags-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag-pill {
      padding: 5px 14px;
      border-radius: 50px;
      font-size: 12px;
      font-weight: 500;
      border: 1.5px solid var(--border);
      background: var(--white);
      color: var(--gray);
      cursor: pointer;
      transition: var(--transition);
    }

    .tag-pill:hover {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);
    }

    /* Newsletter */
    .newsletter-widget {
      background: var(--primary);
      border-radius: var(--radius);
      padding: 28px 22px;
      position: relative;
      overflow: hidden;
    }

    .newsletter-widget::before {
      content: '';
      position: absolute;
      top: -60px;
      right: -60px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .1);
    }

    .newsletter-widget::after {
      content: '';
      position: absolute;
      bottom: -40px;
      left: -40px;
      width: 130px;
      height: 130px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .07);
    }

    .newsletter-icon {
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, .15);
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--accent);
      margin-bottom: 14px;
      position: relative;
      z-index: 1;
    }

    .newsletter-title {
      font-family: var(--font-head);
      font-size: 16px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 6px;
      position: relative;
      z-index: 1;
    }

    .newsletter-sub {
      font-size: 13px;
      color: rgba(255, 255, 255, .7);
      line-height: 1.5;
      margin-bottom: 18px;
      position: relative;
      z-index: 1;
    }

    .newsletter-form {
      position: relative;
      z-index: 1;
    }

    .newsletter-form input {
      width: 100%;
      padding: 11px 16px;
      border-radius: var(--radius-sm);
      border: none;
      font-family: var(--font-body);
      font-size: 14px;
      background: rgba(255, 255, 255, .15);
      color: var(--white);
      outline: none;
      margin-bottom: 10px;
      transition: var(--transition);
    }

    .newsletter-form input::placeholder {
      color: rgba(255, 255, 255, .55);
    }

    .newsletter-form input:focus {
      background: rgba(255, 255, 255, .25);
    }

    .newsletter-form .btn {
      width: 100%;
      justify-content: center;
      background: var(--accent);
      color: var(--primary);
      border-color: var(--accent);
      font-size: 14px;
      padding: 11px 20px;
      border-radius: var(--radius-sm);
    }

    .newsletter-form .btn:hover {
      background: var(--accent-dark);
    }

    /* =================== CTA MINI BANNER =================== */
    .cta-mini-widget {
      background: var(--primary-dark);
      border-radius: var(--radius);
      padding: 26px 22px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-mini-widget::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' stroke='rgba(255,255,255,0.04)' fill='none'/%3E%3C/svg%3E") repeat;
      background-size: 60px 60px;
    }

    .cta-mini-emoji {
      font-size: 32px;
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
    }

    .cta-mini-title {
      font-family: var(--font-head);
      font-size: 15px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 6px;
      position: relative;
      z-index: 1;
    }

    .cta-mini-sub {
      font-size: 13px;
      color: rgba(255, 255, 255, .65);
      line-height: 1.5;
      margin-bottom: 16px;
      position: relative;
      z-index: 1;
    }

    .cta-mini-widget .btn {
      font-size: 13px;
      padding: 10px 20px;
      width: 100%;
      justify-content: center;
      position: relative;
      z-index: 1;
    }

    /* =================== CTA SECTION =================== */
    .cta-section {
      position: relative;
      background: var(--primary-dark);
      padding: 0;
      overflow: visible;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: #f4f7fe;
      z-index: 0;
    }

    .cta-inner {
      position: relative;
      z-index: 1;
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: 1fr 280px 1fr;
      align-items: end;
      min-height: 360px;
    }

    .cta-left {
      padding-bottom: 30px;
      padding-right: 40px;
    }

    .cta-left h2 {
      font-family: var(--font-head);
      font-size: 24px;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 12px;
    }

    .cta-left p {
      font-size: 15px;
      color: rgba(255, 255, 255, .75);
      line-height: 1.7;
    }

    .cta-center-img {
      align-self: end;
      position: relative;
    }

    .cta-center-img img {
      width: 100%;
      max-height: 380px;
      object-fit: cover;
      object-position: top center;
      display: block;
      filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
    }

    .cta-quote-badge {
      position: absolute;
      top: 26.8%;
      right: -132%;
      background: #ffffff;
      color: var(--primary);
      padding: 20px 24px;
      border-radius: 30px 30px 0px 0px;
      font-family: var(--font-head);
      font-size: 16px;
      font-weight: 700;
      line-height: 1.5;
      max-width: 300px;
      text-align: center;
      z-index: 2;
    }

    .cta-right {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 360px;
      padding-left: 40px;
      padding-bottom: 48px;
    }

    .cta-follow h3 {
      font-family: var(--font-head);
      font-size: 26px;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 16px;
    }

    .cta-social-row {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .cta-social-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: var(--transition);
    }

    .cta-social-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(249, 214, 123, .4);
    }

    /* =================== ANIMATIONS =================== */
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translate3d(0, 60px, 0);
      }

      100% {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes fadeInLeft {
      0% {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
      }

      100% {
        opacity: 1;
        transform: translateZ(0);
      }
    }

    @keyframes fadeInRight {
      0% {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
      }

      100% {
        opacity: 1;
        transform: translateZ(0);
      }
    }

    @keyframes fadeIn {
      0% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    @keyframes zoomIn {
      0% {
        opacity: 0;
        transform: scale3d(0.55, 0.55, 0.55);
      }

      100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
      }
    }

    @keyframes moveBounce {
      0% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(22px);
      }

      100% {
        transform: translateY(0);
      }
    }

    @keyframes floatVertical {

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

      50% {
        transform: translateY(-22px);
      }
    }

    @keyframes heroEntrance {
      0% {
        opacity: 0;
        transform: translateY(30px);
      }

      100% {
        opacity: 1;
        transform: none;
      }
    }

    .sp-anim {
      will-change: opacity, transform;
    }

    .sp-anim.sp-visible {
      animation-fill-mode: both;
      animation-timing-function: cubic-bezier(.25, .46, .45, .94);
      animation-duration: .75s;
    }

    .sp-anim[data-anim="fadeInUp"].sp-visible {
      animation-name: fadeInUp;
    }

    .sp-anim[data-anim="fadeInLeft"].sp-visible {
      animation-name: fadeInLeft;
    }

    .sp-anim[data-anim="fadeInRight"].sp-visible {
      animation-name: fadeInRight;
    }

    .sp-anim[data-anim="zoomIn"].sp-visible {
      animation-name: zoomIn;
    }

    .sp-anim[data-anim="fadeIn"].sp-visible {
      animation-name: fadeIn;
    }

    .float-shape {
      position: absolute;
      pointer-events: none;
      z-index: 0;
      animation-iteration-count: infinite;
      animation-timing-function: ease-in-out;
    }

    .float-shape.anim-bounce {
      animation-name: moveBounce;
      animation-duration: 4.5s;
    }

    .float-shape.anim-float {
      animation-name: floatVertical;
      animation-duration: 5s;
    }

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

      .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
      }

      .sidebar .newsletter-widget,
      .sidebar .cta-mini-widget {
        grid-column: 1 / -1;
      }

      .cta-inner {
        grid-template-columns: 1fr 220px 1fr;
        min-height: 280px;
      }

      .cta-center-img img {
        max-height: 300px;
      }
    }

    @media (max-width: 768px) {
      .blog-cards-grid {
        grid-template-columns: 1fr;
      }

      .blog-card.featured {
        flex-direction: column;
      }

      .blog-card.featured .blog-thumb {
        width: 100%;
        min-width: unset;
        height: 220px;
      }

      .banner-inner {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .banner-right {
        grid-template-columns: repeat(4, 1fr);
      }

      .top-bar-right {
        display: none;
      }

      .sidebar {
        grid-template-columns: 1fr;
      }

      .cta-inner {
        grid-template-columns: 1fr;
        min-height: unset;
        padding: 40px 24px;
      }

      .cta-section::before {
        display: none;
      }

      .cta-section {
        background: var(--primary-dark);
      }

      .cta-left {
        padding-right: 0;
        padding-bottom: 24px;
        order: 2;
      }

      .cta-center-img {
        order: 1;
        text-align: center;
      }

      .cta-center-img img {
        max-height: 260px;
        width: auto;
        margin: 0 auto;
        filter: none;
      }

      .cta-right {
        order: 3;
        min-height: unset;
        padding-left: 0;
        padding-bottom: 24px;
      }

      .cta-quote-badge {
        position: static;
        right: auto;
        margin-top: 0;
        max-width: 100%;
      }

    }

    @media (max-width: 480px) {

      .cta-quote-badge,
      section#cta-connect .cta-center-img img,
      .d-none-480 {
        display: none;
      }

      .cta-right {
        padding-bottom: 0;
        text-align: center;
      }

      .cta-left {
        text-align: center;
      }

      .filter-tab {
        font-size: 12px;
        padding: 7px 14px;
      }

      .banner-right {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .pagination {
        gap: 6px;
      }

      .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
      }
    }
