/* ===== Sacred Murugan Temples - Arupadaiveedu ===== */
/* === Base Styles === */
:root {
  /* Color Scheme */
  --primary-purple: #6a3093; /* Divine purple */
  --secondary-orange: #f46b45; /* Spiritual orange */
  --accent-gold: #FFD700; /* Divine light */
  --light-bg: #FFF9F0; /* Light background */
  --dark-text: #333333; /* Primary text */
  --light-text: #777777; /* Secondary text */
  --white: #ffffff; /* Pure white */
  
  /* Typography */
  --font-main: 'Poppins', sans-serif; /* Readable body font */
  --font-heading: 'Playfair Display', serif; /* Elegant headings */
  
  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
}

/* === Reset & Base Styles === */


/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-purple);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-orange);
}

.text-purple { color: var(--primary-purple); }
.text-white{color:white;}
.text-orange { color: var(--secondary-orange); }
.bg-purple { background-color: var(--primary-purple); }
.bg-orange { background-color: var(--secondary-orange); }

/* === Layout & Components === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header Section */
.temples-main {
  padding: 180px 15px 80px 15px;
}

.divider {
  width: 80px;
  height: 4px;
  margin: var(--space-md) auto;
  background-color: var(--secondary-orange);
}

/* Temple Cards */
.temple-card {
  margin-bottom: var(--space-xl);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.temple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.temple-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10;
}

.temple-gallery {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}

.gallery-thumbnails img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid var(--white);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-thumbnails img:hover {
  transform: scale(1.1);
}

.card-body {
  padding: var(--space-lg);
}

.rating .checked {
  color: var(--accent-gold);
}

.temple-location {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
  color: var(--light-text);
}

.temple-location i {
  margin-right: var(--space-sm);
  color: var(--secondary-orange);
}

.temple-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.feature-item i {
  margin-right: var(--space-sm);
}

/* Tables */

.table-responsive{
        overflow: scroll;
    width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background-color: var(--primary-purple);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-orange {
  background-color: var(--secondary-orange);
  color: var(--white);
}

.btn-orange:hover {
  background-color: #e05a3a;
  color: var(--white);
}

.btn-outline-orange {
  border: 1px solid var(--secondary-orange);
  color: var(--secondary-orange);
  background-color: transparent;
}

.btn-outline-orange:hover {
  background-color: var(--secondary-orange);
  color: var(--white);
}

.btn-outline-purple {
  border: 1px solid var(--primary-purple);
  color: var(--primary-purple);
  background-color: transparent;
}

.btn-outline-purple:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

/* Collapsible Content */
.collapse {
  transition: height 0.3s ease;
}

/* Pilgrimage Tips */
.pilgrimage-tips {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: var(--space-lg);
}

.tip-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--space-md);
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
}

/* === Animations === */
.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 1s ease-in forwards;
}

.temples-main h1{
    text-align: center;
}

.lead{
    text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === SEO Optimizations === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-purple);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* === Responsive Design === */
@media (max-width: 992px) {
  .temple-card .row > div {
    width: 100%;
  }
  
  .temple-gallery {
    height: 350px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .temples-main {
    padding: 110px 15px 0px 15px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .gallery-thumbnails img {
    width: 40px;
    height: 40px;
  }
  
  .card-body {
    padding: var(--space-md);
  }
}