:root {
  --gold: #f5c518;
  --gold-dark: #d4a017;
  --red: #c0392b;
  --red-dark: #922b21;
  --purple: #6c3483;
  --purple-dark: #512e5f;
  --navy: #1a237e;
  --navy-light: #283593;
  --cream: #fffdf5;
  --text: #2c1810;
  --text-muted: #5d4037;
  --shadow: 0 4px 24px rgba(44, 24, 16, 0.12);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--red);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.header-top a { color: #fff; font-weight: 600; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.logo-text span { font-size: 0.7rem; opacity: 0.85; }

.header-deity {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: left;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border-radius: 0;
}

.header-deity img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--gold-dark) !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple-dark) 50%, var(--red-dark) 100%);
  color: #fff;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../21.jpeg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p { opacity: 0.92; margin-bottom: 1.5rem; font-size: 1.05rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--gold);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-red { background: var(--red); color: #fff; }

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 4px solid var(--gold);
}

/* Sections */
section { padding: 4rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.section-header .underline {
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

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

.card-body { padding: 1.25rem; }

.card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  background: #e8eaf6;
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.15rem;
}

.tag-online { background: #e8f5e9; color: #2e7d32; }
.tag-offline { background: #fff3e0; color: #e65100; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
}

/* .about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--gold);
} */
.about-photo img {
  width: 100%;
  max-width: 450px; /* Prevents it from getting too large on huge screens */
  height: auto; /* Maintains the original aspect ratio */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--gold);
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.credential-badge {
  background: var(--purple);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.problems-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.problem-tag {
  background: #ffebee;
  color: var(--red);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid #ffcdd2;
}

/* Course detail */
.course-card { border-top: 4px solid var(--gold); }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.module-list {
  list-style: none;
  margin-top: 0.75rem;
}

.module-list li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f0f0f0;
}

.module-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* Appointment form */
.appointment-section {
  background: linear-gradient(180deg, #fff 0%, #f3e5f5 100%);
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.qr-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed #e0e0e0;
}

.qr-section img {
  max-width: 200px;
  margin: 1rem auto;
  border: 2px solid var(--gold);
  border-radius: 8px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

/* Media embeds */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.embed-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.embed-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.youtube-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.youtube-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.youtube-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,0,0,0.9);
  color: #fff;
  width: 64px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.youtube-local-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-actions .btn { justify-content: center; }

.visitor-counter {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  margin-top: 1rem;
  width: fit-content;
}

.visitor-counter strong {
  color: var(--gold);
  font-size: 1rem;
}

.embed-body { padding: 1rem; }

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s;
}

.social-btn:hover { transform: scale(1.05); color: #fff; }
.social-youtube { background: #ff0000; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-facebook { background: #1877f2; }
.social-quora { background: #b92b27; }

/* Gems */
.gems-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.gem-card { text-align: center; }
.gem-card .card-icon { font-size: 3rem; }

/* App redirect */
.app-banner {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.app-banner h2 { color: var(--navy); margin-bottom: 1rem; }

/* Contact bar */
.contact-bar {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 0;
}

.contact-bar .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

.contact-item strong { color: var(--gold); display: block; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 { color: var(--gold); margin-bottom: 0.75rem; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open { display: flex; }

.modal img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2e7d32;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: #fff; padding: 1.5rem; }
.admin-sidebar h3 { color: var(--gold); margin-bottom: 1.5rem; }
.admin-sidebar a { display: block; color: rgba(255,255,255,0.8); padding: 0.6rem 0; }
.admin-sidebar a:hover { color: var(--gold); }
.admin-main { padding: 2rem; background: #f5f5f5; }
.admin-table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: var(--navy); color: #fff; }

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.floating-btn:hover { transform: scale(1.05); color: #fff; }

.floating-book { background: var(--gold); color: var(--text) !important; }
.floating-wa { background: #25d366; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-main { flex-wrap: wrap; }
  .hero-content, .about-grid, .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
}


