/*
Theme Name:  Frugal Nest Hub
Description: Discover smart, practical frugal living tips to save money, simplify your life, and build financial peace—perfect for families, students, and everyday dreamers.
Version: 1.0
Author: Abdelghafour
*/

 .pg-container {
    max-width: 1160px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: "Segoe UI", sans-serif;
    color: #2e4600;
    line-height: 1.7;
  }

  .pg-title {
    text-align: center;
    font-size: 36px;
    color: #3A5F0B;
    margin-bottom: 30px;
  }

  .pg-section {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  }

  .pg-section h2 {
    color: #4e7520;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .pg-section p {
    color: #444;
    font-size: 16px;
  }

  @media (max-width: 768px) {
    .pg-title {
      font-size: 28px;
    }

    .pg-section h2 {
      font-size: 20px;
    }
  }
  
  
    .category-wrapper {
    max-width: 1160px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
  }

  .category-content {
    flex: 3;
  }

  .category-title {
    font-size: 30px;
    color: #3A5F0B;
    margin-bottom: 30px;
    border-bottom: 2px solid #A3B18A;
    padding-bottom: 10px;
    font-weight: bold;
  }

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

  .category-post {
    background: #ffffff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #6B8E23;
    transition: 0.3s ease;
  }

  .category-post:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

  .category-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .category-post h2 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .category-post h2 a {
    color: #3A5F0B;
    text-decoration: none;
  }

  .category-post h2 a:hover {
    color: #2E5E2E;
  }

  .category-post p {
    font-size: 15px;
    color: #555;
  }

  .pagination {
    text-align: center;
    margin-top: 40px;
  }

  .pagination a {
    margin: 0 6px;
    padding: 8px 12px;
    background: #F0F5E4;
    color: #3A5F0B;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
  }

  .pagination .current {
    background: #6B8E23;
    color: white;
  }

  aside.sidebar {
    flex: 1;
    padding: 20px;
    background: #FAFAF5;
    border-radius: 10px;
    border: 1px solid #E2E2DC;
  }

  aside.sidebar h3 {
    font-size: 18px;
    color: #2E5E2E;
    margin-bottom: 10px;
  }

  aside.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
  }

  aside.sidebar ul li {
    margin-bottom: 8px;
  }

  aside.sidebar ul li a {
    text-decoration: none;
    color: #3A5F0B;
    font-weight: 500;
  }

  aside.sidebar ul li a:hover {
    text-decoration: underline;
    color: #2E5E2E;
  }

  @media (max-width: 1024px) {
    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 767px) {
    .category-wrapper {
      flex-direction: column;
    }

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

    .category-post img {
      height: auto;
    }
  }
  
  
  
  .responsive-lcp-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
  }
  
.image-alt-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

.image-alt-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  padding: 16px 20px;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

.image-caption-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.image-caption-alt {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}
