#thisurl { display: none; }

.socialshare,
.bookmark-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bookmark-items {
  width: 50%;
}

#wedicopio {
  font-size: 0.85rem;
  padding: 4px;
  margin: 2px;
  float: right;
}

/* ==============================
   Carousel Styles
   ============================== */

#pod-car {
  max-width: 90%;
  margin: 0 auto;
  color: #000;
  background-color: #fff;
  padding-top: 10px;
  line-height: 1.4;
  padding: 0 0 16px 0;
}

#pod-car img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Image Carousel Layout */
ul.img-car,
ul.img-car-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 0 0 16px 0;
}

ul.img-car li,
ul.img-car-home li {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

ul.img-car-home li {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
ul.img-car-home li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


ul.img-car li:hover,
ul.img-car-home li:hover {
  transform: scale(1.03);
}

/* Overlay Text */
span.text-car {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

ul.img-car li:hover span.text-car,
ul.img-car-home li:hover span.text-car {
  opacity: 1;
}

/* Hide extras beyond 6 */
ul.img-car li:nth-child(n+8),
ul.img-car-home li:nth-child(n+8) {
  display: none;
}

ul.latest-list li:nth-child(n+8),
ul.latest-list li:nth-child(n+8) {
  display: none;
}

.popular-grid .popular-card:nth-child(n+8),
.popular-grid .popular-card:nth-child(n+8) {
  display: none;
}

/* More link */
.Mwy {
  text-align: right;
  margin-top: -36px;
  font-weight: 600;
  font-size: 1.1rem;
}



/* ==============================
   Modernized Latest List Styles
   ============================== */

:root {
  --card-radius: 10px;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
}

.latest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 0 16px 0;
  margin: 0;
  list-style: none;
}

.latest-list li {
  position: relative;
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--card-radius);
  cursor: pointer;
  background-color: #f8f8f8;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.latest-list li:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--card-hover-shadow);
}

.latest-list li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed) ease;
}

.latest-list li:hover img {
  transform: scale(1.05);
}

.latest-list .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--overlay-bg);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.latest-list li:hover .overlay {
  opacity: 1;
}


.popular-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  padding: 0 0 16px 0;
}

.popular-card {
  position: relative;
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--card-radius);
  cursor: pointer;
  background-color: #f8f8f8;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.popular-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--card-hover-shadow);
}

.popular-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed) ease;
}

.popular-card:hover img {
  transform: scale(1.05);
}

.popular-card .card-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--overlay-bg);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.popular-card:hover .card-title {
  opacity: 1;
}
/* ==============================
   Responsive Design
   ============================== */
@media (max-width: 768px) {
  .latest-list li {
    width: 140px;
  }
.popular-card {width: 140px;}    
    
.fa {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  #pod-car img,
  ul.img-car-home li {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .latest-list li {
    width: 100%;
    max-width: 300px;
  }
}



/* ===== Mobile carousel - place at the END of your stylesheet ===== */
@media (max-width: 1024px) {
  .latest-list,.popular-grid, ul.img-car-home {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-inline: 1rem;        /* left/right padding so first/last can center */
    scroll-padding-inline: 1rem;/* ensures snap positions respect padding */
    touch-action: pan-x;        /* allow horizontal panning on mobile */
  }

ul.latest-list li:nth-child(n+7) {display: block !important;}  
    
ul.img-car-home li:nth-child(n+7) {display: block !important;}
    
.popular-grid .popular-card:nth-child(n+7) {display: block !important;}  

.latest-list li, .popular-card, .img-car-home li {
    /* make the item ~80% of the viewport (leaving a visible 'peek' of next card) */
    flex: 0 0 calc(80% - 1rem);
    width: auto;               /* override any earlier width rules */
    max-width: 140px;           /* important: remove any earlier max-width clamp */
       /* reasonable minimum on narrow phones; tweak as needed */
    box-sizing: border-box;
    scroll-snap-align: center; /* center the snapped card */
  }
.latest-list li img {
  width: 140px !important; 
  height: 140px !important;
}  
/* More link */
.Mwy {display: none;}
    }
  /* slightly narrower on small phones to reduce horizontal overflow */
  @media (max-width: 480px) {
    .latest-list li, .popular-card, .img-car-home li {
      flex: 0 0 calc(90% - 1rem);
      min-width: 120px;
    }
  }


    
  /* optional debugging scrollbar — remove/comment in production */
  /* .latest-list::-webkit-scrollbar { height: 8px; }
     .latest-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; } */
}