@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;600&family=Poppins:ital,wght@0,300..900;1,300..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  overflow-x: hidden;
  color: #106939;
}
.navbar-brand {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.card-title {
    font-family: "Poppins", sans-serif;
}

blockquote {
    font-family: "Lora", serif;
    font-style: italic;
}


p {
  color: #000;
}

.galcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.gal img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-top: 1rem;
}

.gal h3 {
  margin-top: 3rem;
}

.gall img {
  height: 400px;
  width: 95%;
  object-fit: cover;
  margin-bottom: 1rem;
}

header {
  background-color: #106939;
  padding-block: 5px;
  padding-left: 6%;
  padding-right: 6%;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.card {
  width: 95%;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 5px;
  margin-top: 50px;
  max-height: 350px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1500px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.slogan {
  display: flex;
  justify-content: flex-end;
  color: #fff;
}

.slogan li {
  margin: 5px;
}

.media a {
  color: #fff;
  margin: 5px;
}

.navbar {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding-left: 5%;
  padding-right: 5%;
  background-color: #fff;
}

.navbar .nav-link,
.navbar .dropdown-item {
  color: #106939;
  background-color: transparent;
  border-color: transparent;
}

.navbar-logo {
  width: 80px;
  height: 80px;
  background-image: url(../images/logo.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.swiper {
  width: 100%;
  height: ;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: ;
  object-fit: cover;
}

.mySwiper2 .swiper-slide {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.mySwiper2 .swiper-slide img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.explore-heading {
  margin-top: 50px;
}

.explore-heading h1 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
  color: #106939;
}

.explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 5%;
}

.contain {
  position: relative;
  width: 95%;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: #008cba;
}

.overlay p {
  color: #fff;
}

.contain:hover .overlay {
  opacity: 1;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  padding: 0 5%;
  width: 100%;
  height: 100%;
}

.pre_school_bg, .primary_bg, .jhs_bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pre_school_bg {
  background-image: url(../images/classroom-01.jpg);
}

.primary_bg {
  background-image: url(../images/classroom-02.jpg);
}

.jhs_bg {
  background-image: url(../images/classroom-04.jpg);
}

.home-welcome {
  background-color: #f4f6f8;
  padding: 0%;
  margin-top: 0px;
  padding-block: 50px;
}

.principal_text {
  width: 50%;
}

.principal_text h2 {
  color: #106939;
}

.p-btn {
  padding: 15px 55px;
  background-color: #106939;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border-radius: 5px;
}

.p-btn a {
  text-decoration: none;
  color: #fff;
}

.principal {
  margin: 0 auto;
  text-align: center;
}

.overview {
  margin-block: 50px;
  padding: 0 5%;
}

.overview_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.overview_text h2 {
  width: 100%;
  text-align: left;
}

.global-image {
  width: 95%;
}

.news {
  background-color: #f4f6f8;
  padding: 0 5%;
  padding-block: 30px;
}

.stories {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  justify-content: center;
}

.photo {
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gallery {
  width: 95%;
  border: 2px solid tomato;
  height: 300px;
  margin-top: 30px;
}

.title {
  margin-top: 50px;
  padding: 0 5%;
  text-align: center;
  color: #106939;
}

.glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 5%;
  margin-top: 30px;
}

.at {
  text-align: center;
  width: 95%;
  padding: 50px;
  color: #fff;
  background-color: #106939;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.at h1 {
  color: #fff;
}

.slidde {
  padding-block: 50px;
  background-color: #f4f6f8;
  margin-top: 50px;
}

.swiper2 {
  width: 100%;
  height: 300px;
  margin: 20px auto;
}

.append-buttons {
  text-align: center;
  margin-top: 20px;
}

.append-buttons button {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #007aff;
  color: #007aff;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 10px;
  font-size: 13px;
}

@media all and (max-width: 1332px) {
  header {
    display: none;
  }
  .glance, .explore {
    grid-template-columns: repeat(2, 1fr);
  }
  .at, .contain {
    margin-bottom: 20px;
    text-align: center;
  }
  .home-welcome, .overview {
    display: block;
    width: 100%;
    margin: 0 auto;
  }
  .principal_text, .overview_text {
    width: 100%;
    margin-bottom: 50px;
  }
}

@media all and (max-width: 768px) {
  .explore, .glance {
    grid-template-columns: 1fr;
  }
  .contain, .at {
    margin: 0 auto 30px;
  }
}
.school-portal-link {
    color: #106939;
    background-color: ;
    padding: 8px 16px; /* optional: adds spacing */
    border-radius: 4px; /* optional: rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.school-portal-link:hover {
    background-color: #0d5d31; /* slightly darker green */
    color: #fffde7; /* optional: soft off-white on hover */
}

/* Base nav link style */
.nav-link {
    color: #0c055b;
    background-color: transparent;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.nav-link:hover {
    background-color: #106939;
    color: #fff;
}

/* Active nav item */
.nav-link.active {
    background-color: #106939; 
    color: #fff;
    font-weight: 600;
}

/* School portal hover override */
.school-portal-link:hover {
    background-color: #106939 !important;
    color: #fff !important;
}

.section-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #106939;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-heading::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: #106939;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.marquee {
  width: 100%;
  overflow: hidden;
  background-color: #106939;
  color: #fff;
  height: 50px;
  line-height: 50px;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-left: 100%;
  animation: marquee 60s linear infinite;
}

.marquee-content img {
  height: 30px;
  vertical-align: middle;
}

.marquee-content .announcement {
  display: inline-flex;
  gap: 50px;
}

.marquee-content .announcement span {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
.swiper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.marquee {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
