/* =========================================
   PREMIUM DIVINE TEMPLE EVENTS DESIGN
========================================= */

/* ================= HERO SECTION ================= */
.about-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url("../image/temple.jpeg"); /* change image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.about-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.about-hero-content h1 {
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.about-hero-content p {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    height: 300px;
  }

  .about-hero-content h1 {
    font-size: 40px;
  }
}

.divine-hero {
  position: relative;
  height: 420px;
  background: url("../image/temple.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.divine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(120,40,0,0.75), rgba(0,0,0,0.85));
}

.divine-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.divine-content h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255,215,0,0.6);
}

.sanskrit {
  font-size: 22px;
  margin: 10px 0;
  opacity: 0.9;
}

.kannada {
  font-size: 18px;
  font-weight: 500;
}

/* ================= EVENTS SECTION ================= */

.divine-events {
  background: #fdf6e3;
  position: relative;
  padding: 60px 0;
}

/* Sacred golden vertical line */
.timeline {
  position: relative;
  margin-left: 35px;
  border-left: 3px solid #c9a227;
}

/* Each event row */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 80px;
}

/* Golden Date Circle */
.timeline-dot {
  position: absolute;
  left: -25px;
  top: 20px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ffd700, #d35400);
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255,215,0,0.8);
  border: 3px solid #fffaf0;
}

/* ================= HORIZONTAL LAYOUT ================= */

.timeline-item.horizontal-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Left content */
.timeline-content {
  flex: 1;
}

/* Right image */
.timeline-image {
  display: flex;
  justify-content: flex-end;
}

.timeline-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(201,162,39,0.3);
  transition: all 0.4s ease;
  height: 350px;

}

.timeline-image img:hover {
  transform: scale(1.05);
}

/* ================= TEMPLE CARD (DEFAULT FOR ALL) ================= */

.temple-card {
  background: #fffaf0;
  padding: 30px;
  border-radius: 30px 30px 12px 12px;
  border: 2px solid #c9a227;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
}

/* Temple arch decoration */
.temple-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 40px;
  width: 100px;
  height: 14px;
  background: #c9a227;
  border-radius: 12px 12px 0 0;
}

/* Hover glow */
.temple-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(201,162,39,0.5);
}

/* Headings */
.temple-card h3 {
  color: #b03a2e;
  font-weight: 700;
  margin-bottom: 5px;
}

.temple-card h4 {
  color: #5a2f1f;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Event blocks */
.event-block {
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid #c9a227;
}

.event-time {
  display: block;
  font-weight: 600;
  color: #b7461f;
  margin-bottom: 5px;
}

/* ================= FIRST CARD SPECIAL (UGADI ONLY) ================= */

.highlight-ugadi {
  background: linear-gradient(135deg, #fff8dc, #ffe4b5);
  border: 2px solid #d35400;
  box-shadow: 0 0 30px rgba(211,84,0,0.3);
}

/* Divine watermark */
.divine-events::after {
  content: "ॐ";
  position: absolute;
  font-size: 200px;
  color: rgba(201,162,39,0.05);
  right: 5%;
  top: 20%;
  pointer-events: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

  .timeline {
    margin-left: 25px;
  }

  .timeline-dot {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .timeline-item.horizontal-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-image {
    width: 100%;
    justify-content: center;
    margin-top: 25px;
  }
}

@media (max-width: 768px) {

  .divine-hero {
    height: 300px;
  }

  .divine-content h1 {
    font-size: 30px;
  }

  .sanskrit {
    font-size: 18px;
  }

  .kannada {
    font-size: 14px;
  }

  .timeline {
    margin-left: 15px;
  }

  .timeline-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
    left: -20px;
  }

  .temple-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {

  .timeline-item.horizontal-layout {
    flex-direction: column;
    gap: 10px;
  }

  /* Make image always appear FIRST on mobile */
  .timeline-image {
    order: -1;
    width: 100%;
    margin-bottom: 20px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}
}