/* SINGLE WEB STORY WORK */
amp-story-page {
  background-color: #eee;
}

amp-story-page * {
  color: black;
  text-align: center;
}

[template="thirds"] {
  padding: 0;
}

amp-story-page .box {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  padding: 20px;
  font-size: 14px;
  line-height: 20px;
  background-image: linear-gradient(
    0.5turn,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );

  position: absolute;
    bottom: 60px;
}
amp-story-page .box * {
  color: white;
}

amp-story-page  .logo {
  width: auto;
  height: 37px;
  padding: 5px 9px;
  /* background-color: white; */
  border-radius: 5px;
  position: absolute;
  bottom: 15px;
  right: 15px;
}
amp-story-page .box h1,
amp-story-page .box h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 500;
}

amp-story-page .box p {
  font-size: 16px;
  line-height: 22px;
  margin: 0px;
}

amp-story-page .box .btn {
  background-color: white;
  border-radius: 50px;
  color: black;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 20px;
  margin-top: 25px;
  display: inline-block;
}
/* SINGLE WEB STORY WORK END */

/* ALL WEB STORIES WORK START */
.web-stories {
  padding: 40px 0px;
  background-color: white;
}
.web-stories .webstory-h {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
}
.web-stories .webstory-list {
  margin: 0px;
  padding: 0px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.web-stories .webstory-list li {
  list-style: none;
}
.web-stories .webstory-list li a {
  display: block;
}

/* MODERN STORY CARD */
.web-stories .box {
  position: relative;
  width: 100%;
  height: 450px;
  padding: 18px;
  border-radius: 0px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */
  transition: all 0.35s ease-in-out;
}

/* Hover Effect */
.web-stories .box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Gradient Overlay */
/* .web-stories .box:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
  z-index: 0;
} */

.web-stories .box * {
  color: white;
  z-index: 2;
}

/* Date + Logo inside image */
.web-stories .date-logo {
  position: absolute;
  bottom: 15px;
  bottom: 16px;
    right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* background: rgba(255, 255, 255, 0.15); */
  /* backdrop-filter: blur(10px); */
  /* padding: 6px 10px; */
  /* border-radius: 8px; */
}

.web-stories .date-logo p {
  margin: 0px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.web-stories .date-logo .logo {
  width: 100px;
  height: 35px;
  object-fit: contain;
  /* border-radius: 5px; */
  /* background: white; */
  /* padding: 3px 5px; */
}

/* Share button */
.web-stories .share-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0);
  border: none;
  /* border-radius: 50%; */
  /* width: 34px; */
  /* height: 34px; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* backdrop-filter: blur(6px); */
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 3;
}
/* .web-stories .share-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
} */

/* Title below the image */
.web-stories .story-text {
  margin-top: 10px;
  padding: 0 5px;
}

.web-stories .story-text h4 {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 8px 0 0;
  line-height: 1.4;
}

.web-stories .story-text p{
  color: #5f6368;
  margin-bottom: 0px;
  font-size: 15px;
}

/* ALL WEB STORIES WORK END */

/* Responsive */
@media (max-width: 1200px) {
  .web-stories .webstory-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}
@media (max-width: 992px) {
  .web-stories .webstory-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .web-stories {
    padding: 20px 0px;
  }
  .web-stories .webstory-h {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .web-stories .webstory-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .web-stories .box {
    height: 220px;
  }
  .web-stories .box .date-logo {
    display: block;
  }
  .web-stories .box h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .web-stories .box .date-logo p {
    margin-bottom: 5px;
  }
}

/* Close Button */
.close-btn {
  position: absolute;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  display: flex;
  top: 16px;
  left: 15px;
  /* transform: translateX(-50%); */
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  z-index: 9999;
  transition: all 0.3s ease;
}

.close-btn i{
  color: #fff;
}

/* .close-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
} */
