/* ================================
   Homepage Specific Styles
   ================================ */

   /* Compact spacing for main sections */
.hero,
.carousel-container,
.intro,
.mission {
  margin: 30px auto;       /* reduce vertical spacing */
  padding: 30px 20px;      /* slightly smaller padding */
}





.hero h1 {
  font-size: 2.2rem;       /* reduce heading size */
}

.intro h2,
.mission h2 {
  font-size: 1.8rem;       /* slightly smaller headings */
}

.intro p,
.mission p {
  font-size: 1rem;         /* reduce paragraph size */
  line-height: 1.5;        /* tighter spacing */
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--brand-header), var(--brand-hover));
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
}

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero .cta-button {
  font-size: 0.9rem;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;   /* reduced size */
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* Carousel Images */
.carousel img {
  min-width: 100%;
  height: auto;
  flex-shrink: 0;
  max-height: 500px;     /* limits tall images */
  object-fit: cover;     /* crops nicely without stretching */
  object-position: center;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
}

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

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

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;               /* remove fixed height */
  object-fit: contain;
  object-position: center;
  border-radius: 12px 12px 0 0;
}

.slide p {
  background-color: var(--brand-header);
  margin: 0;
  padding: 12px;
  font-weight: bold;
  border-radius: 0 0 12px 12px;
}


/* Show only the active slide */
.slide {
  display: none;
}
.slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 2;              /* ensure buttons are above images */
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Intro Section */
.intro {
  text-align: center;
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 30px;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease;
}

.intro h2 {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #ff006e;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.intro p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mission Section (Tamil) */
.mission {
  text-align: center;
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 30px;
  background: linear-gradient(135deg, #fdfbfb, #ebedee); /* same gradient as Welcome */
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease; /* same animation */
}

.mission h2 {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #ff006e; /* highlight heading in brand accent */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  padding: 0 10px;
}

.mission p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Quick Buttons */
.quick-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;          /* slightly smaller gap */
  margin: -70px auto;  /* reduced spacing */
  /* flex-wrap: wrap; */
  flex-flow: row;
}

.quick-button {
 
  flex: 1 1 30%;       /* each button takes ~30% of row */
  min-width: 98px;    /* ensures consistent minimum size */
  /* max-width: 180px;    keeps them neat */
  text-align: center;


}

.quick-button a {
  display: inline-block;
  background-color: var(--brand-accent);
  color: #fff;
  padding: 10px 18px; /* reduced padding */
  border-radius: 25px;
  font-size: 0.95rem; /* slightly smaller text */
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.quick-button a:hover {
  background-color: var(--brand-hover);
  color: var(--text-main);
}

/* Homepage Next Button */
.home-next-container {
  display: flex;
  justify-content: center;
  margin: 7px auto;
}

.home-next-container .next-button {
  background-color: var(--brand-accent);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  margin-top: -220px;
}

.home-next-container .next-button:hover,
.home-next-container .next-button:focus {
  background-color: var(--brand-hover);
  color: var(--text-main);
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

.homepage-carousel img {
  display: none;
  width: 100%;
  border-radius: 12px;
}

.homepage-carousel img.active {
  display: block;
}

/* ================================
   Notification Button Styles
   ================================ */
#notify-btn {
  background-color: #007bff; /* blue */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#notify-btn:hover {
  background-color: #0056b3; /* darker blue */
}

#notify-btn.enabled {
  background-color: #28a745; /* green when enabled */
  cursor: not-allowed;
}

