/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body.no-scroll {
  overflow: hidden;
}


/* var */
:root {
  --header-text: #008000;
  --h2-color: #065f2a;
  --btn-color: linear-gradient(135deg, #047857, #16a34a);
}

/* =============== HEADER =============== */
header {
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  content-visibility: auto;
}


/* LOGO */
.logo a img {
  max-height: 80px;
  cursor: pointer;
}

/* =============== NAV =============== */
.navigation {
  width: 60%;
}

nav {
  padding: 0px 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 89px;
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

nav li {
  height: 100%;
  display: flex;
  align-items: center;
}

nav li a {
  color: #04415f;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: all 0.35s ease;
  display: inline-block;
  border-radius: 4px;
}

nav li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #1645a3, #047857);
  transition: width 0.4s ease;
  border-radius: 2px;
}

nav li a:hover {
  color: #023f5d;
  background: rgba(22, 100, 163, 0.08);
}

nav li a:hover::after {
  width: 100%;
}

nav li a:active,
nav li a.active {
  color: #047857;
  background: rgba(22, 163, 74, 0.12);
}

nav li a.active::after {
  width: 100%;
}


/* ===== OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
  z-index: 3000;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* MENU BUTTON */
.menu-toggle {
  margin-left: auto;
  font-size: 26px;
  cursor: pointer;
  color: #04415f;
  display: none;
}

/* CLOSE BUTTON */
.menu-close {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 26px;
  color: #04415f;
  cursor: pointer;
  display: none;
  z-index: 5000;
}

/* =============== RESPONSIVE =============== */
@media(max-width:968px) {

  .logo {
    width: 90%;
    justify-content: flex-start;
  }

  .logo a img {
    height: 60px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 17px;
    right: 20px;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    height: 100vh;
    background: #ffffff;
    padding: 70px 0 0 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px 0 0 12px;
    z-index: 4000;
    transition: right 0.5s ease-in-out;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #04415f;
  }

  nav li a {
    position: static;
    width: 100%;
    margin: 0;
    padding: 14px;
    color: #04415f;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 0;
  }

  nav li a::after {
    position: static;
    bottom: 0;
    height: 2.5px;
    background: none;
    transition: none;
    border-radius: 0;
  }

  nav li a:hover {
    background: linear-gradient(135deg, #04415f, #087bb4);
    color: #ffffff;
  }

  nav li a:hover::after {
  width: 0%;
}

  nav.open {
    right: 0;
    animation: slideIn 0.4s ease;
  }

  .menu-close {
    animation: slideIn 0.3s ease-in-out;
  }

  @keyframes slideIn {
    from {
      right: -100%;
    }

    to {
      right: 0;
    }
  }

}

/* FORCE HIDE MENU TOGGLE IN DESKTOP */
@media (min-width: 969px) {

  .menu-toggle,
  .menu-close,
  .menu-overlay {
    display: none !important;
  }
}

/* =============== HERO SLIDER =============== */
.hero-slider {
  position: relative;
  height: 65vh;
  overflow: hidden;
  background: black;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Content */
.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  color: white;
}

.hero-content h2 {
  font-size: 30px;
  max-width: 800px;
  line-height: 1.4;
  text-shadow: 2px 2px 5px black;
}

.hero-content .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 14px 20px;
  background: linear-gradient(
  135deg,
  rgb(0, 96, 84),
  rgb(185, 2, 179)
  );
  color: white;
  border: 1px solid white;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(254, 254, 254, 0.3);
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  z-index: 5;
}

.slider-btn.left {
  left: 10px;
}

.slider-btn.right {
  right: 10px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  display: inline-block;
  margin: 0 5px;
  background: #aaa;
  border-radius: 50%;
}

.dot.active {
  background: white;
}

/* =============== RESPONSIVE =============== */
@media(max-width:768px) {

  .hero-slider {
    height: 35vh;
  }

  .hero-content {
    padding: 0px;
  }

  .hero-content h2 {
    font-size: 15px;
    max-width: 95%;
  }

  #slide_1 {
    font-size: 12px;
  }

  .hero-content .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .slider-btn {
    font-size: 16px;
    padding: 6px 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }

}


/* NOTICE OVERLAY */
.notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* POPUP BOX */
.notice-popup {
  background: #ffffff;
  max-width: 420px;
  width: 90%;
  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  animation: popupScale 0.4s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-top: 8px solid #16a34a;
}

/* CLOSE BUTTON */
.notice-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ff0000;
}

.notice-close:hover {
  color: #dc2626;
}

/* ICON */
.notice-icon {
  font-size: 36px;
  color: var(--header-text);
  margin-bottom: 10px;
}

/* TITLE */
.notice-popup h3 {
  font-size: 22px;
  color: var(--header-text);
  margin-bottom: 10px;
  font-family: "Noto Serif Bengali", serif;
}

/* TEXT */
.notice-popup p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: "Noto Serif Bengali", sans-serif;
}

/* NEW TAG */
.new-tag {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 6px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ANIMATION */
@keyframes popupScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .notice-popup h3 {
    font-size: 20px;
  }

  .notice-popup p {
    font-size: 15px;
  }
}

/* ===== ABOUT CARD SECTION ===== */
.about-section {
  padding: 60px 10px;
  background: #f3f7f4;
  display: flex;
  justify-content: center;
}

.about-card {
  max-width: 1100px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  display: flex;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

/* TEXT */
.about-text {
  flex: 1;
  opacity: 1;
  padding: 10px;
  text-align: justify;
}

.about-text h2,
.about-text p,
.about-highlight strong {
  font-family: "Noto Serif Bengali", serif;
}

.about-text h2 {
  font-size: 30px;
  color: var(--h2-color);
  margin-bottom: 15px;
}

.about-text p {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}


/* BUTTON */
.glow-btn {
  display: inline-block;
  background: var(--btn-color);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* GLOW EFFECT */
.glow-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.glow-btn:hover::before {
  left: 100%;
}

.glow-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* IMAGE */
.about-image {
  flex: 1;
  animation: slideRight 1.1s ease forwards;
  opacity: 0;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  animation: floatImg 4s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.07) rotate(1deg);
}

@keyframes floatImg {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ===== ANIMATIONS ===== */

@keyframes slideRight {
  from {
    transform: translateX(40px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-section {
    padding: 0;
  }

  .about-card {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  .about-text h2 {
    font-size: 22px;
    margin-top: 20px;
  }

  .about-text p {
    font-size: 16px;
  }

}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1.8s ease;
  will-change: opacity, transform;
}


.reveal.active {
  opacity: 1;
  transform: scale(1);
}

/* IMAGE REVEAL */
.reveal-img {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1.2s ease;
}

.reveal-img.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== PURPOSE WRAPPER CARD ===== */
.purpose-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  margin-top: 40px;
}

/* TITLE */
.purpose-title {
  text-align: center;
  font-size: 22px;
  color: #065f2a;
  margin-bottom: 25px;
  font-family: "Noto Serif Bengali", sans-serif;
  position: relative;
}

/* OPTIONAL UNDERLINE DECORATION */
.purpose-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #16a34a, #047857);
  display: block;
  margin: 8px auto 0;
  border-radius: 50px;
}


/* ===== PURPOSE CARDS GRID ===== */
.purpose-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* CARD */
.purpose-card {
  min-width: 150px;
  height: 180px;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* ICON */
.purpose-card i {
  font-size: 26px;
  color: #0b8a4a;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

/* TITLE */
.purpose-card h4 {
  font-size: 20px;
  color: #065f2a;
  margin-bottom: 6px;
  font-family: "Noto Sans Bengali", sans-serif;

}

/* TEXT */
.purpose-card p {
  font-size: 18px;
  color: #000000;
  line-height: 1.5;
  font-family: "Noto Serif Bengali", sans-serif;
}

/* HOVER EFFECT */
.purpose-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(6, 95, 42, 0.2);
}

.purpose-card:hover i {
  transform: rotate(6deg) scale(1.2);
  color: #16a34a;
}

/* GLOW LINE */
.purpose-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #16a34a, #047857) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

*/ .purpose-card:hover::before {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 268px) {
.purpose-cards {
    grid-template-columns: repeat(1, 1fr);
  }
 
}

@media (min-width: 269px) and (max-width: 568px) {
  .purpose-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-card {
    min-width: 130px;
    height: 130px;
    padding: 15px;
  }

  .purpose-card h4 {
    font-size: 14px;
  }

  .purpose-card i {
    font-size: 20px;
  }

  .purpose-card p {
    font-size: 13px;
  }

}

@media (min-width: 569px) and (max-width: 768px) {

  .purpose-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-card {
    min-width: 150px;
    height: 150px;
    padding: 18px;
  }

  .purpose-card h4 {
    font-size: 20px;
  }

  .purpose-card i {
    font-size: 24px;
  }

  .purpose-card p {
    font-size: 18px;
  }

}


/* ===== PRINCIPAL SECTION ===== */
.principal-section {
  padding: 30px 10px;
  background: linear-gradient(180deg, #f3f3f3 0%, #ededed 100%);
}

.principal-card {
  max-width: 1150px;
  margin: 20px auto 40px;
  display: flex;
  gap: 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: 26px;
  align-items: center;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Image (left) */
.principal-image {
  margin: 40px 10px;
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principal-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateX(-22px) scale(.98);
  transition: transform .6s cubic-bezier(.2, .9, .2, 1), box-shadow .4s ease;
}

/* Content (right) */
.principal-content {
  flex: 1;
  padding: 4px 6px;
  text-align: center;
}

.principal-heading {
  font-size: 26px;
  color: #065f2a;
  margin-bottom: 12px;
  font-family: "Noto Serif Bengali", serif;
}

.principal-paragraph {
  font-size: 20px;
  line-height: 1.85;
  color: #262626;
  margin-bottom: 12px;
  font-family: "Noto Serif Bengali", sans-serif;
  text-align: justify;
}

/* Name & Post */
.principal-name {
  margin-top: 10px;
  font-weight: 700;
  color: #083f2a;
  font-size: 20px;
  font-family: "Noto Serif Bengali", serif;
}

.principal-btn {
  text-align: left;
}

.principal-post {
  display: block;
  font-weight: 600;
  color: #0b6b3f;
  font-size: 17px;
  margin-top: 4px;
  font-family: "Noto Serif Bengali", sans-serif;
}

/* Card hover lift */
.principal-card:hover {
  transform: translateY(-6px);
}


/* Make image slide-in when revealed */
.reveal.active .principal-image img {
  transform: translateX(0) scale(1);
  transition-delay: .05s;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .principal-section {
    padding: 8px 0;
  }

  .principal-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .principal-image {
    flex: 0 0 auto;
    margin-bottom: 14px;
  }

  .principal-image img {
    max-width: 290px;
    transform: translateY(0);
  }

  .principal-content {
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .principal-heading {
    font-size: 20px;
  }

  .principal-paragraph {
    font-size: 16px;
    line-height: 1.7;
  }

  .principal-name {
    font-size: 16px;
  }

}


/* ===== COURSE ADVANCED SECTION ===== */
.course-section {
  padding: 80px 50px;
  background: radial-gradient(circle at top, #e6fff3, #e6fff9);
  text-align: center;
}

/* Title */
.course-title {
  font-size: 30px;
  color: #064e3b;
  margin-bottom: 50px;
  font-family: "Noto Serif Bengali", serif;
  position: relative;
}

.course-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #047857);
  display: block;
  margin: 10px auto 0;
}

/* Layout */
.course-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: auto;
  gap: 25px;
}

/* Card */
.course-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transition: 0.5s;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* Glow Border */
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #16a34a, #047857);
  opacity: 0;
  transition: 0.5s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Hover Animation */
.course-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 128, 0, .2);
}

.course-card:hover::before {
  opacity: 1;
}

/* Text */
.course-card h3 {
  color: #065f2a;
  font-size: 22px;
  margin-bottom: 12px;
  font-family: "Noto Serif Bengali", serif;
}

.course-card p {
  font-size: 18px;
  color: #333;
  line-height: 1.7;
  font-family: "Noto Serif Bengali", sans-serif;
}

/* Reveal Animation */
.course-card {
  opacity: 0;
  transform: translateY(40px);
}

.course-card.active {
  opacity: 1;
  transform: translateY(0);
  transition: .8s ease;
}

/* Responsive */
@media (max-width:900px) {
  .course-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:768px) {
  .course-cards {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .course-title {
    font-size: 24px;
  }

  .course-card p {
    font-size: 16px;
  }
}




/* GALLERY: clean responsive grid */
.gallery-section {
  padding: 60px;
  background: linear-gradient(180deg, #f8faf8, #f3f7f4);
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.gallery-title {
  font-size: 30px;
  color: #065f2a;
  margin-bottom: 26px;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

/* Each item */
.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* image rules: ensure full coverage and no extra spacing */
.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Loading animation default */
.gallery-item img {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When image loaded */
.gallery-item img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* hover */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}

/* Gallery Caption */
.gallery-caption {
  font-size: 14px;
  color: #064e3b;
  padding: 8px 10px;
  background: #ebf7f1;
  font-family: "Noto Serif Bengali", serif;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Hover effect */
.gallery-item:hover .gallery-caption {
  background: linear-gradient(135deg, #16a34a, #047857);
  color: white;
}

.gallery-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.gallery-btn-wrapper .gallery-btn {
  width: 180px;
  font-size: 1rem;
  padding: 12px 28px;
}

/* RESPONSIVE adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* tablet: 2 per row */
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* mobile: 1 per row */
  .gallery-item img {
    height: 180px;
  }
}

/* Modal Background */
.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

/* Full Image */
.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.5s ease;
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: red;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.6);
  }

  to {
    transform: scale(1);
  }
}



/* Before view (hidden state) */
.zoom-animate {
  opacity: 0;
  transform: scale(0.85);
  transition: transform 1.5s ease, opacity 0.6s ease;
}

/* When visible */
.zoom-animate.visible {
  opacity: 1;
  transform: scale(1);
}


/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #16a34a, #047857);
  color: white;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 4000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

#backToTop:hover {
  background: linear-gradient(135deg, #047857, #16a34a);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* MOBILE SIZE */
@media(max-width:768px) {
  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }
}


/* ICON STYLE */
#backToTop .arrow {
  display: inline-block;
  animation: bounceArrow 1.3s infinite;
  font-size: 15px;
}

/* BOUNCE EFFECT */
@keyframes bounceArrow {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-5px);
    opacity: 0.8;
  }
}

/* TOOLTIP STYLE */
#backToTop .tooltip {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #111;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Tooltip Arrow */
#backToTop .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* SHOW TOOLTIP ON HOVER */
#backToTop:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* ===== FACILITIES SECTION ===== */
.facilities-section {
  padding: 70px;
  background: radial-gradient(circle at top, #e6fff3, #e6fff9);
  text-align: center;
}

.facilities-title {
  font-size: 30px;
  color: #065f2a;
  margin-bottom: 40px;
  font-family: "Noto Serif Bengali", serif;
  position: relative;
}

.facilities-title::after {
  content: "";
  width: 70px;
  height: 3px;
  background: linear-gradient(135deg, #16a34a, #047857);
  display: block;
  margin: 8px auto 0;
  border-radius: 20px;
}

.facilities-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.facility-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effect */
.facility-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 25px rgba(6, 95, 42, 0.2);
}

/* GLOW BORDER */
.facility-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #16a34a, #047857);
  opacity: 0;
  transition: .4s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.facility-card:hover::before {
  opacity: 1;
}

.facility-card h3 {
  font-size: 20px;
  color: #064e3b;
  margin-bottom: 9px;
  font-family: "Noto Serif Bengali", serif;
}

.facility-card p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  font-family: "Noto Serif Bengali", sans-serif;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .facilities-title {
    font-size: 24px;
  }
}


/* ===== TEACHERS SECTION ===== */
.teachers-section {
  padding: 70px 15px;
  background: linear-gradient(180deg, #f3f7f4, #ffffff);
  text-align: center;
}

.teachers-title {
  font-size: 30px;
  color: #065f2a;
  margin: 40px auto;
  font-family: "Noto Serif Bengali", serif;
  position: relative;
}

.teachers-title::after {
  content: "";
  width: 70px;
  height: 3px;
  background: linear-gradient(135deg, #16a34a, #047857);
  display: block;
  margin: 8px auto 0;
  border-radius: 20px;
}

/* ===== Teachers Slider ===== */
.teacher-slider {
  max-width: 400px;
  margin: auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Slide */
.teacher-slide {
  display: none;
  animation: fadeSlide .9s ease;
}

.teacher-slide.active {
  display: block;
}

/* Image */
.teacher-slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Text */
.teacher-slide h3 {
  font-size: 22px;
  color: #064e3b;
  margin-top: 12px;
  font-family: "Noto Serif Bengali", serif;
}

.teacher-slide p {
  font-size: 18px;
  color: #333;
  font-family: "Noto Serif Bengali", serif;
  margin-bottom: 30px;
}

/* Buttons */
.teacher-slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

.teacher-slider-btn:hover {
  background: linear-gradient(135deg, #047857, #16a34a);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.teacher-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.all-teachers-btn {
  width: 80%;
}

/* Mobile */
@media (max-width:600px) {
  .teachers-section {
    padding: 30px 0;
  }

  .teacher-slider {
    max-width: 100%;
  }
}


/* ===== ADMISSION CTA ===== */
.admission-cta {
  padding: 80px 15px;
  background: linear-gradient(135deg,
      rgba(6, 78, 59, 0.95),
      rgba(15, 118, 110, 0.95)),
    url("../images/Building.jpg") center/cover no-repeat;
  position: relative;
  text-align: center;
  color: white;
}

/* CONTENT */
.cta-content {
  max-width: 800px;
  margin: auto;
}

.cta-content h2 {
  font-size: 34px;
  margin-bottom: 16px;
  font-family: "Noto Serif Bengali", serif;
}

.cta-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
  font-family: "Noto Serif Bengali", serif;
}

/* BUTTONS */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* PRIMARY */
.cta-btn.primary {
  background: #22c55e;
  color: #064e3b;
}

.cta-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.6);
}

/* SECONDARY */
.cta-btn.secondary {
  border: 2px solid white;
  color: white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #064e3b;
  transform: translateY(-4px);
}

/* MOBILE */
@media (max-width: 480px) {
  .cta-content h2 {
    font-size: 22px;
  }

  .cta-content p {
    font-size: 14px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}


/* ===== CONTACT STRIP ===== */
.contact-strip {
  background: linear-gradient(135deg, #065f2a, #0f766e);
  padding: 30px 15px;
  color: white;
}

.contact-strip-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}

.contact-item i {
  font-size: 28px;
  color: #bbf7d0;
}

.contact-item span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

.contact-item a,
.contact-item p {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .contact-item .email {
    font-size: 13px;
  }
}

/* MAP BOX */
.map-box {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.map-box iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Mobile */
@media(max-width:768px) {
  .map-box iframe {
    height: 320px;
  }
}

/* ===== FOOTER SECTION ===== */
.footer {
  background: #003249;
  color: #ffffff;
  padding: 50px 25px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-box h2 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: left;
}

.footer-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  text-align: left;
}

/* LINKS */
.footer-links {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #90ffc7;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #22c55e;
  text-decoration: underline;
}

/* SOCIAL ICONS */
.footer-social {
  margin-top: 25px;
  text-align: center;
}

.footer-social .social {
  display: inline-block;
  margin: 0 10px;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background: var(--btn-color);
  color: #fff;
  font-size: 18px;
  transition: 0.3s;
}

.footer-social .social:hover {
  transform: translateY(-5px) scale(1.1);
  background: #22c55e;
}

/* COPYRIGHT */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #f6f6f6;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-box p {
    font-size: 12px;
  }
}