/* -------------------- GLOBAL STYLES -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #fff;
}
.container {
  display: grid;
  grid-template-areas: "topbar topbar" "sidebar main";
  grid-template-columns: 220px 1fr;
  grid-template-rows: 60px auto;
  height: 100vh;
  width: 100vw;
}
.main-content,
.sidebar {
  height: calc(100vh - 60px);
}
.topbar {
  grid-area: topbar;
  background-color: #2e7d32;
  color: #e8f5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}
.topbar h1 {
  font-size: 24px;
}
.logout {
  background-color: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 5px;
}
.logout:hover {
  background-color: #d0e8d0;
}
.sidebar {
  grid-area: sidebar;
  background-color: #e8f5e9;
  padding: 20px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li {
  margin-bottom: 15px;
}
.sidebar ul li a {
  color: #2e7d32;
  font-weight: 700;
  text-decoration: none;
}
.sidebar ul li a:hover {
  text-decoration: underline;
}
.main-content {
  grid-area: main;
  background-color: #fff;
  padding: 30px;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .container {
    grid-template-areas: "topbar" "main" "sidebar";
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto auto;
  }
  .sidebar {
    width: 100%;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------- DASHBOARD PAGE -------------------- */
.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card,
.welcome-box {
  background-color: #e8f5e9;
}
.card h4,
.welcome-box h2 {
  margin-bottom: 10px;
  color: #2e7d32;
}
.card h4,
.card p,
.welcome-box h2,
.welcome-box p,
label {
  color: #2e7d32;
}
.faq-container .section-title,
.welcome-box {
  margin-bottom: 30px;
  font-family: Georgia, serif;
}
.welcome-box {
  border: 2px solid #2e7d32;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.welcome-box h2 {
  font-size: 26px;
}
.welcome-box p {
  font-size: 16px;
  line-height: 1.6;
}
.section-title {
  margin: 30px 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  border-left: 5px solid #2e7d32;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.card:hover {
  transform: scale(1.02);
}
.card p {
  font-size: 15px;
}
.graph-card {
  flex: 1 1 300px;
  background-color: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.graph-card h3 {
  color: #2e7d32;
  margin-bottom: 10px;
  font-size: 18px;
}
.placeholder {
  background-color: #fff;
  border: 1px dashed #2e7d32;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 14px;
  border-radius: 6px;
}

/* -------------------- LOGIN PAGE -------------------- */
.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background: url("../assets/images/bg.jpg") center center/cover no-repeat fixed;
}
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.login-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 2px solid #2e7d32;
}
.login-container h1 {
  color: #2e7d32;
  margin-bottom: 5px;
  font-size: 26px;
}
.login-container h2 {
  color: #444;
  font-size: 20px;
  margin-bottom: 20px;
}
.login-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.login-container label {
  font-weight: 700;
  font-size: 14px;
}
.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="text"] {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 14px;
}
.login-container input[type="submit"] {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
}
.login-container input[type="submit"]:hover {
  background-color: #256529;
}
.login-container p {
  margin-top: 15px;
  font-size: 14px;
}
.login-container a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 700;
}
.login-container a:hover {
  text-decoration: underline;
}
@media (max-width: 400px) {
  .login-container {
    width: 90%;
  }
}

/* -------------------- REGISTER PAGE -------------------- */
.register-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background: url("../assets/images/bg.jpg") center center/cover no-repeat fixed;
}
.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.register-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 2px solid #2e7d32;
}
.register-container h1 {
  color: #2e7d32;
  margin-bottom: 5px;
  font-size: 26px;
}
.register-container h2 {
  color: #444;
  font-size: 20px;
  margin-bottom: 20px;
}
.register-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.register-container label {
  font-weight: 700;
  font-size: 14px;
}
.register-container input[type="email"],
.register-container input[type="password"],
.register-container input[type="text"] {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 14px;
}
.register-container input[type="submit"] {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
}
.register-container input[type="submit"]:hover {
  background-color: #256529;
}
.register-container p {
  margin-top: 15px;
  font-size: 14px;
}
.register-container a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 700;
}
.register-container a:hover {
  text-decoration: underline;
}
@media (max-width: 400px) {
  .register-container {
    width: 90%;
  }
}

/* -------------------- SCHEMES PAGE -------------------- */
.schemes-container {
  padding: 50px;
  max-width: 1200px;
  margin: auto;
}
.section-title {
  font-family: "Arial Rounded MT Bold", sans-serif;
  font-size: 28px;
  margin-bottom: 30px;
  color: #2e7d32;
  text-align: center;
}
.scheme-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
.scheme-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.scheme-text {
  flex: 1 1 55%;
  min-width: 280px;
}
.scheme-video {
  flex: 1 1 40%;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scheme-video iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.scheme-text h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}
.scheme-text .description {
  margin-bottom: 10px;
}
.steps h4 {
  margin-top: 10px;
  color: #1b5e20;
}
.steps ol {
  padding-left: 20px;
  margin-top: 5px;
}
.steps ol li {
  margin-bottom: 5px;
}
.apply-button {
  background-color: #2e7d32;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
  text-decoration: none;
}
.apply-button:hover {
  background-color: #1b5e20;
}

/* -------------------- COMPLAINT PAGE -------------------- */
.complaint-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.complaint-form label {
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 5px;
}
.complaint-form input[type="file"],
.complaint-form input[type="text"],
.complaint-form select,
.complaint-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}
.complaint-form input[type="submit"] {
  background-color: #2e7d32;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 700;
}
.complaint-form input[type="submit"]:hover {
  background-color: #1b5e20;
}
.certificate-section {
  text-align: center;
  margin: 30px 0;
}
.certificate-section h4 {
  color: #2e7d32;
  font-size: 18px;
}
.certificate-img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .certificate-img {
    max-width: 100%;
  }
  .complaint-form {
    padding: 0;
  }
}

/* -------------------- WEATHER PAGE -------------------- */
.weather-page {
  background-color: #f0f4f8;
  font-family: "Segoe UI", sans-serif;
  padding: 40px;
}
.weather-container {
  max-width: 1200px;
  margin: 0 auto;
}
.location-note {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}
.weather-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.weather-card {
  background-color: #fff;
  border-left: 6px solid #2e7d32;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  width: calc(25% - 20px);
  min-width: 220px;
  transition: transform 0.2s ease-in-out;
}
.weather-card:hover {
  transform: translateY(-5px);
}
.weather-card h4 {
  font-size: 18px;
  color: #2e7d32;
  margin-bottom: 10px;
}
.weather-card p {
  margin: 6px 0;
  font-size: 14px;
  color: #444;
}
@media (max-width: 992px) {
  .weather-card {
    width: calc(33.333% - 20px);
  }
}
@media (max-width: 768px) {
  .weather-card {
    width: calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .weather-card {
    width: 100%;
  }
  .weather-page {
    padding: 20px;
  }
}

/* -------------------- SUPPORT PAGE -------------------- */
/* (Note: No specific support page styles) */

/* -------------------- FAQ PAGE -------------------- */
.faq-page {
  background-color: #fff;
  font-family: Arial, sans-serif;
}
.faq-page .main-content {
  padding: 40px;
  background-color: #f9f9f9;
}
.faq-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}
.faq-container .section-title {
  text-align: center;
  font-size: 28px;
  color: #2e7d32;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list details {
  background-color: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}
.faq-list summary {
  font-size: 17px;
  font-weight: 700;
  color: #2e7d32;
  cursor: pointer;
  margin-bottom: 10px;
}
.faq-list p {
  margin-top: 10px;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}
.faq-item {
  padding: 20px;
  line-height: 1.6;
  background-color: #fff;
  border-left: 6px solid #2e7d32;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}
.faq-item h4 {
  color: #1b5e20;
  margin-bottom: 10px;
  font-size: 18px;
}
.faq-item p {
  margin-bottom: 6px;
  font-size: 15px;
}
.faq-item a {
  color: #2e7d32;
  text-decoration: none;
}
.faq-item a:hover {
  text-decoration: underline;
}
.ask-question-box {
  background-color: #e8f5e9;
  padding: 25px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.ask-question-box h3 {
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
}
.ask-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ask-form input,
.ask-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}
.ask-form button {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.ask-form button:hover {
  background-color: #256d28;
}
.faq-note-box {
  padding: 20px;
  line-height: 1.6;
  background-color: #fffde7;
  border-left: 6px solid #ffa000;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  font-size: 15px;
  color: #5d4037;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
  .faq-page .main-content {
    padding: 20px;
  }
  .faq-item,
  .faq-note-box {
    font-size: 14px;
  }
  .faq-item h4 {
    font-size: 16px;
  }
}

/* -------------------- ECOMMERCE PAGE -------------------- */
.sell-page {
  background-color: #fff;
  font-family: Arial, sans-serif;
}
.sell-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}
.sell-container .section-title {
  text-align: center;
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 25px;
  font-family: Georgia, serif;
}
.sell-welcome-box {
  background-color: #e8f5e9;
  border-radius: 10px;
  border-left: 5px solid #2e7d32;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 16px;
  color: #2e7d32;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.sell-form-card {
  background-color: #e8f5e9;
  padding: 25px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #2e7d32;
  border-radius: 10px;
}
.sell-form-card h3 {
  color: #2e7d32;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}
.sell-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sell-form label {
  font-weight: 700;
  color: #2e7d32;
}
.sell-form input[type="file"],
.sell-form input[type="number"],
.sell-form input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.sell-form input[type="submit"] {
  background-color: #2e7d32;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.sell-form input[type="submit"]:hover {
  background-color: #256d28;
}

.popup-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e7d32;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-bottom {
  bottom: -100px;
}

.popup-top {
  top: -100px;
}

.popup-show.popup-bottom {
  bottom: 20px;
  opacity: 1;
}

.popup-show.popup-top {
  top: 20px;
  opacity: 1;
}

/* slider.css */

.slider-section {
  margin-top: 40px;
  text-align: center;
}

.slider {
  position: relative;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slide {
  min-width: 100%;
  height: auto;
  border: 4px solid #2e7d32; /* Green border */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Navigation buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  padding: 10px;
  background-color: #2e7d32;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: #256529;
}
