/* Custom styles for the website */
body {
    scroll-behavior: smooth;
}

@media print {
      body, html, #wrapper {
          width: 100%;
      }
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #facc15;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

#back-to-top {
    transition: opacity 0.3s ease;
}

/* Slider Styles */
#slider {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    height: 400px; /* Uniform base height */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #1e3a8a;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .slide {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .slide {
        height: 300px;

/* Responsive adjustments for smaller screens */
@media (min-width: 768px) {
    .slide {
        height: 500px; /* Uniform height for md and up */
    }
}

@media (max-width: 768px) {
    .slide {
        height: 300px; /* Uniform height for tablets */
    }

    .prev, .next {
        padding: 8px;
        font-size: 14px;
    }

    .dots {
        bottom: 5px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 200px; /* Uniform height for phones */
    }

    .prev, .next {
        padding: 6px;
        font-size: 12px;
    }

    .dots {
        bottom: 3px;
        gap: 4px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #nav-menu li {
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: none;
        box-shadow: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}