/*Feature Section*/
.feature-article-slot {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 20px;
}

.feature-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-article-image {
    width: 100%;
    max-width: 620px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.feature-article-content {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 10px;
    padding: 0 4px;
}

.feature-article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.feature-article-summary {
    font-size: 17px;
    color: #374151;
    line-height: 1.1;
    max-height: 4.5em; /* ~3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: justify;
}

.feature-article-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.feature-article-meta .dot {
  margin: 0 6px;
}

/*Trending Section*/
.article-stack-section {
    margin-bottom: 20px;
}

.article-stack-section h2 {
    position: relative;
    padding: 0 0 20px 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;           /* softer slate */
    font-family: 'Inter', sans-serif;
}

.article-stack-section h2::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 10px;
  width: calc(100% - 20px);
  height: 2px;
  background-color: #e2e8f0;
  pointer-events: none;
}

.article-card-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/*Fresh Style*/
.article-card.fresh-style {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}

.article-card.fresh-style::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -20px;
  width: calc(100% - 12px);
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.article-card.fresh-style:hover {
  background: #ffffff;
  
}

.fresh-style.left:hover {
  box-shadow: 6px 8px 14px rgba(0, 0, 0, 0.08);
}

.fresh-style.right:hover {
  box-shadow: -6px 8px 14px rgba(0, 0, 0, 0.08);
}

.fresh-style .img-summary-cont {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 258px;
    max-height:100%;
}

.fresh-style .article-card-image {
  width: 370px;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.fresh-style .meta-summary-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    gap: 8px;
    flex: 1;
}

.fresh-style .meta {
  font-size: 13px;
  color: #6b7280; /* Tailwind slate-500 */
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.fresh-style .meta.mobile {
    display: none;
}

.fresh-style .dot {
  margin: 0 6px;
}

.fresh-style .summary {
  font-size: 14px;
  color: #374151;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fresh-style .summary.mobile {
    display: none;
}

.fresh-style .title {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.fresh-style .article-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 12px;
  flex: 1;
  max-width: calc(100% - 388px); /* 370px image + 18px gap */
}

.fresh-style.left .article-card-text {
  padding: 12px 10px 12px 0;
}

.fresh-style.right .article-card-text {
  padding: 12px 0 12px 10px;
}

@media(min-width:861px) and (max-width:1000px),
(max-width:670px){
    .fresh-style .article-card-image {
      width: 300px;
    }
    .fresh-style .article-card-text {
      max-width: calc(100% - 314px); /* 300px image + 14px gap */
    }
}

/*Fresh Style Mobile Style*/
@media(min-width:801px) and (max-width:910px),
(max-width:600px) {
    .article-card.fresh-style {
          display: flex;
          flex-direction: column;
          align-items: stretch;
    }

    .fresh-style.left .meta-summary-cont {
          padding: 10px 12px 10px 0;
    }
    
    .fresh-style.right .meta-summary-cont {
          padding: 10px 0 10px 12px;
    }
    
    .fresh-style .img-summary-cont {
        height: 160px;
        max-height:160px;
        gap: 14px;
        order: 2;
    }
    
    .fresh-style .article-card-image {
        width: 240px;
    }
    
    .fresh-style .meta.mobile {
        display: flex;
    }

    .fresh-style .summary.mobile {
        display: -webkit-box;
        -webkit-line-clamp: 6;
    }
    
    .fresh-style.left .article-card-text,
    .fresh-style.right .article-card-text {
      width: 100%;
      max-width: 100%;
      padding: 8px 12px;
      order: 1;
    }

    /*.article-card.fresh-style.right {*/
    /*    flex-direction: column-reverse;*/
    /*}*/

    .fresh-style .summary.desktop {
        display: none;
    }
}

@media(max-width:500px) {
    .fresh-style .img-summary-cont {
        height: 130px;
        max-height:130px;
        gap: 12px;
    }
    
    .fresh-style .article-card-image {
        width: 195px;
    }
}

@media(max-width:440px) {
    .fresh-style .dot,
    .fresh-style .read-time {
        display: none;
    }

    .fresh-style .img-summary-cont {
        height: 130px;
        max-height:130px;
        gap: 10px;
    }

    .fresh-style .article-card-image {
        width: 170px;
    }
}

@media(max-width:400px) {
    .fresh-style .article-card-image {
        width: 150px;
    }
}

/*Small Pair Card Type*/
.small-pair {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 700px;
}

.small-pair::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -20px;
  width: calc(100% - 12px);
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.article-card.small {
  position: relative;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 320px;
  max-width: 450px;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  margin: 0 auto;
  transition: background 0.3 ease;
}

.article-card.small:hover {
  background: #ffffff;
}

.small.left:hover {
  box-shadow: 6px 8px 14px rgba(0, 0, 0, 0.08);
}

.small.right:hover {
  box-shadow: -6px 8px 14px rgba(0, 0, 0, 0.08);
}

.small-img-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
}

.small-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

.small-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 8px;
}

.text-only-title {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.small-meta {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
}

@media(min-width: 801px) and (max-width: 1000px),
(min-width: 550px) and (max-width: 691px) {

  .article-card.small {
    border-right: none;
    padding-right: 0;
  }
    .text-only-title {
      font-size: 18px;
    }
    .small-img-wrap {
      flex-shrink: 0;
      width: 140px;
      height: 140px;
      overflow: hidden;
    }
}

@media(min-width: 801px) and (max-width: 1000px),
(max-width: 691px) {
    .small-pair{
        gap: 40px;
    }
    .small.right::after {
      content: "";
      position: absolute;
      left: 6px;
      bottom: -20px;
      width: calc(100% - 12px);
      height: 1px;
      background-color: rgba(0, 0, 0, 0.2);
    }
}

@media(max-width: 380px) {
  .article-card.small {
      min-width: 320px;
  }  
}


/*Grid Pair Article Card Type*/
.article-card-pair {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.article-card-pair::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -20px;
  width: calc(100% - 12px);
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.grid-pair-card {
  flex: 1 1 280px;
  max-width: 400px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  transition: border 0.2s ease, box-shadow 0.2s ease, ;
}

.grid-pair-card:hover {
  border: 1px solid #a9b9d6;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.grid-pair-card.left {
    position: relative;
}

.grid-pair-card-wrap {
    position: relative;
    display: block;
    height: 260px;
    max-height: 260px;
    border-radius: 6px;
    overflow: hidden;
}

.grid-pair-image {
  position: relative;
  height: 100%;
  max-width: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.grid-pair-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to bottom,
  rgba(0, 0, 0, 0.05) 0%,
  rgba(0, 0, 0, 0.2) 30%,
  rgba(0, 0, 0, 0.3) 50%,
  rgba(0, 0, 0, 0.5) 70%,
  rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start; 
  padding: 10px;
  pointer-events: none; 
}

.grid-pair-title {
  pointer-events: auto;
  z-index: 2;
  color: white;
  max-width: 100%;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.grid-pair-meta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  margin: 6px 0 0 2px;
}

@media(min-width: 801px) and (max-width: 917px),
(max-width: 607px){
    .article-card-pair {
      gap: 40px;
    }
    .grid-pair-card.left::after {
      content: "";
      position: absolute;
      left: 6px;
      bottom: -20px;
      width: calc(100% - 12px);
      height: 1px;
      background-color: rgba(0, 0, 0, 0.2);
    }
}