/* Main Page Wrapper */
.web-stories-page {
  width: 100%;
}

/* Center Container */
.web-stories-section_container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.web-stories-page__hero {
  padding: 40px 16px 0;
}

.web-stories-page__heading {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: sans-serif;
}

.web-stories-page__desc {
  font-size: 18px;
  line-height: 1.3;
  color: #62637c;
}

.web-stories-list {
  width: 100%;
  padding: 20px 16px;
}

/* Container Grid */
.web-stories-list__container {
  display: grid;
  gap: 16px;
}

/* Mobile (default) */
.web-stories-list__container {
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet */
@media (min-width: 768px) {
  .web-stories-list__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .web-stories-list__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
 
.web-stories-page__heading {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: sans-serif;
}

.web-stories-page__desc {
  font-size: 15px;
  
  color: #62637c;
}

.web-stories-list {
    
    padding: 20px 16px;
}

}

/* Card */
.web-stories-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Image Wrapper */
.web-stories-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 384px;
}

/* Image */
.web-stories-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover effect */
.web-stories-card:hover .web-stories-card__image {
  transform: scale(1.05);
}

/* Overlay */
.web-stories-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Title */
.web-stories-card__title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  font-family: sans-serif;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .web-stories-card__image-wrapper {
    height: 222px;
  }

  .web-stories-card__title {
    font-size: 16px;
  }
}

/* Load More Wrapper */
.web-stories-list__loadmore {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Button */
.web-stories-list__loadmore-btn {
 width: 100%;
    max-width: 575px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ff7f47;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}


/* Disabled */
.web-stories-list__loadmore-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.web-stories-ad {
  grid-column: span 2;
}

/* Tablet */
@media (min-width: 768px) {
  .web-stories-ad {
    grid-column: span 3;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .web-stories-ad {
    grid-column: span 4;
  }
}

.web-stories-faq {
  padding: 40px 20px;
  background: #fff;
}

.web-stories-faq__container {
  max-width: 800px;
  margin: 0 auto;
}

.web-stories-faq__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Item */
.web-stories-faq__item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

/* Question */
.web-stories-faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

/* Answer */
.web-stories-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.web-stories-faq__item.active .web-stories-faq__answer {
  max-height: 200px;
  margin-top: 8px;
}

.web-stories-faq__answer p {
  font-size: 15px;
  color: #555;
}

.web-stories-bottom {
  padding: 50px 16px;
}

.web-stories-bottom__title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.web-stories-bottom__text {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Tablet */
@media (min-width: 768px) {
  .web-stories-bottom {
    padding: 50px 20px;
  }

  .web-stories-bottom__title {
    font-size: 30px;
  }

  .web-stories-bottom__text {
    font-size: 17px;
  }
}



.load-more-btn {
    width: 100%;
    max-width: 575px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ff7f47;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}


/* Skeleton grid */
.web-stories-list__skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

/* Skeleton card */
.web-stories-skeleton-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 11;
  min-height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background: #e5e7eb;
}

/* Image placeholder */
.web-stories-skeleton-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    #e5e7eb 8%,
    #f3f4f6 18%,
    #e5e7eb 33%
  );
  background-size: 200% 100%;
  animation: web-stories-shimmer 1.5s linear infinite;
}

/* Bottom title placeholders */
.web-stories-skeleton-content {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-stories-skeleton-title {
  width: 95%;
  height: 20px;
  border-radius: 5px;
  background: #d1d5db;
}

.web-stories-skeleton-title--short {
  width: 68%;
}

/* Shimmer animation */
@keyframes web-stories-shimmer {
  to {
    background-position-x: -200%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .web-stories-list__skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .web-stories-list__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .web-stories-skeleton-card {
    min-height: 220px;
    border-radius: 16px;
  }

  .web-stories-skeleton-content {
    right: 10px;
    bottom: 12px;
    left: 10px;
    gap: 7px;
  }

  .web-stories-skeleton-title {
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-stories-skeleton-image {
    animation: none;
  }
}