/* General Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

.about-section {
  background: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  max-width: 1200px;
  margin: 50px auto;
}

.title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2e7d32;
}

.date {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
}

.intro {
  font-size: 1.1rem;
  margin: 20px auto;
  max-width: 800px;
  line-height: 1.6;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.item {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.item i {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

.item h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}

.item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.item:hover {
  transform: translateY(-5px);
}

/* Footer */
/* Footer */
footer {
  background: linear-gradient(90deg, #2e7d32, #388e3c); /* Gradient effect */
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  position: relative;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer .social-links {
  margin-top: 20px;
}

footer .social-links a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  margin: 0 10px;
  transition: transform 0.3s ease-in-out;
}

footer .social-links a:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

footer .footer-bottom {
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.7;
}

footer .footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer .footer-bottom a:hover {
  color: #ff5722; /* Change to a contrasting color on hover */
}

/* Form */
form,
.form-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #555;
}

input,
textarea,
.dropdown {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

input:focus,
textarea:focus,
.dropdown:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Buttons */
button {
  display: block;
  width: auto;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button[type='submit'] {
  background-color: #28a745;
  color: white;
}

button[type='submit']:hover {
  background-color: #218838;
}

button[type='button'] {
  background-color: #007bff;
  color: white;
}

button[type='button']:hover {
  background-color: #0056b3;
}

.field-group {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.field-group button {
  background-color: #dc3545;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.field-group button:hover {
  background-color: #c82333;
}

/* File Upload */
.upload-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px;
}

.file-input {
  display: none;
}

.custom-upload {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.image-container {
  text-align: center;
  margin: 20px 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-upload:hover {
  background-color: #0056b3;
}

/* Image Preview */
.image-preview-container {
  text-align: center;
  margin-top: 20px;
}

#feeAmount {
  background-color: yellow; /* Yellow background only for the text */
  font-size: 200%; /* Increase font size */
  font-weight: bold; /* Make text bold */
  padding: 5px; /* Small padding for better visibility */
  border-radius: 3px; /* Slightly rounded corners */
  display: inline-block; /* Ensures background only covers the text */
}

#image-preview,
#sign-preview {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 10px;
}

/* Radio and Checkbox */
.radio-group,
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radio-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}

.radio-wrapper input[type='radio'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #007bff;
  border-radius: 50%;
  transition: 0.3s;
}

.radio-wrapper input[type='radio']:checked ~ .radio-custom {
  background-color: #007bff;
}

.checkbox-wrapper input[type='checkbox'] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Repeater */
.repeater-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.repeater-item {
  flex: 1 1 calc(20% - 10px);
  box-sizing: border-box;
}

.repeater-item input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Navigation */
.header {
  background: linear-gradient(90deg, #4caf50, #2e7d32); /* Gradient effect */
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: auto;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1); /* Slight zoom effect */
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white; /* Changed to white */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); /* Added shadow effect */
  margin-left: -4cm; /* Added margin to move title 2 cm to the right of the logo */
}

nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cta-button {
  background: #ff5722;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #e64a19;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.logout-link {
  margin-right: 15px; /* Adjust spacing as needed */
}

/* Slider container */
.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
}

/* Slider */
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Slide */
.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .slider {
    flex-direction: column;
  }

  .slide {
    min-width: 100%;
  }

  .accordion-button {
    background-color: #f8f9fa; /* Default background */
    color: white; /* Default text color */
    transition: background-color 0.3s, color 0.3s;
  }

  .accordion-button:not(.collapsed) {
    background-color: #343a40; /* Dark background when expanded */
    color: white; /* White text when expanded */
  }

  /* Ensure all tables are styled */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* Target all table headers and cells */
  th,
  td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
  }

  /* Header styling */
  th {
    background-color: #007bff !important; /* Use !important to force styles */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
  }

  /* Alternate row coloring */
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  /* Hover effect */
  tr:hover {
    background-color: #e6f7ff;
    transition: 0.3s;
  }

  /* Target images inside the table */
  td img {
    border-radius: 5px;
    display: block;
    margin: auto;
  }

  /* Ensure links inside the table look good */
  td a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  td a:hover {
    text-decoration: underline;
  }

  /* Responsive design */
  @media (max-width: 768px) {
    table {
      font-size: 14px;
    }
    th,
    td {
      padding: 10px;
    }
  }
}
