/* Base Styles */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --popover: #ffffff;
  --popover-foreground: #1a1a1a;
  --primary: #222;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #1e293b;
  --destructive: #dc2626;
  --destructive-foreground: #f8fafc;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #1a1a1a;
  --radius: 0.5rem;
  --sidebar-background: #fafafa;
  --sidebar-foreground: #424242;
  --sidebar-primary: #1a1a1a;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #f5f5f5;
  --sidebar-accent-foreground: #1a1a1a;
  --sidebar-border: #e5e7eb;
  --sidebar-ring: #3b82f6;
}

.dark {
  --background: #1a1a1a;
  --foreground: #f8fafc;
  --card: #1a1a1a;
  --card-foreground: #f8fafc;
  --popover: #1a1a1a;
  --popover-foreground: #f8fafc;
  --primary: #f8fafc;
  --primary-foreground: #1e293b;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #f8fafc;
  --destructive: #7f1d1d;
  --destructive-foreground: #f8fafc;
  --border: #1e293b;
  --input: #1e293b;
  --ring: #e2e8f0;
  --sidebar-background: #1a1a1a;
  --sidebar-foreground: #f5f5f5;
  --sidebar-primary: #2563eb;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #262626;
  --sidebar-accent-foreground: #f5f5f5;
  --sidebar-border: #262626;
  --sidebar-ring: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

/* Container Styles */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background: linear-gradient(to right, #ea580c, #dc2626);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content {
  text-align: center;
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.header p:last-child {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* Navigation Styles */
.navigation {
  background-color: #ca8a04;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.navigation button {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.navigation button:hover {
  color: #fcd34d;
}

/* Hero Section Styles */
.hero {
  padding: 3rem 0;
  background: linear-gradient(to right, #ffedd5, #fef3c7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.progress-box {
  background-color: #ea580c;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
}

.progress-box p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
}

.progress-box p:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.hero-image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Main Container Styles */
.main-container {
  padding: 3rem 0;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Sidebar Styles */
.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.donation-box, .contact-box, .news-box {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}

.donation-box {
  border-left: 4px solid #ea580c;
}

.contact-box {
  border-left: 4px solid #dc2626;
}

.news-box {
  border-left: 4px solid #ca8a04;
  position: sticky;
  top: 6rem;
}

.donation-box h3, .contact-box h3, .news-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.donation-box h3 {
  color: #ea580c;
}

.contact-box h3 {
  color: #dc2626;
}

.news-box h3 {
  color: #ca8a04;
}

.donation-details, .contact-details, .news-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donation-item, .contact-item, .news-item {
  padding: 1rem;
  border-radius: 0.25rem;
}

.donation-item:nth-child(1) {
  background-color: #fff7ed;
}

.donation-item:nth-child(2) {
  background-color: #fefce8;
}

.donation-item:nth-child(3) {
  background-color: #fef2f2;
}

.donation-item p:first-child {
  font-weight: 600;
  color: #ea580c;
  font-size: 1.125rem;
}

.donation-item p:last-child {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.tax-benefit {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #dcfce7;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #166534;
}

.contact-item {
  text-align: center;
}

.contact-item p:first-child {
  font-weight: 600;
  font-size: 1.125rem;
}

.contact-item:nth-child(1) {
  background-color: #fff7ed;
}

.contact-item:nth-child(2) {
  background-color: #fef2f2;
}

.contact-item:nth-child(3) {
  background-color: #fefce8;
}

.contact-item p:first-child {
  color: #ea580c;
}

.contact-item:nth-child(2) p:first-child {
  color: #dc2626;
}

.contact-item:nth-child(3) p:first-child {
  color: #ca8a04;
}

.contact-item p:last-child {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.news-item {
  background-color: #fefce8;
  border-left: 4px solid #f59e0b;
}

.news-item:nth-child(2) {
  background-color: #fff7ed;
  border-left: 4px solid #f97316;
}

.news-item:nth-child(3) {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.news-item:nth-child(4) {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.news-item h4 {
  font-weight: 600;
  color: #854d0e;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.news-item:nth-child(2) h4 {
  color: #9a3412;
}

.news-item:nth-child(3) h4 {
  color: #991b1b;
}

.news-item:nth-child(4) h4 {
  color: #166534;
}

.news-item p:last-child {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Main Content Styles */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-section {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
}

.content-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 2rem;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.temple-image img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.temple-image p {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.5rem;
}

.highlight-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-section .highlight-box:first-child {
  background: linear-gradient(to right, #ffedd5, #fef3c7);
}

.content-section .highlight-box:last-child {
  background: linear-gradient(to right, #ecfdf5, #f0f9ff);
  border-left: 4px solid #ea580c;
}

.highlight-box p {
  text-align: justify;
  font-size: 1.125rem;
}

.call-to-action {
  background: linear-gradient(to right, #fee2e2, #ffedd5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid #ea580c;
}

.call-to-action p {
  text-align: justify;
  font-size: 1.125rem;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.info-box h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.info-box:nth-child(1) {
  background-color: #eff6ff;
}

.info-box:nth-child(2) {
  background-color: #f5f3ff;
}

.info-box:nth-child(1) h4 {
  color: #1d4ed8;
}

.info-box:nth-child(2) h4 {
  color: #7e22ce;
}

.info-box p {
  text-align: justify;
}

.about-content .highlight-box:first-child {
  background: linear-gradient(to right, #fef3c7, #ffedd5);
}

.about-content .highlight-box:last-child {
  background: linear-gradient(to right, #ecfdf5, #f0f9ff);
}

.about-content .highlight-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 1rem;
}

.about-content .highlight-box:last-child h3 {
  color: #16a34a;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.gallery-item img:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-item p {
  text-align: center;
  color: #6b7280;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  background: linear-gradient(to right, #9a3412, #991b1b);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-section {
  text-align: center;
}

.footer-section h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-card {
  background-color: #c2410c;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.footer-card p {
  margin-bottom: 0.5rem;
}

.footer-card p:last-child {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid #ea580c;
  margin-top: 3rem;
  padding-top: 2rem;
}

.footer-note {
  background-color: #854d0e;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.footer-note p {
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fef3c7;
}

.footer-contacts {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-contacts > p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1rem;
  border-radius: 0.5rem;
}

.contact-card:nth-child(1) {
  background-color: #c2410c;
}

.contact-card:nth-child(2) {
  background-color: #991b1b;
}

.contact-card:nth-child(3) {
  background-color: #854d0e;
}

.contact-card p:first-child {
  font-weight: 600;
}

.contact-card p:last-child {
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-end {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #ea580c;
}

.footer-end p:first-child {
  font-size: 1.25rem;
  color: #fed7aa;
  margin-bottom: 0.5rem;
}

.footer-end p:last-child {
  color: #fecaca;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .header h1 {
    font-size: 3.75rem;
  }
  
  .header p {
    font-size: 1.5rem;
  }
  
  .header p:last-child {
    font-size: 1.25rem;
  }
  
  .nav-links {
    gap: 2rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr 2fr 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-section:first-child {
    text-align: left;
  }
  
  .footer-section:last-child {
    text-align: right;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Animation */
@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logo-spin {
    animation: logo-spin infinite 20s linear;
  }
}