/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #fff;
    color: #333;
}

/* --- HEADER LAYOUT STYLES (Orange Background, White Text) --- */
header {
    display: flex;
    flex-direction: column; /* Stacks the header-content-wrapper (logo/info) above the nav */
    align-items: center; /* Centers items horizontally within the header */
    padding: 15px 20px; /* Add some padding around the whole header */
    background-color: #FF4500;/* #ff8c42;  Orange background for the header */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    position: relative;
    z-index: 100;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 15px;
}

.header-info {
    flex: 1;
    padding: 0 15px;
    font-size: 0.95em;
    color: #fff; /* White text for info sections */
    line-height: 1.5;
}

.header-info p {
    margin: 0;
}

.header-info strong {
    color: #fff; /* White for emphasized text like "Location:" and "Thurs:" */
}

.header-info i {
    margin-right: 8px;
    color: #fff; /* White for icons */
    font-size: 1.1em;
}

.header-info.left-info {
    text-align: left;
}

.header-info.right-info {
    text-align: right;
}

.logo {
    flex-shrink: 0;
    padding: 0 25px;
}

.logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

header nav {
    width: 100%;
    text-align: center;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #fff; /* White text for navigation links on orange background */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ffd700; /* Yellow hover color for good contrast on orange */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #fff; /* White bars for hamburger menu on orange background */
    margin: 4px 0;
}

/* --- Hero Section --- */
.hero {
  background: url('../images/temple-banner.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #FFD700; /* Yellow */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background: #FF8C42; /* Orange */
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #FF6F61; /* Darker Orange */
}

/* --- About Section (for home page) --- */
.about-section {
  padding: 4rem 2rem;
  background: #FFF3E0; /* Light Yellow */
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- Events Page Styles --- */
.events-content {
  padding: 4rem 2rem;
  text-align: center;
  background: #FFF3E0; /* Light Yellow */
}

.events-content h1 {
  font-size: 2.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-info {
  padding: 1.5rem;
  text-align: left;
}

.event-date {
  background: #FF8C42; /* Orange */
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

.date-day {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.date-month, .date-weekday {
  font-size: 1rem;
}

.event-info h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.event-time {
  color: #FF8C42; /* Orange */
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.event-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.event-cta {
  display: inline-block;
  background: #FF8C42; /* Orange */
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.event-cta:hover {
  background: #FF6F61; /* Darker Orange */
}

/* --- Events Section (homepage) --- */
.events-section {
  padding: 4rem 2rem;
  text-align: center;
}

.events-section h2 {
  font-size: 2rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 2rem;
}

.events-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.event {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

.event img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.event h3 {
  font-size: 1.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 0.5rem;
}

.event p {
  font-size: 1rem;
  color: #333;
}

/* --- Google Maps Section --- */
.map-section {
  padding: 4rem 2rem;
  text-align: center;
}

.map-section h2 {
  font-size: 2rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Footer --- */
footer {
  background: #FF4500; /* Orange */
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.social-media {
  margin-bottom: 10px;
}

.social-media a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #ffd700; /* Yellow hover */
}

/* --- Gallery Page Styles --- */
.gallery-content {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery-content h1 {
  font-size: 2.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.gallery-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* --- Contact Page Styles --- */
.contact-content {
  padding: 2rem;
  text-align: center;
}

.contact-content h1 {
  font-size: 2.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.contact-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
  max-width: 500px;
  background: #FFF3E0; /* Light Yellow */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #FF8C42; /* Orange */
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  background: #FF8C42; /* Orange */
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: #FF6F61; /* Darker Orange */
}

.contact-info {
  width: 100%;
  max-width: 500px;
  background: #FFF3E0; /* Light Yellow */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-info h2 {
  font-size: 1.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #FF8C42; /* Orange */
  text-decoration: none;
  font-size: 1rem;
}

.social-links a:hover {
  color: #FF6F61; /* Darker Orange */
}

/* --- About Page Styles --- */
.about-content {
  padding: 2rem;
  text-align: center;
}

.about-content h1 {
  font-size: 2.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  background: #FFF3E0; /* Light Yellow */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.about-section h2 {
  font-size: 1.5rem;
  color: #FF8C42; /* Orange */
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* --- Donation Warning Page Styles --- */
.donation-warning {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff3e0; /* A light, warm background for the warning */
    border: 2px solid #ff8c42; /* Orange border to match theme */
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.donation-warning h1 {
    color: #8B0000; /* Deep red for the warning title */
    font-size: 2.5em;
    margin-bottom: 20px;
}

.donation-warning p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.donation-warning p strong {
    color: #ff8c42; /* Highlight the important parts in orange */
}

.cta-button {
    display: inline-block;
    background-color: #ff8c42;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #e67e3a;
    transform: translateY(-2px);
}

/* --- Success and Error Messages --- */
#messageDisplay {
  margin-top: 1rem;
  text-align: center;
}

.success-message {
  color: #28a745; /* Green */
  font-size: 1.2rem;
  padding: 1rem;
  background-color: #d4edda; /* Light green background */
  border: 1px solid #c3e6cb;
  border-radius: 5px;
}

.error-message {
  color: #dc3545; /* Red */
  font-size: 1.2rem;
  padding: 1rem;
  background-color: #f8d7da; /* Light red background */
  border: 1px solid #f5c6cb;
  border-radius: 5px;
}


/* --- Mobile Responsive Adjustments (Consolidated) --- */
@media (max-width: 768px) {
  .header-content-wrapper {
      flex-direction: column;
      text-align: center;
  }

  .header-info {
      text-align: center !important;
      margin-bottom: 10px;
  }

  .logo {
      order: -1;
      margin-bottom: 15px;
  }

  header nav ul {
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
  }

  header nav ul.active {
      display: flex;
  }

  header nav ul li {
      margin: 5px 0;
  }

  .menu-toggle {
      display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about-container, .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
  }

  .events-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .events-container {
    flex-direction: column;
    align-items: center;
  }

  .event {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form, .contact-info {
    width: 100%;
  }

  .about-section {
      width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .about-section h2, .map-section h2, .events-section h2, .gallery-content h1, .contact-content h1, .about-content h1 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 0.9rem;
  }

  .gallery-grid {
      grid-template-columns: 1fr;
  }

  .donation-warning {
    padding: 40px 15px;
    margin: 20px 10px;
  }
}
