:root {
  /* Colors taken from the Nischinto template style (primary + accent) */
  --primary: rgb(218, 165, 32);
  /* main purple */
  --accent: rgb(235, 42, 84);
  /* pink accent */
  --muted: rgb(235, 42, 84);
  --bg: #f7f7fb;
  --card: #ffffff;
  --radius: 12px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", "snas-serif";
}

body {
  margin: 0;
  background: var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 90%;
  margin: 0 auto;
}

/* ✅ Sticky Header Optimization */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: fixed;
  top: 0;
  z-index: 1;
  /* Increased to ensure it stays above all elements */
  width: 100%;
  /* Helps avoid layout shifts */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  position: relative;
  background: #fff;
}

/* Optional – make topbar sticky together with header */

/* Ensure smooth transition between topbar and header */
.topbar + .header {
  top: 0;
}

.logoContainer {
  width: 35%;
}

.logo {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  color: var(--primary) !important;
  text-decoration: none;
  padding: 0px 8px;
}

.nav-link:hover {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
}

.hero {
  align-items: center;
  padding: 0;
  margin-top: 100px;
}

.lead {
  color: var(--muted);
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(111, 4, 134, 0.12);
}

.btn:hover {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(111, 4, 134, 0.12);
}

.btn.ghost {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  transition: all 0.3s ease;
  border: 1px solid rgba(111, 4, 134, 0.12);
}

.btn.ghost:hover {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(111, 4, 134, 0.12);
}

.btn.small {
  padding: 6px 10px;
  font-size: 14px;
}

.slider {
  position: relative;
  width: 100%;
  height: 700px;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 0.7s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active {
  display: block;
  opacity: 1;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  font-size: 15px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

button.prev:hover,
button.next:hover {
  background: var(--muted);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.pagination {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.pagination .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.pagination .dot.active {
  background-color: var(--muted);
}
/*===================================================== Headline ========================================================*/
.title_one {
  display: flex;
  justify-content: center;
  margin: 50px auto;
}
.headline_one {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  column-gap: 1.6rem;
  color: #e4b613;
}
.headline_one::before,
.headline_one::after {
  content: "";
  height: 2px;
  background-color: #e4b613;
  display: block;
}

/*========================================================= Gallery Grid Layout ============================================*/
.gallery-container {
  columns: 3 300px;
  column-gap: 20px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.photo {
  break-inside: avoid;
  margin-bottom: 20px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.photo.hide {
  opacity: 0;
  transform: scale(0.9);
  display: none;
}

.photo img {
  width: 350px;
  height: 300px;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.photo img:hover {
  transform: scale(1.05);
}
/*======================================================= (Grid) =====================================================*/
.grid {
  display: flex;
  flex-wrap: wrap;
  padding: 30px 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.column {
  flex: 25%;
  max-width: 100%;
  padding: 0 4px;
}
.column img {
  margin-top: 6px;
  vertical-align: middle;
  width: 100%;
}
/* =============================================================about section=================================================== */
.about {
  padding: 40px 0;
  align-items: center;
}

.about-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 20px;
  display: flex;
}

.about-grid {
  width: 30%;
  margin-left: 10px;
}

.about-stats {
  width: 70%;
  margin: 10px 30px;
}
.about-stats h2 {
  color: var(--primary);
}
.about-stats p {
  text-align: justify;
  margin: 10px auto;
}

.author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.author .stat {
  margin: 5px;
}

.author img {
  width: 500px;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
}
/*=================================================================== Quality and Trust ========================================*/
.quality {
  background: #989797;
  padding: 50px 0;
}

.quality-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* even spacing between each qty-part */
  flex-wrap: wrap; /* allows responsiveness */
}

.quality .qty-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quality .qty-part div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.quality .qty-part div span {
  color: var(--primary);
  background: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.quality .qty-part div span i {
  font-size: 2.5rem;
}

.quality .qty-part h2 {
  color: white;
  font-size: 1.2rem;
  margin-top: 10px;
  text-align: center;
  transition: all;
  cursor: pointer;
}
.quality .qty-part h2:hover {
  color: black;
}
/*============================================================== Theam Part =======================================================*/
.theams {
  width: 100%;
  overflow: hidden;
}

.theam-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.theam-bg {
  width: 100%;
  height: 100%;
}

.theam-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(60%); /* darkens image for text visibility */
}

.theam-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 80%;
  max-width: 800px;
}

.theam-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.theam-text p {
  font-size: 1rem;
  line-height: 1.5;
}
/* =======================================================Video Part ============================================================== */
.video {
  margin-top: 50px;
  display: flex;
  justify-content: center;

  width: 100%;
  height: 80vh;
  padding-bottom: 35px;
}
.back-video {
  width: 95%;
  object-fit: cover;
  border-radius: 30px;
}
/*================================================= footer section========================================== */

.footer {
  background: rgb(52, 40, 22);
  color: #fff;
  padding-top: 30px !important;
  padding: 0;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1.8fr 1.8fr 1fr 1fr;
  gap: 40px;
}

.footer a {
  color: #fff;
}
.f-nav-g a {
  text-decoration: none;
}
.f-nav-g a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--primary);
  padding: 12px 0;
}
.copyWrapper {
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .lead {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .slider {
    height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* === Responsive right-side nav and breakpoints (appended) === */

/* === Responsive + Right-side slide-in nav (CSS-driven) === */

/* Ensure no horizontal overflow */
html,
body {
  overflow-x: hidden;
}

/* Hamburger visuals (animated to X) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger {
  display: inline-block;
  width: 28px;
  height: 18px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), top 0.5s ease,
    opacity 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}

/* Open state transforms */
.nav-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* ===== Close Button inside Mobile Nav ===== */
.nav-close {
  position: fixed;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* Show close button only when nav is open */
.nav.active .nav-close {
  opacity: 1;
  pointer-events: auto;
}

/* Hover effect */
.nav-close:hover {
  color: #ffaa01; /* your accent color */
}
/* Off-canvas right-side full-height menu for <=1024px */
@media (max-width: 1024px) {
  .container {
    width: 94%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar .topbar-inner {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  .header-inner {
    padding: 12px 0;
  }
  .logoContainer {
    width: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -320px; /* hidden off-screen */
    height: 100vh;
    width: 300px;
    max-width: 85%;
    background: #fff;
    padding: 80px 18px 20px 18px;
    flex-direction: column;
    gap: 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 1400;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid #f1f1f1;
    color: #000;
    font-weight: 600;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: inherit;
    border-radius: 6px;
  }

  .header {
    position: relative;
    z-index: 1500;
  }
}

/* Tablet specifics */
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0px 0;
    gap: 20px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .slider {
    height: 260px;
  }
  .features {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  .about-container {
    flex-direction: column;
    gap: 18px;
  }
  .about-grid,
  .about-stats {
    width: 100%;
  }
  .author {
    padding: 10px;
  }

  .author img {
    width: 100%;
    height: auto;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero .accent {
    display: inline-block;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    width: 96%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .headline_one {
    text-align: center;
  }
  .gallery-container {
    columns: 1 100%;
  }
  .photo img {
    width: 100%;
    height: auto;
  }

  .hero {
    margin-top: 0px;
  }
  .hero h1 {
    font-size: 20px;
  }
  .lead {
    font-size: 14px;
  }
  .slider {
    height: 200px;
  }
  button.prev,
  button.next {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .theam-text {
    margin: 10px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav {
    width: 86%;
    right: -100%;
  }
  .nav.active {
    right: 0;
  }
  .copyWrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Large screens fine-tuning */
@media (min-width: 1200px) {
  .container {
    max-width: 1450px;
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* Close Button inside slide-in menu */

/* Hide on desktop */
@media (min-width: 1025px) {
  .nav-close {
    display: none;
  }
}

/********************************************************* admin pannel ************************************************************/
.btn-admin{
  color: white !important;
  text-decoration: none;
  background: #000;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid #000;
}
.btn-admin:hover{
    color: #000!important;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
   border: 1px solid #000;
  transition: all 0.3s ease-in-out;
}