/* Reset some default styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(250, 202, 202, 1) 1%, rgba(253, 29, 29, 1) 47%, rgba(252, 161, 154, 1) 100%);
  color: #333;
}

.navbar {
  background-color: #1a1a1a !important;
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #fff !important;
}

.navbar-nav .nav-link {
  color: #ddd !important;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.btn-outline-light {
  border-color: #fff !important;
  color: #fff !important;
  transition: all 0.2s ease-in-out;
}

.btn-outline-light:hover {
  background-color: #fff !important;
  color: #1a1a1a !important;
  border-color: #fff !important;
}

.dropdown-menu {
  background-color: #2c2c2c;
  border: none;
}

.dropdown-menu .dropdown-item {
  color: #fff !important;
  transition: background 0.2s;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #444 !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
}

.badge {
  font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-nav {
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}
/* Pure HTML/CSS dropdown */
.dropdown-checkbox {
    display: none;
}

/* Dropdown label */
.dropdown-label {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide submenu initially */
.pure-dropdown, .sub-dropdown {
    display: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .pure-dropdown {
        display: block;
        position: absolute;
        background-color: #1c1c1c;
    }
    .dropdown-submenu:hover > .sub-dropdown {
        display: block;
        position: absolute;
        left: 100%;
        top: 0;
        background-color: #1c1c1c;
    }
}

/* Show dropdown when checkbox checked for mobile */
.dropdown-checkbox:checked + .dropdown-label + .pure-dropdown,
.dropdown-submenu .dropdown-checkbox:checked + .dropdown-label + .sub-dropdown {
    display: block;
    position: relative;
}
/* Footer */
.footer {
    background: #1c1c1c;
    color: #fff;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.footer h5 {
    color: #ffd43b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer p, .footer li a {
    color: #ccc;
}

.footer ul {
    padding-left: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #4c6ef5;
}

.footer hr {
    border-color: #444;
    margin: 1.5rem 0;
}

.footer .text-center p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 45px;
    height: 45px;
    background: #374ea3;
    background: linear-gradient(90deg, rgba(55,78,163,1) 0%, rgba(87,199,133,1) 57%, rgba(86,83,237,1) 100%);
    color: #fff;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    z-index: 9999;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.show {
    display: block;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: #ffd43b;
}

/* Carousel slider styles */
.carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden; /* Prevent overflow */
}

.carousel-inner {
    width: 100%;
    height: 500px; /* Fixed height for uniformity */
}

.slider-img {
    width: 100%;
    height: 500px; /* Fixed size for images */
    object-fit: contain; /* Ensure entire image is visible */
    border-radius: 8px;
    display: block;
    margin: 0 auto; /* Center the image */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 15px;
}

.carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Enhanced carousel controls for better visibility */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%, 100%;
    filter: brightness(150%);
}

/* Position controls slightly inward for better visibility */
.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Responsive adjustments for carousel */
@media (max-width: 992px) {
    .carousel-inner {
        height: 400px;
    }
    .slider-img {
        height: 400px;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 300px;
    }
    .slider-img {
        height: 300px;
    }
    .carousel-caption {
        display: none !important;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        height: 200px;
    }
    .slider-img {
        height: 200px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}