/* =========================================
   CSS VARIABLES (Custom Properties)
   ========================================= */
:root {
  --primary-color: #3399cc;
  --secondary-color: #33cc99;
  --primary-hover: #000000;
  --accent-color: #FFD700;
  --title-color: #FF6347;
  --text-dark: #2c3e50;
  --bg-light: #f8f9fa;
  
  --card-color-one: #f7fbff;
  --card-color-two: #fffbf7;
  --card-color-three: #fffff7;
  
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =========================================
   BASE STYLES
   ========================================= */

body {
  font-family: serif;
  font-size: 14px;
  color: var(--text-dark);
  
}

a {
  text-decoration: none;
}

.unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
  background-color: var(--primary-color) !important;
  position: relative;   /* was relative */
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: transform 0.3s ease-in-out;
  min-height: 70px;
}

.navbar a {
  color: white !important;
  font-size: 15px;
}

.navbar-brand img,
.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
  transform: scale(1.2);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(228, 241, 254, 0.2);
  border-radius: 4px;
  color: white !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  z-index: 1050;
}

.dropdown-menu a {
  color: black !important;
  font-size: 15px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: var(--bg-light);
  border-radius: 0;
  font-size: 13px;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

/* for table with 3 columns*/
.text-wrap {word-break: break-word; 
            white-space: normal;}

/* =========================================
   BANNER SECTION
   ========================================= */
.site-banner {
  width: 100%;
  height: 400px;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2)), 
                    url('../images/banner-image.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.banner-container h1, 
.banner-container h2, 
.banner-container h4 {
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  font-family: serif;
}

/* Banner Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #fff;
  margin: 0 1rem;
}

.divider-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* =========================================
   CARD COMPONENTS
   ========================================= */
.card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-title {
  
  border-bottom: 2px solid #e9ecef !important;

}

.card-img-top {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Card Color Variations */
.one   { background-color: var(--card-color-one);   padding: 10px; }
.two   { background-color: var(--card-color-two);   padding: 10px; }
.three { background-color: var(--card-color-three); padding: 10px; }
.four  { background-color: var(--card-color-one);   padding: 10px; }
.five  { background-color: var(--card-color-two);   padding: 10px; }
.six   { background-color: var(--card-color-three); padding: 10px; }
.seven { background-color: var(--card-color-one);   padding: 10px; }
.eight { background-color: var(--card-color-two);   padding: 10px; }
.nine  { background-color: var(--card-color-three); padding: 10px; }
.ten   { background-color: var(--card-color-one);   padding: 10px; }
.eleven { background-color: var(--card-color-two);   padding: 10px; }
.twelve { background-color: var(--card-color-three); padding: 10px; }
.thirteen { background-color: var(--card-color-one); padding: 10px; }
.fourteen { background-color: var(--card-color-two); padding: 10px; }

/* =========================================
   GALLERY COMPONENTS
   ========================================= */
.temple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: static;
  background: #f8f9fa;
  color: #000;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =========================================
   SPECIAL CONTENT SECTIONS
   ========================================= */
.pathigam-verse {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 4px solid var(--secondary-color);
  font-family: 'Georgia', serif;
  line-height: 1.8;
}

.breadcrumb {font-size: 11px;}

.pariharasthalam {background-color: #fef1e4;
                  font-weight: 550;
                  padding:5px;
                  }
/* =========================================
   BUTTONS & NAVIGATION
   ========================================= */
.navigation-buttons .btn {
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navigation-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Language Toggle Button */
.btnlang {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  padding: 12px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow);
}

.btnlang:hover {
  background: var(--accent-color);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Delay Classes */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--primary-color);
  margin-top: 3rem;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVE DESIGN @media (max-width: 768px)
   ========================================= */
@media screen and (max-width: 720px)
 {
  
  /* Banner Responsive */
  .site-banner {
    min-height: 250px;
  }
  
  .site-banner h1 {
    font-size: 1.8rem;
  }
  
  .site-banner h2 {
    font-size: 1.2rem;
  }
  
  .site-banner h4 {
    font-size: 1.1rem;
  }
  
  /* Gallery Responsive */
  .temple-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Fixed Buttons Responsive */
  .btnlang {
    bottom: 100px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
}
