@charset "utf-8";
/* CSS Document */
/* Blog Hero Banner */
    .blog-hero {
      position: relative;
      background: linear-gradient(135deg, rgba(0, 109, 51, 0.92), rgba(0, 79, 38, 0.95)), url('assets/blogs-banner.jpg') center/cover no-repeat;
      color: #ffffff;
      padding: 60px 0;
      text-align: center;
      border-bottom: 3px solid var(--red);
    }
    .blog-hero h1 {
      font-family: var(--heading);
      font-size: 42px;
      margin: 0 0 12px;
      font-weight: 700;
    }
    .blog-hero p {
      font-size: 18px;
      max-width: 650px;
      margin: 0 auto 24px;
      color: #e2f3e9;
    }
    .blog-search-box {
      max-width: 520px;
      margin: 0 auto;
      display: flex;
      background: #ffffff;
      border-radius: 30px;
      padding: 5px 8px 5px 20px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    .blog-search-box input {
      border: none;
      outline: none;
      width: 100%;
      font-size: 15px;
      color: var(--ink);
    }
    .blog-search-box button {
      background: var(--red);
      color: #fff;
      border: none;
      padding: 10px 22px;
      border-radius: 25px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .blog-search-box button:hover {
      background: var(--red-deep);
    }

    /* Filter Category Pills */
    .blog-filter-sec {
      padding: 24px 0 10px;
      background: #f8fbf9;
    }
    .blog-filters {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .filter-btn {
      background: #ffffff;
      border: 1px solid var(--line);
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.25s ease;
    }
    .filter-btn:hover,
    .filter-btn.active {
      background: var(--green);
      color: #ffffff;
      border-color: var(--green);
      box-shadow: 0 4px 12px rgba(0, 109, 51, 0.2);
    }

    /* Main Blog Layout */
    .blog-section {
      padding: 40px 0 60px;
      background: #f8fbf9;
    }
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 30px;
    }

    /* Block 1: Featured Post (Spans 12 columns) */
    .blog-card.featured {
      grid-column: span 12;
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      background: #ffffff;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: 0 12px 30px rgba(0,0,0,0.06);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .blog-card.featured:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 36px rgba(0,0,0,0.1);
    }
    .blog-card.featured .card-img-wrap {
      height: 100%;
      min-height: 340px;
      position: relative;
    }
    .blog-card.featured img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Blocks 2, 3, 4 Cards (Spans 4 columns each) */
    .blog-card.standard {
      grid-column: span 4;
      background: #ffffff;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: 0 8px 24px rgba(0,0,0,0.04);
      display: flex;
      flex-direction: column;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .blog-card.standard:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    }
    .blog-card.standard .card-img-wrap {
      height: 220px;
      position: relative;
      overflow: hidden;
    }
    .blog-card.standard img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .blog-card.standard:hover img {
      transform: scale(1.05);
    }

    /* Video Post Embed Specific Styling */
    .blog-card.video-card .video-wrapper {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
      height: 0;
      overflow: hidden;
      background: #000;
    }
    .blog-card.video-card .video-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* Common Card Content Styling */
    .card-body {
      padding: 26px 24px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      font-size: 12.5px;
      color: var(--muted);
    }
    .badge {
      background: var(--green-soft);
      color: var(--green);
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .badge.red {
      background: #fde8e8;
      color: var(--red);
    }
    .badge.video {
      background: #eef2ff;
      color: #3b82f6;
    }
    .card-title {
      font-size: 20px;
      line-height: 1.35;
      margin: 0 0 12px;
      color: var(--ink);
      font-weight: 700;
    }
    .blog-card.featured .card-title {
      font-size: 26px;
    }
    .card-text {
      font-size: 14.5px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 20px;
      flex-grow: 1;
    }
    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #f0f4f2;
      padding-top: 16px;
      margin-top: auto;
    }
    .read-more-link {
      color: var(--red);
      font-weight: 700;
      font-size: 13.5px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }
    .read-more-link svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
      transition: transform 0.2s ease;
    }
    .read-more-link:hover svg {
      transform: translateX(4px);
    }

    /* Article Reader Modal */
    .article-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0,0,0,0.65);
      backdrop-filter: blur(4px);
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .article-modal.is-open {
      display: flex;
    }
    .article-modal-content {
      background: #ffffff;
      width: min(100%, 820px);
      max-height: 88vh;
      overflow-y: auto;
      border-radius: 12px;
      padding: 35px 40px;
      position: relative;
      box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    }
    .article-modal-content h2 {
      font-family: var(--heading);
      font-size: 30px;
      margin: 15px 0 10px;
      color: var(--ink);
    }
    .article-modal-content img {
      width: 100%;
      max-height: 360px;
      object-fit: cover;
      border-radius: 8px;
      margin: 15px 0 20px;
    }
    .article-modal-content p {
      font-size: 15.5px;
      line-height: 1.75;
      color: #333;
      margin-bottom: 16px;
    }

    /* Responsive Adjustments */
    @media (max-width: 1024px) {
      .blog-card.featured {
        grid-template-columns: 1fr;
      }
      .blog-card.featured .card-img-wrap {
        height: 260px;
        min-height: auto;
      }
      .blog-card.standard {
        grid-column: span 6;
      }
    }

    @media (max-width: 680px) {
      .blog-hero h1 {
        font-size: 30px;
      }
      .blog-card.standard {
        grid-column: span 12;
      }
      .article-modal-content {
        padding: 25px 20px;
      }
    }
