/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/school-img.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}




/* Principal's Message Section start */
.principal-section {
    background: beige;
    padding: 70px 0;
    overflow: hidden;
}

.principal-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.principal-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* LEFT IMAGE */
.principal-img {
    flex: 1;
    position: relative;
}

.principal-img img {
    width: 100%;
    border-radius: 12px;
    transform: scale(1.05);
    transition: 1.2s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.principal-container.show .principal-img img {
    transform: scale(1);
}

/* RIGHT TEXT */
.principal-content {
    flex: 1.2;
    animation: fadeInText 1.3s ease forwards;
}
  .sign-img{
    height: 100px;                          /* adjust as needed */
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
  }
  .sign-meta{
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
  }

.title {
    
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    color: #000;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.message {
    line-height: 1.8;
    color: #333;
    font-size: 17px;
    margin-bottom: 25px;
}

.name {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
}

.designation {
    font-size: 15px;
    color: #444;
}

/* Text Fade Animation */
@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .principal-container {
        flex-direction: column;
        text-align: center;
    }
    
    .principal-img img {
        width: 80%;
        margin: auto;
        display: block;
    }
}
/* Principal's Message Section end */


/*Why Choose Us start*/
      /* Section Background */
.our-story-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #1f5522, #198754);
    position: relative;
    overflow: hidden;
}

/* Container */
.our-story-container {
    width: 85%;
    max-width: 1250px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Content */
.our-story-content {
    flex: 1.3;
    font-family: 'Poppins', sans-serif;
}

.our-story-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 10px;
}

.our-story-content h4 {
    font-size: 20px;
    font-weight: 500;
    color: #435a8f;
    margin-bottom: 25px;
}

.our-story-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

/* Image */
.our-story-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.our-story-image img {
    width: 420px;
    height: 420px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s ease;
}

.our-story-image img:hover {
    transform: scale(1.03);
}

/* Animation */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .our-story-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .our-story-image img {
        width: 85%;
        height: auto;
        border-radius: 20px;
    }
}
/*Why Choose Us End*/



/*gallery start*/
.gallery {
  width: 100%;
  padding: 50px 0 30px;
  text-align: center;
  background: #0f4229;
}

/* ----- Title + Subtitle ----- */
.gallery h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.gallery p {
  font-size: 16px;
  color: #d7d7d7;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ===== Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 10px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Popup / Lightbox ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease forwards;
}

.popup.active {
  display: flex;
}

.popup-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.35s ease;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.popup .close:hover {
  transform: scale(1.15);
}

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

@keyframes zoomIn {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; } 
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gallery-grid img { height: 200px; }
  .gallery h2 { font-size: 28px; }
  .gallery p { font-size: 14px; margin-bottom: 25px; }
}

/*Gallery End*/

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}