/* 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;
  }
}


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

.about-card {
  max-width: 1100px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 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: #065f2a;
  margin-bottom: 15px;
}

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


/* BUTTON */
.admission-btn {
  display: inline-block;
  background: linear-gradient(135deg, #047857, #16a34a);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}

/* GLOW EFFECT */
.admission-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;
}

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

.admission-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.about-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
  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);
  box-shadow: 0 35px 50px rgba(0, 0, 0, 0.4);
}

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

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

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

/* ===== ABOUT LOAD ANIMATION (NO SCROLL) ===== */
.about-animate {
  animation: aboutFade 2s ease forwards;
  opacity: 0;
}

@keyframes aboutFade {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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

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

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

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

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  transform: scale(0.9);
}

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

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

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



/* 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);
}



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

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

/* Image (left) */
.principal-image {
  margin: 40px;
  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);
}

/* 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: 22px;
  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-family: "Noto Serif Bengali", serif;
}

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

/* Actions / Button */
.principal-actions {
  margin-top: 14px;
}

/* Card hover lift */
.principal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(3, 41, 24, 0.12);
}

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

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

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

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


}

/* Responsive adjustments */
@media (max-width: 960px) {
  .principal-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

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

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

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

  .admission-btn {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }
}

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

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

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

a:focus-visible {
  outline: 2px dashed #16a34a;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width:768px) {
  .about-image img:hover {
    transform: none;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
  }
}

/* ===== MISSION VISION VALUES ===== */
.mvv-section {
  padding: 60px 15px;
  background: #f3f7f4;
}

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

.mvv-card {
  background: #ffffff;
  padding: 28px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.mvv-card.mission {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 6px solid #16a34a;
}

.mvv-card.vision {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 6px solid #2563eb;
}

.mvv-card.values {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border-left: 6px solid #ca8a04;
}


.mvv-card h3 {
  font-size: 22px;
  color: #065f2a;
  margin-bottom: 14px;
  font-family: "Noto Serif Bengali", serif;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .mvv-container {
    grid-template-columns: 1fr;
  }

  .mvv-card {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mvv-card {
    max-width: 350px;
    margin: auto;
    padding: 40px 20px;
  }
}

/* ===== SHORT HISTORY SECTION ===== */
.history-section {
  padding: 60px 10px;
  background: #f3f7f4;
  display: flex;
  justify-content: center;
}

.history-card {
  max-width: 1000px;
  background: #ffffff;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.history-card h2 {
  font-size: 28px;
  color: #065f2a;
  margin-bottom: 18px;
  text-align: center;
  font-family: "Noto Serif Bengali", serif;
}

.history-card p {
  font-size: 20px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 14px;
  text-align: justify;
  font-family: "Noto Serif Bengali", serif;
}

.history-highlight {
  margin-top: 20px;
  background: #ecfdf5;
  padding: 15px;
  border-left: 5px solid #16a34a;
  border-radius: 8px;
  font-size: 16px;
  color: #064e3b;
}

.history-highlight strong {
  font-family: "Noto Serif Bengali", serif;
}

@media (max-width: 768px) {
  .history-card h2 {
    font-size: 22px;
  }

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

/* ===== WHY CHOOSE US ===== */
.why-choose-section {
  padding: 70px 15px;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  text-align: center;
}

.section-title {
  font-size: 30px;
  color: #064e3b;
  margin-bottom: 40px;
  font-family: "Noto Serif Bengali", serif;
}

/* GRID */
.why-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* CARD */
.why-card {
  background: white;
  padding: 30px 22px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform .4s ease, box-shadow .4s ease;
}

.why-card i {
  font-size: 42px;
  color: #16a34a;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #065f2a;
  font-family: "Noto Serif Bengali", serif;
}

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

/* HOVER */
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

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

  .why-card {
    padding: 22px 18px;
  }
}

/* ===== 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: #01261b;
}

.cta-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px 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 35px 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: #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;
  }
}