@import url("https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Tiro+Gurmukhi:ital@0;1&display=swap");

/* Styling for the main scrollbar track (the background area) */
::-webkit-scrollbar {
  width: 12px; /* Width of the entire scrollbar */
  background-color: #f7e6c4; /* A light, warm beige/cream color, similar to the main background */
}

/* Styling for the scrollbar thumb (the moveable handle) */
::-webkit-scrollbar-thumb {
  background-color: #e8a045; /* The primary warm orange color from the accent boxes */
  border-radius: 10px; /* Rounded edges for a soft look */
  border: 3px solid #f7e6c4; /* A border using the track color to create a slight "padding" effect */
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Styling for the scrollbar thumb when the user hovers over it */
::-webkit-scrollbar-thumb:hover {
  background-color: #d18d36; /* A slightly darker orange for a hover effect */
}

/* Styling for the scrollbar track (the part where the thumb moves) */
::-webkit-scrollbar-track {
  /* You can add the subtle pattern here if you have it as a repeatable image */
  /* background-image: url('path/to/subtle-pattern.png'); */
  background-color: #f7e6c4;
  border-radius: 10px;
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#sc-player {
  display: none;
}
body {
  animation: fadeUp 1s ease-out;
}
body {
  height: 100vh;
  font-family: "Tiro Gurmukhi", serif;
  background-color: #fef2d7 !important; /* Beige background */
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
/* font change */

/* .main-text @font-face {
  font-family: "MyCustomFont";
  src: url("") format("woff2"),
} */

@font-face {
  font-family: "MyCustomFont";
  src: url("Fonts/Prabhki Regular.ttf") format("truetype");
}

.main-text {
  font-family: "MyCustomFont";
}
/* Container for falling images */
#scattered-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  pointer-events: none;
  z-index: 0; /* Behind page content but above body background */
}

/* Keyframe for fall animation */
@keyframes fall {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 40px)) translateX(var(--drift, 0px))
      rotate(360deg);
    opacity: 0;
  }
}

.header-bar {
  background-color: #fde5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  position: relative;
  min-height: 60px; /* consistent height */
  box-sizing: border-box;
}

/* Logo always fixed left and vertically centered */
.header-logo {
  width: 50px;
  height: auto;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0; /* remove any default spacing */
}

/* Title always centered */
.header-bar h5 {
  color: #3c1c00;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  padding: 0;
  flex: 1; /* ensures text stays centered even if logo is present */
  display: flex;
}

/* Desktop navigation */
nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
/* Dropdown container */
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fde5c8;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 267px;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu-custom li a {
  display: block;
  color: #3c1c00;
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.dropdown-menu-custom li a:hover {
  background-color: #ffecd0;
  color: #ff6600;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu-custom {
  display: block;
}

/* Style the parent link */
.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7rem;
  color: #3c1c00;
}

/* Mobile handling */
@media (max-width: 991px) {
  .dropdown-menu-custom {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: none;
    display: block;
    padding-left: 15px;
  }
  .dropdown-menu-custom li a {
    padding: 6px 0;
  }
}

/* Logo size */
.logo {
  width: 60px;
}
.header .btn-primary {
  opacity: 0.8;
  background-color: #fec847;
  border: 0.3px #fec874;
  border-radius: 8px;
}
.header .btn-primary:hover {
  opacity: 0.8;
  background-color: #fec847;
  border: 0.3px #fec874;
  border-radius: 8px;
}

/* Menu boxes */
.menu-box {
  background: linear-gradient(to bottom, #ffe3b3, #ffbb66);
  background: url("/img/box.png") no-repeat center/cover;
  /* background-size: cover; */
  background-size: contain;
  padding: 15px;
  text-align: center;
  color: #4b2e00;
  transition: transform 0.2s;
  margin: 10px 0 -72px 90px;
  width: 422px;
  height: 436px;
}

.menu-box:hover {
  transform: translateY(-5px);
}

.menu-box img {
  width: 132px;
  margin-bottom: 0;
  margin: 14px 96px 0 0;
  padding: 15px 0 0 0;
}

.menu-box p {
  margin: 12px 0 0 1px;
  font-weight: bold;
  font-size: 14px;
  padding: 0 99px 0 0;
}

a {
  text-decoration: none;
}

/* Hero Card Layout */
.hero .card {
  background: #ffe3b3;
  border-radius: 24px;
  width: auto;
}

.hero .guru-card {
  display: flex;
  align-items: center;
  background: #ffe3b3;
  border-radius: 24px;
  padding: 15px;
  opacity: 0.8;
}

/* Guru Image - default mobile friendly */
.guru-img {
  width: 90px;
  height: auto;
}

/* Hero Text Centering */
.hero p {
  color: #4b2e00;
  font-weight: 500;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero .btn {
  background-color: #ffbb66;
  border-radius: 12px;
  width: 90px;
}
.btn a {
  color: #3c1c00;
  text-decoration: none;
}

/* Small Button */
.small-btn {
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* contact */
.contact {
  position: relative;
}

.heading {
  background-color: #fdd9a1;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}

.input-bg {
  background-color: rgba(253, 217, 161, 0.6);
  border: none;
  transition: background-color 0.3s ease;
}

.input-bg:focus {
  background-color: #fdd9a1;
  outline: none;
  box-shadow: none;
}

/* Glassmorphism card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 18px 9px rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

/* Submit Button */
.submit-btn {
  display: block;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  min-width: fit-content;
  background-color: #fdd9a1;
}

.submit-btn:hover {
  background-color: #fdd9a1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .glass-card {
    padding: 1.5rem;
    border-radius: 24px;
  }
}

/* ===============================
   Unified Responsive Styles
   =============================== */
@media (max-width: 576px) {
  .guru-img {
    width: clamp(70px, 12vw, 150px); /* Flexible size */
    position: relative;
    top: 0;
  }

  /* .header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
  } */

  /* .header-logo {
    top: 0;
    transform: none;
    margin-bottom: 5px;
    left: 0;
  } */

  /* .header-bar h5 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
  } */

  .menu-box {
    width: 244px;
    height: clamp(300px, 55vw, 350px);
    padding: 10px;
    margin: 10px 0 -50px 0;
    background-size: contain;
  }

  .menu-box img {
    width: clamp(80px, 15vw, 100px);
    margin: 4px 0 0 35px;
    display: block;
  }

  .menu-box p {
    margin: 14px 56px 0 0;
    text-align: center;
    padding: 0 5% 0 0; /* percentage-based for flexibility */
  }

  .hero .guru-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.8;
  }

  .hero-text {
    display: flex;
    align-items: center;
    text-align: center;
  }

  .small-btn {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    padding: 3px 8px;
  }
}
/* ✅ Mobile view adjustments */
@media (max-width: 991px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .header-title {
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
  }

  .header-logo {
    width: 50px;
  }

  nav {
    display: none !important; /* hide nav on small screens */
  }
}

/* Teaching */
.page-header {
  background-color: #fde5c8;
  width: 100%;
  /* max-width: 339px; */
  max-width: fit-content;
  padding: 0 12px 0 14px;
  margin: 30px auto 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 6px;
}
.sub-page-header {
  background-color: #fde5c8;
  width: 100%;
  max-width: 100px;
  margin: 30px auto 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 6px;
}
.sub-page-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 20px 0;
  color: #ff6600;
}

.kesari {
  color: #ff6600;
}

.page-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 20px 0;
  color: #ff6600;
}

/* Image styling */
.content-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Content box styling */
.content-box {
  background-color: rgba(251, 231, 196, 1);
  border-radius: 15px;
  border: 1px solid rgba(108, 0, 0, 1);
  padding: 25px 20px;
  margin: 0 auto 30px auto;
  max-width: 700px;
  line-height: 1.7;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-box h2 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #ff6600;
}
.content-box h3 {
  font-weight: 500;
  margin-bottom: 10px;
  color: #ff6600;
}

.content-box p {
  margin-bottom: 10px;
  text-align: justify; /* makes text wrap nicely inside the box */
  margin-top: 11px;
}
.content-box small {
  display: block;
  text-align: right;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.4rem;
  }
  .page-header {
    /* background-color: #fde5c8; */
    width: 60%;
  }

  .content-box {
    padding: 15px;
    font-size: 0.95rem;
    max-width: 95%; /* nearly full width on mobile */
  }
  .content-img {
    max-width: 80vw;
  }
  .content-box small {
    text-align: right;
  }
  /* .kesari {
    margin: 0 0 0 10px;
  } */
}
/* History */

.history .content-img {
  display: block;
  margin: 20px auto;
  max-width: 220px;
  border-radius: 12px;
}

/* Content Box */
.history .content-box {
  background-color: #fbe7c4;
  border: 1px solid #6c0000;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* .history .container {
  min-width: auto;
}
@media (min-width: 1536px) {
  .container {
    max-width: ;
  }
} */

/* Buttons section */
.btn-list {
  max-width: 720px;
  margin: 0 auto 40px;
}
.btn-custom {
  background: #fdd9a1;
  border: 2px solid #ff6600;
  color: #ff6600;
  border-radius: 30px;
  padding: 10px 15px;
  text-align: left;
  width: 100%;
  margin-bottom: 12px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-custom:hover {
  background: #fdd9a1;
  color: #ff6600;
}
.history .page-header {
  max-width: 142px;
}
.history .yatraimg {
  display: block;
  margin: 20px auto;
  max-width: 500px;
  border-radius: 12px;
}

/* Viah */
.viah .content-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 504px;
  height: 385px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .history .content-box {
    padding: 15px;
    font-size: 0.95rem;
  }
  .history .content-img {
    max-width: 160px;
  }
  .history .page-header {
    max-width: 127px;
  }
  .history .yatraimg {
    max-width: 350px;
    margin-left: 14px;
  }
  .viah .content-img {
    max-width: 293px;
    max-height: 263px;
  }
}

.custom-box {
  background-color: rgba(251, 231, 196, 0.6); /* #FBE7C4 with 60% opacity */
  padding: 0.5rem; /* p-2 = 8px = 0.5rem */
  border: 1px solid rgb(88, 88, 88); /* border-3 + border-black */
  border-radius: 1rem; /* rounded = 4px radius */
  margin: 1em;
}
@media (min-width: 1024px) {
  .custom-box {
    border-radius: 1rem; /* more curved = 16px */
  }
}

.custom-image {
  border: 1.5em solid rgba(255, 136, 0, 0.5); /* #FF8800 with 50% opacity */
  border-radius: 12px; /* adjust value for more/less rounding */
}
/* Shlok */

.Shlok .content-box p {
  text-align: center;
}

.samagam .content-img {
  border-radius: 0;
}

.about-us {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  text-align: center;
}

.member {
  flex: 1 1 45%; /* two per row */
  max-width: 45%;
}

.member.center {
  flex: 1 1 100%; /* full row */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.member h2 {
  margin-top: 10px;
  font-size: 18px;
}

.member small {
  display: block;
  font-size: 14px;
  color: #555;
}

.startingBody {
  font-family: "Tiro Gurmukhi", serif;
  font-style: bold;
  background: #ffce49;
  background: linear-gradient(
    90deg,
    rgba(255, 206, 73, 1) 20%,
    rgba(253, 120, 45, 1) 98%
  );
}

.about-us img {
  border-radius: 0;
}
@media (max-width: 768px) {
  .about-us {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .member img {
    max-width: 160px; /* smaller on mobile */
  }

  .member h2 {
    font-size: 15px;
  }

  .member small {
    font-size: 12px;
  }
}

/* added */

/* Navigation hover underline */
.custom-link {
  position: relative;
  font-weight: 600;
  color: #3c1c00 !important;
  padding-bottom: 3px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.custom-link::after {
  content: "";
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  transition: all 0.3s ease;
}

.custom-link:hover {
  color: #ff6600 !important;
}

.custom-link:hover::after {
  rotate: 180deg;
  color: #ff6600;
}

/* Custom CSS for smooth transitions and setting the track width */
#carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Make the track wide enough to hold all cards in a single row */
  width: fit-content;
}

.card-container {
  /* flex-shrink-0 is crucial for proper layout calculation */
  flex-shrink: 0;
  padding: 1rem; /* Padding for spacing between cards */
}

/* Ensure the main carousel viewport is contained */
#carousel-viewport {
  overflow: hidden; /* Hides horizontal overflow */
  /* Custom Scrollbar Hiding (CSS only hides the visual scrollbar, JS handles movement) */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
/* Custom Scrollbar Hiding for Webkit (Chrome, Safari) */
#carousel-viewport::-webkit-scrollbar {
  display: none;
}

/* Hide the default focus ring on buttons for a cleaner look, but keep for accessibility */
.carousel-btn:focus {
  outline: 2px solid theme("colors.amber.500");
  outline-offset: 2px;
}

.carousel-inner .carousel-item img {
  width: 100%;
  height: 350px; /* Pick any fixed height or use 100% for parent container */
  object-fit: scale-down; /* Stretches image both ways, distorts if needed */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #e78442; /* Set your preferred color for arrow icons */
  border-radius: 50%;
  /* You can use 'background-image' property for a custom SVG icon, if needed */
}

/* Optional: customize the semi-transparent button backgrounds */
/* ============================= */
/* MOBILE NAVIGATION SLIDE PANEL */
/* ============================= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: -50vw; /* Start hidden off-screen to the left */
  width: 50vw;
  height: 100vh;
  background-color: #fde5c8; /* Match your theme color */
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  z-index: 9999;
  transition: left 0.35s ease-in-out; /* Smooth slide animation */
}

/* When open — slide into view */
.mobile-menu.open {
  left: 0;
}

/* Ensure menu items look good */
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: #3c1c00;
  font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background-color: rgba(254, 200, 71, 0.4);
  border-radius: 0.375rem;
}

/* Optional: make dropdowns look tidy */
.mobile-menu ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
  border-left: 2px solid rgba(60, 28, 0, 0.2);
}
