  /* ================= BLOG WRAPPER BACKGROUND ================= */

  /* ===== Recent Post Card ===== */

  .recent-post-card {
    border-radius: 14px;
    transition: all .3s ease;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden; /* important */
}


  .recent-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  }  

  /* Image */

  .recent-post-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

  /* Body */

  .recent-post-body {
    padding: 25px 30px;
  }

  .blog-date {
    font-size: 13px;
    color: #489FDA;
    font-weight: 600;
  }

  .blog-title {
    font-size: 22px;
    font-weight: 600;  
    color: #111;
  }

  .blog-desc {
    font-size: 15px;
    color: #666;
    margin: 12px 0 18px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .recent-post-body .btn {
    transition: 0.3s;
  }

  .recent-post-body .btn:hover {
    background: #489fda;
    border-color: #489fda;
  }

  /* ===== MOBILE BLOG LIST ===== */

  @media (max-width: 768px) {
    .recent-post-img {
      height: 200px;
      border-radius: 10px 10px 0 0;
    }

    .recent-post-body {
      padding: 20px;
    }

    .blog-title {
      font-size: 18px;
    }

    .blog-desc {
      font-size: 14px;
    }
  }

  /* ================= WEEKLY SECTION ================= */

  .weekly-section {
    margin-top: 60px;
  }

  .weekly-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  /* Weekly Card */
  .weekly-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .weekly-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
  }

  .weekly-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  }

  .weekly-card:hover img {
    transform: scale(1.08);
  }

  .weekly-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95),
      rgba(0, 0, 0, 0.2),
      transparent
    );
  }

  .weekly-overlay h4 {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Change Swiper default blue */
  :root {
    --swiper-theme-color: #489fda;
  }

  /* ===== FULL WIDTH FEATURED SECTION ===== */
  .recentSwiper {
    width: 100%;
    padding: 80px 0;
  }

  .recent-layout {
    display: flex;
    align-items: stretch;
    width: 95%;
    /* Almost full width */
    max-width: 1600px;
    /* Large screen support */
    margin: auto;
    gap: 0;
    /* Remove gap for seamless look */
    background: #eef1e6;
    border-radius: 24px;
    overflow: hidden;
  }

  /* LEFT IMAGE */
  .recent-image {
    flex: 1.3;
  }

  .recent-image img {
    width: 100%;
    /* Bigger hero image */
    object-fit: cover;
    display: block;
  }

  /* RIGHT CONTENT */
  .recent-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Meta */
  .recent-meta {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
  }

  /* Title */
  .recent-content h2 {
    /* Large hero title */
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
    color: #111;
  }

  /* Description */
  .recent-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-top: 25px;
  }

  /* Tags */
  .recent-tags span {
    display: inline-block;
    background: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 12px;
  }

  /* Button */
  .recent-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: 0.3s;
  }

  .recent-btn:hover {
    background: #489fda;
  }

  .recent-image img {
    height: 420px;
    /* was 600px */
  }

  /* Reduce content padding */
  .recent-content {
    padding: 60px 60px;
    /* was 80px 70px */
  }

  /* Slightly smaller title (optional for better balance) */
  .recent-content h2 {
    font-size: 34px;
    /* was 42px */
  }

  /* Position */
  .recent-next,
  .recent-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    background: none;
    /* no circle */
  }

  /* Placement */
  .recent-prev {
    left: 30px;
  }

  .recent-next {
    right: 30px;
  }

  /* Arrow Icons */
  .recent-next::after,
  .recent-prev::after {
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    transition: 0.3s ease;
  }

  /* Use clean arrow characters */
  .recent-next::after {
    content: "›";
  }

  .recent-prev::after {
    content: "‹";
  }

  /* Hover */
  .recent-next:hover::after,
  .recent-prev:hover::after {
    color: #489fda;
    transform: scale(1.2);
  }

  /* ================= RESPONSIVE ================= */

  /* ===========================
   TABLET (≤1024px)
=========================== */
  @media (max-width: 1024px) {
    /* Heading */
    .blog-heading {
      font-size: 36px;
      text-align: center;
    }

    /* Featured Layout */
    .recent-layout {
      flex-direction: column;
      width: 95%;
    }

    .recent-image img {
      height: 380px;
    }

    .recent-content {
      height: auto;
      padding: 40px;
    }

    .recent-content h2 {
      font-size: 28px;
    }

    .recent-content p {
      font-size: 16px;
    }

    /* Weekly Grid → 2 Columns */
    .weekly-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    /* Blog Cards */
    .blog-card img {
      height: 300px;
    }
  }

  /* ===========================
   MOBILE (≤768px)
=========================== */
  @media (max-width: 768px) {
    /* Wrapper Padding */
    .blog-wrapper {
      padding: 40px 0;
    }

    /* Heading */
    .blog-heading {
      font-size: 28px;
      text-align: center;
    }

    /* Featured Section */
    .recentSwiper {
      padding: 40px 0;
    }

    .recent-layout {
      border-radius: 16px;
    }

    .recent-image img {
      height: 250px;
    }

    .recent-content {
      padding: 25px;
    }

    .recent-content h2 {
      font-size: 22px;
    }

    .recent-content p {
      font-size: 14px;
      line-height: 1.6;
    }

    .recent-btn {
      padding: 10px 20px;
      font-size: 14px;
    }

    /* Weekly Grid → 1 Column */
    .weekly-grid {
      grid-template-columns: 1fr;
    }

    .weekly-card img {
      height: 220px;
    }

    /* Blog Cards */
    .blog-card img {
      height: 220px;
    }

    .blog-overlay {
      padding: 18px;
    }

    .blog-overlay h3 {
      font-size: 16px;
    }
  }

  @media (max-width: 768px) {
    .recent-next::after,
    .recent-prev::after {
      font-size: 50px;
    }

    .recent-prev {
      left: 10px;
    }

    .recent-next {
      right: 10px;
    }
  }

  /* ===========================
   SMALL MOBILE (≤480px)
=========================== */
  @media (max-width: 480px) {
    .recent-image img {
      height: 200px;
    }

    .recent-content h2 {
      font-size: 20px;
    }

    .recent-content p {
      font-size: 13px;
    }

    .recent-tags span {
      font-size: 12px;
      padding: 6px 12px;
    }

    .recent-btn {
      width: 100%;
      text-align: center;
    }
  }

  /* ================= DETAIL PAGE MAIN CONTENT ================= */
  .detail-section {
    padding: 100px 0;
    position: relative;
    background: url("../img/background.png") center center / cover no-repeat;
  }

  /* Dark Overlay */
  .detail-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* overlay darkness */
    z-index: 1;
  }

  /* container */
  .detail-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
  }

  /* ---------------- ARTICLE ---------------- */
  .detail-article {
    flex: 1 1 65%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    color: #ccc;
  }

  /* FIXED IMAGE */
  .detail-article img.detail-feature-image {
    width: 100%;
    height: 400px;
    display: block;
    margin-bottom: 30px;

    /* Only two sides rounded */
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;

    object-fit: cover;
  }

  /* Headings */
  .detail-article h3 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    color: #489fda;
  }

  /* Paragraph */
  .detail-article p {
    font-size: 1rem;
    line-height: 1.9;
    color: #faf4f4;
    margin-bottom: 15px;
  }

  /* List */
  .detail-article ul.detail-list {
    list-style: disc inside;
    padding-left: 0;
    margin-bottom: 25px;
    color: #faf4f4;
  }

  .detail-article ul.detail-list li {
    margin-bottom: 10px;
  }

  /* ---------------- SIDEBAR ---------------- */
  .detail-sidebar {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .detail-sidebar .sidebar-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #489fda;
  }

  /* Sidebar cards */
  .detail-sidebar .sidebar-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    cursor: pointer;
  }

  .detail-sidebar .sidebar-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 140, 0, 0.08);
  }

  .detail-sidebar .sidebar-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
  }

  .detail-sidebar .sidebar-item div h6 {
    font-size: 1rem;
    margin: 0 0 5px;
    color: #fff;
  }

  .detail-sidebar .sidebar-item div span {
    font-size: 0.85rem;
    color: #aaa;
  }

  /* ================= BLOG DETAIL HERO ================= */

  .blog-detail-hero {
    position: relative;
    padding: 90px 0;
    /* smaller height */
    background: url("../img/banner.png") center center / cover no-repeat;
    display: flex;
    align-items: center;
  }

  /* Dark overlay */
  .blog-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  /* Keep content above overlay */
  .blog-detail-hero .container {
    position: relative;
    z-index: 2;
  }

  /* Title styling */
  .blog-detail-hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    max-width: 700px;
    padding-top: 10vh;
    padding-left: 15vh;
  }
}

/* ================= RESPONSIVE - TABLET ================= */
@media (max-width: 991px) {
  /* Layout stack */
  .detail-container {
    flex-direction: column;
  }

  .detail-article,
  .detail-sidebar {
    flex: 1 1 100%;
  }

  /* Image height adjust */
  .detail-article img.detail-feature-image {
    height: 300px;
  }

  /* Hero adjustments */
  .blog-detail-hero {
    padding: 70px 0;
    text-align: center;
  }

  .blog-detail-hero-title {
    font-size: 26px;
    padding: 0;
    margin: 0 auto;
  }
}

/* ================= RESPONSIVE - MOBILE ================= */
@media (max-width: 576px) {
  /* Section padding smaller */
  .detail-section {
    padding: 60px 15px;
  }

  .detail-article {
    padding: 25px;
  }

  /* Image full auto height */
  .detail-article img.detail-feature-image {
    height: 220px;
  }

  /* Sidebar cards stack */
  .detail-sidebar .sidebar-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-sidebar .sidebar-item img {
    width: 100%;
    height: auto;
  }

  /* Hero */
  .blog-detail-hero {
    padding: 60px 0;
  }

  .blog-detail-hero-title {
    font-size: 20px;
    line-height: 1.5;
    padding: 0 15px;
  }
}

/* BLOG SEARCH */
/* BLOG SEARCH */
.blog-search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 15px; /* important for mobile side spacing */
}

.blog-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.blog-search-form:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Input */
.blog-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 50px;
    min-width: 0; /* prevents overflow issue */
}

.blog-search-form input::placeholder {
    color: #999;
}

/* Button */
.blog-search-form button {
    background: #489FDA; /* your new blue */
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover - darker blue */
.blog-search-form button:hover {
    background: #2f7fc2; /* darker blue */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 159, 218, 0.4);
}

/* ================= MOBILE VIEW ================= */
@media (max-width: 576px) {

    .blog-search-form {
        flex-direction: column;
        background: transparent;   /* remove white container */
        box-shadow: none;          /* remove box shadow */
        border: none;              /* remove border */
        padding: 0;
        gap: 12px; 
    }

    .blog-search-form input {
        width: 100%;
        background: #ffffff;
        border-radius: 50px;
        padding: 14px 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
        border: 1px solid #eee;
    }

    .blog-search-form button {
        width: 100%;
        border-radius: 50px;
        padding: 14px;
        font-size: 15px;
    }

    .btn-dark {
        display: block;
        margin: 15px auto 0 auto; /* centers horizontally */
        text-align: center;
        width: fit-content; /* keeps natural button size */
    }
}

.blog-search-form:focus-within {
    border: 1px solid #489FDA;
    box-shadow: 0 0 0 4px rgba(72, 159, 218, 0.15);
}