
.tag-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  background: #f9f9f9;
  border-bottom: 1px solid #333;
}

.tag-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  white-space: nowrap;
  scrollbar-width: none;
  /* Firefox */
}

.tag-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.tag-container span {
  background: #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}

.tag-container span:hover {
  background: #4caf50;
  color: white;
}

.scroll-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s;
  border-radius: 4px;
}

.scroll-btn:hover {
  background: #388e3c;
}

.scroll-btn.left {
  margin-right: 5px;
}

.scroll-btn.right {
  margin-left: 5px;
}

/* Use prefers-color-scheme for automatic dark mode */
body.dark-mode .tag-container-wrapper {
  background: #1a1a1a;
  border-bottom: 1px solid #ccc;
}

/* Dark mode */
body.dark-mode .tag-container span {
  background: #444;
  color: #eee;
}

body.dark-mode .tag-container span:hover {
  background: #81c784;
  color: #111;
}

.scroll-btn:hover {
  background: #388e3c;
}

.three-col-layout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
  gap: 20px;
}

.three-col-layout .col {
  /* padding: 15px; */
  /* background-color: #f0f0f0; */
  border-radius: 8px;
}

/* Widths */
.col-left {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.col-info {
  flex: 1;
}

.hash {
  font-size: 14px;
  color: #888;
  margin: 0 0 4px;
  font-weight: 700;
}

.col-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-align: left;
  width: 100%;
  padding-bottom: 10px;
}

.middle-article {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.col-title1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.col-para {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}


.middle {
  width: 50%;
  border-bottom: 1px solid #333;

}

.article-col {
  width: 25%;
}

.col-right {
  /* width: 25%; */
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

/* Image block with title below */
.image-block img {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 6px;
  object-fit: cover;
}

.image-title {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* Overlay image block */
.image-overlay-block {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

.overlay-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
}

.overlay-title {
  position: absolute;
  bottom: 2px;
  color: #fff;
  padding-left: 20px;
}

/* Dark mode support */
body.dark-mode .three-col-layout .col {
  /* background-color: #1e1e1e; */
  color: #fff;
}

body.dark-mode .image-title {
  color: #ddd;
}

body.dark-mode .overlay-title {
  /* background: rgba(255, 255, 255, 0.1); */
  color: #fff;
}

.middle {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* border-bottom: 1px solid #333; */
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
}

/* Add height variations */
.image-overlay-block.tall .overlay-img {
  aspect-ratio: 1.2;
}

.image-overlay-block.short .overlay-img {
  aspect-ratio: 1.5;
}

.image-overlay-block {
  position: relative;
}

/* Dark mode support */
body.dark-mode .overlay-title {
  color: #fff;
}

.right-article-list {
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
  /* margin-top: 30px; */
}

.article-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
}

.article-thumb {
  max-width: 70px;
  height: 57px;
  object-fit: cover;
  border-radius: 6px;
}

.article-info {
  flex: 1;
}

.meta {
  color: #888;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.article-title {
  font-size: 18px;
  color: #333;
  margin: 0;
  line-height: 1.3;
  text-align: left;
  width: 100%;
  font-weight: 600;
}

body.dark-mode .meta {
  color: #aaa;
}

body.dark-mode .article-title {
  color: #eee;
}

.three-col-headlines {
  overflow-y: auto;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  /* padding: 20px; */
}

.three-col-headlines::-webkit-scrollbar {
  display: none;
}

.headlines-col {
  display: flex;
  flex-direction: column;
  gap: 30px;

}

/* Column widths */
.left-col {
    width: 25%;
    position: sticky;
    top: 0;
    /* min-height: max-content; */
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}


.right-col {
  width: 25%;

}

/* Shared Styles */
.headline-item,
.headline-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.headline-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.center-img {
  max-width: 100%;
  margin: 0 auto;
}

.headline-meta {
  font-size: 14px;
  color: #777;
  font-weight: 700;
  margin: 0;
}

.headline-title {
  font-size: 18px;
  color: #222;
  margin: 0;
  font-weight: 600;
}

.headline-description {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  font-weight: 400;
}

/* Dark Mode */
body.dark-mode .headline-meta {
  color: #aaa;
}

body.dark-mode .headline-title {
  color: #eee;
}

body.dark-mode .headline-description {
  color: #ccc;
}

.three-col-headlines {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  /* padding: 20px; */
  height: 100vh;
  /* Key: gives context for overflow */
  box-sizing: border-box;
}

.middle-col {
  width: 50%;
  /* overflow-y: auto; */
  max-height: 100%;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Scrollbar styling for Chrome/Edge */
.middle-col::-webkit-scrollbar {
  width: 8px;
}

.middle-col::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.middle-col::-webkit-scrollbar-track {
  background: transparent;
}

/* .middle-col {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
} */


.read-more-btn {
  padding: 12px 22px;
  font-size: 14px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
}

.read-more-btn:hover {
  background-color: #388e3c;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
}

.deal-of-month {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: #388e3c 2px solid;
  padding-bottom: 12px;
}

.deal-item {
  display: flex;
  gap: 10px;
  border-bottom: #388e3c 2px solid;
  padding-top: 20px;
  padding-bottom: 20px;
}

.deal-item:last-child {
  border-bottom: none;
}

.deal-number {
  font-size: 18px;
  font-weight: bold;
  color: #4caf50;
  min-width: 30px;
}

.deal-content {
  flex: 1;
}

.deal-meta {
  color: #888;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.deal-title {
  font-size: 18px;
  color: #333;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

body.dark-mode .deal-title {
  color: #eee;
}

body.dark-mode .deal-meta {
  color: #aaa;
}

.featured {
  margin-top: 30px;
  background-color: black;
  color: white;
  /*padding-top: 90px;*/
  /*padding-bottom: 100px;*/
  margin-bottom: 100px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  /* background: #111; */
  color: white;
  font-size: 24px;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 20px 0;
  position: relative;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.item {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-size: 48px;
  font-weight: 800;
}

.item_sep {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-left: 60px;
  /* transform: skew(-25deg); */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.card {
    display: flex;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    /*margin-bottom: 50px;*/
    border-radius: 14px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    min-width: 100%;
    box-sizing: border-box;
    gap: 36px;
    padding: 0 30px 30px 30px;
    /*margin-top: 50px;*/
}

.card img {
  width: 50%;
  object-fit: cover;
  /*margin-left: 50px;*/
}

.card-content {
  /*padding: 40px 30px;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  gap:16px;
}

    .card-content p.category {
        color: #aaa;
        font-size: 14px;
        /*margin-bottom: 8px;*/
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
        margin: 0;
    }

.card-content h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin:0;
  /*margin: 0 0 16px;*/
}

.card-content p.description {
  font-size: 16px;
  color: #ccc;
  /*margin-bottom: 24px;*/
  line-height: 1.6;
  margin:0;
}

.read-more-btn-2 {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: max-content;
}

.read-more-btn-2:hover {
  background-color: #fff;
  color: #000;
}

.read-more-btn-2 svg {
  width: 16px;
  height: 16px;
}


.swapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex;
  transition: transform 5s ease;
}

.article-button {
  padding: 8px 16px;
  margin-right: 8px;
  background: #f0f0f0;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  width: 45%;
}

.article-button.active {
  background: #000;
  color: #fff;
}

.article-button:hover {
  background: #ddd;
}

.article-button.active:hover {
  background: #000;
}

.artical-count {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 30px;
}

.count {
  position: relative;
  text-align: center;
  width: 150px;
}

.count img {
  width: 100%;
  height: 150px;
  clip-path: circle(50%);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.count h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.count p {
  margin-top: -10px;
  font-size: 14px;
  color: #777;
}

.fashion-card {
  position: relative;
  width: 100%;
  height: 100px;
}

.fashion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.card-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.card-text h3 {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 15px;
}

.card-text p {
  width: 30px;
  height: 30px;
  background-color: rgba(128, 128, 128, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  border: 2px solid #ccc;
  margin-right: 15px
}

.image-text-container {
  gap: 10px;
  display: flex;
  flex-direction: column;

}

img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
  /* 5% zoom */
}



/* Tablet Styles (768px to 1024px) */
@media (max-width: 1024px) {

  .three-col-layout {
    flex-direction: column;
  }

  .col-left,
  .middle,
  .article-col,
  .col-right {
    width: 100%;
    margin-bottom: 20px;
  }

    .middle {
        padding-left: 0px;
        padding-right: 0px;
    }

  .three-col-headlines {
    flex-direction: column;
    height: auto;
  }

  .left-col,
  .middle-col,
  .right-col {
    width: 100%;
    margin-bottom: 30px;
  }

    .middle-col {
        border-top: 2px solid #388e3c;
        padding-top: 24px;
        padding-right: 0px;
    }


    .item {
        font-size: 36px;
    }

    .card {
        flex-direction: column;
        /* margin-left: 15px; */
        /* margin-right: 15px; */
        min-width: 100%;
        padding: 0 32px;
        margin-bottom:0;
    }

    .card img {
        width: 100%;
        margin-left: 0;
        height: 50%;
        /* background-size: cover; */
        object-fit: cover;
    }

  .card-content {
    width: 100%;
    padding: 0;
    gap: 24px;
  }

  .artical-count {
    flex-wrap: wrap;
    /* gap: 20px; */
  }
}

/* Mobile Styles (up to 767px) */
@media (max-width: 768px) {

  .tag-container-wrapper {
    padding: 5px;
  }

  .tag-container span {
    padding: 4px 8px;
    font-size: 12px;
  }

  .scroll-btn {
    padding: 5px 8px;
    font-size: 14px;
  }

  .three-col-layout .col {
    padding: 0;
  }

  .headline-description {
    font-size: 12px;
  }


    .card {
        padding: 0 24px 20px;
        flex-direction: column;
    }

        .card img,
        .card-content {
            width: 90%;
        }

    .card-content {
        padding: 20px;
    }

    .article-title {
        font-size: 18px;
    }
    

  .card-content h2 {
    font-size: 20px;
    text-align: left;
  }

  .card-content p.description {
    font-size: 14px;
  }

  .read-more-btn,
  .read-more-btn-2 {
    padding: 8px 16px;
    font-size: 12px;
  }

  .section-title {
    font-size: 16px;
  }

  .count {
    width: 120px;
  }

  .count img {
    height: 120px;
  }

  .count h3 {
    font-size: 16px;
  }

  .count p {
    font-size: 12px;
  }

  .fashion-card {
    height: 80px;
  }

  .card-text h3 {
    font-size: 16px;
    margin-left: 10px;
  }

  .card-text p {
    width: 25px;
    height: 25px;
    font-size: 14px;
    margin-right: 10px;
  }

  .deal-item {
    padding: 15px 0;
  }

  .article-button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .marquee-container {
    font-size: 18px;
  }

  .item {
    font-size: 40px;
    padding: 0 1rem;
  }

  .item_sep {
    width: 6px;
    height: 6px;
    margin-left: 30px;
  }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {

    .container {
        max-width: 95%;
    }

    .three-col-layout,
    .three-col-headlines {
        gap: 15px;
    }

    .tag-container {
        gap: 5px;
    }

    .headline-item,
    .headline-block {
        gap: 5px;
    }
    .featured {
        margin-bottom: 0px;
    }
    .card {
        padding: 0px 16px 16px;
    }

    .card-content {
        /*padding: 0;*/
        gap: 12px;
    }

  .card-content h2 {
    font-size: 18px;
    /*margin-bottom: 10px;*/
  }

  .card-content p.category {
    font-size: 12px;
  }

  .card-content p.description {
    font-size: 12px;
    /*margin-bottom: 15px;*/
  }

  /* .artical-count {
    gap: 10px;
  } */
    .col-title, .col-title1, .headline-title, .article-title, .deal-title {
        font-size: 16px;
    }
    .col-left {
        gap: 10px;
        margin-bottom: 0px;
    }

    .headlines-col {
        gap: 10px;
    }

        .headlines-col .container {
            margin-left: 0px;
            margin-right: 0px;
            max-width: 100%;
        }

    .count {
        width: 100px;
    }

  .count img {
    height: 100px;
  }

  .count h3 {
    font-size: 14px;
  }

  .count p {
    font-size: 10px;
  }

  .item {
    font-size: 24px;
  }

  .deal-number {
    font-size: 16px;
    min-width: 20px;
  }

  .middle-article {
    flex-direction: column;
  }

    .artical-count {
        gap:20px;
    }
  
}

    .post-title {
        color: #fff;
        text-decoration: none;
    }

    .fn_meta {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 4px;
    }


    .read-more-wrapper {
        border-bottom: #388e3c 2px solid;
    }