html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: #222;
  background-color: #FFFFFF;
}

#msepm-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#msepm-loader.finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-container {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 80vw;
  max-height: 80vw;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#00254F 0% 90%, #E2AC1D 90% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: rotateRing 2.2s linear infinite;
  z-index: 1;
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-logo {
  width: 72%;
  height: 72%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
}

#msepm-main-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
}

#msepm-main-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring {
    animation: none;
    display: none;
  }
  .loader-container {
    animation: none;
  }
  #msepm-loader, #msepm-main-content {
    transition: opacity 0.5s ease;
  }
  #msepm-main-content {
    transform: none;
  }
  #msepm-main-content.visible {
    transform: none;
  }
}

@media (max-width: 500px) {
  .loader-container {
    width: 220px;
    height: 220px;
  }
}

section,
footer {
  scroll-margin-top: 80px;
}
h1 {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 10px;
  text-align: center;
}
.Nav-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  padding: 15px 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.Logo img{
  width: 65px;
  height: 50px;
  object-fit: contain;
  display: block;
}
#nav {
  display: flex;
  gap: 50px;
}
.navList {
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  color: rgb(57, 56, 56);
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.navList:hover {
  color: #00254F;
}
.navList.active {
  color: #00254F;
  font-weight: 700;
  border-bottom-color: #00254F;
}
#menuBtn {
  display: none;
  font-size: 28px;
  background: none;
  color: #00254F;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  transition: 0.3s;
}
#menuBtn:hover {
  background: #f1f5ff;
}
.Hero-section {
  background:
    linear-gradient(
      rgba(0, 37, 79, .8),
      rgba(0, 37, 79, .65)
    ),
    url("Hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 110px 20px;
}
.hero-content {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.hero-content h1 {
  color: white;
  display: block;
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-content h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  margin: 20px auto;
}
.hero-content p {
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
  color: #eef2f8;
}
.Joinbtn,
.Joinbtnn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 7px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}
.Joinbtn {
  border: 2px solid #00254F;
  color: #00254F;
}
.Joinbtn:hover {
  background: #00254F;
  color: white;
  transform: scale(0.95);
}
.Joinbtnn {
  border: 2px solid white;
  color: white;
  margin-top: 30px;
}
.Joinbtnn:hover {
  background: white;
  color: #00254F;
  transform: scale(0.95);
}
.Service-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 50px;
}
.grid-wrapper {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.Program {
  border: 2px solid #00254F;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.Program-header {
  background: #00254F;
  color: white;
  font-size: 26px;
  padding: 15px 0;
  margin: 0;
}
.Program-info {
  margin: 15px 12px 10px;
}
.Program-time {
  margin-top: auto;
  background: #f1f5ff;
  color: #00254F;
  padding: 5px 12px;
  border-radius: 20px;
  align-self: center;
}
.Special-programs {
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
  padding: 20px;
  background: #f5f8ff;
  border-radius: 10px;
  box-sizing: border-box;
}
.Special-programs h1 {
  margin-bottom: 15px;
}
.title {
  font-size: 20px;
  font-weight: 600;
  color: #00254F;
}
.specials {
  line-height: 1.6;
  text-align: center;
}
.About-section {
  background-color: #00254F;
  color: white;
  padding: 70px 20px;
}
.About-header {
  color: white;
}
.Founder-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 30px auto 0;
}
.Founder-image-wrap {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 18px;
  flex-shrink: 0;
}
.Founderrr {
  width: 280px;
  height: 280px;
  object-fit: fill;
  border-radius: 12px;
  display: block;
}
.About-text {
  background: white;
  color: #00254F;
  padding: 30px;
  border-radius: 15px;
  line-height: 1.7;
}
.About-text h2 {
  margin: 0 0 5px;
}
.Role {
  margin: 0 0 15px;
  font-weight: 600;
}
.Gallery-section {
  padding: 50px;
  background: #f9fafc;
}
.Gallery-intro {
  text-align: center;
  color: #444;
  max-width: 600px;
  margin: 0 auto 30px;
}
.gallery-carousel {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-track {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 4px;
}
.gallery-track::-webkit-scrollbar {
  height: 6px;
}
.gallery-track::-webkit-scrollbar-thumb {
  background: #b9c8dd;
  border-radius: 10px;
}
.gallery-item {
  flex: 0 0 240px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #dfe6f0;
  transform: scale(0.85);
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item.is-center {
  transform: scale(1.1);
  opacity: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 37, 79, 0.25);
}
.gallery-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #00254F;
  background: white;
  color: #00254F;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.gallery-arrow:hover {
  background: #00254F;
  color: white;
}
.Footer-section {
  background: #00254F;
  color: white;
  padding: 60px 20px 20px;
}
.Footer-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}
.Footer-contact,
.Footer-links {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 30px;
}
.Footer-container h2 {
  font-size: 30px;
  letter-spacing: 3px;
  margin: 0 0 12px;
}
.Footer-container h3 {
  font-size: 15px;
  letter-spacing: 1px;
  margin: 0 0 18px;
  color: #cfdcef;
}
.Footer-brand p,
.Footer-contact p {
  line-height: 1.7;
  color: #e6ecf5;
}
.Footer-links {
  display: flex;
  flex-direction: column;
}
.Footer-links a {
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
  width: fit-content;
  transition: color 0.3s;
}
.Footer-links a:hover {
  color: #8fb0da;
}
.Copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #cfdcef;
}
@media (max-width: 700px) {
  h1 {
    font-size: 30px;
  }
  .Nav-section {
    padding: 15px 20px;
  }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
  }
  #nav.active {
    display: flex;
  }
  #nav .navList {
    padding: 14px 25px;
    border-bottom: 1px solid #eef1f7;
    width: 100%;
    box-sizing: border-box;
  }
  #nav .navList.active {
    background: #f1f5ff;
  }
  .Joinbtn {
    display: none;
  }
  #menuBtn {
    display: block;
  }
  .Hero-section {
    padding: 70px 20px;
  }
  .Service-section {
    padding: 40px 20px;
  }
  .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .Program-header {
    font-size: 20px;
  }
  .Founder-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .Founderrr {
    width: 220px;
    height: 220px;
  }
  .Gallery-section {
    padding: 40px 20px;
  }
  .gallery-item {
    flex-basis: 200px;
  }
  .gallery-arrow {
    display: none;
  }
  .Footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .Footer-contact,
  .Footer-links {
    border-left: none;
    padding-left: 0;
  }
  .Footer-links {
    align-items: center;
  }
}
@media (max-width: 420px) {
  .grid-wrapper {
    grid-template-columns: 1fr;
  }
}