.temple-page {
  max-width: 1000px;
  margin: 20px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header */
.temple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* aligns logo with middle content */
  position: relative;
}

.temple-header h1 {
  color: #8B0000;
  margin-bottom: 5px;
}

.temple-address {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #8B0000;   /* same dark red as title */
}

.temple-time {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* Logo aligned with address */
.temple-logo-right {
  flex-shrink: 0;
  margin-left: 20px;
}

.temple-logo-right img {
  max-height: 150px;  /* adjust size */
  width: auto;
}

/* Tabs */
.temple-tabs {
  margin: 20px 0;
}

.tab-button {
  background: #fff;
  border: 2px solid #8B0000;
  color: #8B0000;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.tab-button.active {
  background: #8B0000;
  color: #fff;
}

/* Tab Content */
.tab-content {
  display: none;
  margin-top: 15px;
}

.tab-content.active {
  display: block;
}

/* Gallery */
.temple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.temple-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.temple-gallery img:hover {
  transform: scale(1.05);
}

/* Video */
.temple-video iframe {
  max-width: 100%;
  border-radius: 8px;
}
