/* 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: 17px;
  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:768px) {

  .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: 769px) {

  .menu-toggle,
  .menu-close,
  .menu-overlay {
    display: none !important;
  }
}


/* ===== BREADCRUMB STYLE ===== */
.breadcrumb {
  background: linear-gradient(135deg, #064e3b, #0f766e);
  color: white;
  padding: 65px 20px;
  text-align: center;
}

.breadcrumb-container {
  max-width: 1100px;
  margin: auto;
}

.breadcrumb h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-family: sans-serif, Arial, Helvetica;
  letter-spacing: 1px;
}

.breadcrumb p {
  font-size: 14px;
}

.breadcrumb a {
  color: #e6ffe6;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #a7f3d0;
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media(max-width:600px) {
  .breadcrumb h1 {
    font-size: 24px;
  }

  .breadcrumb p {
    font-size: 15px;
  }
}

/* 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);
  /* desktop: 3 per row */
  gap: 26px;
  align-items: stretch;
}

/* Each item */
.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  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;
  /* fixed visual height */
  object-fit: cover;
  /* keep aspect cover */
  /* vertical-align: middle; */
}

/* 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 22px 45px 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;
}

/* 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 20px 40px 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);
}

/* ===== TEACHER SECTION ===== */
.teacher-section {
  padding: 70px 25px;
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.teacher-inner {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.teacher-title {
  font-size: 32px;
  color: #065f46;
  margin-bottom: 40px;
}

/* GRID */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.teacher-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.4s ease;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* IMAGE */
.teacher-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #22c55e;
  margin-bottom: 15px;
}

/* TEXT */
.teacher-card h3 {
  font-size: 18px;
  color: #064e3b;
  margin-bottom: 6px;
}

.teacher-card p {
  font-size: 14px;
  color: #555;
}

/* RESPONSIVE */
@media(max-width: 992px) {
  .teacher-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 768px) {
  .teacher-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media(max-width: 480px) {
  .teacher-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== 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: #009b3e;
  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;
  }
}
