/* --- Magazine Widget Layout --- */
.mag-widget {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
  align-items: flex-start;
  margin: 4%;
}

/* Featured Post (Left) */
.mag-widget__featured {
  position: relative;
}

.mag-widget__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.mag-widget__meta {
    margin-top: -80px;
    margin-left: 20px;
}

a.mag-widget__title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-decoration: none !important;
}
a.mag-widget__title:hover {
    color: #007bff;
}


.mag-widget__byline{
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mag-widget__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4b4b;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

/* Right Post List */
.mag-widget__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mag-widget__item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mag-widget__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mag-widget__thumblink {
    flex-shrink: 0;
}

.mag-widget__thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.mag-widget__itembody {
    padding: 10px 14px;
    flex: 1;
}

.mag-widget__itemtitle {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
    text-decoration: none !important;
}

.mag-widget__itemtitle:hover {
    color: #007bff;
}

.mag-widget__itemmeta {
    font-size: 12px;
    color: #777;
}

/* --- RESPONSIVE FIXES --- */

/* Tablets (below 992px) */
@media (max-width: 991px) {
  .mag-widget {
    grid-template-columns: 1fr;
  }

  .mag-widget__list {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 30px;
  }

  .mag-widget__item {
      width: calc(50% - 8px);
      flex-direction: column;
  }

  .mag-widget__thumb {
      width: 100%;
      height: 180px;
      border-radius: 10px 10px 0 0;
  }

  .mag-widget__itembody {
      padding: 12px;
  }
}

/* Mobile (below 576px) */
@media (max-width: 575px) {
  .mag-widget {
    grid-template-columns: 1fr;
  }
  a.mag-widget__title{
    font-size: 15px;
   }

  .mag-widget__list {
    flex-direction: column;
    margin-top: 30px;
  }

  .mag-widget__item {
      flex-direction: row;
      width: 100%;
  }

  .mag-widget__thumb {
      width: 120px;
      height: 120px;
      border-radius: 10px 0 0 10px;
  }

  .mag-widget__itembody {
      padding: 10px;
  }
}





.modern-blog-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #4b83ff; /* 🌟 Light blue accent line */
}

.modern-blog-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-left-color: #4b83ff; /* Darker blue on hover */
}

/* Left Image */
.blog-thumb {
  flex: 0 0 35%;
  height: 160px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 10px 0 0 10px;
}

.modern-blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

/* Right Text Section */
.blog-text {
  flex: 1;
  padding: 16px 20px;
  background: #fff;
}

.blog-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Category Colors */
.blog-badge.shopping {
  background-color: #fff7a1;
  color: #3e3e00;
}
.blog-badge.recipes {
  background-color: #bdf8c8;
  color: #004d23;
}
.blog-badge["tv & movies"],
.blog-badge.tv {
  background-color: #bcdcff;
  color: #003a7e;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-title a:hover {
  color: #007bff;
}

/* Meta Section */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #555;
}

.blog-meta .author {
  font-weight: 600;
  color: #222;
}

.blog-meta .dot {
  margin: 0 3px;
  color: #aaa;
}

.blog-meta i {
  font-size: 13px;
  margin-right: 3px;
}

@media (max-width: 768px) {
  .modern-blog-card {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
    height: 200px;
  }

  .blog-thumb img {
    border-radius: 14px 14px 0 0;
  }

  .blog-text {
    padding: 16px;
  }
}
