/* General Styles */
body {
  animation: fadeInPage 1s ease-in-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: var(--base-font-size); 
}

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

h1, h2, h3 {
  color: #4B0082;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-btn {
  background-color: #4B0082;
  color: #fff;
}

.secondary-btn {
  background-color: transparent;
  color: #4B0082;
  border: 2px solid #4B0082;
}

.primary-btn:hover,
.secondary-btn:hover {
  opacity: 0.8;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Header */
.header {
  background-color: #000;
  padding: 1rem 0;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

body {
  padding-top: 80px; /* Adjust based on header height */
}

.header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  height: 40px;
  width: auto;
  border-radius: 0;
  margin-right: 10px;
}

.logo .caretaker {
  color: purple;
  font-size: 1.5rem;
  font-weight: bold;
  align-items: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: indigo;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: #f3f0fa;
}

.hero-flex {
  display: flex;
  background-color: rgba(75, 0, 130, 0.1); /* Light purple tint */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 15px;
  padding: 1rem;
}

.hero-text {
  flex: 1 1 55%;
  justify-content: center; 
}

.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: right;
}

.hero-image img {
  max-width: auto;
  height: auto;
  border-radius: 16px;
}

/* About Section */
.about {
  padding: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;  
  justify-content: center; 

}

.about-text, .about-image {
  flex: 1;
}

/* eligibility */
.eligibility {
  padding: 3rem 0;
  background-color: #f9f9ff;
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
  background-color: #fff;
  text-align: center;
}

.testimonial-item {
  margin-bottom: 2rem;
  font-style: italic;
}

.star-rating {
  color: #FFC107 ;
  font-size: 1.5rem;
  margin-left: 5px;
}

/* Director Message */
.director-message {
  padding: 4rem 0;
  background-color: #f3f0fa;
}

.director-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.director-text {
  flex: 1 1 55%;
}

.director-text p,
.director-text strong {
  margin-bottom: 1rem;
}

.director-image {
  flex: 1 1 40%;
  display: block;
  justify-content: center;
  align-items: center;
}

.director-image img {
  max-width: auto;
  height: auto;
  padding-left: 50%;
}
/* Why Us */
.why-us {
  padding: 3rem 0;
  background-color: #f9f9ff;
}

.why-us ul li {
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  background-color: #f3f0fa;
  padding: 3rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4B0082;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10;
  opacity: 0.8;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #4B0082;
}

/* curriculum */
.curriculum {
  padding: 3rem 0;
  background-color: #fff;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.course-item {
  background-color: #f3f0fa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.course-item:hover {
  transform: translateY(-5px);
}

.course-item h3 {
  color: #4B0082;
  font-size: 1.5rem;
  line-height: 1.5;
}

.course-icon {
  font-size: 1rem;
  color: #4B0082;
}

/* job-opportunities */
.job-opportunities {
  padding: 3rem 0;
  background-color: #f3f0fa;
}

.job-opportunities ul li {
  margin-bottom: 1rem;
}

/* FAQ */
.faq {
  padding: 3rem 0;
}

.faq details {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
}

/* Our Team */
.team {
  padding: 3rem 0;
  background-color: #f9f9ff;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  flex: 1 1 200px;
  min-width: 300px;
  max-width: 250px;
  text-align: center;
}

.team-member img { 
  width: 150px;          /* or 100%, or any fixed width */
  height: 200px;         /* same height for uniformity */
  object-fit: cover;     /* ensures image fills space without distortion */
  border-radius: 10%;    /* optional: makes them circular */
  display: block;
  margin: 0 auto;        /* center-align if needed */
}

.team-member h3 {
  margin: 0.5rem 0;
}

/* Contact */
.contact {
  padding: 3rem 0;
  font-size: 1.5rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-form, .primary-btn{
    font-size: 1.5rem;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background-color: #4B0082;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

/* Animation */
.fade-in-section {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


:root {
  scroll-padding-top: 80px; /* adjust if your header is taller */
  --base-font-size: 25px;
}
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

.footer {
  background-color: #4B0082;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
/* Resposive site */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

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

  .director-image {
    margin-top: 2rem;
  }

  .director-image img {
    display: block;
    margin: 0 auto;
    padding-left: 2%;
  }

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

  .hero-text,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}
