body {
    margin: 0;
    padding: 0;
    font-family: Georgia, serif;
}

/* TOP STORIES TITLE */
.top-heading {
    text-align: center;
    margin-top: 40px;
    letter-spacing: 3px;
    font-size: 22px;
}

.top-divider {
    width: 90%;
    margin: 15px auto 30px;
    border: none;
    height: 1px;
    background: #000;
}

/* GRID LAYOUT */
.top-stories-grid {
    display: grid;
    grid-template-columns: 24% 52% 24%;
    gap: 20px;
    padding: 0 40px;
    align-items: start;
}


/* LEFT COLUMN */
.left-card {
    margin-bottom: 50px;
}

.left-card img {
    width: 100%;
    height: 260px;        /* EXACT height like your screenshot */
    object-fit: cover;    /* crops the extra part just like NYT */
    border-radius: 14px;  /* smooth rounded corners */
    display: block;
}



.left-card h3 {
    font-size: 22px;
    margin-top: 15px;
    line-height: 1.3;
}

.featured-img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.center-col {
    position: relative;
    cursor: pointer;
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 25px;
    background: red;
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}


/* RIGHT COLUMN */
.latest-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.right-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid ;
}

.right-item img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 40px
}


.right-item p {
    font-size: 18px;
}

/* BOTTOM FEATURED RECIPE SECTION */
.featured-recipe-section {
    text-align: center;         /* centers all text */
    padding: 40px 0;            /* equal spacing top + bottom */
    width: 100%;   
    margin-top: -50px;             /* full width */
}

.recipe-title {
    font-size: 45px;
    margin-bottom: 10px;
}

.recipe-desc {
    font-size: 20px;
    margin-bottom: 25px;
    color: #444;
}

.stars {
    font-size: 26px;
    color: black;
}

/* Section Heading */
.collections-heading {
    text-align: center;
    font-size: 26px;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 5px;
}

.red-underline {
    width: 70px;
    height: 3px;
    background: #c62828;
    margin: 0 auto 40px;
    border-radius: 10px;
}

/* GRID */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 0 40px;
}

/* CARD */
.collection-card h3 {
    font-size: 22px;
    margin: 15px 0 10px;
}
.collection-card img{
    cursor: pointer;
}
.collection-card p {
    font-size: 16px;
    color: #555;
}

/* IMAGE WRAPPER */
.img-wrapper {
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* ICON BUTTON ON IMAGE */
.icon-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* LEFT COLUMN CARDS */
.left-card {
    margin-bottom: 50px;
    cursor: pointer; /* makes it look clickable */
}

.left-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.left-card h3 {
    font-size: 22px;
    margin-top: 15px;
    line-height: 1.3;
}
.right-col img{
    cursor: pointer;
}
/* FLOATING MINI RECIPE BOX */
.small-box {
    position: absolute;
    background: rgba(243, 236, 221, 0.85); /* cream with opacity */
    backdrop-filter: blur(6px);
    width: 280px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
    font-family: Georgia, serif;
}


.small-box h3 {
    margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
  z-index: 10000;           /* above everything */
}

/* optional hover style */
.close-btn:hover { background: rgba(0,0,0,0.05); }



@media (max-width: 960px) {

  /* Entire Top Stories section → vertical */
  .top-stories,
  .top-stories-grid,
  .stories-grid,
  .stories-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 1.5rem !important;
  }

  /* Story cards stacked cleanly */
  .story-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .story-card img {
    width: 100% !important;
    height: auto !important;
  }

  /* FEATURED badge stops overlapping */
  .featured-badge {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin-bottom: 0.6rem;
  }

  /* Right-side "Latest Recipes" becomes a full-width block */
  .latest-recipes {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Latest recipe list stacks vertically */
  .latest-recipes-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .latest-recipes-list .recipe-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  .latest-recipes-list img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px;
  }
}
/* MOBILE RESPONSIVE */
/* BELOW 960px → ONE BELOW THE OTHER */
@media (max-width: 960px) {
  .collections-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* FORCE 1 per row */
    width: 100%;
    gap: 20px;
  }

  .collection-card {
    width: 100%;
  }

}

/* Extra small screens (optional) */
@media (max-width: 480px) {
  .collections-grid {
    padding: 0 8px;
  }

  .collection-card {
    border-radius: 8px;
  }
}


@media (max-width: 960px) {
    .small-box {
        width: 200px !important;      /* smaller width */
        padding: 10px !important;     /* compact spacing */
        font-size: 13px !important;   /* smaller text */
        border-radius: 10px !important;
    }

    .small-box h3 {
        font-size: 15px !important;
        margin-bottom: 6px;
    }

    #recipeIngredients li {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    #recipeSteps {
        font-size: 12px !important;
    }

    .close-btn {
        font-size: 16px !important;
        top: 6px !important;
        right: 6px !important;
    }
}

@media (max-width: 960px) {
    .small-box {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 230px !important;
        padding: 15px !important;
        z-index: 9999 !important;
    }
}