/* Reset */
body {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; 

  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #d9fdd3;
  color: #1b5e20;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  background-color: #4caf50;
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
  border-bottom: 2px solid #d9fdd3;
}

/* Site name */
.site-name a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

/* Navigation list */
.nav-bar {
  margin-top: 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* allows wrapping if too long */
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-list li {
  position: relative; /* needed for dropdown positioning */
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.nav-list a:hover {
  background-color: #1b5e20;
  border-radius: 4px;
  color: #aeea00;
}

/* Active/current page */
.nav-list a.active {
  background-color: #1b5e20;
  border-radius: 4px;
  color: #aeea00;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* directly below parent */
  left: 0;
  background-color: #4caf50;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dropdown items */
.dropdown-menu li {
  text-align: left;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  color: white;
}

.dropdown-menu a:hover {
  background-color: #1b5e20;
  color: #aeea00;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
  box-shadow: 1px 1px 5px black;
}

/* Intro Section */
.intro {
  text-align: center;
  padding: 40px 20px;
  background-color: #d9fdd3; /* #aeea00 accent lime */
  color: #1b5e20;
}

.intro h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.intro p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Section */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background-color: #d9fdd3;
}

.service-card {
  flex: 1 1 300px; /* flexible width, min 300px */
  max-width: 400px;
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #aeea00;
}

.service-card h2 {
  margin: 10px 0;
  font-size: 1.5rem;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Button-style link */
.service-card .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #aeea00;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card .btn:hover {
  background-color: #aeea00;
  color: #1b5e20;
}

/* Blog Section */
.blog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background-color: #d9fdd3; /* #aeea00 lime accent */
}

.blog-card {
  position: relative; /* new change */
  flex: 1 1 300px; /* flexible width, min 300px */
  max-width: 350px;
  background-color: #4caf50;
  color: white;
  text-align: left;
  border-radius: 8px;
  overflow: hidden; /* ensures image stays inside */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.thumbnail {
  position: relative;
}

.thumbnail img {
  width: 100%;
  display: block;
  border-radius: 6px; /* optional */
}

/* Overlay icon */
.overlay-icon {
  position: absolute;
  top: 8px;       /* distance from top */
  left: 8px;      /* distance from left */
  max-width: 80px;    /* size of overlay image */
  max-height: 80px;   /* keep it small */
  border-radius: 10%; /* optional: make it circular */
  border: 0px solid #fff; /* optional: add border for contrast */
  box-shadow: 0px 0px 6px black;
}
.blog-img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* keeps image proportional */
}

.blog-card h2 {
  margin: 15px 0 10px;
  padding: 0 15px;
  font-size: 1.4rem;
}
.truncate-2-lines {
  display: -webkit-box;        /* Enables flexbox for webkit */
  -webkit-line-clamp: 2;       /* Limit to 2 lines */
  -webkit-box-orient: vertical;/* Vertical orientation */
  overflow: hidden;            /* Hide overflowing text */
  text-overflow: ellipsis;     /* Add "..." at the end */
}

.blog-card p {
  font-size: 1rem;
  margin: 0 15px 20px;
  padding-left: 0em;
  line-height: 1.5;
}

/* Button-style link */
.blog-card .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #aeea00;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-card .btn:hover {
  background-color: #aeea00;
  color: #1b5e20;
}

/* Pagination Section */
.pagination {
  text-align: center;
  padding: 30px 20px;
  background-color: #d9fdd3;
}

.pagination-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* allows wrapping if too many pages */
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.pagination-list a {
  display: inline-block;
  text-decoration: none;
  background-color: #4caf50;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-list a:hover {
  background-color: #1b5e20;
  color: #aeea00;
}

.pagination-list a.active {
  background-color: #1b5e20;
  color: #aeea00;
}


/* Single Blog Section Layout */
.single-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  background-color: #d9fdd3;
}

/* Main Content */
.blog-main {
  flex: 3;
  position: relative; /* new change */
  min-width: 250px;
  text-align: left;
}

.blog-main-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.excerpt {
  font-style: italic;
  margin-bottom: 20px;
  color: #1b5e20;
}

.blog-main h2 {
  margin-top: 20px;
  color: #1b5e20;
}

.blog-main h3 {
  margin-top: 15px;
  color: #4caf50;
}

.blog-main p, .blog-main ul {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Button */
.blog-main .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #aeea00;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-main .btn:hover {
  background-color: #aeea00;
  color: #1b5e20;
}

/* Meta info */
.blog-meta {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #333;
}

.blog-meta span {
  margin-right: 20px;
}

/* Sidebar */
.blog-sidebar {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.blog-sidebar h4 {
  margin-bottom: 15px;
  color: #1b5e20;
}

.blog-sidebar h5 {
  margin: 10px 0;
  font-weight: normal;
}

.blog-sidebar a {
  text-decoration: none;
  color: #4caf50;
  transition: color 0.3s ease;
}

.blog-sidebar a:hover {
  color: #1b5e20;
}


/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .single-blog {
    flex-direction: column;
  }
  .blog-main-img {
    max-height: 240px;
  }
}

/* Contact Section */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 60px 20px;
  background-color: #d9fdd3;
  color: #1b5e20;
}

/* Contact Form */
.contact-form {
  flex: 2;
  min-width: 280px;
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #4caf50;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1b5e20;
}

/* Button */
.contact-form .btn {
  background-color: #1b5e20;
  color: #aeea00;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #4caf50;
  color: white;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-info h2 {
  margin-bottom: 15px;
}

.contact-info p {
  margin: 8px 0;
  line-height: 1.5;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .contact {
    flex-direction: column;
  }
}

/* FAQ Section Layout */
.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  background-color: #d9fdd3;
}

/* Main FAQ Content */
.faq-main {
  flex: 3;
  min-width: 250px;
  text-align: left;
}

.faq-main h2 {
  margin-top: 20px;
  color: #1b5e20;
}

.faq-main p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Sidebar */
.faq-sidebar {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.faq-sidebar h4 {
  margin-bottom: 15px;
  color: #1b5e20;
}

.faq-sidebar h5 {
  margin: 10px 0;
  font-weight: normal;
}

.faq-sidebar a {
  text-decoration: none;
  color: #4caf50;
  transition: color 0.3s ease;
}

.faq-sidebar a:hover {
  color: #1b5e20;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .faq {
    flex-direction: column;
  }
}

/* Privacy Policy Section */
.privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  background-color: #d9fdd3;
}

/* Main Content */
.privacy-main {
  flex: 3;
  min-width: 250px;
  text-align: left;
}

.privacy-main h1 {
  margin-bottom: 20px;
  color: #1b5e20;
}

.privacy-main h2 {
  margin-top: 20px;
  color: #4caf50;
}

.privacy-main p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Sidebar */
.privacy-sidebar {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.privacy-sidebar h4 {
  margin-bottom: 15px;
  color: #1b5e20;
}

.privacy-sidebar h5 {
  margin: 10px 0;
  font-weight: normal;
}

.privacy-sidebar a {
  text-decoration: none;
  color: #4caf50;
  transition: color 0.3s ease;
}

.privacy-sidebar a:hover {
  color: #1b5e20;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .privacy {
    flex-direction: column;
  }
}

/* Application Section */
.application {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 20px;
  background-color: #d9fdd3;
  color: #1b5e20;
}

/* Left: Info */
.application-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.application-info h2, .application-info h3 {
  color: #4caf50;
}

.application-info ul {
  margin: 10px 0 20px;
  padding-left: 20px;
}

/* Right: Form */
.application-form {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.application-form h2 {
  margin-bottom: 20px;
  color: #4caf50;
}

.application-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.application-form input,
.application-form select,
.application-form textarea {
  padding: 10px;
  border: 1px solid #4caf50;
  border-radius: 4px;
  font-size: 1rem;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: #1b5e20;
}

/* Checkbox styling */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button */
.application-form .btn {
  background-color: #1b5e20;
  color: #aeea00;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.application-form .btn:hover {
  background-color: #4caf50;
  color: white;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .application {
    flex-direction: column;
  }
}


/* Application Sent Section */
.application-sent {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #d9fdd3;
  color: #1b5e20;
}

.sent-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #4caf50;
}

.sent-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.sent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.sent-actions .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #aeea00;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sent-actions .btn:hover {
  background-color: #4caf50;
  color: white;
}


/* Footer Section */
.site-footer {
  text-align: center;
  background-color: #1b5e20;
  color: white;
  padding: 30px 20px;
}

.site-footer p {
  margin: 0 0 15px;
}

/* Page Links */
.footer-links, .footer-pages {
  margin-bottom: 15px;
}

.footer-pages a {
  text-decoration: none;
  color: #fff;
  margin: 0 10px;
  font-weight: normal;
  transition: color 0.3s ease;
}

.footer-links a {
  text-decoration: none;
  color: #aeea00;
  margin: 0 10px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

/* Social Icons */
.footer-social {
  margin-bottom: 15px;
}

.footer-social a {
  color: #aeea00;
  margin: 0 8px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
}

/* Button Link */
.footer-action .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-action .btn:hover {
  background-color: #aeea00;
  color: #1b5e20;
}
