﻿:root {
  --primary-color: #1B253B;
  --accent-color: #FDE1A9;
  --text-color: #333;
  --light-bg: #f7f7f7;
   --bg-color: #1B253B;    /* Background color when hovered */
  --main-color: #FDE1A9;  /* Default button background */
   --main1:#6c2529;
    --main2:#9d382d;
    --yellowme:#e5b70d;
    --darkgray:#742134;
    --heading1:#461f1f;
    --linearcolor:#e6b794;
    --linearcolor2:#9f6358;
}


/* ----------------------------
   Top Bar
-----------------------------*/
.top-bar {
  background-color: var(--darkgray);
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}
.top-bar .social-icons
{
    display:none;
}
.top-bar .contact-info span {
  margin-right: 20px;
}
.top-bar .social-icons a {
  color: #fff;
  margin-left: 10px;
  transition: 0.3s;
}
.top-bar .social-icons a:hover {
  color: #1e1e60;
}

@media(max-width:768px)
{
    .top-bar .social-icons
    {
        display:block;
    }
    .header-right .header-social
    {
        display:none;
    }
}

/* ----------------------------
   Header Area
-----------------------------*/
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
 /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}
.logoArea img {
  max-height: 70px;
}

/* ----------------------------
   Menu Bar
-----------------------------*/

/* ============================
   Header Layout with Icons Above Menu
=============================*/
.header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
}

/* Right side container (icons + menu) */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Social Icons above menu */
.header-social {
  display: flex;
  gap: 12px;
  margin-bottom: 5px;
}

.header-social a {
  color: #000;
  font-size: 18px;
  transition: 0.3s;
}

.header-social a:hover {
  color: #ef7f1a;
}

/* Menu styling same as before */
.menu-bar {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================
   Responsive Adjustments
=============================*/
@media (max-width: 991px) {
  .header-main {
    flex-direction: column;
    align-items: center;
  }

  .header-right {
    align-items: center;
    width: 100%;
  }

  .header-social {
    justify-content: center;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }
}


  /**** Edu Category Style ****/
  .cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    padding: 6px;
}

.card {
  position: relative;
  width: 330px !important;
  height: 323px !important;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius:0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card .content {
  position: relative;
  width: 100%;
  height: 100%;
}

.card .front img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.card .front h2 {
  background-color: #000000aa;
  color: white !important;
  font-size: 16px;
  line-height: 2.1;
  font-weight: 500;
  height: 38px;
  margin-top: -9px;
  position: relative;
  z-index: 9;
  top: -31px;
  text-align: center;
}

.card:hover .front h2 {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}


.card .back {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:rgba(227, 167, 47,0.8) !important;
  color: white;
  transition: top 0.5s ease;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.card:hover .back {
  top: 0;
}

.back.from-bottom h2 {
  padding-top: 60px;
  font-size: 22px;
  margin-bottom: 10px;
}

.back.from-bottom .des {
  font-size: 16px;
  line-height: 26px;
  padding: 10px 0;
  color:#fff;
}

.hoverbutton {
  background-color: #fff;
  color: #000;
  padding: 10px 26px;
  font-size: 16px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.hoverbutton:hover {
  background-color: #974377;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
        width: 100% !important;
        height: 319px !important;
        border-radius: 0;
  }
}
/**** Edu Category END ****/

/**=========== Main Content Section ===========**/
.contSec h3
{
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #404d5f;
}
.contSec h3:after
{
    content: '';
    width: 85px;
    height: 1px;
    background: #0186d5;
    display: block;
    margin: 13px 0 0;
}
.contSec p
{
    color: #535456;
    line-height: 27px;
    font-size: 16px;
    font-weight: normal;
    text-align: justify;
}
/**=========== Main Content Section END ===========**/

/**======== Read More Button Style ===========**/
.readmore-btn {
    position: relative;
    display: inline-block;
    padding: 5px 5px;
    font-size: 17px;
    font-family: 'Kalam', cursive;
    font-weight: bold;
    text-decoration: none;
    background: #fde1a9;
    color: #000;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.readmore-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0%;
  background: var(--bg-color);
  transition: 0.3s ease-in-out;
  z-index: 0;
}

.readmore-btn:hover::after {
  height: 93%;
}

.readmore-btn .description {
  position: relative;
  z-index: 2;
}

.readmore-btn:hover .description {
  animation: fadeInColor 0.4s ease-in forwards;
}

@keyframes fadeInColor {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    color: var(--main-color);
  }
}

/* Arrow hover animation */
.readmore-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.readmore-btn:hover i {
  transform: translateX(6px);
}

/**======== Read More Button Style END ===========**/

/**======== Moto And Youtuve Section Style ===========**/
/* Section Base */
.school-moto-section {
  width: 100%;
  background-color: var(--light-bg);
  padding: 100px 0;
  overflow: hidden;
}

.school-bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.school-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.school-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

/* Left Content */
.school-text {
  flex: 1;
  min-width: 300px;
  animation: slideInLeft 1s ease-in-out;
}

.school-text h1 {
  font-size: 2.6rem;
  color: var(--primary-color);
  margin: 15px 0;
}

.school-text .highlight {
  color: var(--accent-color);
}

.school-text p {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
}

.school-features {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Right Side Video */
.school-video {
  flex: 1;
  min-width: 300px;
  text-align: center;
  animation: slideInRight 1s ease-in-out;
}

.video-wrapper {
  position: relative;
  display: inline-block;
}

.video-thumb {
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Play Button with Wave Animation */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-color);
  color: var(--primary-color);
  font-size: 28px;
  border-radius: 50%;
  padding: 24px 24px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Wave Animation */
.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: rgba(253, 225, 169, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: wavePulse 2.5s infinite ease-out;
  z-index: 1;
}

.wave.delay1 {
  animation-delay: 0.6s;
}
.wave.delay2 {
  animation-delay: 1.2s;
}

@keyframes wavePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content iframe {
  border: none;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  height: 500px;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/**======== Moto And Youtuve Section Style END ===========**/

/*========= Academic Section START =========*/
#gallery {
  background:#f6efd1;
  /*  background: linear-gradient(135deg, #fffb8245, #004080ed); */
  padding: 80px 0;
  color: #fff;
  position: relative;
}

.owl-carousel .item {
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.owl-carousel .item:hover {
  transform: scale(1.03);
}

.owl-carousel .item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  
}

.owl-prev-btn,
.owl-next-btn {
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.1);
  color: #000;
  transition: 0.3s;
}

.owl-prev-btn:hover,
.owl-next-btn:hover {
  background: #fff;
  color: #001f3f;
}

.owl-dots {
  margin-top: 20px;
}

.owl-dot span {
  width: 12px;
  height: 12px;
  background: #ddd !important;
  border-radius: 50%;
  transition: 0.3s;
}

.owl-dot.active span {
  background: #f9b208 !important;
  transform: scale(1.2);
}
/*========= Academic Section END =========*/