/* ═══════════════════════════════════════════════════════════
 *  css/pages/blog.css — Land of Profits
 *  Page-specific styles for blog.html.
 * ═══════════════════════════════════════════════════════════ */

/* ═══ VARIABLES ══════════════════════════════════════════════════════════ */
      
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        font-family: var(--sans);
        background: var(--cream);
        color: var(--ink);
        font-size: 15px;
        line-height: 1.6;
        overflow-x: hidden;
      }
      a {
        text-decoration: none;
        color: inherit;
      }

      /* ═══ HERO ════════════════════════════════════════════════════════════════ */
      .page-hero {
        background: linear-gradient(150deg, var(--navy) 0%, #0a1520 55%, #1a2c1a 100%);
        padding: 148px 40px 80px;
        position: relative;
        overflow: hidden;
      }
      .page-hero-pat {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: repeating-linear-gradient(
          45deg,
          rgba(201, 169, 110, 0.03) 0,
          rgba(201, 169, 110, 0.03) 1px,
          transparent 0,
          transparent 50%
        );
        background-size: 28px 28px;
      }
      .page-hero-glow {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
        top: -200px;
        right: -100px;
        pointer-events: none;
      }
      .page-hero-inner {
        position: relative;
        z-index: 1;
        max-width: 1160px;
        margin: 0 auto;
      }
      .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(201, 169, 110, 0.1);
        border: 1px solid rgba(201, 169, 110, 0.25);
        color: var(--gold);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 7px 18px;
        border-radius: 30px;
        margin-bottom: 24px;
      }
      .hero-eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--gold);
      }
      .page-hero h1 {
        font-family: var(--serif);
        font-size: clamp(42px, 6vw, 72px);
        font-weight: 600;
        color: #fff;
        line-height: 1.1;
        margin-bottom: 20px;
        letter-spacing: -0.5px;
      }
      .page-hero h1 em {
        color: var(--gold);
        font-style: italic;
      }
      .page-hero-sub {
        font-size: 17px;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 300;
        max-width: 540px;
        line-height: 1.8;
      }

      /* ═══ SEARCH BAR ══════════════════════════════════════════════════════════ */
      .search-bar-wrap {
        background: var(--white);
        border-bottom: 1px solid var(--fog);
        padding: 18px 40px;
        position: sticky;
        top: 68px;
        z-index: 100;
      }
      .search-bar-inner {
        max-width: 1160px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
      }
      .search-input-wrap {
        flex: 1;
        min-width: 240px;
        position: relative;
      }
      .search-input-wrap svg {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        stroke: var(--slate);
        fill: none;
        stroke-width: 2;
        pointer-events: none;
      }
      .search-input {
        width: 100%;
        padding: 10px 14px 10px 42px;
        border: 1.5px solid var(--fog);
        border-radius: var(--r12);
        font-family: var(--sans);
        font-size: 14px;
        color: var(--ink);
        outline: none;
        transition: 0.2s;
        background: var(--cream);
      }
      .search-input:focus {
        border-color: var(--gold);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
      }
      .search-input::placeholder {
        color: var(--slate);
      }
      .cat-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .cat-btn {
        padding: 8px 16px;
        border-radius: 20px;
        border: 1.5px solid var(--fog);
        background: var(--white);
        font-family: var(--sans);
        font-size: 12.5px;
        font-weight: 500;
        color: var(--slate);
        cursor: pointer;
        transition: 0.2s;
        white-space: nowrap;
      }
      .cat-btn:hover {
        border-color: var(--gold-dark);
        color: var(--gold-dark);
      }
      .cat-btn.active {
        border-color: var(--gold);
        background: var(--gold);
        color: var(--navy);
        font-weight: 600;
      }
      .results-count {
        font-size: 13px;
        color: var(--slate);
        white-space: nowrap;
        margin-left: auto;
      }
      .results-count strong {
        color: var(--ink);
      }

      /* ═══ LAYOUT ══════════════════════════════════════════════════════════════ */
      .blog-layout {
        max-width: 1160px;
        margin: 0 auto;
        padding: 52px 40px 80px;
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 52px;
        align-items: start;
      }

      /* ═══ FEATURED POST ═══════════════════════════════════════════════════════ */
      .featured-post {
        background: var(--white);
        border-radius: var(--r20);
        overflow: hidden;
        border: 1px solid var(--fog);
        margin-bottom: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        transition: 0.25s;
        cursor: pointer;
      }
      .featured-post:hover {
        box-shadow: 0 20px 56px rgba(13, 27, 46, 0.1);
        transform: translateY(-3px);
        border-color: rgba(201, 169, 110, 0.3);
      }
      .featured-img {
        min-height: 340px;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, var(--navy) 0%, #162236 50%, #1a2c1a 100%);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .featured-img-emoji {
        font-size: 72px;
        opacity: 0.9;
      }
      .featured-badge {
        position: absolute;
        top: 20px;
        left: 20px;
        background: var(--gold);
        color: var(--navy);
        font-size: 11px;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 20px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
      }
      .featured-body {
        padding: 36px 36px 32px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .post-cat {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--gold-dark);
        margin-bottom: 12px;
      }
      .featured-body h2 {
        font-family: var(--serif);
        font-size: 28px;
        font-weight: 600;
        color: var(--navy);
        line-height: 1.25;
        margin-bottom: 14px;
      }
      .featured-body p {
        font-size: 14.5px;
        color: var(--slate);
        line-height: 1.8;
        font-weight: 300;
        flex: 1;
        margin-bottom: 24px;
      }
      .post-meta {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
      }
      .post-author {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .post-author-av {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        flex-shrink: 0;
      }
      .post-author-name {
        font-size: 12.5px;
        font-weight: 500;
        color: var(--ink);
      }
      .post-date {
        font-size: 12px;
        color: var(--slate);
      }
      .post-read {
        font-size: 12px;
        color: var(--slate);
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .post-read svg {
        width: 13px;
        height: 13px;
        stroke: var(--slate);
        fill: none;
        stroke-width: 2;
      }
      .read-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: var(--gold-dark);
        transition: 0.2s;
        margin-top: 4px;
      }
      .read-more svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.5;
        transition: transform 0.2s;
      }
      .read-more:hover {
        color: var(--gold);
      }
      .read-more:hover svg {
        transform: translateX(3px);
      }

      /* ═══ POSTS GRID ══════════════════════════════════════════════════════════ */
      .posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }
      .post-card {
        background: var(--white);
        border-radius: var(--r20);
        overflow: hidden;
        border: 1px solid var(--fog);
        transition: 0.25s;
        cursor: pointer;
        display: flex;
        flex-direction: column;
      }
      .post-card:hover {
        box-shadow: 0 12px 40px rgba(13, 27, 46, 0.09);
        transform: translateY(-3px);
        border-color: rgba(201, 169, 110, 0.25);
      }
      .post-card-img {
        height: 180px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .post-card-img-emoji {
        font-size: 44px;
      }
      .post-card-cat-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        font-size: 10.5px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        letter-spacing: 0.4px;
      }
      .post-card-body {
        padding: 20px 22px 22px;
        flex: 1;
        display: flex;
        flex-direction: column;
      }
      .post-card-body h3 {
        font-family: var(--serif);
        font-size: 19px;
        font-weight: 600;
        color: var(--navy);
        line-height: 1.3;
        margin-bottom: 10px;
      }
      .post-card-body p {
        font-size: 13.5px;
        color: var(--slate);
        line-height: 1.75;
        font-weight: 300;
        flex: 1;
        margin-bottom: 16px;
      }
      .post-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid var(--fog);
        margin-top: auto;
      }
      .post-card-meta {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .post-card-av {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        font-weight: 700;
        flex-shrink: 0;
      }

      /* ═══ LOAD MORE ═══════════════════════════════════════════════════════════ */
      .load-more-wrap {
        text-align: center;
        margin-top: 40px;
      }
      .btn-load-more {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 13px 32px;
        border: 2px solid var(--fog);
        border-radius: var(--r12);
        font-family: var(--sans);
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
        cursor: pointer;
        transition: 0.2s;
        background: var(--white);
      }
      .btn-load-more:hover {
        border-color: var(--gold);
        color: var(--gold-dark);
        background: var(--sand);
      }
      .btn-load-more svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
      }

      /* ═══ SIDEBAR ════════════════════════════════════════════════════════════ */
      .sidebar {
        position: sticky;
        top: 140px;
        display: flex;
        flex-direction: column;
        gap: 28px;
      }
      .sidebar-card {
        background: var(--white);
        border-radius: var(--r20);
        border: 1px solid var(--fog);
        overflow: hidden;
      }
      .sidebar-card-head {
        padding: 18px 20px 14px;
        border-bottom: 1px solid var(--fog);
      }
      .sidebar-card-head h4 {
        font-family: var(--serif);
        font-size: 17px;
        font-weight: 600;
        color: var(--navy);
      }
      .sidebar-card-body {
        padding: 16px 20px 20px;
      }

      /* Newsletter */
      .newsletter-card {
        background: linear-gradient(135deg, var(--navy), #162236);
        border: none;
      }
      .newsletter-card .sidebar-card-head {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .newsletter-card .sidebar-card-head h4 {
        color: #fff;
      }
      .newsletter-card .sidebar-card-body p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        line-height: 1.65;
        margin-bottom: 14px;
      }
      .nl-input {
        width: 100%;
        padding: 10px 14px;
        border: 1.5px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--r6);
        font-family: var(--sans);
        font-size: 13px;
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        outline: none;
        margin-bottom: 10px;
        transition: 0.2s;
      }
      .nl-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
      }
      .nl-input:focus {
        border-color: var(--gold);
        background: rgba(201, 169, 110, 0.06);
      }
      .btn-nl {
        width: 100%;
        padding: 11px;
        background: var(--gold);
        border: none;
        border-radius: var(--r6);
        font-family: var(--sans);
        font-size: 13.5px;
        font-weight: 600;
        color: var(--navy);
        cursor: pointer;
        transition: 0.2s;
      }
      .btn-nl:hover {
        background: var(--gold2);
      }

      /* Categories */
      .cat-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }
      .cat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 12px;
        border-radius: var(--r6);
        cursor: pointer;
        transition: 0.15s;
      }
      .cat-item:hover {
        background: var(--sand);
      }
      .cat-item.active {
        background: rgba(201, 169, 110, 0.1);
      }
      .cat-item-left {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13.5px;
        color: var(--ink);
        font-weight: 400;
      }
      .cat-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      .cat-item-count {
        font-size: 11.5px;
        color: var(--slate);
        background: var(--fog);
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 500;
      }

      /* Popular posts */
      .popular-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .popular-item {
        display: flex;
        gap: 12px;
        cursor: pointer;
        padding: 8px;
        border-radius: var(--r6);
        transition: 0.15s;
        margin: -8px;
      }
      .popular-item:hover {
        background: var(--sand);
      }
      .popular-num {
        font-family: var(--serif);
        font-size: 22px;
        font-weight: 700;
        color: var(--fog);
        line-height: 1;
        flex-shrink: 0;
        width: 24px;
      }
      .popular-item:hover .popular-num {
        color: var(--gold);
      }
      .popular-title {
        font-size: 13px;
        font-weight: 500;
        color: var(--navy);
        line-height: 1.5;
        margin-bottom: 4px;
      }
      .popular-meta {
        font-size: 11.5px;
        color: var(--slate);
      }

      /* Tags */
      .tags-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .tag-chip {
        padding: 6px 13px;
        border-radius: 20px;
        border: 1.5px solid var(--fog);
        font-size: 12.5px;
        color: var(--slate);
        cursor: pointer;
        transition: 0.2s;
      }
      .tag-chip:hover {
        border-color: var(--gold);
        color: var(--gold-dark);
        background: rgba(201, 169, 110, 0.06);
      }

      /* ═══ NO RESULTS ══════════════════════════════════════════════════════════ */
      .no-results {
        text-align: center;
        padding: 60px 24px;
        display: none;
      }
      .no-results-icon {
        font-size: 48px;
        margin-bottom: 16px;
      }
      .no-results h3 {
        font-family: var(--serif);
        font-size: 22px;
        color: var(--navy);
        margin-bottom: 8px;
      }
      .no-results p {
        font-size: 14px;
        color: var(--slate);
        font-weight: 300;
      }

      /* ─── FOOTER ──────────────────────────────────────────────── */
      footer {
        background: var(--navy);
        padding: 72px 5% 0;
        border-top: 1px solid rgba(201, 169, 110, 0.12);
      }
      .footer-inner {
        max-width: 1240px;
        margin: 0 auto;
      }
      .footer-top {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 48px;
        padding-bottom: 56px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }
      .footer-brand p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1.75;
        margin-top: 16px;
        font-weight: 300;
        max-width: 260px;
      }
      .footer-social {
        display: flex;
        gap: 10px;
        margin-top: 24px;
      }
      .social-btn {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.4);
        transition: all 0.15s;
        cursor: pointer;
      }
      .social-btn:hover {
        border-color: var(--gold);
        color: var(--gold);
      }
      .social-btn svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
      }
      .footer-col h5 {
        font-size: 11px;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.25);
        font-weight: 500;
        margin-bottom: 20px;
      }
      .footer-col a {
        display: block;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 11px;
        transition: color 0.15s;
        font-weight: 300;
      }
      .footer-col a:hover {
        color: rgba(255, 255, 255, 0.85);
      }
      .footer-bottom {
        padding: 24px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
      }
      .footer-bottom p {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.25);
      }
      .footer-reg {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.2);
      }
      .footer-badges {
        display: flex;
        gap: 8px;
      }
      .fbadge {
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 5px;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.3);
        letter-spacing: 0.5px;
      }

      /* ═══ ANIMATIONS ══════════════════════════════════════════════════════════ */
      .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition:
          opacity 0.6s ease,
          transform 0.6s ease;
      }
      .fade-up.visible {
        opacity: 1;
        transform: none;
      }

      /* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ */
      @media (max-width: 1024px) {
        .blog-layout {
          grid-template-columns: 1fr;
        }
        .sidebar {
          position: static;
        }
        .featured-post {
          grid-template-columns: 1fr;
        }
        .featured-img {
          min-height: 240px;
        }
      }
      @media (max-width: 768px) {
        nav {
          padding: 0 20px;
        }
        .nav-links {
          display: none;
        }
        .page-hero {
          padding: 120px 24px 60px;
        }
        .search-bar-wrap {
          padding: 14px 24px;
        }
        .blog-layout {
          padding: 36px 24px 60px;
        }
        .posts-grid {
          grid-template-columns: 1fr;
        }
        .footer-top {
          grid-template-columns: 1fr 1fr;
          gap: 32px;
        }
      }