/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #edeae1;  
  color: #333;
}



/* Subheading filter wrapper */
/* ===== Hero Subheading / Filter Bar ===== */
.hero-subheading {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.2rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-subheading .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-subheading label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

.hero-subheading select {
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #bbb;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  transition: border 0.2s ease;
}

.hero-subheading select:hover,
.hero-subheading select:focus {
  border-color: #666;
  outline: none;
}


/* ===== Hero Content ===== */
.hero-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-image: url('/images/rik-pick.png'); /* Make sure path is correct */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: #222;
  position: relative;
  text-align: center;
  backdrop-filter: blur(2px); /* Optional glow effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Hero Text Section */
.hero-text {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #edeae1;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p.tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #f8f8f8;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* Amazon Deal Button */
.amazon-deal-btn {
  display: inline-block;
  background-color: #ff9900;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1.8rem; /* 👈 This adds space above the button */
}


.amazon-deal-btn:hover {
  background-color: #e08900;
  transform: translateY(-2px);
}

.affiliate-note {
  font-size: 15px !important;
  color: #e0e0e0;
  margin-top: 6px;
  opacity: 0.7;
}

/* ===== Responsive Adjustments for Hero Section ===== */
@media (max-width: 768px) {
  .hero-subheading {
    padding: 1rem;
    text-align: center;
  }

  .hero-subheading .filter-group {
    display: flex;
    flex-direction: row;       /* 👈 Side-by-side */
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;         /* 👈 No wrapping */
  }

  .hero-subheading select {
    width: auto;
    min-width: 140px;
    max-width: 200px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .hero-content {
    width: 100%;
    margin: 1.5rem auto;           /* Center horizontally */
    padding: 2rem 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center center;
    box-sizing: border-box;        /* Ensures padding doesn’t break layout */
  }

  .hero-text {
    width: 100%;
    max-width: 100%;               /* Ensure no overflow */
    padding: 0 1rem;               /* Equal padding on both sides */
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p.tagline {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    padding: 0 1rem;
  }

  .amazon-deal-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
  }

  .affiliate-note {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p.tagline {
    font-size: 0.95rem;
  }

  .hero-subheading select {
    font-size: 0.9rem;
  }
}





/* ===== Product Section ===== */

.rikpick-products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}


/* Grid Setup */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
}

/* Card Styling */
.rik-pick-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
    display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* optional */
}

.rik-pick-article-card:hover {
  transform: translateY(-4px);
}

.rik-pick-article-card img {
  width: 100%;
  height: 220px;             /* Set a fixed height */
  object-fit: contain;       /* Fit image inside without cropping */
  
  display: block;
}


.article-content {
  padding: 1rem;
}

.article-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.short-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Editor Pick Label */
.editor-label {
  background-color: #f6c90e;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Button */
.read-more-btn {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #444;
}

.amazon-buy-btn {
  display: inline-block;
  background-color: #FF9900;
  color: #000;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.amazon-buy-btn:hover {
  background-color: #e68900;
}

@media (max-width: 768px) {
  .rikpick-products h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr; /* 👈 One card per row */
    gap: 1rem;
    padding: 1.2rem;
  }

  .rik-pick-article-card {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  }

  .rik-pick-article-card img {
    height: 180px;              /* Slightly smaller image */
    object-fit: contain;
  }

  .article-content h3 {
    font-size: 1rem;
  }

  .short-desc {
    font-size: 0.85rem;
  }

  .price {
    font-size: 0.95rem;
  }

  .read-more-btn,
  .amazon-buy-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
    width: 100%;               /* 👈 Full-width buttons look better on mobile */
    text-align: center;
  }
}


/* Footer Styles */
footer {
    background-color: #CC7700; /* Yellow background */
    color: #002855; /* Blue text */
    padding: 30px 20px;
    text-align: left;
    position: relative;
    padding-bottom: 80px; /* or whatever matches your fixed menu height */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-branding {
    text-align: center;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-branding p {
    font-size: 16px;
    margin-bottom: 10px;
}

.social-link .x-icon {
    width: 24px;
    height: 24px;
    margin-top: 10px;
}

/* Menu Columns */
.footer-menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.footer-column {
    flex: 1 1 180px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #002855;
    font-weight: bold;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #002855;
    text-decoration: none;
    font-weight: 500;
}

.footer-column a:hover {
    color: #F1C40F;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed; /* changed from absolute */
    bottom: 90px;    /* slightly above your fixed footer */
    right: 20px;
    background-color: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999; /* ensure it appears above everything */
}


.back-to-top-btn:hover {
    background-color: #0ea5e9;
}

/* Copyright */
footer .copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #002855;
}


/* Footer Styles for mobile responsiveness */
@media (max-width: 768px) {
  .footer-menus {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .footer-column h4 {
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .back-to-top-btn {
    padding: 10px 14px;
    font-size: 20px;
    bottom: 70px; /* slightly more clearance on small screens */
  }
}


/* fixed footer for mobile responsiveness */
.fixed-footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #1e293b;  /* dark background */
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-top: 2px solid #CC7700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fixed-footer-menu .menu-item {
  color: #ccc;
  text-decoration: none;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.3s ease;
}

.fixed-footer-menu .menu-item .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.fixed-footer-menu .menu-item:hover,
.fixed-footer-menu .menu-item:focus,
.fixed-footer-menu .menu-item.active {
  color: #CC7700;
  outline: none;
}

/* Hide on wider screens */
@media (min-width: 768px) {
  .fixed-footer-menu {
    display: none;
  }
}

