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

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #f7fdfc;
  color: #2e3b3e;
}

a {
  text-decoration: none;
  color: #2d6a4f;
}

ul {
  list-style: none;
  padding: 0;
}

/* Header + Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.04);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  color: #1d3557;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #2d6a4f;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #eaf4f4, #ffffff);
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 30%;
  height: auto;
  display: block;
  margin: 0 auto 0 auto;
  max-height: 100vh;
  object-fit: cover;
}

.hero h1 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #3a3a3a;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #2d6a4f;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: #1b4332;
}

.cta-button,
.submit-button {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover,
.submit-button:hover {
  transform: translateY(-3px);
}


/* Footer */
footer {
  background-color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* About Page */
.about {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

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

.about h1 {
  font-size: 2.25rem;
  color: #1d3557;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  color: #2e3b3e;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: justify;
}

/* Services Page */
.services {
  padding: 4rem 2rem;
  background-color: #f7fdfc;
}

.services .container {
  max-width: 1000px;
  margin: 0 auto;
}

.services h1 {
  font-size: 2.25rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 2rem;
}

/* Grid of service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item h2 {
  font-size: 1.25rem;
  color: #1d3557;
  margin-bottom: 0.75rem;
}

.service-item p {
  font-size: 1rem;
  color: #2e3b3e;
  line-height: 1.6;
}

/* Testimonials Page */
.testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fdfc 100%);
}

.testimonials .container {
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials h1 {
  font-size: 2.75rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Testimonial Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-card p {
  font-size: 1.1rem;
  color: #2e3b3e;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card h3 {
  font-size: 1rem;
  color: #2d6a4f;
  font-weight: 600;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .testimonials h1 {
    font-size: 2rem;
  }
}

/* Resources Page */
.resources {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f7fdfc 0%, #ffffff 100%);
}

.resources .container {
  max-width: 1200px;
  margin: 0 auto;
}

.resources h1 {
  font-size: 2.75rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Resource Card */
.resource-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.resource-card h2 {
  font-size: 1.5rem;
  color: #2d6a4f;
  margin-bottom: 1rem;
}

.resource-card p {
  font-size: 1rem;
  color: #2e3b3e;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.resource-card a {
  font-size: 1rem;
  font-weight: 600;
  color: #1d3557;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.resource-card a:hover {
  color: #2d6a4f;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .resources h1 {
    font-size: 2rem;
  }
}

/* Contact Page */
.contact {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f0f7f6 0%, #ffffff 100%);
}

.contact .container {
  max-width: 700px;
  margin: 0 auto;
}

.contact h1 {
  font-size: 2.75rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
  color: #2e3b3e;
  font-size: 1.1rem;
}

/* Form Styling */
.contact-form {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2e3b3e;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2d6a4f;
  outline: none;
}

/* Submit Button */
.submit-button {
  background-color: #2d6a4f;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #1b4332;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .contact h1 {
    font-size: 2rem;
  }
}

/* Smooth fade-in on page load */
body {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

body.loaded {
  opacity: 1;
}

.learn-more-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #2d6a4f;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.learn-more-button:hover {
  background-color: #1b4332;
}

/* Testimonial Rotation */
.testimonial-wrapper {
  position: relative;
  height: 250px;
  /* Adjust based on your content size */
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
}


/* Privacy Page */
.privacy {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

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

.privacy h1 {
  font-size: 2.25rem;
  color: #1d3557;
  margin-bottom: 1.5rem;
  text-align: center;
}

.privacy p {
  font-size: 1.1rem;
  color: #2e3b3e;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: justify;
}

.privacy ol {
  padding: 1rem;
}

.privacy ol li {
  margin-bottom: 1rem;
}

.privacy ol>li::marker {
  font-weight: bold;
}

.privacy ol li h2 {
  font-size: 1.1rem;
}

/* Terms Page */
.terms {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

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

.terms h1 {
  font-size: 2.25rem;
  color: #1d3557;
  margin-bottom: 1.5rem;
  text-align: center;
}

.terms p {
  font-size: 1.1rem;
  color: #2e3b3e;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: justify;
}

.terms ol {
  padding: 1rem;
}

.terms ol li {
  margin-bottom: 1rem;
}

.terms ol>li::marker {
  font-weight: bold;
}

.terms ol li h2 {
  font-size: 1.1rem;
}

.book-list {
  list-style: none;
  padding: 0;
}

.recommended-books {
  padding: 4rem 2rem;
  background-color: #f7fdfc;
}

.recommended-books .container {
  max-width: 1000px;
  margin: 0 auto;
}

.recommended-books h1 {
  font-size: 2.25rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 2rem;
}

.book-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.book-item:last-child {
  border-bottom: none;
}

.book-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.book-author {
  color: #555;
  margin: 0.3rem 0;
}

.book-description {
  margin: 0.5rem 0 0;
}

.sel-support {
  padding: 4rem 2rem;
  background-color: #f7fdfc;
}

.sel-support .container {
  max-width: 1000px;
  margin: 0 auto;
}

.sel-support h1 {
  font-size: 2.25rem;
  color: #1d3557;
  text-align: center;
  margin-bottom: 2rem;
}


.resource-list {
  list-style: none;
  padding: 0;
}

.resource-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.resource-author {
  color: #555;
  margin: 0.3rem 0;
}

.resource-description {
  margin: 0.5rem 0 0;
}