/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset default margins/paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fff;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

section.bg-white + section.bg-white::before {
  content: "";
  display: block;
  height: 2px;
  width: 60px;
  background-color: #28a745;
  margin: 0 auto 40px;
}


/* Universal section padding */
section {
  padding: 60px 20px;
}

/* Header Styling */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  margin-bottom: 2rem;
}
header .dropbtn {
  font-weight: 400 !important;
}


.logo img {
  height: 80px;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.dropbtn {
  text-decoration: none;
  color: #333;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.2s;
}

.nav-links a:hover,
.dropbtn:hover {
  background-color: #ddd;
  border-radius: 4px;
}

.nav-links a.login-btn {
  background-color: #28a745 !important;
  color: white !important;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.nav-links a.login-btn:hover {
  background-color: #218838 !important;
}

/* Dropdown Styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border: 1px solid #ccc;
}

.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #eee;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Tagline Carousel Styles */
.tagline-carousel {
  background: linear-gradient(to right, #e0fce3, #f5fff6);
  border-bottom: 1px solid #dcdcdc;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

#tagline-line1,
#tagline-line2 {
  min-height: 36px;
  width: 100%;
  text-align: center;
  word-wrap: break-word;
}




/* Optional: prevent long lines from overflowing */
@media (max-width: 768px) {
  #tagline-line1,
  #tagline-line2 {
    font-size: 1.5rem;
    white-space: normal;
  }

  #tagline-container {
    min-height: 140px;
  }
}



/* Desktop layout */
.carousel-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

/* Recycle icon spacing for desktop */
.recycle-icon {
  margin-bottom: 0; /* override the mobile margin */
}


.recycle-icon {
  animation: pulse 4s infinite;
}

.recycle-icon img {
  max-width: 600px;
  height: auto;
}
#tagline-container {
  max-width: 600px;
  padding: 0 20px;
}


@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.95; }
}

/* Tagline Container */
#tagline-container {
  min-height: 180px; /* adjust as needed to match two lines */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tagline Headings */
#tagline-container h1 {
  font-size: 2.5rem;
  margin: 10px 0;
  color: #2d2d2d;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fade-out {
  opacity: 0;
}



/* BUTTON */
.btn-green,
.recycle-btn,
.btn-success {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-green:hover,
.recycle-btn:hover,
.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* HOW IT WORKS */
.how-it-works-green ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.how-it-works-green li {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
  font-size: 1.1rem;
}

.how-it-works-green li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #28a745;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  box-shadow: 0 0 0 3px #fff;
}

/* WHY USE SECTION */
.why-use-revised ul li {
  padding: 20px;
  border-left: 4px solid #28a745;
  background-color: #f8f9fa;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  line-height: 1.6;
  font-size: 1.05rem;
}


/* Footer */
.site-footer {
  background-color: #2d2d2d;
  color: #fff;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover,
.footer-column a:hover {
  color: #fff;
}

.footer-column p {
  margin-bottom: 10px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #000;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ccc;
}

/* FAQ Question Styling */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #e0e0e0;
}

.faq-icon {
  font-size: 1.5rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 10px 15px;
  background: #fafafa;
  border-top: 1px solid #ccc;
}

.faq-answer.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Us Section */
.about-us {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.about-us h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2d2d2d;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.about-mission-vision {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.about-block {
  max-width: 400px;
  text-align: left;
}

.about-block h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #28a745;
}

.about-block p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.about-btn-container {
  text-align: center;
}

.business-tagline-hero {
  background: url('assets/recycling-man.png') no-repeat center center/cover;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.tagline-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.business-tagline-hero .container {
  text-align: center;
  padding: 0 20px;
}

.business-tagline-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.business-tagline-hero h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.business-tagline-hero p {
  font-size: 1.2rem;
}

/* =======================
   Login Page Styles
========================== */

body.login-page {
  background-color: #218838;
  color: white;
}

.login-btn-white {
  background-color: #ffffff;
  color: #218838;
  font-weight: 600;
  padding: 14px;
  font-size: 1.25rem;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
}

.login-btn-white:hover {
  background-color: #e6e6e6;
  transform: translateY(-2px);
}

.back-home-btn {
  background-color: #CC9933;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-home-btn:hover {
  background-color: #b8862b;
  text-decoration: none;
}

.login-page h2 {
  color: white;
  font-weight: 700;
}

/* Sticky footer layout */
html, body {
  height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Fix back-home button spacing */
.back-home-btn {
  margin-top: 20px;
  display: inline-block;
}

html, body {
  height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Optional: uniform spacing below top nav or buttons */
.mt-4 {
  margin-top: 1.5rem !important;
}

.back-home-wrapper {
  padding: 1.5rem 1rem 0 1rem; /* top, right, bottom, left */
}


/* Hide table and show cards on small screens */
@media (max-width: 768px) {
  .history-table {
    display: none;
  }

  .history-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .history-card p {
    margin: 4px 0;
    font-size: 0.9rem;
  }

  .history-card p strong {
    color: #28a745;
  }
}



/* Improve dashboard spacing for mobile */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 20px 15px;
    margin: 20px 10px;
  }

  .dashboard-header h2 {
    font-size: 1.5rem;
  }

  .history-table th,
  .history-table td {
    font-size: 0.85rem;
    padding: 8px;
  }

  .email-form {
    margin: 40px 10px;
    padding: 30px 20px;
  }

  .email-form h2 {
    font-size: 1.5rem;
  }

  .email-form input[type="email"],
  .email-form button {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .faq-section h2 {
    text-align: left;
    padding-left: 10px;
  }

  .faq-container {
    padding: 0 10px;
  }

  .faq-question {
    text-align: left;
  }

  .faq-answer {
    text-align: left;
  }
}



@media (max-width: 768px) {
  section {
    padding: 40px 16px;
  }

  .carousel-content {
    flex-direction: column;
    text-align: center;
  }

  .recycle-icon {
    margin-bottom: 20px;
  }


  .recycle-icon img {
    max-width: 300px;
  }

  #tagline-container {
    text-align: center;
    align-items: center;
  }

  .steps, .reasons {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 30px;
  }

  .summary-section ul li {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .btn {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    margin: 0.5rem 0;
  }

  .recycle-btn {
    width: 100%;
  }

  .site-header {
    flex-wrap: wrap; /* allow stacking */
    padding: 10px 15px;
  }

  .logo img {
    height: 60px; /* smaller logo on mobile */
  }

  .nav-links {
    flex-wrap: wrap; /* wrap nav links to new lines */
    gap: 8px;
    justify-content: center; /* center nav on mobile */
    width: 100%;
  }

  .nav-links a,
  .dropbtn {
    font-size: 14px; /* smaller font */
    padding: 6px 10px; /* less padding */
    white-space: nowrap; /* keep text on one line */
  }

  /* Dropdown content full width on mobile for easier clicking */
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    min-width: auto;
    width: 100%;
    background-color: #f3f3f3;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .social-icons {
    justify-content: center;
  }
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}
