@import url('https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap');

/* Base styles */
* {
  box-sizing: border-box;
}
main {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}


body {
  margin: 0;
  font-family: 'Noto Serif', serif;
  background-color: #fefbf3;
  color: #3a1f0f;
}

a.button {
  position: relative;
  z-index: 10;
}


/* Headings */
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #800000;
}
h3 {
  color: #993300;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  line-height: 1.6;
}

/* HEADER */
/* Header Styles */
/* Header with scroll texture */
.royal-header {
  background: #5e0e00 url('images/header-scroll-bg.png') repeat-x;
  background-size: contain;
  padding: 30px 20px;
  border-bottom: 6px solid #d4af37;
}

/* Optional: parallax effect */
.royal-header {
  background-attachment: fixed;
}


.header-right.compact-menu {
  min-height: 40px;
}


.overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
   min-height: 80px; /* or whatever is your fixed height */
}

.header-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 40px;
  text-align: center;
}

/* Left section: logo and title */
.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Right section: menu block */
.header-right {
  display: flex;
  justify-content: flex-start;
}

/* Larger screens: switch to row, but keep things grouped together */
@media (min-width: 768px) {
  .header-split {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-right: 40px;
  }

}

.header-right.elevated-menu {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.header-right.compact-menu {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  margin-left: auto;
}


/* Compact menu style */
.compact-menu {
  background: linear-gradient(135deg, #ff9900, #ffc04d);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.nav-menu {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #4a1c00;
  font-weight: 600;
  padding: 4px 8px;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.3);
}


/* Section paper texture */
section {
 /* background: url('images/section-paper-bg.png') repeat; */
  background-color: #fffdf5;
  background-blend-mode: multiply;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}


.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.matha-logo {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.matha-title {
  font-size: 1.6rem;
  color: #ffd700;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


.hero-video {
  width: 100%;
  margin-bottom: -4px;
 
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ensure AOS transitions animate smoothly */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: ease-out;
}

/* AOS active state when animation is triggered */
[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* Prevent scrollbars on small devices */
#video-banner {
  overflow: hidden;
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
 
    position: relative;
  z-index: 1;
  
}
.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(#ffffff40 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: 3;
  pointer-events: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 30%,  /* clear center */
    rgba(106, 12, 12, 0.4) 80%  /* dark edges */
  );
  z-index: 2;
  pointer-events: none;
}


.hero-slider picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  display: none;
}

.hero-slider picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider picture.active {
  opacity: 1;
  z-index: 1;
   display: block;
}

.hero-video {
  width: 100%;
  
  object-fit: cover;
   height: 60vh;
  display: block;
  margin-bottom: -4px; /* This removes subtle rendering gap below video */
}



/* Overlay header on top of video */
.overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1); /* semi-transparent background */
  color:  border: 2px solid green;;
}

/* Ensure main video fills the background */


/* Responsive scaling */
@media (max-width: 768px) {
  .matha-title {
    font-size: 1rem;
    text-align: left;
  }

  .logo-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}





/* Vintage Nav Styling */
.vintage-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.vintage-nav .nav-menu li a {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #fff7e0;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
  background: rgba(139, 69, 19, 0.2);
}

.vintage-nav .nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffcc;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .vintage-nav .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .matha-logo {
    margin-bottom: 10px;
  }
}


/* About Section */
#about-swamy {
  margin-top: 0;
  padding-top: 0;
  position: relative;
  background: linear-gradient(to right, #e86c0c, #f9a825);
  overflow: hidden;
}

#about-swamy::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /*background: url('images/panchamudre.png') repeat;*/
  background-size: cover;
  opacity: 0.15; /* adjust visibility here */
  z-index: 0;
}

#about-swamy .about-box {
  position: relative;
  z-index: 1;
}


.about-box.side-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.side-img {
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.15);
}

.about-text {
  max-width: 600px;
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .about-box.side-layout {
    flex-direction: column;
  }
  .about-text {
    text-align: center;
  }
}


/* News Section */
#latest-news {
  background: linear-gradient(to right, #ffe3cc, #ffddb8);
  padding: 50px 20px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: auto;
}
.news-item {
  background: #fff;
  border-left: 6px solid #d35400;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Online Services */
#online-services {
  background: linear-gradient(to right, #fff0d0, #f9e2b4);
  padding: 60px 20px;
}
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.card {
  background: white;
  border-radius: 8px;
  border-top: 4px solid #e67e22;
  padding: 25px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}

/* Special Video */
#special-video {
  padding: 50px 20px;
  background: linear-gradient(to bottom, #f3e9dc, #fdf6ec);
}

/* Footer */
/* Footer Layout */
footer {
  background: linear-gradient(to right, #4b0d0d, #800000);
  color: #fcead0;
  padding: 50px 20px 20px;
  font-size: 0.95rem;
}

.footer-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.2rem;
  color: #ffc766;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  color: #f9e4c8;
}

.footer-column ul li a {
  color: #f9e4c8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(1.1);
  transition: opacity 0.3s;
}

.social-icons img:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  color: #e0d0c0;
  font-size: 0.85rem;
  margin-top: 30px;
}


/* Mobile-first Media Queries */
@media (min-width: 768px) {
  .about-box {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

@media (max-width: 768px) {
  .hero-video {
    height: 40vh !important;
  }
}

  .card-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}



/* Sticky Labels */
.sticky-label {
  position: fixed;
  left: 0;
  top: 45%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
  background: maroon;
  color: #fff;
  padding: 10px 18px;
  font-weight: bold;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: pointer;
  z-index: 5;
  font-size: 0.85rem;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fffdf5;
  color: #2d1b00;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-box h2 {
  margin-top: 0;
  color: maroon;
}

.modal a {
  color: red;
}


.modal-box button {
  margin: 30px auto 10px;
  display: inline-block;
  padding: 10px 20px;
  background: maroon;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  max-width: 90%;
  box-sizing: border-box;
}

.image-slider {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* 4:3 ratio → height = 4/3 * width = 133.33% */
  overflow: hidden;
  border-radius: 8px;
}
.image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.image-slider-fixed {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Chrome-friendly aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  
  
}

.image-slider-fixed img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 8px;
  
  
}

.image-slider-fixed img.active {
  opacity: 1;
  z-index: 1;
  position: absolute;
}

.image-slider-fixed picture {
  display: none;
   width: 100%;
  transition: opacity 0.8s ease-in-out;
}
.image-slider-fixed picture.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.image-slider-fixed img:nth-child(1) { opacity: 1; animation: fadeCycle 15s infinite 0s; }
.image-slider-fixed img:nth-child(2) { animation: fadeCycle 15s infinite 5s; }
.image-slider-fixed img:nth-child(3) { animation: fadeCycle 15s infinite 10s; }

@keyframes fadeCycle {
  0%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-slider-horizontal {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: 8px;
}

.image-slider-horizontal img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 8px;
}

.image-slider-horizontal img.active {
  opacity: 1;
  z-index: 1;
}


.cta-app-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.cta-app-card:nth-child(1) { animation-delay: 0.2s; }
.cta-app-card:nth-child(2) { animation-delay: 0.4s; }
.cta-app-card:nth-child(3) { animation-delay: 0.6s; }


#projects-museum-education {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#projects-museum-education::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /*background: url('images/eyes1.jpg') center center / cover no-repeat fixed;
  opacity: 0.05; /* reduce further if still too strong */
  z-index: 0;
  filter: blur(1px); /* optional, gives a soft look */
}

#projects-museum-education > div {
  position: relative;
  z-index: 2;
}


.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
/*  background-color: #fff0e6; */
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  color: #5c1e00;
  transition: background 0.3s;
}
.nav-menu > li:hover > a {
  background-color: #ffe3cc;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: white;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 220px;
  animation: fadeIn 0.3s ease-in-out;
}
.submenu li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.submenu li a:hover {
  background-color: #f6e7da;
  transform: translateX(4px);
}
.has-submenu:hover > .submenu {
  display: block;
}
.submenu .has-submenu {
  position: relative;
}
.submenu .has-submenu:hover > .submenu {
  display: block;
  top: 0;
  left: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }
  .submenu {
    position: static;
    box-shadow: none;
    animation: none;
  }
  .has-submenu:hover > .submenu {
    display: none;
  }
  .has-submenu > a::after {
    content: ' ▼';
    font-size: 0.8em;
  }
  .has-submenu > a:focus + .submenu,
  .has-submenu > a:active + .submenu {
    display: block;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}




#nurturing-minds::-webkit-scrollbar {
  display: none;
}

#nurturing-minds {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

    .tab-btn {
      padding: 10px 20px;
      border: none;
      background: #ddd;
      cursor: pointer;
      border-radius: 6px;
    }
    .tab-btn.active {
      background: #752a00;
      color: white;
    }
    .book-list {
      list-style: disc inside;
      padding-left: 20px;
      margin-top: 20px;
      color: #333;
      line-height: 1.7em;
    }
    .book-grid {
      list-style: decimal inside;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding-left: 20px;
      color: #333;
    }
    @media (max-width: 768px) {
      .book-grid {
        grid-template-columns: 1fr;
      }
      .desktop-only { display: none !important; }
      .mobile-only { display: block !important; }
    }
nav.main-nav .nav-items {
  display: none;
  flex-direction: column;
  background: #fff;
  width: 100%;
}
nav.main-nav.open .nav-items {
  display: flex;
}
@media (max-width: 768px) {
  .submenu {
    display: none;
    padding-left: 15px;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .has-submenu > a::after {
    content: " ▼";
    float: right;
  }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav .nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
  }

  .main-nav ul li a {
    font-size: 20px;
    color: #000;
    text-decoration: none;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
  }

  .has-submenu .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }
}



.panchanga-form {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.panchanga-form label {
  font-weight: bold;
  font-size: 16px;
  margin-right: 10px;
  color: #333;
}

.panchanga-form input[type="date"] {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fdfdfd;
}

.panchanga-form button {
  background-color: #752a00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.panchanga-form button:hover {
  background-color: #5e2000;
}

@media (max-width: 600px) {
  .panchanga-form {
    flex-direction: column;
    align-items: flex-start;
  }
}



