:root {
  color-scheme: only light;
  --primary-color: #0033cc;
  --secondary-color: #fdf043;
  --dark-color: #212529;
  --light-color: #fefefe;
}

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

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
header {
  gap: 1rem;
  padding: 1rem;
}

.bg-yellow {
  background-color: #fdf043 !important;
}
.text-blue {
  color: #0033cc;
}

.assamese-text {
  font-family: 'Ruposhi Bangla';
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: bold;
  line-height: 1.3;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

section {
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

/* Carousel */
.carousel-item img {
  max-height: 70vh;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Course Boxes */
.course-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control, .form-select {
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Map Section */
#map {
  margin: 2rem 0;
}

.ratio-16x9 {
  min-height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .carousel-caption h5 {
    font-size: 1.25rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  
  header img {
    height: 50px;
  }
  
  .form-select {
    width: 100% !important;
  }
  
  .course-box {
    padding: 1rem;
  }
  
  section {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  #map {
    margin: 1rem 0;
  }
}
/* Footer Map Styling */
footer .ratio-1x1 {
  max-width: 250px;
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

footer iframe {
  filter: grayscale(30%) contrast(110%);
}

@media (max-width: 768px) {
  footer .ratio-1x1 {
    max-width: 200px;
  }
}
/* Advantages List Styling */
.advantages-list li {
  transition: all 0.3s ease;
}

.advantages-list li:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

/* Certificate Card Styling */
.certificate-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 500px; /* Fixed height for vertical images */
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.certificate-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 51, 204, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 500;
}

/* Custom Control Styling */
.carousel-control-prev1,
.carousel-control-next1 {
  width: 50px;
  height: 50px;
  background: rgba(0, 51, 204, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev1 {
  left: 20px;
}

.carousel-control-next1 {
  right: 20px;
}

.carousel-control-prev1:hover,
.carousel-control-next1:hover {
  background: #0033cc;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .certificate-card {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .certificate-card {
    height: 350px;
  }
  .carousel-control-prev1,
  .carousel-control-next1 {
    width: 40px;
    height: 40px;
  }
}