.products-section {
  display: flex;
  gap: 20px;
  padding: 40px;
  background: #f9f9f9;
  align-items: flex-start;
  flex-wrap: nowrap; /* Important for desktop layout */
}

html {
  scroll-behavior: smooth;
}


.column {
  padding: 1 em;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: auto;
  overflow: hidden;
}

/* Desktop Flex Layout */
.left-column,
.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.center-column {
  flex: 2.4;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.center-column::-webkit-scrollbar {
  display: none;
}


/* Left Menu Links */
.category-links {
  list-style: none;
  padding: 0;
}
.category-links li {
  margin: 10px 0;
}
.category-links a {
  text-decoration: none;
  color: #0077cc;
}

/* Center Cards Scrollable */
.news-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
}
.news-card {
  background: #eef;
  padding: 15px;
  border-radius: 8px;
  flex: 0 0 280px;
  min-width: 280px;
}

/* Trending Section */
.trending-item {
  width: 100%;
}
.trending-item img,
.trending-item video {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 220px;
}


/* Hamburger Styles */


.products-section {
  display: flex;
  gap: 20px;
  padding: 40px;
  background: #f9f9f9;
  align-items: flex-start; /* Prevent stretch! */
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.left-column {
  flex: 1;
}
.center-column {
  flex: 2;
}
.right-column {
  flex: 1;
}

/* New wrapper to prevent stretching inner content */
.column-inner {
  width: 100%;
}



.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  color: #333;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 0 10px 15px;
  padding: 0 10px; /* zero top/bottom padding when collapsed */
}

.mobile-menu.active {
  max-height: 300px; /* or higher if needed */
  padding: 10px;
}

/* Responsive Layout for Mobile */
@media (max-width: 768px) {
  .products-section {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .left-column {
    display: none;
  }

  .center-column {
    order: 1;
  }

  .right-column {
    display: block;
    order: 3; /* Ensures it appears after center-column */
    width: 100%;
    order: 2;
  }
  
    
  }
  .hamburger {
    display: block;
    margin-bottom: 10px;
    margin-left: 10px;
    color: #333;
  }

  .mobile-menu {
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin: 0 10px 15px;
  }

  .mobile-menu.active {
    display: block;
  }
}
.hamburger,
.mobile-menu {
  display: none; /* will be handled by JS */
}

.mobile-menu {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin: 0 10px 15px;
}

.mobile-menu.active {
  display: block;
}


@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}



.center-column {
  position: relative;
  overflow: hidden;
  background: #f0f4f8;
}

/* Floating text overlay */
.center-column::before {
  content: "STKNEWS · STKNEWS · Amazing Features · ";
  position: absolute;
  top: 30%;
  left: -100%;
  white-space: nowrap;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  animation: floatText 20s linear infinite;
  z-index: 0;
}

/* Optional: another one for variation */
.center-column::after {
  content: "Discover · STKNEWS · Explore · Your World · ";
  position: absolute;
  top: 60%;
  left: -100%;
  white-space: nowrap;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  pointer-events: none;
  animation: floatTextReverse 25s linear infinite;
  z-index: 0;
}

@keyframes floatText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes floatTextReverse {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(250%);
  }
}

/* Make sure actual content appears above floating text */
.center-column .column-inner {
  position: relative;
  z-index: 1;
}


.featured-horizontal-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 0 0 240px;
  min-width: 240px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.featured-horizontal-card:hover {
  transform: translateY(-3px);
}

.featured-horizontal-card img {
  width: 100%;
  height: 120px;  /* Reduced image height */
  object-fit: cover;
}

.featured-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-content h4 {
  font-size: 0.95rem;
  margin: 0 0 5px;
  color: #333;
  line-height: 1.2;
}

.featured-content p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.3;
  max-height: 2.6em;  /* Approx. 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-content a {
  font-size: 0.8rem;
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

/* Ensure the news grid scrolls horizontally on desktop */
.news-grid {
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  gap: 15px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.news-grid::-webkit-scrollbar {
  height: 6px;
}

.news-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.news-grid::-webkit-scrollbar-track {
  background: transparent;
}


.products-section {
  display: flex;
  gap: 10px; /* reduced space between columns */
  padding: 20px; /* tighter overall padding */
  background: #f9f9f9;
  flex-wrap: wrap; /* allow wrap on mobile */
}


@media (max-width: 768px) {
  .products-section {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .left-column,
  .right-column {
    display: block;
    width: 100%;
  }

  .left-column .trending-item,
  .right-column .trending-item {
    max-width: 100%;
    padding: 0;
    margin-bottom: 15px;
  }

  .left-column .trending-item img,
  .right-column .trending-item img,
  .left-column .trending-item video,
  .right-column .trending-item video {
    max-height: 220px;
    width: 100%;
    object-fit: cover;
  }
}

.nav-link ion-icon {
  font-size: 1.5rem; /* or 2rem depending on your layout */
  color: var(--text-color); /* match theme */
}

.products-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.column {
  background: #f9f9f9;
  padding: 5px;
  box-sizing: border-box;
}

.left-column {
  flex: 1 1 250px;
  max-width: 300px;
}

.right-column {
  flex: 3 1 600px;
}

.column-inner {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
}

.trending-item {
  margin-bottom: 15px;
}

.trending-item img,
.trending-item video {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .products-section {
    flex-direction: column;
  }

  .left-column, .right-column {
    max-width: 100%;
  }
}
