:root {
  --primary-color: #1e2a38;         /* Charcoal Navy - Professional Base */
  --secondary-color: #4c5c68;       /* Muted Slate Gray - Subtle Secondary */
  /* --accent-color: #ff914d;          Professional Orange - Confident Accent */
     /* --accent-color : #00b4d8; */
  --accent-color :#a6b1e1;
  --background-light: #f5f7fa;      /* Light Mist Gray - Clean Background */
  --background-dark: #273746;       /* Dark Gray Blue - Header/Footer */
  --text-color: #2c2c2c;            /* Rich Charcoal - Body Text */
  --heading-color: var(--primary-color);
  --button-color: var(--accent-color);
  --button-text: #ffffff;
  --button-hover:#3f51b5;     /* Deeper Burnt Orange for Hover */

  --gradient-hero: linear-gradient(to right, var(--background-light), #e8edf1);
  --gradient-section: linear-gradient(to bottom, var(--background-light), #dee3e9);

  --space-xxs : 1px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: var(--space-xxs);
  padding-block: var(--space-xxs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xxs);
  box-sizing: border-box;
}

/* Header Section */
.site-header {
  background: var(--background-dark);
  border-bottom: 2px solid var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.site-logo img {
  height: 70px;
  width: auto;
}

/* Navigation */
.site-nav {
  display: flex;
}

.site-nav ul {
  display: flex;
  gap: var(--space-lg);
  margin: 0 0 0 var(--space-lg); /* ⬅ only left-margin to add small space from logo */
  padding: 0;
  list-style: none;
  position: relative;
}

.site-nav li {
  position: relative;
  z-index: 1;
}

.site-nav a {
  text-decoration: none;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--button-text);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--accent-color);
}

.site-nav a.active {
  font-weight: 700;
  color: var(--button-hover);
}

/* Hover background image effect */
.site-nav a::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 0rem;
  bottom: 0rem;
  background-image: url('/images/line_4.png'); /* Update path as needed */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  border-radius: 4px;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.site-nav a:hover::before,
.site-nav a.active::before {
  opacity: 1;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--button-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: var(--space-sm);
  }

  .site-header.menu-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-nav a {
    font-size: 1.4rem;
    padding: var(--space-sm) 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}


/* Hero Section as Slider */
.hero-book-slider {
  background: var(--gradient-hero);
  overflow: hidden;
  position: relative;
  padding: 3rem 1rem;
}

.hero-slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.hero-slide {
  flex: 0 0 100%;
  max-width: 100%;
  min-height: 500px; /* force equal height for slides */
  display: flex;
  align-items: center;
}

/* Grid Inside Each Slide */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  height: 100%;
}

.hero-text {
  flex: 1 1 350px;
  max-width: 550px; /* Slightly reduced to give media more space */
  margin-right: 1rem;
}

.hero-text h4 {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-text h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.hero-text .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--button-color);
  color: var(--button-text);
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-text .btn:hover {
  background-color: var(--button-hover);
}

.hero-image {
  flex: 1 1 300px;
  position: relative;
}

.hero-image .bg-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.15;
  position: absolute;
  top: 0;
  left: 0;
}
.hero-image .book-cover {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  /* object-fit: cover; */
  display: block;
  margin: 0 auto;
  z-index: 2;
}

/* For Video Wrapper */
.hero-media.video-wrapper {
  flex: 1 1 200px;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.hero-media.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


.line-clamp-4{
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dot Navigation */
.slider-dots {
  text-align: center;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  background-color: #4886c1; 
  border: none;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.slider-dots button.active {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-image .bg-image {
    display: none;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-text {
    margin-right: 0;
    max-width: 100%;
  }

  .hero-image .book-cover,
  .hero-media.video-wrapper {
    max-width: 100%;
  }
}


.book-collection {
  background: var(--gradient-section);
  padding: var(--space-md) var(--space-xs);
  text-align: center;
  overflow: hidden;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
  font-family: 'Merriweather', serif;
  text-shadow: 1px 1px 0 #ffffff;
  text-align: center; /* center the text */
}

/* Horizontal Scroll Grid */
.book-grid {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 5%;
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}
.book-grid::-webkit-scrollbar {
  display: none;
}
.book-grid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Book Card (Slider Style) */
.book-card {
  background: linear-gradient(to bottom right, #ffffff, #f0f4f8);        /* changed */
  border-radius: 14px;
  padding: var(--space-md);                                              /* from 1.5rem to theme var */
  flex: 0 0 auto;
  width: 220px;                                                          /* reduced from 280px */
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);                             /* lighter shadow */
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  text-align: center;                                                   /* added */
  position: relative;                                                   /* added for future UI layering */
  color: var(--text-color);                                             /* changed from hardcoded */
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);    /* softer shadow */
}

.book-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: var(--space-sm);                             /* using theme var */
  border-radius: 0px;                                        /* more rounded */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);                   added soft inner shadow */
}

.book-card h4 {
  font-size: 1.1rem;
  color: var(--heading-color);
  font-weight: 600;
  margin-top: var(--space-xs);             /* added */
}

.book-card a {
  text-decoration: none;
  color: inherit;
}
.book-card h4 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-underline-offset: 4px;
}

/* "More" Button */
.book-more {
  margin-top: var(--space-xl);
}
.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Merriweather', serif;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--primary-color);
  color: var(--button-text);
}


.books-page-section {
  background: var(--gradient-section);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

/* Title */
.book-gallery-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: 'Merriweather', serif;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 0 #ffffff;
}

/* Flex-wrap Grid */
.book-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding: 0.1rem 2%;
}

/* Book Card */
.book-gallery-card {
  width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Image */
.book-gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Button */
.book-gallery-btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--accent-color);
  color: var(--button-text);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.book-gallery-btn:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}


.book-gallery-page-section {
  background: var(--background-light);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

/* book gallery  */
.bgallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  padding: 1 2rem;
  justify-items: center;
}

.bgallery-card {
  width: 280px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
}

.bgallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.bgallery-image {
  width: 240px;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: var(--space-xs);
}

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

.bgallery-book-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.bgallery-author {
  font-size: 0.75rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.bgallery-btn {
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: var(--button-text);
  text-decoration: none;
  margin-top: 1rem; /* cleaner & slightly more spacious */
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}


.bgallery-btn:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}



/* Achievements Section */
.achievements-modern {
  background: radial-gradient(circle at center, #fdfbfb, #ebedee);
  padding: 4rem 1rem;
  text-align: center;
}

.achievements-modern .section-title {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-family: 'Merriweather', serif;
  text-shadow: 1px 1px 0 #ffffff;
  text-align: center; /* center the text */
}

.achievement-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.achievement-item {
  background: #ffffffcc;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  max-width: 280px;
  min-width: 200px;
  flex: 1 1 200px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.achievement-item:hover {
  transform: translateY(-6px);
}

.icon-box {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.achievement-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.achievement-item p {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

.achievement-item a {
  color: var(--text-color);
  text-decoration: none;
}

.achievement-item a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .achievement-item {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .achievement-item {
    flex: 1 1 100%;
  }
}



.featured-section {
  background: var(--gradient-section);
  padding: 4rem 1rem;
}

.featured-section .section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section .text-column {
  flex: 1 1 50%;
  max-width: 600px;
}

.featured-section .text-column h2 {
  font-size: 2.3rem;
  color: #1c3f60;
  margin-bottom: 1rem;
  font-family: 'Merriweather', serif;
  line-height: 1.4;
}

.featured-section .text-column p {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.75;
  margin-bottom: 2rem;
  text-align: justify;
}

.featured-section .text-column .btn {
  background: #f4a261;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Merriweather', serif;
  transition: background 0.3s ease;
}

.featured-section .text-column .btn:hover {
  background: #e76f51;
}

.featured-section .image-column {
  flex: 1 1 40%;
  text-align: center;
}

.featured-section .image-column img {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .featured-section .section-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .featured-section .text-column,
  .featured-section .image-column {
    max-width: 100%;
    text-align: center;
  }

  .featured-section .text-column p {
    text-align: center;
  }
}


/* Events Section Container */
/* Events Section */
.events-section {
  background: linear-gradient(to bottom, #fcfcfc, #f0f4fa);
  padding: 1rem;
  position: relative;
}

/* Events Grid */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
}

/* Event Card */
.event-card {
  position: relative;
  width: 250px;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* Image */
.event-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Overlay Text Content */
.event-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0.7rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 90%);
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  margin: 0 0 0.4rem 0;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.event-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent-color);
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.event-link:hover {
  background: var(--button-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .events-section {
    padding: 2rem 1rem;
  }

  .events-grid {
    gap: 1rem;
    padding: 0;
  }

  .event-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .event-img {
    height: 200px;
  }

  .event-title {
    font-size: 1rem;
  }

  .event-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1rem;
  }

  .event-img {
    height: 180px;
  }

  .event-title {
    font-size: 0.95rem;
  }

  .event-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}



/* --------------------------
   Blog Section
-------------------------- */
/* Modern Blog Section Styles */
.blog-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48%, 1fr)); /* 2 cards on laptop */
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xs);
  width: 100%;
  box-sizing: border-box;
}

.blog-horizontal-card {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 16px;
  gap: 1rem; 
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-height: 220px;
}

.blog-horizontal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Image Styling */
.blog-image {
  flex-shrink: 0;
  width: 240px;
  height: auto;
  overflow: hidden;
  background: #f0f0f0;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Styling */
.blog-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px; /* Reduced spacing between content blocks */
  flex: 1;
  background: #fff;
}

.blog-title {
  font-size: 1.35rem;
  font-family: 'Merriweather', serif;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.4;
}

.blog-author {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.85;
  margin: 0;
}

/* Description with Dynamic Line Clamp */
.blog-description {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3; /* default line clamp */
}

/* Section Wrapper */
.blog-section {
  background: var(--gradient-section);
  padding: var(--space-xl) var(--space-md);
}

/* CTA Button */
.read-more {
  align-self: flex-start;
  padding: 0.45rem 1.2rem;
  background: var(--button-color);
  color: var(--button-text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: var(--button-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-horizontal-grid {
    grid-template-columns: 1fr; /* fallback to 1 column on smaller laptops/tablets */
  }

  .blog-description {
    -webkit-line-clamp: 4; /* more lines on narrower screens */
  }
}

@media (max-width: 768px) {
  .blog-horizontal-card {
    flex-direction: column;
    min-height: auto;
  }

  .blog-image {
    width: 100%;
    height: 200px;
  }

  .blog-image img {
    height: 100%;
  }

  .blog-content {
    padding: var(--space-md);
  }

  .blog-description {
    -webkit-line-clamp: 5; /* allow more lines on mobile */
  }
}

.testimonial-section {
  background: var(--gradient-section);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.testimonial-section .section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.testimonial-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 5%;
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}


.testimonial-card {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: var(--space-md);
  text-align: center;
  position: relative;
  scroll-snap-align: start; /* Ensures card snaps into view */
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-nav {
  margin-top: var(--space-md);
}

.testimonial-nav button {
  background: var(--button-color);
  color: var(--button-text);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 0 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.3s;
}
.testimonial-nav button:hover {
  background: var(--button-hover);
}



.social-section {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--button-text);
}

.social-section .social-heading {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  font-family: 'Merriweather', serif;
  color: var(--button-text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  max-width: 600px;
  margin-inline: auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--button-text);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.social-icons a:hover {
  background-color: var(--button-hover);
  transform: scale(1.1);
}

.social-icons svg,
.social-icons img {
  width: 28px;
  height: 28px;
  fill: currentColor;
}


/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: var(--button-text);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  font-size: 0.95rem;
  font-family: 'Merriweather', serif;
  border-top: 2px solid var(--accent-color);
}

.site-footer .footer-text {
  margin: 0 auto;
  opacity: 0.9;
  max-width: 700px;
  line-height: 1.6;
}

.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .site-footer .footer-text {
    font-size: 1.2rem;
  }
}





/* book page */
.book-feature-page {
  background: var(--gradient-hero);
  padding: 3rem 1rem;
}

.book-feature-page .book-feature-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.book-feature-page .book-text {
  flex: 1 1 350px;
  max-width: 600px;
}

.book-feature-page .book-text h1 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-family: 'Merriweather', serif;
}

.book-feature-page .book-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.book-feature-page .book-image {
  flex: 1 1 300px;
  max-width: 350px;
}

.book-feature-page .book-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
}

/* Responsive */
@media (max-width: 768px) {
  .book-feature-page .book-feature-grid {
    flex-direction: column;
    text-align: center;
  }

  .book-feature-page .book-text h1 {
    font-size: 1.6rem;
  }

  .book-feature-page .book-text p {
    font-size: 0.95rem;
  }

  .book-feature-page .book-image {
    max-width: 80%;
  }
}


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

.photo-gallery-grid img {
  width: 100%;
  height: 250px; /* Fixed height for uniform boxes */
  object-fit: cover; /* Crop to fill box while maintaining aspect ratio */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.photo-gallery-grid img:hover {
  transform: scale(1.03);
}


/*video youtube*/
.video-section {
  padding: 4rem 1rem;
  background: var(--gradient-section);
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.video-card {
  flex: 1 1 300px; /* flexible width, min 400px */
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: var(--space-md);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

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

.video-title {
  margin-top: var(--space-sm);
  font-size: 1.1rem;
  color: var(--heading-color);
  text-align: center;
  font-family: 'Merriweather', serif;
  font-weight: 600;
}

.video-description {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-top: var(--space-xs);
  line-height: 1.6;
  text-align: center;
  max-width: 90%;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  .video-title {
    font-size: 1rem;
  }

  .video-description {
    font-size: 0.85rem;
  }
}




/* author page */ 
#sec-2a53 {
  background: var(--gradient-hero);
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

#sec-2a53 .u-sheet-1 {
  text-align: center;
}

#sec-2a53 .author-image-wrapper {
  margin-bottom: 25px;
}

#sec-2a53 .author-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}

#sec-2a53 .author-image:hover {
  transform: scale(1.05);
}

#sec-2a53 h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

#sec-2a53 .u-text-2 {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#sec-2a53 .u-text-2 .email-icon {
  width: 20px;
  height: 20px;
}

#sec-2a53 .u-text-3 {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 500;
  margin-top: 10px;
}


#sec-25f9 {
  background: var(--gradient-soft); /* use your soft theme gradient */
  padding: 60px 20px;
}

#sec-25f9 .u-sheet-1 {
  max-width: 900px;
  margin: 0 auto;
}

#sec-25f9 .u-layout-cell-1 {
  background-color: var(--light-color-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

#sec-25f9 h2.u-text-1 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

#sec-25f9 .u-text-2 {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
  font-weight: 400;
}

.multi-blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.multi-blog-card {
  flex: 0 0 calc(33.333% - 24px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.multi-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.multi-blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.multi-blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.multi-blog-overlay {
  padding: 16px;
}

.multi-blog-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 8px;
  color: var(--primary-color);
  font-family: 'Merriweather', serif;
}

.multi-blog-author,
.multi-blog-date {
  font-size: 0.85rem;
  color: #666;
  margin: 2px 0;
}

/* Responsive layout */
@media (max-width: 992px) {
  .multi-blog-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .multi-blog-card {
    flex: 0 0 100%;
  }
}


/*
.blog-author-image {
  width: 120px;              /* Typical passport photo width 
  height: 160px;             /* Maintains 3:4 ratio 
  object-fit: cover;         /* Ensures image fills area without distortion 
  border-radius: 4px;        /* Optional: for slight rounding 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1rem auto;         /* Center align if needed 
  display: block;
}
*/

/* === News Article Page Scoped Styles === */
.news-container {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.news-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.news-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color, #2e3a59);
  margin-bottom: 1rem;
  text-align: center;
}

.news-meta {
  font-size: 0.95rem;
  color: #888;
  text-align: center;
  margin-bottom: 2rem;
}

.news-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 1.5rem 0;
  border-radius: 8px;
  display: block;
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}


.photo-gallery-section {
  padding: 2rem;
  background-color: var(--background-light);
}

.photo-gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.photo-gallery-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.photo-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.photo-gallery-item {
  flex: 1 1 200px;
  max-width: 250px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-gallery-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-gallery-image:hover {
  transform: scale(1.05);
}


/* Scoping everything under .poem-style */
/* Layout */
/* ========= POEM MAIN STYLE ========== */

.poem-style {
  background: #ffffff;
  padding: 4rem 1rem;
  font-family: 'Noto Serif Devanagari', 'Merriweather', serif;
  color: #111;
}

.poem-blog-layout {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.poem-content {
  flex: 2;
  min-width: 0;
}

.poem-style-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111;
}

.poem-style-meta {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 2rem;
}

.poem-style-author-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.poem-style-text {
  font-size: 1.1rem;
  line-height: 2;
  white-space: pre-line;
  text-align: justify;
  margin-bottom: 2rem;
}

.poem-style-author {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: #444;
}

/* ========= SIDEBAR STYLE ========== */

.poem-sidebar {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  max-height: 90vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.sidebar-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--primary-color, #1c3f60);
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.sidebar-blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-blog-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sidebar-blog-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.sidebar-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.sidebar-date {
  font-size: 0.75rem;
  color: #888;
}

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

@media (max-width: 992px) {
  .poem-blog-layout {
    flex-direction: column;
  }

  .poem-sidebar {
    position: static;
    max-height: unset;
    margin-top: 2rem;
  }
}



.multi-blog-card {
  flex: 0 0 calc(25% - 20px); /* 4 per row */
  display: flex;
  flex-direction: column;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.multi-blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.multi-blog-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  z-index: 2;
}

.multi-blog-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}

.multi-blog-author,
.multi-blog-date {
  font-size: 0.85rem;
  margin: 0;
  color: #ccc;
}

@media (max-width: 768px) {
  .multi-blog-card {
    height: 220px;
  }

  .multi-blog-title {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .multi-blog-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 per row on medium screens */
  }
}

@media (max-width: 768px) {
  .multi-blog-card {
    flex: 0 0 calc(50% - 20px); /* 2 per row on small screens */
  }
}

@media (max-width: 480px) {
  .multi-blog-card {
    flex: 0 0 100%; /* 1 per row on mobile */
  }
}


/* Modal container */
.image-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
  justify-content: center;
  align-items: center;
}

/* Modal image */
.image-modal img.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  box-shadow: 0 0 15px #000;
  border-radius: 4px;
}

/* Close button */
.image-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}


.news-page-wrapper {
  background: var(--background-light);
  padding-block: var(--space-xl);
}

.news-header {
  text-align: center;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--space-sm);
}

.news-image-wrapper {
  margin-block: var(--space-md);
  text-align: center;
}

.news-image-wrapper img.news-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.news-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-color);
  padding-top: var(--space-md);
}

/* Optional: Highlight blockquotes, headings, or inline tags */
.news-content h2,
.news-content h3 {
  color: var(--primary-color);
  margin-top: var(--space-lg);
  font-size: 1.5rem;
  font-weight: 600;
}

.news-content p {
  margin-bottom: var(--space-md);
}

.news-content strong {
  font-weight: 600;
  color: var(--heading-color);
}

.news-content em {
  font-style: italic;
  color: #444;
}

.news-content ul,
.news-content ol {
  padding-left: 2rem;
  margin-block: var(--space-md);
}

.news-content li {
  margin-bottom: 0.5rem;
}

.news-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border-left: 4px solid var(--accent-color);
  background: #fff7f0;
  font-style: italic;
  color: #333;
}

.news-image-wrapper img.news-image {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.kishan-author-section {
  background: var(--gradient-hero);
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.kishan-author-container {
  max-width: 900px;
  margin: 0 auto;
}

.kishan-author-image-wrapper {
  margin-bottom: 25px;
}

.kishan-author-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.kishan-author-image:hover {
  transform: scale(1.05);
}

.kishan-author-name {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.kishan-author-email {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.kishan-email-icon {
  width: 20px;
  height: 20px;
}

.kishan-author-role {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 500;
  margin-top: 10px;
}

/* Multiple Publishers */
.kishan-publisher-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.kishan-publisher-logos a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.kishan-publisher-logos img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kishan-publisher-logos a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Author Links */
.kishan-author-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.kishan-author-links a {
  font-size: 0.95rem;
  color: var(--button-text);
  background-color: var(--accent-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.kishan-author-links a:hover {
  background-color: var(--button-hover);
}
