/* ========================================
   SURENDRA GURUJI - MODERN SPIRITUAL WEBSITE
   Clean, Professional, Responsive Design
   ======================================== */

/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Color Palette */
  --primary-color: #2c3e50;      /* Deep blue-gray */
  --secondary-color: #34495e;    /* Darker blue-gray */
  --accent-color: #e74c3c;       /* Warm red accent */
  --gold-accent: #f39c12;        /* Spiritual gold */
  --light-bg: #ecf0f1;          /* Light gray background */
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-muted: #95a5a6;
  
  /* Spacing & Layout */
  --container-max-width: 1400px;
  --section-padding: 4rem 0;
  --card-padding: 2rem;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-spiritual: 0 4px 20px rgba(231, 76, 60, 0.1);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1rem; }

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--accent-color);
	text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-accent);
  transform: translateY(-1px);
}

/* ===== HEADER & NAVIGATION ===== */
#header {
  background: #4a4545 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid #4a4545 !important;
  transition: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  gap: 1rem;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-brand .logo:hover {
  color: var(--gold-accent);
  transform: scale(1.05);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.nav-item a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.nav-item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
	width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition);
}

.nav-item a:hover::before {
  left: 100%;
}

.nav-item a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-item.selected a {
  background: rgba(255,255,255,0.15);
  color: var(--gold-accent);
  font-weight: 600;
}

/* Language Switch */
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.language-switch:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-link:hover {
  color: var(--gold-accent);
}

.lang-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--white);
  transition: var(--transition);
}

/* ===== MAIN LAYOUT ===== */
.page {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.main-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  align-items: start;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

/* ===== TITLE SECTION ===== */
.title-section {
  grid-column: 1;
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
	overflow: hidden;
}

.title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-accent), var(--accent-color));
}

.main-title {
  font-size: 1.5rem;
  font-weight: 5;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.main-title::after {
  content: '';
	display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-accent));
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== SPIRITUAL CONTENT ===== */
.spiritual-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.spiritual-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-accent), var(--accent-color));
}

.spiritual-card {
  padding: var(--card-padding);
  border-bottom: 1px solid #f0f0f0;
}

.spiritual-card:last-child {
  border-bottom: none;
}

.spiritual-text p {
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
	position: relative;
  padding-left: 1.5rem;
}

.spiritual-text p::before {
  content: '❦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-accent);
  font-size: 1.2rem;
	font-weight: bold;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== SIDEBAR ===== */
.right {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.right h1, .right h2 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.right h1::after, .right h2::after {
  content: '';
	display: block;
  width: 50px;
  height: 2px;
  background: var(--gold-accent);
  margin: 0.5rem auto;
  border-radius: 1px;
}

.right p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-light);
}

.right img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
.footer1 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  border-top: 3px solid var(--gold-accent);
}

.footer1 p {
	margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .main-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .right {
    position: static;
    order: -1;
  }
  
  .main-title {
    font-size: 1.3rem;
  }
  
  .spiritual-text p {
    font-size: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-item a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .main-content {
    padding: 0.5rem;
  }
  
  .title-section,
  .spiritual-content,
  .video-section,
.right {
    border-radius: var(--border-radius-sm);
  }
  
  .main-title {
    font-size: 1.2rem;
  }
}

/* ===== ANIMATIONS & EFFECTS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spiritual-content,
.video-section,
.right {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  #header,
  .video-section,
  .right {
    display: none;
  }
  
  .main-content {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
  }
  
  .spiritual-content {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== ASHRAMS PAGE STYLES ===== */
.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.ashrams-section {
  margin-top: 2rem;
	width: 100%;
  max-width: 100%;
}

.ashrams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.ashram-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.ashram-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ashram-image {
	position: relative;
  height: 250px;
  overflow: hidden;
}

.ashram-image img {
	width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.ashram-content {
  padding: 1.5rem;
}

.ashram-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  line-height: 1.4;
	text-align: left;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.ashram-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-person {
  font-size: 1.1rem;
  color: #2c3e50;
	text-align: left;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
  border-left: 4px solid #3498db;
}

.address {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  text-align: left;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.contact-info {
  font-size: 1rem;
  color: #555555;
  text-align: left;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 500;
  border-left: 4px solid #e74c3c;
}

.contact-info strong {
  font-weight: 600;
  color: #2c3e50;
}

.phone-link {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Responsive adjustments for ashrams */
@media (max-width: 1024px) {
  .ashrams-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .ashram-image {
    height: 220px;
  }
  
  .ashram-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .ashrams-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .ashram-image {
    height: 280px;
  }
  
  .ashram-content {
    padding: 1.2rem;
  }
  
  .ashram-title {
    font-size: 1.1rem;
  }
  
  .contact-person,
  .address,
  .contact-info {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .ashrams-grid {
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .ashram-image {
    height: 250px;
  }
  
  .ashram-content {
    padding: 1rem;
  }
  
  .ashram-title {
    font-size: 1rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.about-image {
  text-align: center;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.bio-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  text-align: justify;
  margin-bottom: 1rem;
}

.guru-dialogue {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.dialogue-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.speaker {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.dialogue {
  color: var(--text-color);
  line-height: 1.6;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.book-item {
  background: var(--light-bg);
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  font-size: 0.95rem;
  color: var(--text-color);
}

.centers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.center-item {
  background: var(--light-bg);
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: center;
}

.centers-link {
  text-align: center;
  margin-top: 1rem;
}

.btn-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #4a90e2);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #4a90e2, var(--primary-color));
}

.quote {
  background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-style: italic;
}

/* Sidebar Styles */
.sidebar-content {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.centers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.center-sidebar-item {
  background: var(--light-bg);
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-color);
  border-left: 3px solid var(--primary-color);
}

.sidebar-link {
  text-align: center;
}

/* Responsive Design for About Page */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .profile-image {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  
  .centers-list {
    grid-template-columns: 1fr;
  }
  
  .profile-image {
    max-width: 200px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .bio-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    gap: 1rem;
  }
  
  .profile-image {
    max-width: 180px;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .bio-text {
    font-size: 0.9rem;
  }
  
  .guru-dialogue {
    padding: 1rem;
  }
  
  .dialogue-item {
    padding: 0.6rem;
  }
}

/* ===== SPEECHES PAGE STYLES ===== */
.speeches-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.speeches-intro {
  margin-bottom: 3rem;
}

.intro-card {
  background: linear-gradient(135deg, var(--primary-color), #4a90e2);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

.videos-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.video-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.video-description {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-footer {
  padding: 1rem 1.5rem;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.video-number {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.no-videos {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--light-bg);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
}

.no-videos-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.no-videos-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive Design for Speeches Page */
@media (max-width: 1024px) {
  .intro-card {
    padding: 1.5rem;
  }
  
  .intro-title {
    font-size: 1.3rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .video-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .videos-container {
    gap: 1.5rem;
  }
  
  .video-header {
    padding: 1rem;
  }
  
  .video-wrapper {
    padding: 0 1rem 1rem 1rem;
  }
  
  .video-footer {
    padding: 0.8rem 1rem;
  }
  
  .intro-card {
    padding: 1.2rem;
  }
  
  .intro-title {
    font-size: 1.2rem;
  }
  
  .intro-text {
    font-size: 0.95rem;
  }
  
  .video-title {
    font-size: 1.1rem;
  }
  
  .video-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .videos-container {
    gap: 1rem;
  }
  
  .video-header {
    padding: 0.8rem;
  }
  
  .video-wrapper {
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
  
  .video-footer {
    padding: 0.6rem 0.8rem;
  }
  
  .intro-card {
    padding: 1rem;
  }
  
  .intro-title {
    font-size: 1.1rem;
  }
  
  .intro-text {
    font-size: 0.9rem;
  }
  
  .video-title {
    font-size: 1rem;
  }
  
  .video-description {
    font-size: 0.9rem;
  }
  
  .video-number {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
}

/* ===== BOOKS PAGE STYLES ===== */
.books-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.books-intro {
  margin-bottom: 3rem;
}

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

.book-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-image {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  padding: 1.5rem;
  text-align: center;
}

.book-cover {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.05);
}

.book-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
}

.book-publisher {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.book-actions {
  text-align: center;
  margin-top: auto;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #4a90e2);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #4a90e2, var(--primary-color));
}

/* Language-specific styling */
.book-card[data-lang="english"] .book-title {
  font-family: 'Arial', sans-serif;
}

.book-card[data-lang="marathi"] .book-title {
  font-family: 'Arial', sans-serif;
}

/* Responsive Design for Books Page */
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .book-title {
    font-size: 1.1rem;
  }
  
  .book-publisher {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  
  .book-image {
    padding: 1rem;
  }
  
  .book-content {
    padding: 1rem;
  }
  
  .book-title {
    font-size: 1rem;
  }
  
  .book-publisher {
    font-size: 0.8rem;
  }
  
  .btn-download {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .book-image {
    padding: 0.8rem;
  }
  
  .book-content {
    padding: 0.8rem;
  }
  
  .book-cover {
    max-width: 150px;
  }
  
  .book-title {
    font-size: 0.95rem;
  }
  
  .book-publisher {
    font-size: 0.75rem;
  }
  
  .btn-download {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===== MANUSCRIPTS PAGE STYLES ===== */
.manuscripts-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.manuscripts-intro {
  margin-bottom: 3rem;
}

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

.manuscript-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.manuscript-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.manuscript-image {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  aspect-ratio: 4/3;
}

.manuscript-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.manuscript-card:hover .manuscript-thumb {
  transform: scale(1.05);
}

.manuscript-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
}

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

.manuscript-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.manuscript-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Modal Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mySlides {
  display: none;
  text-align: center;
}

.mySlides img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--gold-accent);
  transform: scale(1.1);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: var(--white);
  font-weight: bold;
  font-size: 24px;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
  user-select: none;
  background: rgba(0,0,0,0.5);
  z-index: 2001;
}

.next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.8);
  color: var(--gold-accent);
  transform: scale(1.1);
}

.numbertext {
  color: var(--white);
  font-size: 14px;
  padding: 12px 16px;
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px;
  font-weight: 600;
  z-index: 2001;
}

.caption-container {
  text-align: center;
  background: rgba(0,0,0,0.8);
  padding: 1rem 2rem;
  color: var(--white);
  border-radius: 8px;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
}

#caption {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Responsive Design for Manuscripts Page */
@media (max-width: 1024px) {
  .manuscripts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .manuscript-number {
    font-size: 1.8rem;
  }
  
  .manuscript-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .manuscripts-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  }
  
  .manuscript-number {
    font-size: 1.5rem;
  }
  
  .manuscript-title {
    font-size: 0.9rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .mySlides img {
    max-height: 70vh;
  }
  
  .close {
    top: 15px;
    right: 25px;
    font-size: 30px;
  }
  
  .prev,
  .next {
    padding: 15px;
    font-size: 20px;
  }
  
  .numbertext {
    top: 15px;
    left: 15px;
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .manuscripts-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .manuscript-number {
    font-size: 1.2rem;
  }
  
  .manuscript-title {
    font-size: 0.8rem;
  }
  
  .modal-content {
    width: 98%;
    max-height: 80vh;
  }
  
  .mySlides img {
    max-height: 60vh;
  }
  
  .close {
    top: 10px;
    right: 20px;
    font-size: 25px;
  }
  
  .prev,
  .next {
    padding: 10px;
    font-size: 18px;
  }
  
  .numbertext {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 6px 10px;
  }
  
  .caption-container {
    padding: 0.8rem 1rem;
  }
  
  #caption {
    font-size: 1rem;
  }
}

/* ===== GOOGLE ADSENSE STYLES ===== */
.ad-container {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.ad-top {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.ad-middle {
  margin: 2rem 0;
}

.ad-bottom {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.ad-sidebar {
  margin: 1rem 0;
  padding: 0.8rem;
}

/* AdSense responsive adjustments */
.adsbygoogle {
  display: block !important;
  margin: 0 auto;
}

/* Hide ads on very small screens to avoid layout issues */
@media (max-width: 480px) {
  .ad-container {
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .ad-sidebar {
    display: none;
  }
}

/* Ad container in sidebar */
.right .ad-container {
  margin: 1rem 0;
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

/* Ad container in content areas */
.content-wrapper .ad-container {
  max-width: 100%;
  overflow: hidden;
}

/* Ensure ads don't break layout */
.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Ad loading placeholder */
.ad-container:empty::before {
  content: "Advertisement";
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  background: var(--light-bg);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
}

/* ===== FOOTER STYLES ===== */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

.footer-copyright {
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== IMAGE SLIDESHOW ===== */
.slideshow-section {
  margin: 2rem 0;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mySlides {
  display: none;
  text-align: center;
  position: relative;
}

.mySlides img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.mySlides:hover img {
  transform: scale(1.02);
}

.mySlides .text {
  color: var(--text-dark);
  font-size: 1.1rem;
  padding: 1rem;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.numbertext {
  color: var(--white);
  font-size: 14px;
  padding: 8px 12px;
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px;
  font-weight: 600;
  z-index: 2;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  cursor: pointer;
}

.dot:hover,
.dot.active {
  background-color: var(--gold-accent);
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ===== SOCIAL MEDIA LINKS ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.footer-social a:hover svg {
  transform: scale(1.1);
}

/* ===== RESPONSIVE SLIDESHOW ===== */
@media (min-width: 1024px) {
  .slideshow-container {
    display: flex;
    overflow: hidden;
    max-height: 300px;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
  }
  
  .slideshow-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
  }
  
  .mySlides {
    display: block !important;
    position: relative;
    flex: 0 0 33.333%; /* Show 3 images per row */
    min-width: 33.333%;
    padding: 0 0.5rem;
  }
  
  .mySlides img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
  }
  
  .mySlides:hover img {
    transform: scale(1.05);
  }
  
  .mySlides .text {
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .numbertext {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
  }
  
  .dot {
    display: none; /* Hide dots on desktop */
  }
  
  /* Auto-scroll indicators */
  .slideshow-container::before,
  .slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 3;
    pointer-events: none;
  }
  
  .slideshow-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
  }
  
  .slideshow-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .slideshow-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 350px;
  }
  
  .mySlides {
    display: block !important;
    position: relative;
  }
  
  .mySlides img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
  }
  
  .mySlides .text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .numbertext {
    display: none;
  }
  
  .dot {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-social {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-social a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .footer-social a svg {
    width: 18px;
    height: 18px;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
  }
  
  /* Mobile slideshow - single image */
  .slideshow-container {
    display: block;
    max-height: 400px;
  }
  
  .mySlides {
    display: none;
  }
  
  .mySlides img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
  }
  
  .mySlides .text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    font-size: 1rem;
  }
  
  .numbertext {
    display: block;
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 3px;
  }
}