/* General */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    max-height: 100vh;
    background-color: #1F252E;
}

/* Header Layout Adjustments */
header {
    padding: 1.7rem 1rem;
    display: flex;
    justify-content: space-between; /* Align logo and nav to opposite ends */
    align-items: center;
    background-color: transparent;
    max-width: 80%;
    margin: 0 auto; /* Center the header */
    margin-bottom: 0; /* No space below header */
    position: relative; /* Ensure header is a positioning context */
}

/* Logo Styling */
.logo {
    flex-shrink: 0; /* Prevent the logo from shrinking */
    margin-right: 2rem; /* Add space between the logo and the nav */
}

/* Navigation Styling */
nav {
    display: flex;
    gap: 1rem; /* Space between nav links */
    align-items: center;
    margin-left: auto; /* Push nav to the right */
}
nav a {
    color: #fff;
    text-decoration: none;
    font-size: .97rem;
    font-weight: 600;
    letter-spacing: .7px;
    padding: 0.4rem 1rem;
}

nav a.active,
nav a:hover {
    color: #00E8F8;
    border-radius: 1rem;
    transition: all .3s ease-in-out;
}

#click {
    display: none;
}

.menu i {
    color: #00E8F8;
    margin-left: auto;
}

.menu {
    display: none;
}

/* Main Section */
section {
    margin: 0 8.5rem;
}

.main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.main h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin: 20px;
}

.main p {
    margin-top: 1rem;
    font-size: .98rem;
    color: #fff;
    margin: 20px;
}

.logo-img {
    width: 5rem;
    height: 5rem;
}

/* Call to Action Button */
.cta-button {
    background-color: #00E8F8;
    color: #fff;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin: 20px;
}

.cta-button:hover {
    background-color: #00b7d7;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.7rem;
    margin: 60px;
}

.social a {
    color: #00E8F8;
    font-size: 1rem;
    border: 1.6px solid #00E8F8;
    border-radius: 50%;
    padding: .35rem;
    text-align: center;
    width: 40px;
}

.social a:hover {
    color: #1F252E;
    background-color: #00E8F8;
    box-shadow: 0 0 20px #00E8F8;
    transition: all .3s ease-in-out;
}

.main h1 span:nth-child(1) {
    font-size: 1.5rem;
}

.main h1 span:nth-child(2) {
    color: #00E8F8;
}

/* Carousel Container */
.carousel {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    position: relative;
}

/* Carousel Inner (Wrapper for Slides) */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual Carousel Item (Slide) */
.carousel-item {
    position: relative;
    display: none; /* Hide all slides by default */
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

/* Active Carousel Item (Visible Slide) */
.carousel-item.active {
    display: block; /* Show the active slide */
}

/* Carousel Image Styling */
.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Adjust as needed */
    object-fit: cover; /* Ensures the image covers the container */
}

/* Carousel Control Buttons (Previous/Next) */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border: none;
    cursor: pointer;
    z-index: 1;
}

.carousel-control-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-control-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Carousel Control Icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%, 100%;
    background-repeat: no-repeat;
}

/* Optional: Add hover effects for controls */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    .logo-img {
        width: 250px; /* Slightly smaller logo on tablets */
    }

    header {
        max-width: 100%; /* Full width on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .logo-img {
        width: 120px; /* Smaller logo on mobile */
    }

    .logo {
        top: 10px; /* Adjust for smaller screens */
        left: 10px; /* Adjust for smaller screens */
    }

    .menu {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: #244D61;
    }

    header {
        padding: 0.7rem 1rem;
        align-items: center;
        max-width: 100%;
    }

    nav {
        position: absolute;
        display: grid;
        top: 75px;
        text-align: center;
        background-color: #1F252E;
        left: -100%;
        z-index: 1;
        width: 100%;
    }

    #click:checked~nav {
        left: 0%;
        transition: all 0.3s ease;
    }

    section {
        margin: 0 1.5rem; /* Remove top margin for small screens */
    }
}

/* General Styles */
.about-us {
    padding: 2rem 1rem;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: row; /* Flex layout for large screens */
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Text Section */
.about-content .text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.about-content .text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-content .text p {
    font-size: 1.1rem;
    color: #555;
}

/* Image Section */
.about-content .image {
    flex: 1;
}

.about-content .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack content vertically on smaller screens */
        align-items: center;
    }

    .about-content .text,
    .about-content .image {
        text-align: center;
    }

    .about-content .image img {
        max-width: 80%; /* Limit image size on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .about-content .text h2 {
        font-size: 1.7rem; /* Smaller title on very small screens */
    }

    .about-content .text p {
        font-size: 1rem; /* Slightly smaller text for better readability */
    }
}