/* Temple Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary-gold: #FF8C00;
  --primary-maroon: #B8860B;
  --secondary-gold: #FFE4B5;
  --accent-orange: #FF6347;
  --deep-saffron: #FF9933;
  --temple-red: #DC143C;
  --white: #FFFFFF;
  --light-gray: #FFF8F0;
  --dark-gray: #2F1B14;
  --text-gray: #5D4E37;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

.telugu-text {
  font-family: 'Noto Sans Telugu', sans-serif;
}

.heading-font {
  font-family: 'Playfair Display', serif;
}

/* Header & Navigation */
.navbar {
  background: linear-gradient(135deg, var(--temple-red), var(--primary-maroon));
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.4rem 0;
  background: rgba(220, 20, 60, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--deep-saffron);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 300px;
  flex-shrink: 0;
}

.logo-image {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 1.3rem;
  flex-shrink: 0;
  display: none; /* Hide Om symbol when logo image is present */
}

.logo span {
  font-size: 0.9rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none; /* Hide text when logo image is present */
}

.logo-text {
  display: none; /* Hide all logo text to keep it clean */
}

.logo-text .main-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep-saffron);
}

.logo-text .sub-title {
  font-size: 0.7rem;
  color: rgba(255, 153, 51, 0.8);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  flex: 1;
  justify-content: center;
  margin: 0 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--deep-saffron);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--deep-saffron);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--deep-saffron);
  color: var(--deep-saffron);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--deep-saffron);
  color: var(--temple-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
main {
  margin-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(220, 20, 60, 0.7), rgba(184, 134, 11, 0.7)), url('../images/temple-banner.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-content .tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--deep-saffron);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--temple-red);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--temple-red);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--deep-saffron);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--deep-saffron);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--deep-saffron);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--temple-red);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Deity Cards with Images */
.deity-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.deity-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--light-gray);
}

.deity-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.deity-info h3 {
  margin-bottom: 0.5rem;
}

/* Temple Image Container with Popup Effect */
.temple-image-container {
  position: relative;
  overflow: visible;
  border-radius: 15px;
  cursor: pointer;
}

.temple-image-container img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background: var(--light-gray);
}

.temple-image-container:hover img {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
  z-index: 10;
  position: relative;
}

/* Image Popup Overlay */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  overflow: hidden;
}

.image-popup-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.image-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.image-popup-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .deity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .deity-image {
    height: 250px;
  }
  
  .temple-image-container img {
    height: 250px;
  }
}

/* Timings Section */
.timings {
  background: var(--light-gray);
  padding: 3rem 0;
}

.timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.timing-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--deep-saffron);
}

.timing-card h4 {
  color: var(--temple-red);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.timing-card .time {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-saffron);
}

/* Announcements */
.announcements {
  background: var(--temple-red);
  color: var(--white);
  padding: 3rem 0;
}

.announcement-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--deep-saffron);
}

.announcement-date {
  color: var(--deep-saffron);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Festival Countdown */
.countdown {
  background: linear-gradient(135deg, var(--deep-saffron), var(--secondary-gold));
  padding: 3rem 0;
  text-align: center;
}

.countdown h3 {
  color: var(--temple-red);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  min-width: 100px;
  box-shadow: var(--shadow);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--temple-red);
  display: block;
}

.countdown-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  align-items: flex-end;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  cursor: pointer;
  margin: 0;
  font-weight: 900;
  background: none;
  padding: 0;
}

.fab:hover {
  transform: scale(1.1) translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.fab:hover img {
  transform: scale(1.05);
}

/* Hide old icon styles */
.fab i {
  display: none;
}

.fab-call { 
  background: none;
}

.fab-whatsapp { 
  background: none;
}

.fab-location { 
  background: none;
}

.fab-donate { 
  background: none;
}

/* Font Awesome icons override emojis when available */
.fab i.fas,
.fab i.fab {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
}

.fab i.fas::before,
.fab i.fab::before {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
  font-weight: 900;
}

/* Specific Font Awesome icon codes */
.fab-call i.fas.fa-phone-alt::before {
  content: "\f879";
}

.fab-whatsapp i.fab.fa-whatsapp::before {
  content: "\f232";
}

.fab-location i.fas.fa-map-marker-alt::before {
  content: "\f3c5";
}

.fab-donate i.fas.fa-donate::before {
  content: "\f4b9";
}

/* Tooltip for FAB buttons */
.fab::after {
  content: attr(title);
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.fab:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 55px;
  height: 55px;
  background: var(--deep-saffron);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2C1810 0%, #3D2416 50%, #4A2C1A 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* Footer Logo Section */
.footer-logo-section {
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border: 2px solid #FFD700;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.footer-temple-name {
  color: #FFD700;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.footer-tagline {
  color: #f5f5f5;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
}

/* Footer Section Headings */
.footer-section h4 {
  color: #FFD700;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h4 i {
  font-size: 1.4rem;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Footer Links and Text */
.footer-section p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.footer-section p,
.footer-section a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
}

/* Footer Icons - HIGHLY VISIBLE */
.footer-section i {
  color: #FFD700;
  font-size: 1.3rem;
  min-width: 24px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.footer-section strong {
  color: #FFD700;
  font-weight: 700;
  min-width: 90px;
}

.footer-section a:hover {
  color: #FFD700;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  transform: translateX(5px);
}

.footer-section a:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.social-icon:hover {
  background: #FFD700;
  color: #2C1810;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.social-icon i {
  font-size: 1.5rem;
  filter: none;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: #f5f5f5;
  font-weight: 500;
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-bottom i {
  color: #FFD700;
  font-size: 1.1rem;
}

.developer-credit {
  color: #FFD700;
  font-weight: 600;
  margin-top: 0.5rem;
}

.developer-credit i {
  color: #FFD700;
  font-size: 1rem;
}

.developer-credit a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.developer-credit a:hover {
  color: #FFA500;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-logo-section {
    order: -1;
  }
  
  .footer-logo {
    width: 70px;
    height: 70px;
  }
  
  .footer-temple-name {
    font-size: 0.95rem;
  }
  
  .footer-section h4 {
    font-size: 1.2rem;
  }
  
  .footer-section i {
    font-size: 1.2rem;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
  
  .footer-bottom p {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Festival Calendar Styles */
.festival-calendar {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.calendar-header {
  margin-bottom: 2rem;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.year-selector,
.month-selector,
.view-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-selector label,
.month-selector label,
.view-selector label {
  font-weight: 600;
  color: var(--temple-red);
}

.year-dropdown,
.month-dropdown,
.view-dropdown {
  padding: 0.5rem 1rem;
  border: 2px solid var(--deep-saffron);
  border-radius: 8px;
  background: var(--white);
  color: var(--dark-gray);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.year-dropdown:hover,
.year-dropdown:focus,
.month-dropdown:hover,
.month-dropdown:focus,
.view-dropdown:hover,
.view-dropdown:focus {
  border-color: var(--temple-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 300px;
}

.search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 2px solid var(--deep-saffron);
  border-radius: 8px;
  background: var(--white);
  color: var(--dark-gray);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:hover,
.search-input:focus {
  border-color: var(--temple-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-btn,
.print-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--temple-red);
  border-radius: 8px;
  background: var(--temple-red);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover,
.print-btn:hover {
  background: var(--primary-maroon);
  border-color: var(--primary-maroon);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* Festival Scrolling Banner */
.festival-scrolling-banner {
  background: linear-gradient(135deg, var(--temple-red), var(--primary-maroon));
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.scrolling-text {
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  font-weight: 500;
  font-size: 1.1rem;
}

.scrolling-text span {
  display: inline-block;
  padding-right: 100px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.festivals-container {
  min-height: 300px;
}

/* Calendar View Styles */
.calendar-view {
  width: 100%;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.calendar-month {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.calendar-month-title {
  color: var(--temple-red);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid var(--deep-saffron);
  padding-bottom: 0.5rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 0.5rem;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: var(--temple-red);
  padding: 0.5rem;
  font-size: 0.9rem;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-date {
  background: var(--white);
  min-height: 60px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-date:hover {
  background: var(--light-gray);
}

.calendar-date.empty {
  background: transparent;
  cursor: default;
}

.calendar-date.today {
  background: rgba(220, 20, 60, 0.1);
  border: 2px solid var(--temple-red);
}

.calendar-date.has-events {
  background: rgba(255, 153, 51, 0.1);
}

.calendar-date.has-events:hover {
  background: rgba(255, 153, 51, 0.2);
}

.date-number {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.calendar-date.today .date-number {
  color: var(--temple-red);
  font-weight: 700;
}

.event-dots {
  display: flex;
  gap: 2px;
  margin-top: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.event-dot.major {
  background: var(--temple-red);
}

.event-dot.minor {
  background: var(--deep-saffron);
}

.event-dot.recurring {
  background: var(--primary-gold);
}

.month-section {
  margin-bottom: 3rem;
}

.month-title {
  color: var(--temple-red);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--deep-saffron);
}

.festivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.festival-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 5px solid var(--deep-saffron);
  display: flex;
  gap: 1rem;
}

.festival-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.festival-card.festival-major {
  border-left-color: var(--temple-red);
}

.festival-card.festival-minor {
  border-left-color: var(--deep-saffron);
}

.festival-card.festival-national {
  border-left-color: #FF6B35;
}

.festival-card.festival-recurring {
  border-left-color: var(--primary-gold);
}

.festival-card.recurring-festival {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 153, 51, 0.05));
}

.festival-date {
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.date-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--temple-red);
  line-height: 1;
  word-break: break-word;
}

.date-month {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.2rem;
}

.festival-info {
  flex: 1;
}

.festival-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.festival-name {
  color: var(--temple-red);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.festival-type-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.festival-type-badge.festival-major {
  background: rgba(220, 20, 60, 0.1);
  color: var(--temple-red);
}

.festival-type-badge.festival-minor {
  background: rgba(255, 153, 51, 0.1);
  color: var(--deep-saffron);
}

.festival-type-badge.festival-national {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
}

.festival-type-badge.festival-recurring {
  background: rgba(255, 140, 0, 0.1);
  color: var(--primary-gold);
}

.festival-description {
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.recurring-indicator {
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 140, 0, 0.1);
  color: var(--primary-gold);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.no-festivals-message {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-gray);
}

.message-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-festivals-message h3 {
  color: var(--temple-red);
  margin-bottom: 1rem;
}

.no-festivals-message p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile Responsive - Festival Calendar */
@media (max-width: 768px) {
  .festival-calendar {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .year-selector,
  .month-selector,
  .view-selector {
    justify-content: space-between;
  }
  
  .search-container {
    max-width: none;
  }
  
  .print-btn {
    justify-content: center;
  }
  
  .festival-scrolling-banner {
    padding: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .scrolling-text {
    font-size: 1rem;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .calendar-month {
    padding: 1rem;
  }
  
  .calendar-month-title {
    font-size: 1.1rem;
  }
  
  .calendar-date {
    min-height: 50px;
    padding: 0.3rem;
  }
  
  .date-number {
    font-size: 0.8rem;
  }
  
  .event-dot {
    width: 4px;
    height: 4px;
  }
  
  .festivals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .festival-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .festival-date {
    min-width: auto;
    margin-bottom: 0.5rem;
  }
  
  .festival-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .festival-name {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .month-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .festival-card {
    padding: 0.8rem;
  }
  
  .date-number {
    font-size: 1.5rem;
  }
  
  .festival-name {
    font-size: 1rem;
  }
  
  .calendar-controls {
    gap: 0.8rem;
  }
  
  .search-btn,
  .print-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .festival-scrolling-banner {
    padding: 0.6rem;
  }
  
  .scrolling-text {
    font-size: 0.9rem;
  }
  
  .calendar-date {
    min-height: 40px;
  }
  
  .weekday {
    padding: 0.3rem;
    font-size: 0.8rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--temple-red);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }
  
  .logo {
    max-width: 200px;
  }
  
  .logo-image {
    height: 45px;
  }
  
  .nav-menu {
    margin: 0;
  }
  
  .logo-text .main-title {
    font-size: 0.8rem;
  }
  
  .logo-text .sub-title {
    font-size: 0.65rem;
  }

  .hero {
    height: 50vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content .tagline {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .countdown-timer {
    gap: 1rem;
  }

  .floating-actions {
    right: 1rem;
    bottom: 1rem;
    gap: 0.8rem;
  }

  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .fab::after {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 45vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 1.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Temple Showcase Section */
.temple-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.temple-image-container img {
  transition: transform 0.3s ease;
}

.temple-image-container:hover img {
  transform: scale(1.02);
}

/* Mobile responsive for temple showcase */
@media (max-width: 768px) {
  .temple-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .temple-image-container {
    order: -1;
  }
  
  .temple-showcase-grid > div:last-child {
    order: 1;
  }
  
  /* Official Registration Mobile */
  .section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .committee-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  .temple-showcase-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
  }
  
  .temple-showcase-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .temple-logo-container {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}