
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

body {
  padding: 0px;
  margin: 0px;
  font-size: 14px;
  background-color: #fffaf9;
  font-family: "DM Serif Text", serif;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

:focus-visible {
  outline: none;
}

ol, ul {
  list-style: none;
  padding: 0 0 !important;
  margin: 0 !important;
}

.clear {
  clear: both;
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1110px;
    }
    
  }
    
/* NAVBAR CUSTOM */
.container-fluid.top-navbarbx {
    width: 93%;
    margin: auto;
}
.navbar {
  background: transparent !important;
  position: absolute;
  top: 25px;
  width: 100%;    
}
.nav-link:hover {
  color: #ffb600 !important;
}
li.nav-item a, li.nav-item a.nav-link  {
    color: #fff  ;
    font-size: 15px;
    font-family: "Instrument Sans", sans-serif;
    letter-spacing: 0.5px;
}
a.dropdown-item {
    color: #000 !important;
}
.dropdown-item:focus, .dropdown-item:hover {
    background: #ffc107 !important;
}
.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    border-radius: 0px;
    line-height: 30px !important;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: #fff !important;
}
/* Smooth Premium Dropdown Animation */
.navbar-nav .dropdown-menu {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-25px) scale(0.95); /* slight zoom effect */
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.45s;
  pointer-events: none;
}

/* Hover show effect */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px) scale(1);
    pointer-events: auto;
  }
}

/* For Mobile click behavior */
.nav-item.dropdown .dropdown-toggle.show + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px) scale(1);
  pointer-events: auto;
}


/* HERO SLIDER */
.carousel {
  position: relative;
  height: auto;
  overflow: hidden;
}
.carousel-item img {
  margin: auto;
  width: 100%;
  height: 100vh;    
}
.carousel-caption {
  left: 7%;
  bottom: 0%;
  text-align: left;
}
.carousel-caption h1 {
  font-size: 72px;
  font-weight: 500;
  line-height: 75px;
  padding: 0 0 14px 0;
}
.carousel-caption p {
  font-size: 18px;
  background: rgba(0,0,0,0.45);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
}
.carousel-caption p {
    font-size: 17px;
    background: transparent;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Instrument Sans';
    font-weight: 200;
    color: #ffc107;
}
.carousel-control-next, .carousel-control-prev{
  z-index: -2;
}

/* LEGACY SECTION */
.legacy-section {
    background: url('../images/legacy-bg.jpg');
    font-size: 26px;
    background-repeat: no-repeat;
    background-size: cover;
}
.legacy-section h2 {
    font-size: 50px;
    line-height: 68px;
    padding: 38px 0;
}



 /* Vision Section  */
.vision-section,
.uplift-section {
  background: #f7efe6; /* Light cream background like screenshot */
}

.vision-section h3, .uplift-section h3 {
    color: #4D1F12;
    font-size: 47px;
    font-weight: 300 !important;
    line-height: 54px;
}

.vision-section p, .uplift-section p {
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Instrument Sans';
    color: #A94226;
    font-weight: 500;
}

/* Gyan Revolution Section */
.gyan-section {
  background: #f7efe6;
}

.gyan-box {
  background: #ffffff;
}
.gyan-title {
  color: #A94226;
  font-size: 39px;
  font-weight: 500;
  line-height: 1.3;
}

.gyan-box p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  font-family: 'Instrument Sans' ;
}

.gyan-box hr {
  opacity: 0.3;
  margin: 20px 0;
}




/* About Us & Our Philosophy */
.about-hero {
  background: url('../images/legacy-bg.jpg');
  padding:100px 0 140px; 
  text-align: center;
  color: #fff;
  position: relative;
}
.hero-inner h2 {
    font-size: 50px;
    font-family: 'DM Serif Text';
    padding: 0px;
    margin: 0 0 126px 0;
}

/* Light Background starts lower */
.about-wrapper {
  background: #fdf8ef;
  margin-top: -110px; /*  Pull up to match layout */
  padding: 0 0 85px;
}

/* Position Image Card Correctly */
.about-card {
  margin: auto;
  position: relative;
}

/* Overlapping Increased */
.about-img-wrap {
  width: 100%;
  border-radius: 12px 12px 0px 0px;
  overflow: hidden;
  margin-top: -170px; 
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.about-img-wrap img {
  width: 100%;
}

/* Brown Content Block */
.about-content {
  background: #ac4120;
  padding: 40px 35px;
  text-align: left;
  color: #fff;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  line-height: 1.55;
}
.about-content h3 {
    color: #ffff;
    font-size: 40px;
}
.about-content p {
    color: #fff;
    font-family: 'Instrument Sans';
}

/* Yellow Card */
.ideal-card {
  margin: 28px auto 0;
  background: #F9A223;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
}
.ideal-card h3 {
  color: #621e0c;
  margin: 0;
}
.ideal-card p {
    color: #4D1F12;
    font-size: 18px;
}


/******** ✅ Mobile Responsive Fix ********/
@media(max-width: 768px) {
  .about-card, .ideal-card { width: 100%; }
  .about-img-wrap { margin-top: -110px; }
  .about-hero { padding: 60px 0 110px; }
  .about-content { padding: 18px; }
}


.vision-values-section {
  background-color: #f8f1e3;
  padding-bottom: 30px;
}
.vision-box {
        background: #ffffff !important;
        border-radius: 0 0 8px 8px;
        margin-top: 0px;
        box-shadow: 0 0 8px 6px #00000014;
    }
.about-content.vision-box h3 {
    color: #284436;
    margin: 0px;
}
.vision-box img {
  height: auto;
  width: 100%;
  object-fit: cover;
     box-shadow: 0 0 8px 6px #00000014;
}
.about-content.vision-box p {
    color: #8D8D8D;
    font-family: 'Instrument Sans';
    font-size: 16px;
    font-weight: 500;
}



.our-values-section {
  background-color: #f8f1e3;
}

.section-title {
      font-size: 50px;
      font-weight: 500;
      color: #A94226;
  }
.img-value-bx {
    height: 160px;
    width: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-item {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.value-left H5 {
    font-size: 24px;
}
.value-left {
    padding: 25px 10px;
    height: 250px;
}

.value-right {
  background: #fff;
  padding: 20px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #e6e6e6;
}
.value-right p {
    font-family: 'Instrument Sans';
    font-size: 18px;
    font-weight: 600;
    padding-left: 10px;
}
ul.ul-value {
    list-style: disc;
    margin: 30px 0px 0 20px !important;
}
ul.ul-value li {
    color: #8D8D8D;
    font-family: 'Instrument Sans';
    font-size: 14px;
}
.value-red { background: #A94226; }
.value-green { background: #253F32; }


@media(max-width: 767px) {
  .value-right {
    border-radius: 0 0 8px 8px;
  }
}

/* Our Managerment */

.team-section {
  background: #08201A;
  padding: 60px 20px;
}

.team-container {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
}

.team-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s ease;
  margin-bottom: 26px;
}

.img-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.info {
  padding: 12px 15px;
  background: #fff;
  text-align: center;
}

.hover-content {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  transform: translateY(20px);
}

.team-card:hover .hover-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.team-card:hover .img-box,
.team-card:hover .info {
  opacity: 0;
}

.big-content .hover-content {
  height: auto !important;
  overflow-y: auto;
}

/* Responsive Fix */
@media(max-width: 600px) {
  .img-box img { height: 250px; }
  .hover-content { font-size: 14px; }
}

.classroom-section {
  background: #f8f1e4;
}

.section-title {
    color: #b24a2b;
    font-weight: 500;
    font-size: 47px;
    line-height: 1.3;
}

.section-desc {
    color: #50281D;
    font-size: 18px;
    font-family: 'Instrument Sans'; 
}

.class-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: .3s ease-in-out;
}

.class-card img {
  border-bottom: 3px solid transparent;
  transition: .3s ease-in-out;
}

.class-card:hover {
  transform: translateY(-6px);
}

.class-card:hover img {
  border-bottom-color: #b24a2b;
}
.class-card h5 {
    font-weight: 600;
    color: #284436;
    font-family: 'Instrument Sans';
    font-size: 26px;
}

.class-card p {
    font-size: 15px;
    color: #1B171B;
    margin-bottom: 0;
    opacity:0.5;
    font-family: 'Instrument Sans';
    padding: 16px 0 0;
}

.admission-process {
  background: #ffffff;
}
.admission-process .step-box {
  padding: 5px 5px;
}
.step-number {
    color: #F9A223;
    font-size: 25px;
    font-weight: 500;
}
.step-box h4 {
    font-size: 32px;
    font-weight: 500;
    color: #284436;
    line-height: 39px;
    margin-bottom: 10px;
}

.step-box .line {
  width: 100%;
  height: 1px;
  background: #5E7C6D !important;
  margin: 0 0 12px;
}

.step-box p {
  font-size: 14px;
  color: #AFAEAF;
  line-height: 1.55;
  font-family: 'Instrument Sans';
}

.apply-section {
    background-color: #98371C;
    padding: 20px 0;
}

.apply-section h3 {
    font-size: 50px;
  }
.apply-section p {
    font-size: 18px;
    font-weight: 200;
    padding: 20px 0 0 0;
}

.admission-btn {
        background-color: #F4A22A;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        padding: 8px 20px;
        border-radius: 6px;
        transition: 0.3s ease;
        letter-spacing: 0.4px;
        font-family: 'Instrument Sans';
    }

.admission-btn:hover {
    background-color: #d58920;
    color: #fff;
}


.gh-footer {
    background-color: #0A2218;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.school-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.tagline {
    font-style: italic;
    font-size: 16px;
    font-family:'DM Serif Text';
}

.footer-line {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0 1.5rem;
}

.quick-heading {
    color: #F4A22A;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 28px;
    font-family: 'Instrument Sans';
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 6px;
}

.quick-links a {
    color: #D0D0D0;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Instrument Sans';
    line-height: 31px;
}
.quick-links a:hover {
    color: #F4A22A;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    margin-left: 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #F4A22A;
}

.copy-right{
  font-family: 'Instrument Sans';
}
.back-top{
    padding-top: 164px;
}
.back-top a {
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.back-top a:hover {
    color: #F4A22A;
}

@media (max-width:767px){
  .carousel-item img{
    height: auto;
  }
  a.navbar-brand{
    width:65%
  }
  a.navbar-brand img {
    max-width: 100%;
}
button.navbar-toggler {
    background: #f9a223 !important;
}
  .navbar {
    background: #233d30 !important;
    position: relative;
    top: 0;
    width: 100%;
}
.carousel-caption{
  display: none;
}
.legacy-section h2, .vision-section h3, .uplift-section h3, .gyan-title, .about-content h3, .section-title , .apply-section h3{
    font-size: 32px;
    line-height: 49px;
    padding: 0 0;
}
.gyan-box {
    padding: 16px 25px !important;
}
.hero-inner h2 {
    font-size: 32px;
    margin: 0 0 33px 0;
}
}

/* Master page */
.master-title.masterHead.pageHeading {
    background: #0a2218;
    text-align: center;
    display: flex;
    margin: 32px auto 32px;
    max-width: max-content;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Instrument Sans';
    padding: 7px 28px;
    font-size: 24px;
    position: relative;
    border-radius: 3px;
}
.master-title.masterHead.pageHeading::before {
    content: '';
    width: 0px;
    height: 0px;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #0a2218;
    position: absolute;
    bottom: -12px;
}
h3.innerH3 {
    font-size: 24px;
    font-weight: 500;
    padding: 13px 0 5px 0;
    margin: 0px;
    font-family: 'DM Serif Text';
}
.innerImg {
    float: right;
    margin-left: 20px;
}
.innerImg img {
    border-radius: 0 47px;
    box-shadow: 1px 6px 6px 0px rgb(0 0 0 / 30%);
}
.masterText p {
    font-size: 16px;
    color: #3a3737;
    padding: 0px 0 12px 0;
    margin: 0;
    font-family: 'Instrument Sans';
    line-height: 27px;
}