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

/* Body Style */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background: #003f5c;
    color: white;
    padding: 15px 20px;
}

header h1 {
    font-size: 1.5rem;
}

header small {
    font-size: 0.9rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover,
header nav a:focus {
    text-decoration: underline;
    outline: none;
}

/* Footer */
footer {
    background: #002b40;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Navbar Bootstrap */
.navbar-brand h5 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

.navbar-brand small {
    color: #ccc;
    font-size: 0.75rem;
}

/* Main Content */
main {
    padding: 20px;
}

/* Responsive Layout */
@media (min-width: 768px) {
    header > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header nav {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    header > div {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    header nav a {
        display: block;
        margin-bottom: 8px;
    }

    header img {
        margin-bottom: 10px;
    }
}

/* Combined Hero & Solutions Carousel */
.combined-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #003f5c 0%, #006f9b 100%);
    color: white;
    margin-bottom: 40px;
}

.solutions-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    outline: none; /* Remove default focus ring; add custom styles */
}

.solutions-carousel:focus {
    outline: 3px solid #00aaff;
    outline-offset: 3px;
}

/* Slides */
.solution-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1.5s ease, opacity 1.5s ease;
    z-index: 0;
    pointer-events: none;
}

.solution-slide.active {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
    pointer-events: auto;
}

.solution-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.solution-slide.slide-in-right {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}


/* Slide Content */
.slide-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.slide-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus {
    background-color: white;
    color: #003f5c;
    outline: none;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    appearance: none;
}

.carousel-dot.active,
.carousel-dot:focus {
    background: white;
    transform: scale(1.3);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.6);
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.9);
}

/* Arrows */
.carousel-arrow {
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    user-select: none;
    border: none;
    background: transparent;
    padding: 5px 12px;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    opacity: 1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.6);
}

/* Trusted Partners Section */
.trusted-partners-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.trusted-heading {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.trusted-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #007BFF;
    margin: 10px auto 0;
    border-radius: 2px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.partner-card {
    width: 160px;
    height: 120px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.partner-card:hover,
.partner-card:focus-within {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    transform: translateY(-3px);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}
