/* =============================================
   MAHARATRI TEMPLE - GLOBAL STYLESHEET
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Philosopher:ital,wght@0,400;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --primary: #c8392b;
  --primary-dark: #a02d21;
  --primary-light: #e8604e;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --dark: #1a0a00;
  --dark2: #2b1200;
  --text: #444;
  --text-light: #777;
  --white: #fff;
  --cream: #fdf6ec;
  --parchment: #f5edd8;
  --border: #e8ddd0;
  --section-bg: #fdf6ec;
  --radius: 3px;
}

body { font-family: 'Crimson Text', serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* PRELOADER */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-om {
  font-size: 1.2rem;
  color: var(--gold);
  animation: omPulse 1.5s ease-in-out infinite;
  text-align: center;
  padding: 0 20px;
}
@keyframes omPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:0.4} }

/* TOPBAR */
.topbar { background: var(--dark2); padding: 8px 0; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 24px; }
.topbar-left a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.topbar-left a:hover { color: var(--gold); }
.topbar-left i { margin-right: 6px; color: var(--gold); }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.topbar-right a {
  width: 28px; height: 28px; background: rgba(255,255,255,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.75rem; transition: all 0.3s;
}
.topbar-right a:hover { background: var(--primary); color: #fff; }
.btn-live {
  background: var(--primary) !important; color: #fff !important;
  padding: 4px 14px !important; border-radius: 3px !important;
  font-size: 0.78rem !important; font-weight: 700 !important; letter-spacing: 0.05em;
  display: flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important;
}
.btn-live::before { content:''; width:7px; height:7px; background:#fff; border-radius:50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: var(--dark); padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.05em; padding: 12px 0;
}
.nav-logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 20px 14px; color: rgba(255,255,255,0.85);
  font-size: 0.88rem; letter-spacing: 0.03em;
  transition: color 0.3s; white-space: nowrap;
  font-family: 'Philosopher', sans-serif;
}
.nav-link i { font-size: 0.6rem; transition: transform 0.3s; }
.nav-item:hover > .nav-link { color: var(--gold); }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--dark); min-width: 200px;
  border-top: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 20px;
  color: rgba(255,255,255,0.72); font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s; font-family: 'Philosopher', sans-serif;
}
.dropdown a:hover { color: var(--gold); background: rgba(255,255,255,0.04); padding-left: 26px; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-icon {
  color: rgba(255,255,255,0.75); font-size: 1rem;
  transition: color 0.3s; position: relative; cursor: pointer;
}
.nav-icon:hover { color: var(--gold); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--primary); color: #fff;
  font-size: 0.6rem; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(to right, rgba(10,3,0,0.88), rgba(40,15,0,0.7)),
              url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?w=1400&q=80') center/cover;
  padding: 80px 0;
  text-align: center;
}
.page-header h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2rem,4vw,3rem);
  color: #fff; font-weight: 700; margin-bottom: 12px;
}
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.88rem; }
.breadcrumb a { color: var(--gold); transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.55); }
.breadcrumb-sep { color: rgba(255,255,255,0.35); }

/* SECTION HELPERS */
.section-tag {
  font-family: 'Philosopher', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--primary); display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.section-tag::before, .section-tag::after {
  content:''; flex:1; height:1px; background:var(--border); max-width:40px;
}
.section-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 16px;
}
.section-title span { color: var(--primary); }
.section-desc { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before,
.text-center .section-tag::after { max-width: 55px; }
.text-center .section-desc { margin: 0 auto; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px; font-family: 'Philosopher', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; transition: all 0.3s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: transparent; color: var(--dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold); }

/* CARDS */
.card { background: #fff; border: 1px solid var(--border); overflow: hidden; transition: all 0.4s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); background: #fff;
  font-family: 'Crimson Text', serif; font-size: 1rem; color: var(--text);
  outline: none; transition: border-color 0.3s;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; font-family: 'Philosopher', sans-serif; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget { background: var(--section-bg); border: 1px solid var(--border); padding: 28px; }
.widget-title {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary); position: relative;
}

/* PROGRESS BAR */
.progress-bar-wrap { margin-bottom: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; font-family: 'Philosopher', sans-serif; }
.progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, var(--primary), var(--gold)); border-radius: 4px; transition: width 1.5s ease; }

/* FOOTER */
footer { background: var(--dark); padding: 70px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--gold); font-weight: 700; margin-bottom: 16px; }
.footer-logo span { color: var(--primary); }
.footer-about p { font-size: 0.92rem; line-height: 1.85; margin-bottom: 20px; }
.footer-contact-info { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-info span { font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-contact-info i { color: var(--primary); width: 16px; margin-top: 3px; }
.footer-col h4 {
  font-family: 'Cinzel', serif; font-size: 1rem; color: #fff; font-weight: 600;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07); position: relative;
}
.footer-col h4::after { content:''; position:absolute; bottom:-1px; left:0; width:40px; height:2px; background:var(--primary); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: all 0.3s; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content:'›'; color:var(--primary); font-size:1.2rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.recent-posts-list { display: flex; flex-direction: column; gap: 16px; }
.rp-item { display: flex; gap: 12px; align-items: flex-start; }
.rp-img { width: 65px; height: 50px; flex-shrink: 0; background-size: cover; background-position: center; }
.rp-text span { font-size: 0.75rem; color: var(--primary); display: block; margin-bottom: 4px; }
.rp-text a { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.4; transition: color 0.3s; }
.rp-text a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--gold); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px; background: rgba(255,255,255,0.06); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.8rem; transition: all 0.3s;
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; margin-top: 50px; }
.page-btn {
  width: 40px; height: 40px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text); transition: all 0.3s; cursor: pointer;
  font-family: 'Philosopher', sans-serif;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .navbar .container { padding: 12px 20px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
