/* Reset some defaults */
body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth; /* Smooth scroll for nav links */
}

/* Navbar */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: #3985f8 !important; /* Bootstrap Primary Blue */
}


.custom-navbar {
  background-color: #0d6efd !important; /* Change this HEX code to your color */
}

.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
  color: #fff !important; /* White text */
}

.custom-navbar .nav-link:hover {
  color: #ffc107 !important; /* Yellow hover */
}

.navbar-brand {
  font-weight: 600;
  color: #0d6efd !important;
}

.nav-link {
  font-weight: 500;
  margin-left: 15px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #0a58ca;
}

/* Hero Section */

/* Hero Section Background */
#home {
  min-height: 100vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/hero.webp") center center / cover no-repeat;
  color: #fff;
}

#home h1 {
  font-size: 3rem;
  font-weight: 700;
}

#home p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-weight: 700;
  margin-bottom: 30px;
  color: #0d6efd;
  text-transform: uppercase;
}


/* Add extra top spacing for large laptop/desktop screens (around 1920px) */
@media (min-width: 990px) and (max-width: 1920px) {
  #home .container {
    padding-top: 80px; /* adjust as needed */
  }
}





/* Base card */
.feature-card {
  background: #fff;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
  border-radius: 16px;
}
.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card .icon i {
  font-size: 3rem;
  transition: all 0.4s ease;
}

/* -----------------------------
   Feature Hover Effects (Uniform Blue)
-------------------------------*/

/* Common hover effect for all features */
.feature-1:hover,
.feature-2:hover,
.feature-3:hover {
  transform: translateY(-12px) scale(1.05); /* uniform lift & scale */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icon hover color and zoom for all features */
.feature-1:hover .icon i,
.feature-2:hover .icon i,
.feature-3:hover .icon i {
  color: #0d6efd; /* blue color */
  transform: scale(1.3); /* zoom effect */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Optional bounce animation for feature-3 icon */
.feature-3:hover .icon i {
  animation: bounce 0.6s;
}

/* -----------------------------
   Keyframes
-------------------------------*/

/* Bounce keyframes */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* FadeUp animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Hide feature icons on small screens (mobile & tablets) */
@media (max-width: 768px) {
  #features .icon {
    display: none;
  }
}









/* Campus Life Scrolling Gallery */
.campus-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; /* smoother on iOS */
}

.campus-gallery::-webkit-scrollbar {
  height: 6px;
}


.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 50px;
  text-align: center;
}

.section-title span {
  color: #00a3ff;
}








.why-item:hover {
  transform: translateY(-4px);
}

.why-item .icon {
  font-size: 28px;
  color: #00a3ff;
  margin-bottom: 8px;
}

.why-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #003366;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .why-content {
    flex-direction: column;
  }

  .why-left,
  .why-right {
    width: 100%;
    align-items: center;
  }

  .why-item {
    max-width: 350px;
    text-align: center;
  }

  .why-center img {
    margin: 25px 0;
  }
}


/* Mobile center alignment */
@media (max-width: 600px) {

  .why-grid {
    grid-template-columns: 1fr;
    justify-items: center;   /* Centers grid children */
  }

  .why-item {
    width: 95%;              /* Prevents edge touching */
    max-width: 420px;        /* Keeps clean card width */
    text-align: center;      /* Centers content */
  }

  .icon {
    margin: 0 auto 6px;
  }
}

.campus-gallery::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
}

.campus-item {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.campus-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}











/* Section background (light blue contrast) */
.why-choose-bca {
  background: #E8EEFF;
  padding: 60px 0;
}

/* Dark Blue Cards */
.why-item {
  background: #002B6B;      /* Deep DSU Blue */
  border: 1px solid #003B8E;
  border-radius: 14px;
  padding: 20px 18px 14px;
  color: #ffffff;
  transition: .35s ease;
}

/* Icon */
.icon {
  font-size: 32px;
  color: #F4B000;           /* DSU Gold Accent */
  margin-bottom: 6px;
}

/* Headings */
.why-item h3 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Body text */
.why-item p {
  color: #E5ECFF;
  opacity: .95;
}

/* Hover — lighter blue glow */
.why-item:hover {
  border-color: #F4B000;
  box-shadow: 0 14px 30px rgba(0, 59, 142, .45);
  transform: translateY(-4px);
}


.why-item::before {
  content: "";
  display: block;
  height: 4px;
  width: 42px;
  border-radius: 20px;
  background: #F4B000;
  margin-bottom: 10px;
}


/* GRID LAYOUT */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 25px;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    text-align: left;
    padding: 18px;
  }
}




/* Scroll wrapper */
.testimonial-scroll {
  display: flex;
  justify-content: center;       
  align-items: stretch;          /* ⭐ equal height */
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
  scrollbar-width: none;
}
.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

/* Testimonial Card */
.testimonial-card {
  flex: 0 0 80%;
  display: flex;                 /* ⭐ equal height structure */
  flex-direction: column;
  height: 100%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  scroll-snap-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Equal text spacing */
.testimonial-card p {
  flex-grow: 1;                  /* ⭐ makes heights equal */
  margin-bottom: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Desktop fixed card width */
@media (min-width: 992px) {
  .testimonial-card {
    flex: 0 0 360px;
  }
}

/* Student Info */
.student {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.student img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-user-drag: none;
}



.placement-card {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.placement-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, #007bff33, #00c6ff33);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.placement-card:hover::before {
  opacity: 1;
}

.placement-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
  transition: transform 0.4s ease;
}

.placement-card:hover .icon-circle {
  transform: rotate(12deg) scale(1.1);
}

.stat {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.label {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Hide placement icons on mobile/tablet (less than 992px) */
@media (max-width: 991px) {
  .placement-card .icon-circle {
    display: none;
  }
}




/* Hero Section Top Margin for fixed navbar */
#home {
  padding-top: 80px;
}

/* =========================
   COURSES – FLOAT 3 COLUMN
   ========================= */
#courses {
  background: #f4f7fb;
}

/* Force 3-column float layout */
#courses .col-md-4 {
  float: left;
  width: 33.333%;
  padding: 10px;
  box-sizing: border-box;
}

/* Clearfix */
#courses .row::after {
  content: "";
  display: block;
  clear: both;
}

/* Card Styles */
#courses .card {
  border: none;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
}

#courses .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Card image */
#courses .card-img-top {
  height: 230px;
  object-fit: cover;
}

/* Responsive Adjustments */
@media(max-width: 992px){
  #courses .col-md-4 {
    width: 50%;   /* 2 columns */
  }
}

@media(max-width: 576px){
  #courses .col-md-4 {
    width: 100%;  /* 1 column */
  }
}





/* ===========================
   Gallery Styles
   =========================== */

/* Smooth hover animation */
#gallery img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden; /* prevent flicker on hover */
}

/* Zoom effect on hover */
#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Wrapper: horizontal scroll */
.gallery-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab; /* show grab icon */
  will-change: scroll-position; /* smoother performance */
}

/* Hide scrollbar (all browsers) */
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

/* Gallery Item */
.gallery-item {
  flex: 0 0 auto;
  width: 250px; /* adjust size */
  aspect-ratio: 4/3; /* keeps images consistent */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  background: #f8f9fa; /* fallback bg while image loads */
}

/* Image fit */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  loading: lazy; /* ensures browser lazy loads */
}

/* Desktop hover behavior */
@media (min-width: 992px) {
  .gallery-wrapper:hover {
    cursor: grab;
  }
}



.award-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.footer {
  background-color: #111; /* dark background */
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer h5 {
  color: #fff;
  font-size: 1.25rem;
}

.footer p {
  color: #ccc;
  margin: 0.25rem 0;
}

.footer a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #007bff;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
    padding: 3rem 1rem;
  }
}


/* ==============================
   Fixed Apply Now Button
============================== */
.apply-now-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073e6;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
  text-align: center;
}

/* Hover Effect */
.apply-now-btn:hover {
  background: #005bb5;
  transform: scale(1.05);
}

/* ✅ Mobile & Tablet Full Width */
@media (max-width: 991px) {
  .apply-now-btn {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    padding: 16px;
    font-size: 1.1rem;
    transform: none; /* remove floating scaling */
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
}





/* Desktop / Laptop: ≥992px */
@media (min-width: 992px) {
  #home {
    min-height: 100vh;           /* reduce from 120vh to shrink bottom space */
    display: flex;
    flex-direction: column;
    justify-content: center;     /* center content vertically */
    padding-top: 80px;           /* space for fixed navbar */
    padding-bottom: 20px;        /* reduced bottom spacing */
  }

  #home h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
  }

  #home p {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;         /* reduced spacing below paragraph */
  }

  .widget-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}





/* Tablet: 577px – 991px */
@media (min-width: 577px) and (max-width: 991px) {

  /* Hero Section */
  #home {
    min-height: 90vh !important;   /* reduce from 120vh */
    padding-top: 20px;             /* optional top spacing */
    padding-bottom: 20px;          /* optional bottom spacing */
    background: 
      linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../images/hero.webp") center top / cover no-repeat;
  }

  #home h1 {
    font-size: 2.5rem;  
    font-weight: 700;
    margin-top: 120px;
    text-align: center;
  }

  #home p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
  }

  /* About Section Image Alignment */
  #about .col-lg-6.text-end {
    text-align: left !important;
  }

  #about .col-lg-6.text-end img {
    margin-left: 0;
    margin-right: auto;
    float: left;
    max-width: 100%;
    height: auto;
  }
}

/* Mobile: max-width 576px */

.widget-wrapper {
  width: 400px;
  max-width: 100%;
  min-height: 500px; /* Reserve space equal to expected widget height */
}


@media (max-width: 576px) {

  /* Hero Section */
  #home {
    padding-top: 140px;
    padding-bottom: 20px;
    min-height: 70vh; /* reduce for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: 
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../images/hero.webp") center top / cover no-repeat;
  }

  #home h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
  }

  #home p {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .widget-wrapper {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Department Section */
  #department {
    padding-top: 2rem !important;   
    padding-bottom: 1rem !important;
  }

  #department .col-lg-6 {
    margin-bottom: 1.5rem !important; 
  }
}

/* Make course card titles bigger */
#courses .card-title {
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
}






.certification-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #eef3ff, #ffffff);
}

.cert-heading {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0a1f63;
  margin-bottom: 35px;
}

.cert-heading span {
  display: block;
  color: #1d3fbf;
}

.cert-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cert-card {
  background: #0b1f63;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transition: transform .25s, box-shadow .25s;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
}

.cert-icon {
  font-size: 20px;
}
 
/* Mobile Responsive */
@media(max-width: 768px){
  .cert-grid {
    grid-template-columns: 1fr;
  }
}


