/* ✅ Global Reset */
* {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* ✅ Container Box */
  .latest-updates-box {
    background: #ffffff05;
    padding: 5px 5px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    overflow: visible;
  }

  /* ✅ Section Container */
  .latest-updates-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 2px;
  }

  /* ✅ Header */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .section-title-2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1; /* optional fine-tune */
    display: flex;
    align-items: center;
  }

  .view-all-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center; /* ← ensures it aligns with title */
    height: 100%; /* ← optional */
  }


  .view-all-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* ✅ Responsive Grid */
  .latest-updates-grid {
    display: flex;
   flex-direction: column;
   gap: 10px;
   width: 100%;
   padding: 0;
   overflow-x: auto;     /* if you ever want horizontal scroll on small screens */
   overflow-y: visible;  /* ensure no vertical clipping */
  }

  /* pagination container spacing */
.pagination-container {
    margin-top: 16px;
    text-align: center;
  }

  /* the pill wrapper */
  .pagination-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  /* the arrow buttons */
  .arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 12px;
    font-weight: 400px;
    background: #fff;
    border-radius: 50%;
    color: #222;
    text-decoration: none;

  }
  .arrow-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  /* the “1 of 3” text */
  .page-info {
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
  }

  /* optional hover state */
  .arrow-btn:not(.disabled):hover {
    transform: scale(1.1);
  }


  @media (min-width: 768px) {
    .latest-updates-grid {
      display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          grid-auto-rows: auto;  /* let each row size itself */
          gap: 10px;             /* create spacing between rows & columns */
          max-width: 1000px;
          margin: 0 auto;
    }


  }

  /* ✅ Card Style */


  /* ✅ Force card to fill full width */
.update-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px;
    gap: 16px;
    box-sizing: border-box;
  }

  /* ✅ Cover */
  .update-cover {
    flex-shrink: 0;
  }

  .update-cover img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    /* max-width: 100%; */
  }

  /* ✅ Info block */
  .update-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: top;
  }

  .update-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }

  .update-rating {
    font-size: 0.8rem;
    color: #fbc531;
    margin-bottom: 6px;
  }

  .rating-number {
    margin-left: 5px;
    color: #fff;
    font-size: 0.8rem;
  }

  /* ✅ Chapter List */
  .update-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .update-chapters li {
    margin: 4px 0;
  }

  .update-chapters a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #AAAAAA;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .update-chapters a:hover {
    color: #ffffff;
  }

  .update-chapters small {
    color: #aaa;
    font-size: 12px;
    margin-left: 8px;
  }

  /* Optional: Dot style */
.update-chapters .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #d56aff;
    border-radius: 50%;
    margin-right: 4px;
  }


  @media (max-width:578px) {
    .update-chapters a {
        font-size: 12px;
    }

    .update-chapters small{
        font-size: 10px;
    }

    .rating-number{
        font-size: 0.7rem;
    }

    .rating-row i{
        font-size: 10px;
    }

    .today-card .chapter{
        font-size: 11px;
    }

    .view-all-btn{
        font-size: 0.7rem;
    }

    .section-title-2{
        font-size: 0.95rem;
    }

    .section-title{
        font-size: 0.95rem;
    }

    .sidebar-title{
        font-size: 0.95rem;
    }

    .page-info{
        font-size: 0.75rem;
    }
  }


