/* ===================== */
/*  Base & Variables     */
/* ===================== */
:root {
  --saffron: #e15a1f;
  --saffron-dark: #c44a15;
  --saffron-light: #f7a97a;
  --gold: #d4a843;
  --text: #3b3b3b;
  --text-light: #666;
  --white: #fff;
  --off-white: #faf7f4;
  --border: #e8e0d8;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-image: url('assets/img/sks1.png');
  background-repeat: repeat;
  min-height: 100vh;
}

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

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

a { color: var(--saffron); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--saffron-dark); }

/* ===================== */
/*  Navigation           */
/* ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 55px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--saffron);
  background: rgba(225,90,31,0.06);
}

.nav-menu a .fa-chevron-down { font-size: 10px; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  list-style: none;
  min-width: 160px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
  border-radius: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ===================== */
/*  Hero / Slider        */
/* ===================== */
.hero {
  margin-top: 70px;
}

.slider {
  position: relative;
  overflow: hidden;
  background: #f5f0eb;
}

.slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.slide.active { display: block; }

.slide img { width: 100%; display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-hover);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.slider-dots .dot.active {
  background: var(--saffron);
  transform: scale(1.2);
}

/* ===================== */
/*  Sections             */
/* ===================== */
.section {
  padding: 60px 0;
}

.section-title {
  font-family: 'Noto Serif Devanagari', 'Poppins', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--saffron);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 40px;
  font-family: 'Noto Serif Devanagari', serif;
}

/* Page Header */
.page-header {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-family: 'Noto Serif Devanagari', 'Poppins', serif;
  font-size: 36px;
  font-weight: 600;
}

.breadcrumb {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 8px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ===================== */
/*  About Section        */
/* ===================== */
.about-grid {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}

.about-image img {
  width: 100%;
  transition: transform var(--transition);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* ===================== */
/*  Books / Publications */
/* ===================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.book-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: block;
  border: 1px solid var(--border);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.book-cover {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.book-cover img { max-height: 180px; width: auto; }

.book-info {
  padding: 0 16px 16px;
}

.book-info img { width: 100%; }

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(225,90,31,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
}

.book-overlay i { font-size: 28px; }

.book-card:hover .book-overlay { opacity: 1; }

/* Publications list */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pub-list li:last-child { border-bottom: none; }

.pub-list li i { color: var(--saffron); font-size: 18px; }

.pub-list li a {
  color: var(--text);
  font-weight: 500;
}

.pub-list li a:hover { color: var(--saffron); }

/* ===================== */
/*  Video                */
/* ===================== */
.video-featured {
  max-width: 900px;
  margin: 30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-featured iframe {
  display: block;
  border: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

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

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

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--border);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

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

/* Gallery categories */
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  display: block;
}

.gallery-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-cat-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.gallery-cat-card h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

/* Gallery section heading */
.gallery-section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--saffron);
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.gallery-section-title:first-of-type {
  margin-top: 0;
}

/* ===================== */
/*  Audio                */
/* ===================== */
.audio-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.audio-section .audio-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: 3px solid var(--border);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.audio-section audio {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

/* ===================== */
/*  Review               */
/* ===================== */
.review-group {
  margin-bottom: 50px;
}

.review-group h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ===================== */
/*  Contact Form         */
/* ===================== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.9);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-form .form-intro {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: border-color var(--transition);
  background: var(--white);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--saffron);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

/* ===================== */
/*  Lightbox             */
/* ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ===================== */
/*  Footer               */
/* ===================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
  margin: 0 auto;
  filter: brightness(10);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 400;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===================== */
/*  Responsive           */
/* ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-hover);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .section-title { font-size: 26px; }

  .page-header h1 { font-size: 28px; }

  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .gallery-item img { height: 140px; }

  .gallery-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .contact-form { padding: 24px; }

  .video-featured iframe { height: 250px; }
}

@media (min-width: 769px) {
  .video-featured iframe { height: 500px; }
}
