/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  background-color: linear-gradient(to bottom right, #f8f9fc, #edf2f7);
  color: #4a4a4a; /* Charcoal text */
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6b00ff;
  text-decoration: none;
}

/* Header Styles */
header {
  /* position: sticky;
  top: 0; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1e90ff 20%, #f4e4bc 60%, #fff5e1 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: #2f3542;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.logo img {
  height: 60px;
  width: auto;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  color: #2f3542;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #f4e4bc, #fff5e1);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #000;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 247, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
  }
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg);
}

@media (min-width: 769px) {
  .nav-menu .earn-link {
    background: linear-gradient(45deg, #6b00ff, #00f7ff);
    padding: 1px 16px;
    border-radius: 30px;
  }

  .nav-menu .earn-link:hover {
    background: transparent;
    border: 1px solid #2f3542;
    border-radius: 30px;
  }
}

/* Main Content */
main {
  padding: 2rem 0 1rem;
  width: 100%;
}

.responsive-img-style {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 100vh;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-now-btn {
  display: block;
  margin: 2rem auto;
  background: linear-gradient(to right, #6b00ff, #00f7ff);
  border: none;
  border-radius: 25px;
  padding: 0.875rem 1.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: auto;
}

.shop-now-btn:hover {
  transform: scale(1.05);
}

/* Footer Styles */
footer {
  background: #1e272e;
  color: #f8f9fa;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #00f7ff;
}

footer a {
  color: #f8f9fa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #00f7ff;
}

.social-icons a {
  font-size: 1.6rem;
  margin-right: 15px;
  color: #f8f9fa;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #00f7ff;
  transform: scale(1.2) rotate(5deg);
}

.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 auto;
  grid-column: 1 / -1;
  text-align: center;
  width: 80%;
}

.footer-description {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #ffffff;
  display: none;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-description {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #2f3542;
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }

  .nav-menu a {
    color: #fff;
  }

  .nav-menu a:hover {
    color: #00f7ff;
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    animation: slideIn 0.5s ease;
  }

  @keyframes slideIn {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .hamburger {
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .subpage-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo img {
    height: 40px;
  }

  .social-icons a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 35px;
  }

  .nav-menu a {
    font-size: 1rem;
  }

  footer {
    padding: 20px;
  }

  footer a {
    font-size: 0.9rem;
  }

  .social-icons a {
    font-size: 1.4rem;
  }

  .footer-description,
  .footer-copyright {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .nav-menu .earn-link {
    background: linear-gradient(45deg, #6b00ff, #00f7ff);
    padding: 1px 16px;
    border-radius: 30px;
  }

  .nav-menu .earn-link:hover {
    background: transparent;
    border: 1px solid #2f3542;
    border-radius: 30px;
  }
}

@media (max-width: 768px) {
  /* Subpage Footer (Mobile Only) */
  .subpage-footer {
    padding: 0; /* Remove padding to extend to edges */
    margin: 0; /* Remove margin to extend to edges */
    background-color: transparent;
    color: #fff;
    position: fixed; /* Fixed at the bottom like X */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure it stays above content */
  }

  .footer-menu {
    display: flex; /* Show on mobile */
    justify-content: space-between; /* Adjust spacing for 6 icons */
    align-items: center;
    background-color: rgba(47, 53, 66, 0.9); /* #2f3542 with 90% opacity */
    padding: 0.5rem 1rem; /* Padding only on top/bottom and left/right for icons */
    border-radius: 0; /* Remove rounded edges to match X */
    width: 100%; /* Full width to extend to edges */
    margin: 0; /* Remove margin to extend to edges */
    box-shadow: none; /* Remove shadow to match X */
    border: none; /* Already no border */
  }

  .footer-icon {
    font-size: 1.1rem; /* Slightly smaller to fit 6 icons */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff; /* White icons */
    transition: color 0.3s ease;
  }

  .footer-icon:hover {
    color: #00f7ff; /* Pink on hover */
  }

  .footer-icon.active {
    color: #00f7ff; /* Pink for active item */
  }

  .footer-icon span {
    font-size: 10px;
  }
}

/* Terms and Privacy Pages */
.terms-page,
.privacy-page {
  background-color: #f8f9fa;
}

/* General styles for the terms-content and privacy-content sections */
.terms-content,
.privacy-content {
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.terms-content ul {
  padding-left: 2rem;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .terms-content,
  .privacy-content {
    padding: 1rem; /* Reduce padding around the section */
    width: calc(100% - 2rem); /* Ensure the section doesn't touch the edges */
    box-sizing: border-box; /* Include padding in the width calculation */
  }

  /* Align the list with the heading */
  .terms-content h4,
  .privacy-content h4 {
    margin-left: 1rem; /* Ensure the h2 aligns with the list */
  }

  .terms-content ul {
    padding-left: 1rem; /* Add left padding to lists (same as h2) */
    list-style-position: inside; /* Keep the list markers inside the padding area */
  }

  /* Optional: Adjust the list items' margin if needed */
  .terms-content li {
    margin-left: 0; /* Remove extra left margin on list items */
  }
}

.terms-content h2,
.privacy-content h2 {
  font-size: 2rem;
  color: #6b00ff;
  margin-bottom: 0.5rem;
}

.terms-content p,
.privacy-content p {
  color: #2f3542;
  margin-bottom: 1rem;
}

.terms-content h4,
.privacy-content h4 {
  color: #6b00ff;
  margin: 1rem 0;
}

/* About Page */
.about-page {
  background-color: #f8f9fa;
}

.about-hero {
  background: linear-gradient(to bottom, #6b00ff, #00f7ff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 15px;
  margin: 0 1rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.about-hero p {
  font-size: 1.2rem;
  color: #fff;
}

.about-content {
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.about-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h2 {
  color: #6b00ff;
  margin-bottom: 1rem;
}

.about-card p {
  color: #2f3542;
}

/* For Mobile View: Ensure padding and margin are correct */
@media (max-width: 768px) {
  /* Adjust the About Hero for mobile */
  .about-hero {
    margin: 0 1rem; /* Ensure space on both sides */
    padding: 1.5rem 1rem; /* Reduce padding for better spacing on mobile */
    width: calc(100% - 2rem); /* Ensure it doesn't touch the edges */
    box-sizing: border-box; /* Include padding in the width calculation */
  }

  /* Adjust the About Content for mobile */
  .about-content {
    padding: 0 1rem; /* Ensure no content touches the edges */
    margin: 0 auto; /* Keep the content centered */
    width: calc(100% - 2rem); /* Ensure content width is restricted */
  }

  /* Adjust the About Card for mobile */
  .about-card {
    padding: 1.2rem; /* Slightly reduce padding for mobile */
  }

  /* Ensure the cards do not touch the edges */
  .about-card {
    margin-left: auto;
    margin-right: auto;
    width: calc(
      100% - 2rem
    ); /* Ensure the cards don’t touch the screen edges */
  }
}

/* Contact Page */
.contact-page {
  background-color: #f8f9fa;
  font-family: "Montserrat", sans-serif;
}

.contact-hero {
  background: linear-gradient(to bottom, #6b00ff, #00f7ff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 15px;
  max-width: 1200px;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 4rem;
}

.contact-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  font-size: 1.2rem;
  color: #fff;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin-top: 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 0;
}

.contact-details,
.contact-form {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
}

.contact-form:hover,
.contact-details:hover {
  transform: translateY(-5px);
}

.contact-form {
  background: linear-gradient(135deg, #2f3542, #1e272e);
}

.contact-details h2 {
  font-size: 1.5rem;
  color: #2f3542;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  font-size: 1rem;
  color: #2f3542;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-details a {
  color: #6b00ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #00f7ff;
}

.contact-details i {
  color: #6b00ff;
  font-size: 1.2rem;
}

.contact-form h2 {
  font-size: 1.5rem;
  color: #6b00ff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #2f3542;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: "Montserrat", sans-serif;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #6b00ff;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Button Styles */
button {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #00f7ff;
}
button:active {
  background-color: #4b00b3;
}

.contact-form button[type="submit"] {
  background-color: transparent;
  border: 1px solid #6b00ff;
  border-radius: 25px;
  padding: 0.875rem 1.75rem;
  color: #6b00ff;
  font-size: 1rem;
  font-weight: 400;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background-color: rgba(107, 0, 255, 0.7);
  color: #fff;
  border: none;
}

.contact-form button[type="submit"]:disabled {
  background-color: #ccc;
  border: 1px solid #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    margin-top: 4rem;
    padding: 1.5rem 1rem;
    width: calc(100% - 2rem);
    box-sizing: border-box;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .contact-details,
  .contact-form {
    border-radius: 10px;
    width: calc(100% - 2rem);
    margin-bottom: 1rem;
  }

  .mobile-break {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
}

/* Subpage Header (Mobile Only) */
.subpage-header .back-arrow,
.subpage-header .page-title {
  display: none;
}

.subpage-header .back-arrow {
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  position: absolute;
  left: 1rem;
  transition: transform 0.2s ease;
}

.subpage-header .back-arrow:hover {
  transform: scale(1.2);
}

.subpage-header .page-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Category Page Header */
.category-header {
  background-color: #1e272e;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.category-back-btn {
  text-decoration: none;
  position: absolute;
  left: 1rem;
}

.category-back-btn .desktop-back {
  background-color: transparent;
  padding: 0.5rem 1rem;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  transition: border 0.3s ease, color 0.3s ease;
}

.category-back-btn .desktop-back:hover {
  background-color: #1e272e;
  border-radius: 25px;
  color: #fff;
}

.category-back-btn .mobile-back {
  display: none; /* Hidden in desktop */
  color: #000;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.category-back-btn .mobile-back:hover {
  transform: scale(1.2);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
  .toggle-btn {
    display: none;
  }

  .menu {
    display: flex;
    position: static;
    background-color: transparent;
    padding: 0;
  }

  .menu li {
    margin: 0 1rem;
  }

  main {
    max-width: 1200px;
    margin: 2rem auto;
  }

  .subpage-header {
    justify-content: space-between;
  }

  .subpage-header .back-arrow,
  .subpage-header .page-title {
    display: none;
  }

  .subpage-footer {
    display: none;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .subpage-header .logo,
  .subpage-header .nav-menu {
    display: none;
  }

  .subpage-header .back-arrow,
  .subpage-header .page-title {
    display: block;
  }

  .subpage-footer {
    background-color: transparent;
  }

  .subpage-footer .footer-menu {
    display: flex;
  }

  .subpage-footer .footer-divider {
    display: none;
  }

  .contact-hero,
  .contact-form,
  .about-hero,
  .about-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .contact-hero,
  .about-hero {
    margin-top: 4rem;
  }

  .about-content {
    display: block;
    padding: 0;
    margin: 2rem auto;
  }

  .about-card {
    width: 100%;
    margin: 0 0 2rem 0;
    padding: 1.5rem;
  }

  .home-hero,
  .shop-label,
  .special-promotion,
  .brand-logos,
  .square-hero,
  .categories-header,
  .category-icons {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .category-icons {
    justify-content: space-around;
  }

  /* Adjust brand logos section */
  .category-page .brand-logos {
    display: flex;
    justify-content: space-between; /* Space between the logos */
    gap: 0.5rem; /* Reduced gap to fit within mobile screen */
    padding: 0 1rem; /* Add padding on the sides */
    flex-wrap: wrap; /* Allow logos to wrap if necessary */
  }

  .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22%; /* Slightly reduce width of each logo */
  }

  .home-brand-logos-container .home-brand-logos {
    display: flex;
    justify-content: space-between; /* Space between the logos */
    min-width: max-content;
    flex-wrap: nowrap;
  }

  .home-brand-logos-container .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 19%; /* Slightly reduce width of each logo */
    flex-shrink: 0;
    margin-top: 0.8rem;
    scroll-snap-align: start;
  }

  .brand-logo img {
    width: 85px; /* Slightly reduce logo size */
    height: 85px; /* Maintain proportionate size */
    object-fit: contain; /* Ensure logos retain their aspect ratio */
  }

  .category-icon i {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .category-header {
    justify-content: center;
  }

  .category-back-btn .desktop-back {
    display: none; /* Hide button in mobile */
  }

  .category-back-btn .mobile-back {
    display: block; /* Show arrow in mobile */
  }
}

/* Ensure the divider is hidden on category pages in all views */
.category-page .footer-divider {
  display: none;
}

/* Ensure the footer is hidden on desktop for category pages */
@media (min-width: 769px) {
  .category-page .subpage-footer {
    display: none;
  }
}

/* Ensure the footer menu is styled correctly on mobile for category pages */
@media (max-width: 768px) {
  .category-page .subpage-footer {
    background-color: transparent;
  }

  .category-page .footer-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #2f3542;
  }

  .category-page .footer-icon {
    font-size: 1.2rem;
    text-decoration: none;
    color: #2f3542;
    transition: color 0.3s ease;
  }

  .category-page .footer-icon:hover {
    color: #00f7ff;
  }
}

/* Shop Page Grid Layout */
.shop-grid {
  max-width: 1200px;
  margin: 4rem auto 0;
}

.shop-grid .space {
  margin-bottom: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px 25px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  height: 300px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: #2f3542;
  transition: transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.category-item :hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .category-item {
    height: 440px;
  }
}

.category-item span {
  width: 100%;
  padding: 10px 0;
  font-size: 1.8em;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

.category-item.beauty {
  background-image: url("../assets/banners/beauty_category_cover.jpg");
}

.category-item.books {
  background-image: url("../assets/banners/books_category_cover.png");
}

.category-item.business {
  background-image: url("../assets/banners/business_category_cover.jpg");
}

.category-item.fashion {
  background-image: url("../assets/banners/fashion_category_cover.jpg");
}

.category-item.insurance {
  background-image: url("../assets/banners/insurance_category_cover.jpg");
  background-position: 10%;
}

.category-item.home {
  background-image: url("../assets/banners/home_category_cover.jpg");
}

.category-item.tech {
  background-image: url("../assets/banners/tech_category_cover.jpg");
}

.category-item.services {
  background-image: url("../assets/banners/services_category_cover.png");
}

.category-item.loans {
  background-image: url("../assets/banners/loans_category_cover.jpg");
}

.category-item.travel {
  background-image: url("../assets/banners/travel_category_cover.jpg");
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .shop-grid {
    padding: 0 0.5rem 1rem; /* Adjusted padding-top */
  }

  .shop-title {
    font-size: 1rem;
    margin: 0;
    padding: 0 0 0.5rem 0;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .shop-grid {
    padding: 0 1rem 2rem; /* Adjusted padding-top */
  }
}

/* Brand Logos (Scoped to Category Pages) */
.category-page .brand-logos-container {
  margin: 2rem 0;
  max-width: 800px; /* Increased max-width for desktop to accommodate 8 logos */
  margin-left: auto;
  margin-right: auto;
}

.category-page .brand-logos {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for mobile */
  justify-content: space-between;
}

.category-page .brand-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none; /* Remove underline */
  color: #2f3542; /* Dark gray */
  margin: 0.5rem;
  transition: color 0.3s ease;
}

.category-page .brand-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain; /* Ensure logos fit properly */
  margin-bottom: 0.5rem;
}

.category-page .brand-logo span {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
}

.category-page .brand-logo:hover {
  color: #00f7ff; /* Pink on hover */
}

/* Featured Products */
.featured-products {
  margin: 2rem 0;
}

.featured-products h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 1rem;
  text-align: left;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.product-item a {
  text-decoration: none; /* Remove underline */
}

.product-item img {
  width: 100%;
  height: auto; /* Let the image determine its own height */
  object-fit: contain; /* Prevent cropping, no whitespace */
  display: block; /* Remove any inline spacing */
}

.product-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #2f3542;
  margin: 0.5rem 0;
  font-family: "Montserrat", sans-serif;
}

.product-item p {
  font-size: 0.9rem;
  color: #6b00ff; /* Purple for price */
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
}

.product-item:hover {
  transform: translateY(-5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .home-brand-logos-container,
  .category-page .brand-logos-container {
    max-width: 100%;
    padding: 0 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .brand-logos-container::-webkit-scrollbar {
    display: none;
  }

  .home-brand-logos-container::-webkit-scrollbar {
    display: none;
  }

  .category-page .brand-logos {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-width: max-content;
    flex-wrap: nowrap;
  }

  .category-page .brand-logo {
    margin: 0.5rem 0;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .category-page .brand-logo img {
    height: 50px;
    object-fit: contain;
  }

  .category-page .brand-logo span {
    font-size: 0.8rem;
  }

  .featured-products {
    padding: 0 10px; /* Keep padding to fit within screen width */
  }

  .featured-products h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left; /* Left-align on mobile */
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-item img {
    height: auto; /* Let the image determine its own height */
    object-fit: contain; /* Prevent cropping, restore previous behavior */
  }

  .product-item h3 {
    font-size: 0.9rem;
  }

  .product-item p {
    font-size: 0.8rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .category-page .brand-logos {
    flex-wrap: nowrap; /* Force single row on desktop */
    justify-content: space-around; /* Stretch logos out */
  }

  .category-page .brand-logo {
    margin: 0 1.5rem; /* More spacing between logos */
  }

  .category-page .brand-logo img {
    width: 60px; /* Slightly larger logos on desktop */
    height: 60px;
  }
}

/* Insurance Grid (Matches Shop Page) */
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal width for both columns */
  grid-template-rows: 250px repeat(3, 200px); /* Equal heights for all rows */
  gap: 25px; /* 25px space between rows and columns */
  padding: 1rem 1rem 1rem; /* Reduced to 1rem top padding */
  max-width: 1200px;
  margin: 0 auto;
}

.subcategory-tile {
  position: relative;
  background-color: #2f3542; /* Light gray background for subcategory tiles */
  border-radius: 15px; /* Rounded edges like shop page */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%; /* Ensure tiles take up full width of their grid cell */
  box-sizing: border-box; /* Include padding/border in width calculation */
}

.subcategory-tile:hover {
  transform: translateY(-5px);
}

/* Row 1: Placeholder Tile (Spans Two Columns) */
.subcategory-tile.placeholder-tile {
  grid-column: span 2;
  background-image: url("/assets/banners/web_insurance_banner.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 52%;
}

.placeholder-label {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff; /* White text for contrast on background image */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Shadow for readability */
}

.subcategory-icon {
  width: 100px;
  height: 100px;
  background-color: #fff; /* Light purple background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.subcategory-icon i {
  font-size: 3rem; /* Larger icon size */
  color: #6b00ff; /* Electric blue */
}

.subcategory-tile:hover .subcategory-icon {
  background-color: #00f7ff; /* Pink background on hover */
}

.subcategory-tile:hover .subcategory-icon i {
  color: #fff; /* White icon on hover */
}

.subcategory-label {
  margin-top: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff; /* Electric blue */
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.subcategory-tile:hover .subcategory-label {
  color: #00f7ff; /* Pink on hover */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .insurance-grid {
    grid-template-columns: 1fr 1fr; /* Maintain 2-column layout in mobile */
    grid-template-rows: 210px repeat(3, 150px); /* 4 rows, each 150px tall */
    gap: 15px; /* Smaller gap on mobile */
    padding: 0rem 0.5rem 0.5rem; /* Reduced to 1rem top padding */
    max-width: 100%; /* Fit screen width */
  }

  .subcategory-tile.placeholder-tile {
    grid-column: span 2;
    background-image: url("/assets/banners/insurance_banner_mobile.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0%;
  }

  .subcategory-icon {
    width: 80px;
    height: 80px;
  }

  .subcategory-icon i {
    font-size: 2.5rem;
  }

  .subcategory-label {
    font-size: 0.9rem;
  }

  .placeholder-label {
    font-size: 1.2rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr); /* Ensure equal columns */
    gap: 25px;
  }
}

/* Subcategory Content */
.subcategory-content {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.other-insurance-tile,
.health-insurance-tile,
.life-insurance-tile,
.home-insurance-tile,
.vehicle-insurance-tile,
.business-insurance-tile {
  background-color: transparent;
  border-radius: 10px;
  margin: 0 auto;
  margin-bottom: 1rem;
}

/* Insurer List */
.insurer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insurer-image-container {
  margin-top: 0;
  display: flex;
  width: 30%;
  background-color: white;
  border-radius: 10px;
  padding: 0.5rem;
  box-sizing: border-box;
  max-height: 200px;
  position: relative;
  overflow: hidden;
}

.insurer-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.insurer-item {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.5rem;
  background-color: #2f3542;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* .insurer-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  background-color: #fff;
} */

.insurer-details {
  width: 70%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.insurer-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.insurer-feature {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .health-insurance-tile,
  .life-insurance-tile,
  .home-insurance-tile,
  .vehicle-insurance-tile,
  .business-insurance-tile,
  .other-insurance-tile {
    gap: 1rem;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .health-insurance-tile,
  .life-insurance-tile,
  .home-insurance-tile,
  .vehicle-insurance-tile,
  .business-insurance-tile,
  .other-insurance-tile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 180px;
  }

  .health-insurance-tile {
    background-image: url("/assets/banners/health_insurance_mobile.png");
  }

  .life-insurance-tile {
    background-image: url("/assets/banners/life_insurance_mobile.png");
  }

  .home-insurance-tile {
    background-image: url("/assets/banners/home_insurance_mobile.png");
  }

  .vehicle-insurance-tile {
    background-image: url("/assets/banners/vehicle_insurance_mobile.png");
  }

  .business-insurance-tile {
    background-image: url("/assets/banners/business_insurance_mobile.png");
  }

  .other-insurance-tile {
    background-image: url("/assets/banners/other_insurance_mobile.png");
  }

  .insurer-item {
    padding: 0.5rem;
    gap: 1rem;
  }

  /* .insurer-image {
    width: 100px;
    height: 100px;
  } */

  .insurer-name {
    font-size: 1rem;
  }

  .insurer-feature {
    font-size: 0.8rem;
  }
}

/* Insurer Shop Button (Matches Homepage SHOP NOW Button) */
.insurer-shop-btn {
  display: block;
  margin: 1rem 0 0 0; /* Adjusted margin: 1rem top, 0 for others to fit below insurer details */
  background-color: #6b00ff;
  border: none;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  padding: 0.875rem 1.75rem;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  width: 20%;
}

.insurer-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .insurer-shop-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 40%;
  }
}

/* Earn Page Grid (Matches Insurance Grid Structure) */
.earn-page {
  padding-top: 0; /* Matches insurance page */
  margin-top: 4rem; /* Ensure no extra margins */
}

.earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  grid-template-rows: auto; /* Let rows size based on content */
  gap: 25px; /* 25px space between rows and columns */
  padding: 0rem 0.5rem 0.5rem; /* Matches learn.html */
  max-width: 1200px;
  margin: 0; /* Ensure no extra margins */
}

.earn-tile {
  position: relative;
  background-color: #2f3542;
  border-radius: 15px; /* Rounded edges */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%; /* Full width of grid cell */
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.earn-tile:hover {
  transform: translateY(-5px);
}

/* Row 1: Placeholder Tile (Spans Two Columns) */
.earn-tile.placeholder-tile {
  grid-column: span 2;
  background-color: transparent;
}

.earn-placeholder-tile {
  grid-column: span 2;
  text-align: center;
  margin: 0 1rem 1rem;
  max-width: 1200px;
  width: 95%;
  height: 50px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Rows 2-5: Content Layout */
.earn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 160px; /* Match learn.html row height */
  padding: 0.5rem; /* Match learn.html */
  grid-column: span 2; /* Span both columns */
}

.earn-image-container {
  position: relative;
  width: 40%; /* Adjusted to match learn.html */
  height: 100%;
}

.earn-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.explore-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2f3542; /* Dark gray */
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem; /* Match learn.html button size */
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem; /* Match learn.html */
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.explore-btn:hover {
  background-color: #00f7ff; /* Pink on hover */
  color: #2f3542;
}

.earn-details {
  width: 55%; /* Adjusted to match learn.html */
  display: flex;
  flex-direction: column;
  gap: 0.3rem; /* Reduced to fit smaller height */
  padding: 0.5rem; /* Match learn.html */
}

.earn-what-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600; /* Bolder to match previous "What?" styling */
  color: #fff; /* Charcoal */
}

.earn-how-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem; /* Reduced to fit smaller height */
  font-weight: 400; /* Lighter to match previous "How to earn?" styling */
  color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .earn-tile.placeholder-tile {
    background-image: url("/assets/banners/earn_mobile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 210px;
    border-radius: 15px;
  }

  .earn-grid {
    grid-template-columns: 1fr 1fr; /* Maintain 2-column layout */
    grid-template-rows: auto; /* Let rows size based on content */
    gap: 15px; /* Smaller gap, match learn.html */
    padding: 0rem 0.5rem 0.5rem; /* Matches learn.html */
    max-width: 100%;
    margin: 0; /* Ensure no extra margins */
  }

  .earn-content {
    flex-direction: column;
    padding: 0.5rem; /* Match learn.html */
    height: 330px; /* Increased to accommodate extra line for How text */
  }

  .earn-image-container {
    width: 100%;
    height: 50%; /* 50% of 330px = 165px */
  }

  .earn-image {
    border-radius: 10px 10px 0 0;
    object-fit: cover; /* Keep cover, adjusted height should help */
  }

  .earn-details {
    width: 100%;
    height: 50%; /* 50% of 330px = 165px */
    gap: 0.5rem; /* Restored to original value */
    padding: 0.5rem 0.5rem 0; /* Reduced bottom padding to fit */
    overflow: visible; /* Ensure text isn’t clipped */
  }

  .earn-what-text {
    font-size: 0.8rem; /* Restored to original size */
    line-height: 1.2; /* Ensure text doesn’t overlap */
  }

  .earn-how-text {
    font-size: 0.75rem; /* Increased to match .earn-what-text */
    line-height: 1.2; /* Ensure text doesn’t overlap */
  }

  .explore-btn {
    bottom: 5px;
    padding: 0.4rem 0.8rem; /* Match learn.html */
    font-size: 0.8rem;
  }

  .placeholder-label {
    font-size: 1.2rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .earn-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto; /* Let rows size based on content */
    gap: 15px; /* Match learn.html */
    padding: 0rem 0.5rem 0.5rem; /* Match learn.html */
  }

  .earn-content {
    height: 220px; /* Match learn.html */
  }
}

/* Learn Page Grid (Matches Earn Grid Structure) */
.learn-page {
  padding-top: 0; /* Matches earn page */
  margin-top: 4rem; /* Ensure no extra margins */
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  grid-template-rows: 250px 160px 160px 160px 160px; /* Row 1: 150px, Rows 2-5: 400px (same as earn.html mobile) */
  gap: 15px; /* Smaller gap, same as earn.html mobile */
  padding: 0rem 0.5rem 0.5rem; /* Matches earn.html mobile */
  max-width: 1200px;
  margin: 0 auto;
}

.learn-tile {
  position: relative;
  border: 0.5px solid #2f3542;
  background-color: #f8f9fa; /* Light gray background */
  border-radius: 15px; /* Rounded edges */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%; /* Full width of grid cell */
  box-sizing: border-box;
}

.learn-tile:hover {
  transform: translateY(-5px);
}

/* Row 1: Placeholder Tile (Spans Two Columns) */
.learn-tile.placeholder-tile {
  grid-column: span 2;
  background-image: url("/assets/banners/web_learn.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 95%;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .learn-grid {
    grid-template-rows: 170px 190px 190px 190px 190px; /* Row 1: 150px, Rows 2-5: 400px (same as earn.html mobile) */
  }

  .learn-tile.placeholder-tile {
    grid-column: span 2;
    background-image: url("/assets/banners/learn_mobile.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
  }
}

/* Rows 2-5: Content Layout */
.learn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  grid-column: span 2; /* Span both columns */
  background-color: #2f3542; /* Dark gray background to match screenshot */
  border-radius: 15px; /* Rounded edges */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.learn-content:hover {
  transform: translateY(-5px);
}

.learn-image-container {
  position: relative;
  width: 40%; /* Adjusted to fit logo */
  height: 100%;
}

.learn-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure logo isn't distorted */
  background-color: #fff; /* White background for logos */
  padding: 0.5rem; /* Padding to avoid touching edges */
  border-radius: 10px;
}

.learn-details {
  width: 55%; /* Adjusted to fit text and button */
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  position: relative; /* For the vertical line */
}

.learn-details::before {
  content: "";
  position: absolute;
  left: -0.5rem; /* Position the line between the image and details */
  top: 0.5rem; /* Align with padding */
  bottom: 0.5rem; /* Align with padding */
  width: 2px; /* Thin vertical line */
  background-color: #fff; /* White to match screenshot and contrast with background */
  opacity: 0.5; /* Slightly faded for subtlety */
}

.learn-summary-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300; /* Light for summary */
  color: #fff; /* White to contrast with dark background */
  opacity: 0.8; /* Slightly faded for contrast */
}

.start-now-btn {
  display: block;
  margin: 0.5rem 0 0 0; /* Adjusted margin for mobile spacing */
  background-color: #6b00ff; /* Purple from shop-now-btn */
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem; /* Keep size as is */
  color: #fff;
  font-size: 0.8rem; /* Keep size as is */
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  width: auto;
  align-self: flex-start; /* Align with text */
  text-decoration: none;
}

.start-now-btn:hover {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
}

.learn-institution-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600; /* Bold for institution name */
  color: #fff; /* White to contrast with dark background */
}

/*Scroll styling*/
.swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  .scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 120px;
  }

  .swipe-hint {
    display: block;
    text-align: center;
    font-size: 1rem;
    color: #2f3542;
    opacity: 0.7;
    animation: fadeOut 3s ease-in-out 2s forwards;
  }

  @keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
}

/* Earn Trading Page Grid */
.earn-trading-page,
.earn-investing-page {
  padding-top: 0;
  margin: 0;
}

.trading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for desktop */
  grid-template-rows: auto; /* Let rows size based on content */
  gap: 15px; /* Match earn.html and learn.html */
  padding: 0rem 0.5rem 0.5rem; /* Match earn.html and learn.html */
  max-width: 1200px;
  margin: 0 auto;
}

.trading-tile {
  position: relative;
  background-color: #2f3542;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.trading-tile:hover {
  transform: translateY(-5px);
}

/* Placeholder Tile (Spans Two Columns on Desktop) */
.promo-banner {
  transition: transform 0.3s ease;
}

.promo-banner:hover {
  transform: translateY(-5px);
}

@media (min-width: 769px) {
  .promo-banner {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .trading-grid .promo-banner {
    grid-column: span 2;
  }
}

/* Trading Content Layout */
.trading-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all items */
  width: 100%;
  height: auto; /* Remove fixed height to allow content to size naturally */
  min-height: 250px; /* Ensure a minimum height for consistency */
  padding: 0.5rem;
  gap: 0.5rem; /*Reduced gap to bring description and button closer */
}

.trading-logo-container {
  position: relative;
  width: 100%;
  align-self: stretch;
  height: 120px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.trading-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.trading-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.8;
  text-align: left; /* Center the description text */
}

.get-started-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  border-bottom: 3px solid #fff;
  border-left: 1px solid#fff;
  border-right: 1px solid #fff;
  border-radius: 0 0 25px 25px; /* Rounded bottom edges */
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  align-self: center;
}

.get-started-btn:hover {
  color: #6b00ff;
  border-color: #6b00ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .trading-content {
    padding: 0.5rem;
    height: auto; /* Remove fixed height */
    min-height: 250px; /* Ensure a minimum height */
  }

  .trading-description {
    font-size: 0.75rem;
  }

  .get-started-btn {
    width: 80%;
    align-self: center;
    text-decoration: none;
    text-align: center;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .trading-content {
    min-height: 200px; /* Reduced minimum height for desktop */
  }

  .trading-logo {
    max-width: 150px;
  }

  .trading-description {
    font-size: 0.8rem;
  }

  .get-started-btn {
    text-align: center;
    font-size: 0.8rem;
    align-self: flex-start;
  }
}

/* Earn Market Research Page Grid */
.earn-market-research-page {
  padding-top: 0;
  margin: 0;
}

.market-research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for desktop */
  grid-template-rows: auto; /* Let rows size based on content */
  gap: 15px; /* Match earn.html and earn-trading.html */
  padding: 0rem 0.5rem 0.5rem; /* Match earn.html and earn-trading.html */
  max-width: 1200px;
  margin: 0 auto;
}

.market-research-tile {
  position: relative;
  background-color: #2f3542;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.market-research-tile:hover {
  transform: translateY(-5px);
}

/* Placeholder Tile (Spans Two Columns on Desktop) */
.market-research-tile.placeholder-tile {
  grid-column: span 2;
  background: transparent;
  transition: transform 0.3s ease;
}

.market-research-tile.placeholder-tile:hover {
  transform: translateY(-5px);
}

/* Market Research Content Layout */
.market-research-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto; /* Remove fixed height */
  min-height: 250px; /* Ensure a minimum height */
  padding: 0.5rem;
  gap: 0.3rem; /* Reduced gap */
}

.market-research-logo-container {
  position: relative;
  width: 100%;
  align-self: stretch;
  height: 120px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.market-research-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.market-research-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0.5rem;
  border-radius: 10px;
}

.market-research-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.8;
  width: 100%;
  text-align: center;
  padding-bottom: 0.5rem;
  border: none; /* Remove all borders */
}

/* Remove pseudo-elements for side borders */
.market-research-description::before,
.market-research-description::after {
  display: none; /* Remove the 50% side borders */
}

.market-research-description::before {
  left: -1px; /* Align with left border */
}

.market-research-description::after {
  right: -1px; /* Align with right border */
}

.sign-up-btn {
  background-color: #6b00ff; /* Purple, matching START NOW */
  border: none;
  border-radius: 25px; /* Fully rounded, matching START NOW */
  padding: 0.4rem 0.8rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  width: 50%;
  align-self: center;
  text-decoration: none;
  text-align: center;
}

.sign-up-btn:hover {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .market-research-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    grid-template-rows: auto; /* Let rows size based on content */
    gap: 15px;
    padding: 0rem 0.5rem 0.5rem;
    max-width: 100%;
    margin: 0;
  }

  .market-research-tile.placeholder-tile {
    grid-column: span 1; /* Single column on mobile */
    height: 84px;
  }

  .market-research-content {
    padding: 0.5rem;
    height: auto; /* Remove fixed height */
    min-height: 250px; /* Ensure a minimum height */
    gap: 0.3rem; /* Reduced gap */
  }

  .market-research-logo {
    max-width: 120px;
  }

  .market-research-description {
    font-size: 0.75rem;
  }

  .placeholder-label {
    font-size: 1.2rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .market-research-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    grid-template-rows: auto; /* Let rows size based on content */
    gap: 15px;
    padding: 0rem 0.5rem 0.5rem;
  }

  .market-research-content {
    min-height: 200px; /* Reduced minimum height for desktop */
    gap: 0.3rem;
  }

  .market-research-logo {
    max-width: 150px;
  }

  .market-research-description {
    font-size: 0.8rem;
  }

  .sign-up-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Earn Teach English Page Grid */
.earn-teach-english-page {
  padding-top: 0;
  margin: 0;
}

.teach-english-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for desktop */
  grid-template-rows: auto; /* Let rows size based on content */
  gap: 15px; /* Match learn.html */
  padding: 0rem 0.5rem 0.5rem; /* Match learn.html */
  max-width: 1200px;
  margin: 0 auto;
}

.teach-english-tile {
  position: relative;
  background-color: #2f3542; /* Dark gray background to match learn.html */
  border-radius: 15px; /* Rounded edges */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.teach-english-tile:hover {
  transform: translateY(-5px);
}

/* Placeholder Tile (Spans Two Columns on Desktop) */
.teach-english-tile.placeholder-tile {
  grid-column: span 2;
  background: transparent;
  transition: transform 0.3s ease;
}

.teach-english-tile.placeholder-tile:hover {
  transform: translateY(-5px);
}

/* Teach English Content Layout */
.teach-english-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  grid-column: span 2;
  background-color: #2f3542;
  border-radius: 15px;
}

.teach-english-image-container {
  position: relative;
  width: 40%;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
}

.teach-english-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  border-radius: 10px;
}

.apply-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  border-bottom: 3px solid #fff;
  border-left: 1px solid#fff;
  border-right: 1px solid #fff;
  border-radius: 0 0 25px 25px; /* Rounded bottom edges */
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  align-self: flex-start;
  width: 30%;
  text-align: center;
}

.apply-btn:hover {
  color: #6b00ff;
  border-color: #6b00ff;
}

.teach-english-details {
  width: 55%; /* Adjusted to fit text and button */
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  position: relative; /* For the vertical line */
}

.teach-english-details::before {
  content: "";
  position: absolute;
  left: -0.5rem; /* Position the line between the image and details */
  top: 0.5rem; /* Align with padding */
  bottom: 0.5rem; /* Align with padding */
  width: 2px; /* Thin vertical line */
  background-color: #fff; /* White to match learn.html */
  opacity: 0.5; /* Slightly faded for subtlety */
}

.teach-english-institution-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600; /* Bold for institution name */
  color: #fff; /* White to contrast with dark background */
}

.teach-english-summary-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300; /* Light for summary */
  color: #fff; /* White to contrast with dark background */
  opacity: 0.8; /* Slightly faded for contrast */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .teach-english-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    grid-template-rows: auto; /* Let rows size based on content */
    gap: 15px;
    padding: 0rem 0.5rem 0.5rem;
    max-width: 100%;
    margin: 0;
  }

  .teach-english-tile.placeholder-tile {
    grid-column: span 1; /* Single column on mobile */
    height: 75px;
  }

  .teach-english-content {
    flex-direction: column;
    padding: 0.5rem;
    height: 300px;
    grid-column: span 1;
  }

  .teach-english-image-container {
    width: 100%;
    height: 40%;
  }

  .teach-english-details {
    width: 100%;
    height: 60%;
    padding: 0.5rem 0.5rem 0;
  }

  .teach-english-details::before {
    display: none;
  }

  .teach-english-institution-text {
    font-size: 0.9rem;
  }

  .teach-english-summary-text {
    font-size: 0.75rem; /* Slightly smaller on mobile */
  }

  .placeholder-label {
    font-size: 1.2rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .apply-btn {
    margin-top: 4px;
    width: 50%;
  }

  .teach-english-content {
    height: 290px; /* Increased height to make button visible */
    grid-column: span 2;
  }

  .teach-english-institution-text {
    font-size: 0.9rem;
  }

  .teach-english-summary-text {
    font-size: 0.8rem;
  }
}

/*Home Page Carousel*/
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  background-color: black;
}

@media (min-width: 769px) {
  .carousel-container {
    max-width: 100vw;
    /* height: 800px; */
  }
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.indicator {
  width: 12px;
  height: 12px;
  background-color: #2f3542;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #6b00ff;
}

/*Beauty Page*/
.beauty-page .category-page {
  padding: 0.5rem;
  margin: 0;
}

.beauty-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #2f3542;
  text-align: center;
  margin-bottom: 1rem;
}

.beauty-products {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.beauty-products::-webkit-scrollbar {
  display: none;
}

.beauty-product {
  flex: 0 0 200px;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 15px -6px rgba(0, 0, 0, 0.2);
}

.beauty-product:hover {
  transform: translateY(-5px);
}

.beauty-products .product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  padding-top: 10px;
}

.beauty-products .product-name {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f3542;
  margin: 0.5rem 0;
  display: block; /* Ensure visibility */
}

.beauty-products .product-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #2f3542;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block; /* Ensure visibility */
}

.beauty-shop-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  margin-bottom: 0.4rem;
}

.beauty-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

.beauty-products .more-products {
  margin-top: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .beauty-product {
    flex: 0 0 150px;
  }

  .beauty-products .product-image {
    height: 120px;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .beauty-product {
    flex: 0 0 250px;
  }

  .beauty-products .product-image {
    height: 180px;
  }
}

/*Home Category */
.home-page .category-page {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 0.5rem;
  margin: 0;
}

.home-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #2f3542;
  text-align: center;
  margin-bottom: 1rem;
}

.home-section {
  flex: 0 0 auto; /* ⬅️ prevents sections from shrinking */
  width: 100%;
  margin-bottom: 2rem;
}

.room-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 0.5rem;
}

/* Shared styles for all screen sizes */
.home-products {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 15px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.home-product {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 15px -6px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  width: 65%;
}

/* MOBILE default: show ~2.2 items per view */
@media (max-width: 768px) {
  .home-product {
    width: 60%; /* Adjust to show 2 full and hint of 3rd */
  }
}

/* TABLET: maybe 3 items visible */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-product {
    width: 33.33%;
  }
}

/* DESKTOP: allow wrapping to rows */
@media (min-width: 1025px) {
  .home-products {
    flex-wrap: wrap;
    overflow-x: unset;
  }

  .home-product {
    width: calc(25% - 1rem); /* 4 per row with gap */
  }
}

/* Each row of up to 4 products */
.product-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 15px;
  gap: 1rem;
}

/* DESKTOP: 4 items per row, no scroll */
@media (min-width: 769px) {
  .product-row {
    flex-wrap: wrap;
    overflow-x: unset;
  }

  .home-product {
    width: calc(25% - 1rem);
  }
}

.home-products::-webkit-scrollbar {
  display: none;
}

.home-product:hover {
  transform: translateY(-5px);
}

.home-products .product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  padding-top: 10px;
}

.home-products .product-name {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f3542;
  margin: 0.5rem 0;
  display: block;
}

.home-products .product-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #2f3542;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}

.home-shop-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  margin-bottom: 0.4rem;
}

.home-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .home-product {
    flex: 0 0 150px;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .home-product {
    flex: 0 0 250px;
  }
}

/*Tech Category*/
.tech-page .category-page {
  padding: 0.5rem;
  margin: 0;
}

.tech-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.tech-section {
  margin-bottom: 2rem;
}

.tech-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 0.5rem;
}

.tech-products {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 1rem;
  scrollbar-width: none;
  box-shadow: 0 8px 15px -6px rgba(0, 0, 0, 0.2);
}

.tech-products::-webkit-scrollbar {
  display: none;
}

.tech-product {
  flex: 0 0 200px;
  background: linear-gradient(135deg, #2f3542, #1e272e);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.tech-product:hover {
  transform: translateY(-5px);
}

.tech-products .product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
  display: block;
}

.tech-products .product-name {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0;
  display: block;
}

.tech-products .product-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}

.tech-shop-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  margin-bottom: 0.4rem;
}

.tech-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .tech-product {
    flex: 0 0 150px;
  }

  .tech-products .product-image {
    height: 120px;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .tech-product {
    flex: 0 0 250px;
  }

  .tech-products .product-image {
    height: 180px;
  }
}

/*Travel Category*/
.travel-page .category-page {
  padding: 0.5rem;
  margin: 0;
}

.travel-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.travel-agencies {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.travel-agency {
  background-color: #3b4252; /* Slightly lighter dark gray for contrast */
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agency-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.agency-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.travel-details-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.travel-details-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .travel-agency {
    padding: 0.5rem;
  }

  .agency-logo {
    width: 80px;
    height: 80px;
  }

  .agency-description {
    font-size: 0.75rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .travel-agencies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .travel-agency {
    padding: 1rem;
  }
}

/*Books Category*/
.books-page .category-page {
  padding: 0.5rem;
  margin: 0;
  background-color: transparent;
}

.books-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.books-container {
  display: flex;
  flex-direction: column;
  gap: 25px; /* 25px gap between book containers */
  padding: 0 1rem;
}

.book-card {
  display: flex;
  background: linear-gradient(135deg, #2f3542, #1e272e);
  border-radius: 15px;
  padding: 0.5rem;
  gap: 5px;
  transition: transform 0.3s ease;
  align-items: stretch;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.book-card:hover {
  background: linear-gradient(135deg, #2f3542, #f8f9fa);
  transform: translateY(-5px);
}

.book-card:hover .book-name {
  color: #000;
}

.book-card:hover .book-price {
  color: #000;
}

.book-card:hover .description-content p {
  color: #000;
}

.book-image-container {
  margin-top: 0;
  width: 30%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.book-image {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.book-item {
  width: 70%;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .books-container {
    gap: 25px;
    padding: 0 0.5rem;
  }

  .book-name {
    font-size: 0.9rem;
  }

  .book-price {
    font-size: 0.8rem;
  }

  .description-toggle {
    font-size: 0.84rem;
    padding: 0.36rem 0.72rem;
    width: 60%;
  }

  .description-content p {
    font-size: 0.7rem;
    text-align: center;
  }

  .view-book-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    width: 50%;
  }

  .book-card {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .book-image-container {
    width: 100%;
    margin-bottom: 1rem;
  }

  .book-item {
    width: 100%;
    padding: 0;
    align-items: center;
  }
}

.book-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0;
  text-align: center;
}

.book-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.book-description {
  width: 100%;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.description-toggle {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  width: 60%;
}

.description-toggle:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

.description-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  margin-top: 0.5rem;
}

.description-content p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: #fff;
  margin: 0;
  text-align: center;
}

.view-book-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  width: 50%;
}

.view-book-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .book-name {
    font-size: 1.2rem;
  }

  .book-price {
    font-size: 1rem;
  }

  .description-toggle {
    font-size: 1.08rem;
    padding: 0.6rem 1.2rem;
  }

  .description-content p {
    font-size: 0.9rem;
  }

  .view-book-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/*Services Category*/
.services-page .category-page {
  padding: 0.5rem;
  margin: 0;
}

.services-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.services-section {
  margin-bottom: 2rem;
}

.services-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.services-products {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0 1rem;
  scrollbar-width: none;
}

.services-products::-webkit-scrollbar {
  display: none;
}

.services-item {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(47, 53, 66, 0.9);
  border-radius: 15px;
  padding: 1rem;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.services-item:hover {
  transform: translateY(-5px);
}

.services-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.services-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0;
  text-align: center;
}

.services-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  text-align: center;
}

.services-shop-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.services-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .services-section h2 {
    font-size: 1.2rem;
    padding-left: 0.5rem;
  }

  .services-products {
    gap: 0.5rem;
    padding: 0 1rem;
    padding-left: 0.5rem;
  }

  .services-item {
    width: 160px;
    padding: 0.5rem;
  }

  .services-image {
    height: 120px;
  }

  .services-name {
    font-size: 0.9rem;
  }

  .services-price {
    font-size: 0.8rem;
  }

  .services-shop-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .services-image {
    height: 180px;
  }

  .services-name {
    font-size: 1.2rem;
  }

  .services-price {
    font-size: 1rem;
  }

  .services-shop-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Fashion Page Styles */
.fashion-page .category-page {
  padding: 0.5rem; /* Match Tech and Other categories */
  margin: 0;
}

.fashion-page .category-page p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.fashion-section {
  margin-bottom: 2rem;
}

.fashion-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2f3542;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.fashion-products {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.fashion-products::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.fashion-item {
  flex: 0 0 auto;
  width: 278px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(47, 53, 66, 0.9); /* #2f3542 with 90% opacity */
  border-radius: 15px;
  /*padding: 1rem;*/
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.fashion-item:hover {
  transform: translateY(-5px);
}

.fashion-image {
  width: 100%;
  height: auto; /* Let the image determine its own height */
  object-fit: contain; /* Prevent cropping, no whitespace */
  display: block; /* Remove any inline spacing */
  border-radius: 10px;
  /* margin-bottom: 0.4rem; */
}

.fashion-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0;
  text-align: center;
}

.fashion-item .brand-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #00f7ff;
  text-align: center;
  margin-bottom: 1rem;
}

.fashion-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  text-align: center;
}

.fashion-shop-btn {
  background-color: #6b00ff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.4rem 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
  margin-bottom: 0.4rem;
}

.fashion-shop-btn:hover {
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .fashion-section h2 {
    font-size: 1.2rem;
    padding-left: 0.5rem;
  }

  .fashion-products {
    gap: 0.5rem;
    padding: 0 1rem; /* Ensure padding matches Tech and Other categories */
  }

  .fashion-item {
    width: 160px;
    /* padding: 0.5rem;*/
  }

  .fashion-name {
    font-size: 0.9rem;
  }

  .fashion-price {
    font-size: 0.8rem;
  }

  .fashion-shop-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Desktop Adjustments */
@media (min-width: 769px) {
  .fashion-name {
    font-size: 1.2rem;
  }

  .fashion-price {
    font-size: 1rem;
  }

  .fashion-shop-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/*Affiliate Tooltip*/
.info-icon {
  position: relative;
  display: inline-block;
  margin-left: 1px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.blog-page .info-icon,
.category-page .info-icon,
.shop-label .info-icon,
.home-featured-products .info-icon {
  position: relative;
  display: inline-block;
  margin-left: 1px;
  color: #2f3542;
  font-size: medium;
  cursor: pointer;
}

.affiliate-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  color: #2f3542;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  width: 210px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  text-align: left;
}

.close-tooltip {
  position: absolute;
  top: -5px;
  right: 5px;
  font-size: 18px;
  cursor: pointer;
}

.affiliate-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 6px;
  border-style: solid;
  border-color: #6b00ff transparent transparent transparent;
}

.info-icon:hover .affiliate-tooltip,
.info-icon:focus .affiliate-tooltip {
  visibility: visible;
  opacity: 1;
}

.shop-label .affiliate-tooltip,
.home-featured-products .affiliate-tooltip {
  transform: translateX(-51%);
  background-color: rgba(47, 53, 66, 0.9);
  color: #fff;
}

.home-section .affiliate-tooltip {
  transform: translateX(-35%);
  background-color: rgba(47, 53, 66, 0.9);
  color: #fff;
}

.blog-page .affiliate-tooltip {
  background-color: rgba(47, 53, 66, 0.98);
  color: #fff;
  width: 260px;
}

.featured-products .affiliate-tooltip {
  background-color: rgba(47, 53, 66, 0.9);
  color: #fff;
}

.home-section .affiliate-tooltip::after {
  margin-left: -38px;
}

.tech-title .affiliate-tooltip {
  transform: translateX(-35%);
  background-color: rgba(47, 53, 66, 0.9);
  color: #fff;
}

.tech-title .affiliate-tooltip::after {
  margin-left: -38px;
}

.market-research-content .affiliate-tooltip {
  background-color: rgba(47, 53, 66, 0.99);
  color: #fff;
  transform: translateX(-16%);
}

.market-research-content .affiliate-tooltip::after {
  margin-left: -78px;
}

.trading-content .affiliate-tooltip {
  font-weight: 600;
  background-color: #2f3542;
  opacity: 0;
  color: #fff;
}

.insurer-item .info-icon {
  color: #fff;
}

@media (max-width: 768px) {
  .teach-english-content .affiliate-tooltip {
    background-color: rgba(47, 53, 66, 0.99);
    color: #fff;
  }

  .learn-details .affiliate-tooltip {
    transform: translateX(-70%);
  }

  .teach-english-details .affiliate-tooltip {
    transform: translateX(-35%);
  }

  .learn-details .affiliate-tooltip::after {
    margin-left: 35px;
  }

  .teach-english-details .affiliate-tooltip::after {
    margin-left: -38px;
  }

  .home-featured-products .info-icon,
  .shop-label .info-icon {
    font-size: medium;
  }
}

/*Adds space between the last div in mobile and footer*/
@media (max-width: 768px) {
  .space {
    margin: 4rem;
  }
}

/* Coming soon modal*/
body.modal-open {
  overflow: hidden;
}

.coming-soon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.coming-soon-modal.hidden {
  display: none;
}

.coming-soon-modal .modal-content {
  background: linear-gradient(135deg, #2f3542, #1e272e);
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.coming-soon-modal .modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.coming-soon-modal .modal-content p {
  margin: 1rem 0 0;
}

.coming-soon-modal .close-btn {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #f8f9fa;
  transition: color 0.2s;
}

.coming-soon-modal .close-btn:hover {
  color: #ffffff;
}

/*Loan Category Page*/
.loans-page {
  text-align: center;
}

.loans-page .category-page p {
  font-size: 1.1rem;
  color: #2f3542;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1rem auto;
}

/* Container for all links */
.loans-page .category-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style all image links */
.loans-page .category-page a {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Optional, has more effect with text */
}

.loans-page .category-page a img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loans-page .category-page a:hover img {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Desktop Layout: 3 per row */
@media (min-width: 769px) {
  .loans-page .category-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
  }

  .loans-page .category-page p {
    grid-column: span 3;
  }
}

.solution-card a img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card a:hover img {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/*Blog Section*/
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  font-size: 1.25rem; /* smaller than default h2 */
  font-weight: 600;
  color: #2f3542;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #6b00ff, #00f7ff);
  margin: 0 1rem;
}

.blog-scroll-section {
  padding: 0rem 1rem;
  background: #f8f9fa;
  position: relative;
}

.blog-scroll-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #2f3542;
}

.blog-scroll-container {
  display: flex;
  align-items: center;
  position: relative;
}

.blog-scroll-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.blog-scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  background: linear-gradient(to right, #6b00ff, #00f7ff);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background: #6b00ff;
}

.scroll-btn.left {
  margin-right: 0.5rem;
}

.scroll-btn.right {
  margin-left: 0.5rem;
}

.blog-scroll-card {
  min-width: 250px;
  max-width: 300px;
  flex-shrink: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.blog-scroll-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding-top: 0.5rem;
  border-radius: 12px;
}

.blog-scroll-card .content {
  padding: 1rem;
}

.blog-scroll-card h3 {
  font-size: 1.1rem;
  color: #6b00ff;
  margin-bottom: 0.3rem;
}

.blog-scroll-card small {
  color: #999;
  font-size: 0.8rem;
}

.blog-scroll-card button {
  margin: 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #6b00ff, #00f7ff);
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.blog-scroll-card button:hover {
  transform: scale(1.05);
}

#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 0; /* Increase this to push it further right */

  background: transparent;
  border: none;
  cursor: pointer;

  /* Gradient text/icon color */
  background: linear-gradient(135deg, #6b00ff, #00f7ff);
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  font-size: 2.25rem; /* Slightly bigger (was 1.75rem before) */
  padding: 1rem; /* Slightly more padding */
  border-radius: 50%;

  transition: opacity 0.3s ease;
  z-index: 1000;
}

@media (max-width: 768px) {
  #scrollToTop {
    bottom: 3rem; /* pushes the button higher on small screens */
  }
}

.beauty-page,
.books-page,
.business-page,
.fashion-page,
.home-page,
.insure,
.loans-page,
.services-page,
.tech-page,
.travel-page,
.earning {
  margin: 3rem auto;
}

.business-page {
  background-color: #fff;
}
