/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  /* Kerala Temple Color Palette */
  --temple-maroon: #800000;
  --temple-gold: #D4AF37;
  --temple-sandal: #F3E5AB;
  --temple-white: #FDFBF7;
  --temple-text: #333333;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--temple-white);
  color: var(--temple-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading);
  color: var(--temple-maroon);
}

/* Navbar Customization */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--temple-text) !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--temple-maroon) !important;
}

/* Button Overrides */
.btn-primary {
  background-color: var(--temple-maroon);
  border-color: var(--temple-maroon);
}

.btn-primary:hover {
  background-color: #600000;
  border-color: #600000;
}

.btn-outline-primary {
  color: var(--temple-maroon);
  border-color: var(--temple-maroon);
}

.btn-outline-primary:hover {
  background-color: var(--temple-maroon);
  color: white;
}

/* Section Styling */
.section-title {
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--temple-gold);
  margin: 10px auto 0;
}

/* Footer */
footer {
  background-color: var(--temple-maroon);
  color: var(--temple-sandal);
}

footer a {
  color: var(--temple-sandal);
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* Hero Carousel */
.hero-slide {
  height: 94vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-caption {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  padding-bottom: 3rem;
  /* Adjust for indicators */
  background: rgba(0, 0, 0, 0.3);
  /* Slight overall darken for readability */
}

/* Enhancing Caption Readability */
.carousel-caption h1,
.carousel-caption h2 {
  color: var(--temple-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: 400;
}

/* Animations */
@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-down {
  animation: slideInDown 1s ease-out;
}

.slide-in-up {
  animation: slideInUp 1s ease-out;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header-custom {
  background-color: var(--temple-maroon);
  color: white;
  font-family: var(--font-heading);
}

/* Gallery */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
    /* Reduce font size for mobile */
    white-space: normal;
    /* Allow wrapping if needed, though smaller font should help */
  }
}