/* General Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #001f3f;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
}

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

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #0056b3; 
    color: white; 
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 40px 0;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    margin-top: 0;
}

/* Cards */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn:hover {
    background-color: #004085; 
    color: white; 
}

/* Sections */
section {
    padding: 80px 0;
}

.why-us-section i {
    color: var(--primary-color);
}

/* Carousel Styles */
.carousel {
    margin-top: 56px;
    background-color: #f8f9fa;
    padding: 20px 0;
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-item {
    height: 320px;
}

.carousel-content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.carousel-text {
    max-width: 540px;
}

.carousel-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
    text-transform: uppercase;
}

.carousel-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.carousel-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image img {
    max-height: 280px;
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: invert(1) grayscale(100);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    margin-bottom: 0;
    z-index: 15;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 4px;
    transition: all 0.3s ease;
    border: 0;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background-color: var(--light-gray);
    margin: 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Dropdown submenu */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    display: none;
    min-width: 200px;
}

.dropdown-menu > li {
    position: relative;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #e2e6ea; 
    color: #212529; 
}

.dropdown-item.active {
    background-color: #0056b3; 
    color: white; 
}

/* Arrow for submenu parent */
.dropdown-item[href="#"] {
    position: relative;
    padding-right: 2rem;
}

.dropdown-item[href="#"]:after {
    content: "›";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-item {
        height: auto;
        padding: 20px 0;
    }

    .carousel-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .carousel-text {
        max-width: 100%;
    }

    .carousel-text h2 {
        font-size: 2rem;
    }

    .carousel-image img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .carousel {
        padding: 20px 0;
    }

    .carousel-content {
        padding: 0 10px;
    }

    .carousel-text h2 {
        font-size: 1.5rem;
    }

    .carousel-text p {
        font-size: 1rem;
    }

    .carousel-image img {
        max-height: 160px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
