/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f9ff;
    color: #011f4b;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #011f4b;
    padding: 10px 20px;
    color: white;
}

header .logo img {
    margin: auto;
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    color: #b3cde0;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: #03396c;
    padding: 10px 0;
    border-radius: 5px;
    z-index: 1000;
    width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dropdown li {
    margin: 0;
    padding: 5px 20px;
    text-align: left;
}

.dropdown li a {
    color: #b3cde0;
    font-size: 14px;
    display: block;
    width: 100%;
}

.dropdown li a:hover {
    color: #ffffff;
    background-color: #005b96;
}

.nav-links li:hover .dropdown {
    display: block;
    opacity: 1;
}

/* Section Styling */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    gap: 20px;
}

/* Reverse layout for "What We Do" */
/* Reverse layout for "What We Do" */
.section.reverse {
    flex-direction: row-reverse; /* Keep this as it is for reversing layout */
}

/* Carousel Container */
.carousel-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hide the radio buttons */
input[type="radio"] {
    display: none;
}

/* Carousel Slides */
.carousel-slides {
    display: flex;
    width: 400%; /* Set to 400% to show 4 slides (100% for each slide) */
    transition: transform 0.5s ease-in-out;
}

.carousel-slides .slide {
    width: 100%; /* Each slide will take 100% of the container width */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.carousel-slides img {
    width: 100%; /* Make images fill the container */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Control the display of slides based on radio selection */
#slide1:checked ~ .carousel-slides {
    transform: translateX(0%);
}
#slide2:checked ~ .carousel-slides {
    transform: translateX(-100%);
}
#slide3:checked ~ .carousel-slides {
    transform: translateX(-200%);
}
#slide4:checked ~ .carousel-slides {
    transform: translateX(-300%);
}

/* Navigation Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-button:focus {
    outline: none;
}

/* Positioning the Previous and Next buttons */
label[for="slide1"] {
    position: absolute;
    left: 10px;
}

label[for="slide2"] {
    position: absolute;
    right: 10px;
}
label[for="slide3"] {
    position: absolute;
    left: 10px;
}

label[for="slide4"] {
    position: absolute;
    right: 10px;
}


/* Content Styling */
.content {
    flex: 1;
    padding: 10px;
    opacity: 1; /* Visible by default */
    transform: translateY(0); /* Reset position by default */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth animation */
}
.section:hover .content {
    transform: scale(1.02); /* Slight zoom on hover */
    opacity: 0.9; /* Slight fade for interactivity */
}

.content h1, .content h2 {
    color: #03396c;
    margin-bottom: 15px;
}

.content p, .content ul {
    color: #011f4b;
    font-size: 16px;
}

.content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}

/* Image Styling */
.image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Add hover effects to images */
.image img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Animation when the section comes into view */
.section.in-view .content {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset offset */
}

/* Fallback for browsers without JS */
.section .content {
    opacity: 1;
    transform: translateY(0);
}
