html,
body {
  overflow-x: hidden;
}
:root {
  --dbit-blue: #003366;
  --dbit-gold: #ffb81c;
  --dbit-light-blue: #1e4a7a;
  --dbit-gray: #6c757d;
  --dbit-light-gray: #f8f9fa;
  --dbit-dark: #212529;
  --dbit-white: #ffffff;
  --dbit-orange: #ff6b35;
  --dbit-green: #28a745;
}
/* Only apply 8 columns on large screen */
@media (min-width: 992px) {
  .col-lg-1-5 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }
}
.badge-box {
  padding: 10px;
  transition: 0.3s;
}

.badge-box:hover {
  transform: translateY(-5px);
}

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

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  color: var(--dbit-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.hr-justify-content {
  text-align: justify;
}

/* Header Styles */
.main-header {
  background: linear-gradient(
    135deg,
    var(--dbit-blue) 0%,
    var(--dbit-light-blue) 100%
  );
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  padding: 5px 0;
  background: var(--dbit-blue);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: all 0.3s ease;
  max-width: 200px;
}

.scrolled .navbar-brand img {
  max-width: 160px;
}

.navbar-nav .nav-link {
  color: var(--dbit-white) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  margin: 0 5px;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-apply-btn {
  background: var(--dbit-gold) !important;
  color: var(--dbit-blue) !important;
  font-weight: 700 !important;
  padding: 8px 25px !important;
  border-radius: 50px;
}

.nav-apply-btn:hover {
  background: #ffaa00 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 184, 28, 0.3);
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background: url("images/hero_image.png") center/cover no-repeat;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-img-col {
  position: relative;
}

.hero-img {
  position: absolute;
  bottom: -379px;
  left: 40%;
  transform: translateX(-50%);
  max-height: 500px;
  width: auto;
}
@media (max-width: 992px) {
  .hero-img-col {
    display: none;
  }
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65); /* grey/dark layer */
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

.btn-apply {
  background: #003366;
  color: white;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background: #003366;
  color: white;
  transform: translateY(-3px);
}

.btn-cta-slider {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #ff9000;
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  font-size: 20px;
}
.btn-cta-slider-2 {
  margin-bottom: 20px;
  padding: 8px 16px;
  background: #ff9000;
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  font-size: 15px;
}
.map-container,
.contact-form-box {
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.btn-cta-slider:hover {
  background: #f58b00;
  color: #ffffff;
  border: none;
}

.btn-cta-slider::before {
  content: "";
  position: absolute;
  top: 0%;
  left: -100%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(30deg);
  animation: slide 3s infinite;
  pointer-events: none;
  filter: blur(5px);
}

@media (max-width: 576px) {
  .btn-cta-slider {
    font-size: 18px;
    padding: 6px 14px;
  }
}
@keyframes slide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.hero-form-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-left: auto;
}

.hero-form-container h4 {
  color: var(--dbit-blue);
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
}

.form-control,
.form-select {
  padding: 6px 10px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dbit-blue);
  box-shadow: none;
}

.form-check-input:checked {
  background-color: var(--dbit-blue);
  border-color: var(--dbit-blue);
}
/* record cards */
.record-card-1 {
  background: #003366;
}
.record-card-2 {
  background: #024b95;
}
.record-card-3 {
  background: #0366cb;
}
.record-card-4 {
  background: #2a94ff;
}
/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--dbit-blue);
  color: white;
}

/* placement-section */
.placement-section,
.review-section,
.degree-program {
  background-color: var(--dbit-light-gray);
}
.placement-wrapper {
  position: relative;
}
.placement-card::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 100px;
  background: #ef8700;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .placement-card::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: #ef8700;
    opacity: 0.9;
  }
}
.placement-card {
  display: flex;
  align-items: center;
  background: #003366;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 15px;
  position: relative;
}
@media (max-width: 768px) {
  .placement-card {
    padding: 12px !important;
  }
}

.year {
  margin-right: 80px;
  z-index: 2;
}
.logo-track {
  animation: scroll 5s linear infinite;
}

.logo-track img {
  height: 80px;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
@media screen and (max-width: 768px) {
  .logo-track img {
    height: 60px;
    margin: 0 25px;
  }
}
.nav-pills .nav-link {
  background-color: #e9ecef;
  color: #000;
  margin: 0 5px;
  border-radius: 8px;
}

.nav-pills .nav-link.active {
  background-color: #036; /* yellow */
  color: #ffffff;
}

/* Forging Section */
.forging-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--dbit-blue);
  margin-bottom: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dbit-gray);
  margin-bottom: 50px;
}
.why_dbit_card {
  box-shadow: 4px 4px 0 #ffb81c;
  transition: 0.3s;
}

.program-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
  border-color: var(--dbit-gold);
}

.program-card p {
  color: var(--dbit-blue);
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1rem;
}
.program-card img {
  width: 100px;
  height: 100px;
}

/* .program-card p {
  color: var(--dbit-gray);
  margin: 0;
  font-size: 0.95rem;
} */

/* Campus Section */
.campus-section {
  padding: 80px 0;
}

.campus-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.campus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.campus-card-body {
  padding: 25px;
}

.campus-card-title {
  color: var(--dbit-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* review-section */
#carouselTestimonials .carousel-inner {
  padding: 2em;
  padding-top: 0;
  display: flex;
}

#carouselTestimonials .carousel-item {
  flex: 0 0 33%;
  display: block;
  margin-right: 0;
}

#carouselTestimonials .card {
  margin: 0 1em;
  border: 1px solid rgba(100, 100, 100, 0.1);
  border-radius: 3%;
  box-shadow: 0px 2px 5px #7f7f7f2b;
}

#carouselTestimonials .card-body {
  padding: 30px 24px;
}

#carouselTestimonials .carousel-control-next,
#carouselTestimonials .carousel-control-prev {
  width: 6vh;
  height: 6vh;
  background-color: #e2e2e2;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

#carouselTestimonials .carousel-control-next:hover,
#carouselTestimonials .carousel-control-prev:hover {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  #carouselTestimonials .carousel-item {
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 576px) {
  #carouselTestimonials .carousel-item {
    flex: 0 0 100%;
  }

  #carouselTestimonials .card {
    margin: 0 0.5em;
  }

  #carouselTestimonials .card-body {
    padding: 20px 12px;
  }
}
.review-text {
  font-size: 13px;
  line-height: 1.6;
}
.profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: white;
}

.contact-title {
  font-size: 2.5rem;
  color: var(--dbit-blue);
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--dbit-gray);
  margin-bottom: 50px;
}
.contact-form-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #c4c4c4;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Floating Button */
.float-enquire-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dbit-gold);
  color: var(--dbit-blue);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(255, 184, 28, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  font-weight: 600;
}

.float-enquire-btn:hover {
  background: #ffaa00;
  transform: scale(1.1);
  color: var(--dbit-blue);
}

.float-enquire-btn i {
  font-size: 1.5rem;
}

.float-enquire-btn span {
  display: none;
}

.float-enquire-btn:hover span {
  display: inline;
  margin-left: 5px;
}

.float-enquire-btn:hover {
  width: auto;
  border-radius: 50px;
  padding: 0 20px;
}

.float-enquire-btn:hover i {
  margin-right: 5px;
}

/* Footer */
.footer {
  background: var(--dbit-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-title {
  color: var(--dbit-gold);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.footer-contact {
  line-height: 2;
  margin: 20px 0;
}

.footer-contact i {
  color: var(--dbit-gold);
  width: 25px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--dbit-gold);
  padding-left: 5px;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--dbit-gold);
  color: var(--dbit-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--dbit-gold);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}
.enquiry-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
.floating-contact-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}
/* FIX MODAL CENTER ALIGNMENT */
.modal .hero-form-container {
  margin-left: auto;
  margin-right: auto;
}
/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }

  .navbar-nav .nav-link {
    text-align: center;
    margin: 5px 0;
  }

  .hero-section {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero-tagline {
    text-align: center;
  }

  .hero-badges {
    text-align: center;
  }

  .btn-apply {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .hero-form-container {
    margin: 30px auto 0;
  }

  .forging-title {
    font-size: 2rem;
    text-align: center;
  }

  .forging-text {
    text-align: center;
  }

  .superpower-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }

  .faculty-img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-width: 150px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .forging-title {
    font-size: 1.8rem;
  }

  .superpower-title {
    font-size: 1.8rem;
  }

  .superpower-list li {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .scholarship-title {
    font-size: 2rem;
  }

  .scholarship-percent {
    font-size: 4rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .faculty-img {
    height: 220px;
  }

  .campus-card-img {
    height: 200px;
  }

  .float-enquire-btn {
    width: 50px;
    height: 50px;
  }

  .float-enquire-btn i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-width: 130px;
  }

  .hero-section {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-form-container {
    padding: 25px;
  }

  .hero-form-container h4 {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .award-card {
    padding: 20px;
  }

  .award-icon {
    font-size: 2.5rem;
  }

  .award-card h3 {
    font-size: 1.2rem;
  }

  .forging-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-title {
    font-size: 1rem;
  }

  .superpower-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .program-card {
    padding: 20px;
  }

  .program-card h4 {
    font-size: 1.1rem;
  }

  .eligibility-card {
    padding: 20px;
  }

  .eligibility-title {
    font-size: 1.1rem;
  }

  .scholarship-title {
    font-size: 1.8rem;
  }

  .scholarship-percent {
    font-size: 3.5rem;
  }

  .faculty-name {
    font-size: 1.1rem;
  }

  .campus-card-title {
    font-size: 1.1rem;
  }

  .placement-stat h3 {
    font-size: 2.5rem;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .btn-register {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-title {
    margin-bottom: 15px;
  }

  .footer-contact {
    font-size: 0.9rem;
  }

  .float-enquire-btn {
    bottom: 20px;
    right: 20px;
  }

  .float-enquire-btn:hover {
    width: 50px;
    padding: 0;
  }

  .float-enquire-btn:hover span {
    display: none;
  }
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}
