/* ================= GLOBAL ================= */
body {
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(255,255,255,0.83), rgba(255,255,255,0.83)),
    url(../images/aboutbgd.jpg);
  background-repeat: repeat;
  background-size: 620px;
}
.page-animation span {
  position: absolute;
  top: calc(100% * var(--y));
  left: calc(100% * var(--x)); /* ✅ RANDOM X */
  width: var(--size);
  height: var(--size);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(42, 255, 158, 0.7);
  animation: moveDots1 linear infinite;
  animation-duration: var(--speed);
  opacity: 0;
}
.page-animation span {
  box-shadow: 0 0 12px rgba(42, 255, 158, 0.7);
}
/* ===== FULL WIDTH SECTION ===== */
.page-title-section {
  width: 100%;
  background: linear-gradient(
    135deg,
    #000000,
    #20633c,
    #20633c,
    #20633c,
    #20633c,
    #000000
  );
  position: relative;
  overflow: hidden;
}
@keyframes moveDots1 {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(40vw, -30px);
  }
  100% {
    transform: translate(120vw, 40px);
    opacity: 0;
  }
}
.page-title {
  color: #ffffff; /* PURE WHITE */
  text-align: center;
  margin: 40px;
}
.page-title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0px;
}
.page-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 50px;
  border-collapse: collapse;
}

table td {
  border: 2px solid #000;
  padding: 8px 12px;
  font-weight: 500;
  vertical-align: top;
  line-height: 1.6;
}

td ul {
  margin: 6px 0 0 16px;
}

td ul li {
  margin-bottom: 4px;
  list-style: disc;
}

/* ================= HEADER TOP ================= */
.header-top {
  background-color: white !important;
}

.header-top .row {
  display: flex;
  flex-wrap: wrap;
}


.btn-glass {
  background: linear-gradient(145deg, #20633c, #20633c);
  color: #eafff4;
  padding: 6px 24px;
  border-radius: 18px;
  border: 1px solid rgba(120, 255, 200, 0.35);
  font-weight: 600;
  white-space: nowrap;

  position: relative;
  overflow: hidden;

  /* IMPORTANT */
  will-change: transform;
  backface-visibility: hidden;

  /* SAFE 3D (no overlap) */
  transform: translateZ(0);

  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* shine animation */
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(120, 255, 200, 0.45),
    transparent 60%
  );
  animation: shine 3.5s linear infinite;
}

/* hover lift (no sideways spread) */
.btn-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
@media (max-width: 768px) {
  .btn-glass {
    width: 100%;
  }
}

/* ================= NAVIGATION ================= */
.navigation {
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  position: relative;
  z-index: 999;
  border-radius: 20px;
}
.bb {
  font-weight: bold;
  letter-spacing: 1px;
}

.bb:hover {
  background: #a6bd8c;
  color: white !important;
}
.nav a {
  background: transparent;
}

.logo {
  padding-top: 0px !important;
}

.header-top {
  background-color: white !important;
}

.side {
  padding: 10px;
  border: solid 1px #c9c9c9;
}

.side a:hover {
  color: white;
}

.bttn {
  color: white;
  width: 166px;
  text-align: center;
  height: 51px;
  font-size: 15px;
  background: #eb5e1b;
  line-height: 51px;
  /* border: solid 1px red; */
  display: inline-block;
  color: white;
}

.bttn:hover {
  color: green;
  background: black;
}

.btns {
  display: block;
  width: 135px;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  /* padding-top: 15% !important; */
  padding-right: 2.5%;
  margin-right: 0px;
  font-size: 12px;
  color: white;
  transition: 0.3s;
  /* padding: 10px !important; */
  opacity: 1;
}

.btns:hover {
  transition: 0.3s;
  opacity: 1;
  font-weight: 700;
}

b {
  font-weight: bold !important;
}
.navigation .navbar {
  padding: 0;
  align-items: stretch;
}

/* LOGO */
.navigation .navbar-brand {
  height: 65px;
  display: flex;
  align-items: center;
}

/* ================= MENU BAR ================= */
.sub-menu-bar {
  background: #20633c;
  display: flex;
  width: 100%;
  border-radius: 0 0 0 60px;
  padding: 0 30px;
}

/* MENU ITEMS */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav > .nav-item > a {
  color: #fff;
  font-weight: 600;
  padding: 20px 18px;
  border-radius: 10px;
  position: relative;
}

.navbar-nav > .nav-item > a:hover {
  transform: translateY(-2px);
}

/* ================= DROPDOWN ================= */
.navbar-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #20633c;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}

.navbar-nav .nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: #fff;
}

.navbar-nav .sub-menu li a:hover {
  background: rgba(255,255,255,0.1);
}

/* ================= BOOKS MENU ================= */
.books-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.books-menu.show {
  display: block;
}

.books-menu li a {
  display: block;
  padding: 8px 15px;
  color: #000;
}

.books-menu li a:hover {
  background: #20633c;
  color: #fff;
}

/* ================= TOGGLER ================= */
.navbar-toggler {
  background: #20633c;
  border-radius: 10px;
}

.navbar-toggler .icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 991px) {

  .sub-menu-bar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #0b3d1e;
    padding-top: 60px;
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 9999;
  }

  .sub-menu-bar.active {
    right: 0;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-nav .nav-item a {
    padding: 14px 20px;
    display: block;
  }

  /* dropdown mobile */
  .navbar-nav .sub-menu {
    position: static;
    display: none;
    background: #143b27;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navbar-nav .nav-item.open .sub-menu {
    display: block;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
  }
}

/* ================= MOBILE SMALL ================= */
@media (max-width: 768px) {
  .navigation .navbar-brand img {
    width: 260px !important;
  }

  body {
    overflow-x: hidden;
  }
}

/* ================= MARQUEE ================= */
.mobile-marquee {
  display: none;
}

@media (max-width: 768px) {
  .header-top .row {
    display: none;
  }

  .mobile-marquee {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    background: #21643c;
    padding: 6px 0;
  }

  .marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollBtns 25s linear infinite;
  }

  .mobile-marquee a {
    display: inline-block;
    margin-right: 10px;
  }
}

@keyframes scrollBtns {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-top .row {
  display: flex;
  flex-wrap: wrap;
  /* buttons ke beech proper gap */
}

.navigation .navbar .navbar-nav li .sub-menu {
  position: absolute;
  top: 109%;
  left: -148px;
  background-color: #095c13;
  width: 180px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.4s linear;
  transition: all 0.4s linear;
  z-index: 99;
}

/* hide marquee on desktop */
.mobile-marquee {
  display: none;
}

@media (max-width: 768px) {
  .header-top .row {
    display: none; /* hide desktop buttons */
  }

  .mobile-marquee {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    background: #21643c;
    padding: 6px 0;
  }
  .navigation .navbar-brand img {
    max-width: 100%;
    width: 261px !important;
  }
  .marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollBtns 25s linear infinite;
  }

  .mobile-marquee a {
    display: inline-block;
    margin-right: 10px;
  }

  .mobile-marquee button {
    white-space: nowrap;
  }
}

@keyframes scrollBtns {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  display: none;
}

@media (max-width: 991px) {
  .menu-close {
    display: block;
  }
}

.books-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.books-icon {
  margin-left: auto;
}

.books-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.books-menu li {
  list-style: none;
}

.books-menu li a {
  display: block;
  padding: 8px 15px;
  color: #000;
  text-decoration: none;
}

.books-menu li a:hover {
  background: #21643c;
  color: #fff;
}

/* show when active */
.books-menu.show {
  display: block;
}

.navigation .navbar .navbar-nav li .sub-menu {
  width: 220px !important;
}
/* ===== NAV WRAPPER ===== */
.navigation {
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 999;
}
/* ===== NAVBAR BASE ===== */
.navigation .navbar {
  padding: 0;
  align-items: stretch;
}
/* ===== LOGO AREA (LEFT) ===== */
.navigation .navbar-brand {
  background: #ffffff;
  padding: 0px 0px;
  display: flex;
  align-items: center;
  height: 65px !important;
}
.navigation .navbar-brand img {
  max-width: 100%;
}
/* ===== RIGHT MENU STRIP ===== */
.sub-menu-bar {
  background: #20633c;
  border-radius: 0 0 0 60px;
  padding: 0 30px;
  display: flex;
  width: 100%;
}
/* ===== MAIN MENU ===== */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ===== MENU LINKS ===== */
.navbar-nav > .nav-item > a {
  color: #ffffff;
  font-weight: 600;
  padding: 20px 18px;
  position: relative;
  transition: all 0.35s ease;
  border-radius: 12px;
}

/* hover lift */
.navbar-nav > .nav-item:hover > a {
  color: #eafff4;
  transform: translateY(-2px);
}
/* ===== DROPDOWN MENU ===== */
.navbar-nav .sub-menu {
  background: #20633c;
  border-radius: 14px;
  padding: 12px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s ease;
}
/* show dropdown */
.navbar-nav .nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* dropdown links */
.navbar-nav .sub-menu li a {
  color: #ffffff;
  padding: 10px 18px;
  display: block;
  font-weight: 500;
  transition: all 0.3s ease;
}
.navbar-nav .sub-menu li a:hover {
  background: rgba(154, 255, 201, 0.12);
  color: #9affc9;
  padding-left: 22px;
}
/* ===== TOGGLER (MOBILE) ===== */
.navbar-toggler {
  background: #20633c;
  padding: 10px 12px;
  border-radius: 10px;
}
.navbar-toggler .icon-bar {
  background: #fff;
  height: 2px;
  width: 24px;
  display: block;
  margin: 5px 0;
}
/* ===== MOBILE RIGHT SLIDE MENU ===== */
@media (max-width: 991px) {
  #navbarSupportedContent {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #20633c;
    padding-top: 8px;
    transition: 0.4s;
    z-index: 9999;
    overflow-y: auto;
  }
  #navbarSupportedContent.active {
    right: 0;
  }
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-nav .nav-item a {
    display: block;
    padding: 14px 20px;
    color: #fff;
  }
  /* dropdown mobile */
  .navbar-nav .sub-menu {
    position: static;
    background: #143b27;
    display: none;
  }
  .navbar-nav .nav-item.open .sub-menu {
    display: block;
  }
}
@media (max-width: 768px) {
  .navigation .navbar-brand {
    background: #ffffff;
    padding: 1px 13px;
    display: flex;
    align-items: center;
  }
  .navigation .navbar .navbar-nav li .sub-menu li a {
    padding: 4px 10px !important;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
  }
  .navigation .navbar .navbar-nav li a {
    margin: 0px !important;
  }
  .carousel-title-overlay {
    font-family: "EngraversOldEnglish", serif;
    font-size: 28px !important;
  }
  .letter.space {
    width: 0px !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .navbar-brand {
    height: 100% !important;
  }
  .navigation .navbar .navbar-nav li .sub-menu {
    left: -0px !important;
  }
}
@media only screen and (max-width: 575.98px) {
  .navigation .navbar .navbar-nav li .sub-menu {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: auto !important;
  
    display: none;
    /* default hidden */
  }
  /* jab parent open ho */
  .navigation .navbar .navbar-nav li.open .sub-menu {
    display: block;
  }
}
@media (max-width: 991px) {
  .sub-menu-bar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #0b3d1e;
    z-index: 9999;
    transition: 0.4s;
    overflow-y: auto;
    padding-top: 60px;
  }
  .sub-menu-bar.active {
    right: 0;
  }
  .menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
}
@media (max-width: 991px) {
  .navbar-nav .sub-menu {
    position: static;
    display: none;
  }
  .fa-chevron-down:before {
    content: "\f078";
    color: white;
  }
  .navbar-nav .nav-item.open .sub-menu {
    display: block;
  }
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .navigation .navbar-brand {
    background: #ffffff;
    padding: 1px 1px !important;
    display: flex;
    align-items: center;
  }
  .page-title {
    font-size: 30px;
    margin: 14px !important;
  }
  .rule-list li {
    list-style: none;
    counter-increment: rule;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
    text-align: justify;
    line-height: 1.7;
    font-size: 15px;
    color: black;
  }
}
.row {
  margin-right: 0px !important;
  margin-left: 0px !important;
}
.books-menu {
  left: 220px !important;
  top: -60px !important;
}
/* only dropdown items */
.nav-item.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* arrow only for dropdown */
.nav-item.has-dropdown > a::after {
    content: "▼";
    font-size: 10px;
}

@media (max-width: 991px) {

  .navbar-nav .sub-menu {
    position: static;
    display: none !important;   /* default hidden */
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* open only when clicked */
  .navbar-nav .nav-item.open > .sub-menu {
    display: block !important;
  }

}.books-menu {
  display: none;
}

.books-menu.show {
  display: block;
}