:root {
  --primary: #1d3557;
  --secondary: #bf5234;
  --light: #f8f9fa;
  --dark-color: #1a237e; /* Navy Blue */
  --text-dark: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-color {
  color: #1d3557;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "poppins", montserrat !important;
}

/* Utilities */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-custom {
  background-color: #1d3557;
  color: #ffffff !important;
}

.btn-custom:hover {
  background-color: #bf5234;
}

.btn-custom-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 10px;
}

.btn-custom-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 992px) {
  .top-bar {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .top-bar-content {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.7rem;
    padding: 5px 0;
  }
}

.contact-info a,
.top-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-info a:hover,
.top-links a:hover {
  color: var(--white);
}

.contact-info i {
  width: 14px;
  height: 14px;
}

.code1 {
  background-color: #bf5234 !important;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.top-bar a:hover {
  color: #f8b430;
}

/* ================= NAVBAR ================= */
/* =========================
   GLOBAL NAVBAR STYLES
========================= */
.navbar {
  padding: 12px 20px;
  background-color: #ffffff;
}

.nav-logo {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show logo when scrolled */
.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  padding: 10px 14px;
  font-weight: 500;
  color: #333;
}

.navbar-nav .nav-item .active {
  color: #0d6efd !important;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd;
}


/* =========================
   DROPDOWN DEFAULT
========================= */
.dropdown-menu {
  border: none;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 8px 15px;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #f5f7fa;
  color: #0d6efd;
}

/* =========================
   MEGA MENU
========================= */
.megamenu {
  position: static;
}

.megamenu .dropdown-menu {
  width: 70%;
  left: 15%;
  right: 0;
  padding: 25px;
}

.megamenu h6 {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
  color: #000;
}

.megamenu .dropdown-item {
  padding: 6px 0;
}

/* =========================
   SEARCH ICON
========================= */
.navbar .btn {
  border: none;
  background: none;
  color: #333;
}

.navbar .btn:hover {
  color: #0d6efd;
}

/* =========================
   DESKTOP HOVER DROPDOWN
========================= */

@media (min-width: 992px) {
  .megamenu {
    position: static;
  }

  .megamenu .dropdown-menu {
    width: 80%; /* Adjusted for better desktop view */
    left: 10% !important;
    right: 10% !important;
    padding: 25px;
    margin-top: 0;
  }

  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* =========================
   TABLET & MOBILE
========================= */
@media (max-width: 991px) {
  .navbar-nav {
    padding-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
  }

  .dropdown-menu {
    box-shadow: none;
    padding-left: 15px;
  }

  .megamenu .dropdown-menu {
    padding: 15px;
  }

  .megamenu .row > div {
    margin-bottom: 15px;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 575px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .dropdown-item {
    font-size: 13px;
  }

  .megamenu h6 {
    font-size: 14px;
  }
}

.search-highlight {
  background-color: yellow;
  padding: 2px;
}

/* Hero Slider Wrapper */
.hero-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Swiper main container */
.heroSwiper {
  width: 100%;
  height: auto;
}

/* Swiper wrapper & slides */
.heroSwiper .swiper-wrapper {
  align-items: center;
}

.heroSwiper .swiper-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next {
  background-color: #333 !important;
}

.swiper-button-prev {
  background-color: #333 !important;
}

/* Slider Images */
.heroSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain; /* IMPORTANT: prevents cropping */
  display: block;
}

/* Optional: Full-height slider on large screens */
@media (min-width: 992px) {
  .heroSwiper {
    height: 100vh;
  }

  .heroSwiper .swiper-slide img {
    height: 100%;
    object-fit: cover; /* fills screen nicely on desktop */
  }
}

/* Tablet */
@media (max-width: 991px) {
  .heroSwiper {
    height: auto;
  }

  .heroSwiper .swiper-slide img {
    max-height: 70vh;
    object-fit: contain;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .heroSwiper .swiper-slide img {
    max-height: 50vh;
    object-fit: contain;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none; /* optional: hide arrows on mobile */
  }
}

/* Home Boxes */
.home-boxes {
  margin-top: 3%;
  position: relative;
  z-index: 10;
}

.home-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.home-box:hover {
  transform: translateY(-8px);
}

.home-box img {
  transition: transform 0.5s ease;
}

.home-box img:hover {
  transform: rotate(360deg);
}

.box1 {
  background-color: #ea4b35;
  color: #e0e0e0;
}
.box2 {
  background-color: #e87e04;
  color: #e0e0e0;
}
.box3 {
  background-color: #ddb60e;
  color: #e0e0e0;
}
.box4 {
  background-color: #00be9c;
  color: #e0e0e0;
}

@media (max-width: 767px) {
  .home-boxes {
    margin-top: 30px;
  }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-subtitle {
  color: #1d3557 !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.feature-box {
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.campus-life-section {
  background-color: #f9f9f9;
}

.campus-flex {
  max-width: 1200px;
  margin: auto;
}

/* Individual item */
.campus-item {
  width: 160px;
}

/* Circle container */
.circle-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px dashed #2f80ed;
  padding: 6px;
  transition: all 0.4s ease;
  background: #fff;
}

/* Image */
.circle-box img {
  width: 100%;
  height: 100%;
  object-fit: none;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

/* Hover Effects */
.campus-item:hover .circle-box {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.campus-item:hover img {
  transform: scale(1.95);
}

/* Text */
.campus-item h6 {
  font-weight: 600;
  font-size: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .campus-item {
    width: 140px;
  }

  .circle-box {
    width: 120px;
    height: 120px;
  }
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #708090, #98FF98);
  color: #fff;
  padding: 80px 0;
}

.cta-section img {
  transition: transform 0.5s ease;
}

.cta-section img:hover {
  transform: rotate(360deg);
}

.infrastructure-section {
  background-color: #e6e6e6;
}

.infra-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 100%;
}

.infra-card:hover {
  transform: translateY(-8px);
}

.infra-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.icon-badge {
  position: absolute;
  top: 180px;
  left: 20%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 4px solid #fff;
}

.icon-badge:hover {
  background: #bf5234;
}

.infra-card .btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carousel .card {
  transition: transform 0.3s ease;
}
.carousel .card:hover {
  transform: translateY(-5px);
}

.testimonialSwiper .card {
  min-height: 200px;
}

.swiper-pagination-bullet {
  background-color: #0d6efd;
}

.swiper-slide img {
  width: 100px;
  height: 100px;
}

.partner-logo {
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease-in-out;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Footer */
.footer-bg {
  background-image: url("../images/footer-bg.png") !important;
}

footer a:hover {
  color: #bf5234 !important;
  font-weight: 700;
}

.ins:hover {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d,
    #f56040,
    #fa7e1e,
    #fccf41,
    #ffd600
  );
  color: #ffffff !important;
}

.link:hover {
  color: #0077b5 !important;
  background-color: #fff !important;
}

.you:hover {
  color: #ff0000 !important;
  background-color: #fff !important;
}

.face:hover {
  color: #1877f2 !important;
  background-color: #fff !important;
}

.fixed-cta {
  position: fixed;
  right: 3px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CTA Buttons */
.cta-btn {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.cta-btn:hover {
  background-color: #0d6efd;
  color: #ffffff;
}

/* Colors */
.admission {
  background: #1c1f5c;
}

.pdf {
  background: #f01f1f;
}

.software {
  background: #daf01c;
}

.enquire {
  background: #1ca44e;
}

/* Scroll Top Button */
.scroll-top {
  background: #000;
  writing-mode: horizontal-tb;
  transform: none;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-btn {
    font-size: 12px;
    padding: 10px 8px;
  }
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}