/* ============================= */
/* Base Reset - Ensures consistency across browsers */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Header */
.main-header {
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Left Section: Logo and Channel Name */
.left-section {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.channel-name {
  font-size: 18px;
  font-weight: bold;
}

/* Right Section: Navigation */
.right-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 6px 10px;
  white-space: nowrap;
}

.right-section a:hover {
  color: #D32F2F;
}

/* Section Title */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  /* spacing between title and subtitle */
  flex-wrap: wrap;
  /* ensures good layout on small screens */
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.section-para {
  font-size: 16px;
  color: #666;
  margin: 0;
  text-align: center;
}

.search-section {
  display: flex;
  justify-content: center;
  margin: 2px 0;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  transition: border-color 0.3s;
}

.search-wrapper input:focus {
  border-color: #d32f2f;
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #777;
  cursor: pointer;
  display: none;
}

.suggestions {
  display: none;
  position: absolute;
  width: 100%;
  top: 105%;
  left: 0;
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  list-style: none;
  padding: 0;
  margin-top: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.suggestions li {
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid #d32f2f;
  font-size: 14px;
  color: #333;
  /* border-radius: 5px; */
  transition: background-color 0.2s;
}

.suggestions li:hover {
  background-color: #ffeaea;
}

/* Product Grid and Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  margin: 0 auto;
  padding: 10px;
  max-width: 2000px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card a {
  display: inline-block;
  margin-top: 12px;
  background-color: #D32F2F;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.product-card a:hover {
  background-color: #800303;
  ;
}

.redbus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.title-wrapper {
  position: relative;
  margin-bottom: 8px;
}

/* Title remains left-aligned */
.redbus-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #222;
  text-align: left;
}

/* Icons absolutely positioned to top-right corner of the title block */
.redbus-icons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 ;
  line-height: 0 ;
}

.icon-link {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 ;
  background: none !important;
  border: none ;
  box-shadow: none;
}

.icon-link img {
  width: 25px;
  height: 25px;
  display: block;
  margin: 2;
  background: none;
  border: none;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icon-link:hover img {
  transform: scale(1.1);
}

.redbus-route {
  font-size: 15px;
  margin: 1px 0;
  color: #444;
  text-align: left;
}

.redbus-note {
  font-size: 13px;
  font-style: italic;
  margin-top: 6px;
  color: #666;
  text-align: left;
}

.redbus-contact {
  font-size: 14px;
  margin: 1px 0 1px;
  color: #555;
  text-align: left;
}

/* Go Back Link */
.go-back-home {
  text-align: center;
  margin: 40px 0;
}

.go-back-home a {
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.2s ease;
}

.go-back-home a:hover {
  color: #0056b3;
}

/* =============================
   Footer
============================= */
.footer{
  text-align:center; padding:24px var(--page-pad);
  background:#fafafa; border-top:1px solid #ddd; margin-top:40px;
}
.footer-icons{
  display:flex; justify-content:center; align-items:center;
  gap:18px; margin:8px 0 0;
}
.footer-icons a{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px;
}
.footer-icons img{ width:24px; height:24px; }
.copyright{
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}
.disclaimer{ margin-top:6px; font-size:10px; color:#666; }

/* ============================= */
/* Mobile Responsive Adjustments */
/* ============================= */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-section {
    width: 100%;
    justify-content: center;
  }

  .search-section input {
    max-width: 100%;
  }

  .right-section {
    width: 100%;
    justify-content: flex-start;
    padding-left: 10px;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 8px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    /* Only one product per row on small screens */
    padding: 10px 12px;
  }

  .product-card {
    max-width: 100%;
    /* Full width */
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn’t cause overflow */
  }

  .redbus-icons {
    right: 5px;
    padding: 5px;
  }
}