/*--------------------------------------------------------------
# THEME VARIABLES (Royal Heritage Palette)
--------------------------------------------------------------*/
:root {
  /* Colors */
  --primary-red: #B7160A;      /* Kumkum / Vermilion */
  --temple-gold: #D4AF37;      /* Brass / Gold */
  --wood-brown: #8D6E63;       /* Teak / Laterite Stone */
  --sandal-bg: #FFFBF0;        /* Sandalwood Cream */
  --ivory-white: #FCF9F2;      /* Traditional Kasavu White */
  --text-main: #2C2C2C;
  --text-muted: #627680;

  /* Fonts */
  --font-main: 'Poppins', 'Noto Serif Malayalam', serif;
  --font-heading: 'Roboto', sans-serif;
  --font-accent: 'Dancing Script', cursive;
}

/*--------------------------------------------------------------
# GENERAL STYLES
--------------------------------------------------------------*/
body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: linear-gradient(135deg, var(--ivory-white) 0%, var(--sandal-bg) 100%);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-red);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  text-align: justify;
  margin-bottom: 1.2rem;
}

/* Utility to capitalize first letters for menu items/titles */
.cap-first:first-letter {
  text-transform: capitalize;
}

/*--------------------------------------------------------------
# COMPONENTS
--------------------------------------------------------------*/

/* Main Action Buttons */
.default_btn .btn {
  background: var(--primary-red);
  color: #ffffff;
  padding: 12px 35px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(183, 22, 10, 0.2);
  transition: 0.4s;
}

.default_btn .btn:hover {
  background: transparent;
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-3px);
}

/* Form Labels */
label {
  color: var(--wood-brown);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

label::after {
  content: " :";
}

/* Text Truncation (Word Limit) */
.wordlimit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*--------------------------------------------------------------
# SECTION DECORATION
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg-gold {
  background: linear-gradient(135deg, #FFF9E6 0%, #F3E5AB 100%);
  border-top: 1px solid var(--temple-gold);
}

.section_title h2 {
  font-family: var(--font-accent);
  color: var(--wood-brown);
  display: flex;
  align-items: center;
  gap: 20px;
}

.section_title h2::after {
  content: "";
  height: 2px;
  flex-grow: 1;
  background: linear-gradient(to right, var(--temple-gold), transparent);
}

/*--------------------------------------------------------------
# TEMPLE DIVIDER (Custom HR)
--------------------------------------------------------------*/
.temple_hr {
  position: relative;
  width: 100%;
  margin: 50px 0;
  height: 2px;
  background: var(--temple-gold);
}

.temple_hr::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #ffffff url('../img/templeicon.png') center no-repeat;
  background-size: 70%;
  border: 2px solid var(--temple-gold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/*--------------------------------------------------------------
# RESPONSIVE DESIGN (Bootstrap 5 Breakpoints)
--------------------------------------------------------------*/

/* Large devices (Desktops) */
@media (min-width: 992px) {
  .stylefont1 { font-size: 3rem; }
}

/* Medium devices (Tablets) */
@media (max-width: 991.98px) {
  section { padding: 40px 0; }
  .stylefont1 { font-size: 2.2rem; }
}

/* Small devices (Mobile) */
@media (max-width: 575.98px) {
  body { text-align: center; }
  p { text-align: center; }
  
  .temple_hr::before {
    width: 45px;
    height: 45px;
  }
  
  [data-aos-delay] {
    transition-delay: 0s !important;
  }
}