/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: aqua;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above the content */
}

/* Main Content Container */
.maincontainer {
    padding: 30px;
    margin: 10% 5% 5%; /* Adjusting the top margin for fixed header */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    border-radius: 5px;
    background-color: #fff;
}

/* About Section */
.about h1 {
    font-size: 2.5vw; /* Dynamic sizing for larger screens */
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Mission Section */
.mission {
    text-align: left;
    font-size: 1.2vw; /* Adjust for readability on various screens */
    line-height: 1.7;
    color: #555;
    margin-top: 10px;
}

.mission p {
    margin-bottom: 20px;
}

/* Card Section */
.cards {
    display: flex;
    justify-content: space-around; /* Space between card items */
    flex-wrap: wrap; /* Wrap items to the next line if they exceed the container width */
    margin: 20px 0;
}

/* Individual Card */
.carditems {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px; /* Fixed width for cards */
    margin: 20px;
    padding: 20px;
    transition: transform 0.3s ease-in-out; /* Smooth transform effect */
    margin-top: 0; /* Adjusted margin to center cards */
}

.carditems:hover {
    transform: translateY(-10px); /* Lift card slightly on hover */
}

/* Remove hover effect for small screens */
@media (max-width: 1024px) {
    .carditems:hover {
        transform: none; /* Disable hover effect */
    }
}

.carditems img {
    display: block;
    margin: 0 auto 20px auto; /* Centering image inside the card */
    width: 150px;
    height: 150px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.carditems h1 {
    font-size: 22px;
    color: #333;
    text-align: center; /* Center align the card title */
    margin-bottom: 15px;
}

/* Card Content */
.cardlist {
    margin-bottom: 20px;
}

.cardlist h3 {
    font-size: 18px;
    color: #007bff; /* Blue color for sub-headings */
    margin-bottom: 10px;
}

.cardlist p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Footer */
footer {
    margin-bottom: 0;
    background-color: #050404;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* Responsive Design */

/* Tablets and Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .about h1 {
        font-size: 3vw; /* Adjust title size */
    }

    .mission {
        font-size: 1.5vw;
    }

    .cards {
        justify-content: center; /* Cards centered on tablets */
    }

    .carditems {
        width: 250px; /* Smaller cards for smaller screens */
    }

    .carditems img {
        width: 120px;
        height: 120px;
    }

    .carditems h1 {
        font-size: 20px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .maincontainer {
        margin-top: 15%;
        padding: 20px; /* Reduce padding */
    }

    .about h1 {
        font-size: 4.5vw; /* Adjust title size */
    }

    .mission {
        font-size: 1.8vw;
    }

    .cards {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center; /* Center align the items */
    }

    .carditems {
        width: 90%; /* Full width on smaller screens */
    }

    .carditems img {
        width: 100px;
        height: 100px;
    }

    .carditems h1 {
        font-size: 18px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .maincontainer {
        margin-top: 20%;
        padding: 15px; /* Even less padding for small screens */
    }

    .about h1 {
        font-size: 6vw;
    }

    .mission {
        font-size: 2.5vw;
    }

    .carditems img {
        width: 80px;
        height: 80px;
    }

    .carditems h1 {
        font-size: 16px;
    }

    .cardlist h3 {
        font-size: 14px;
    }

    .cardlist p {
        font-size: 12px;
    }
}

/* Hide Scrollbar (WebKit - Chrome, Safari) */
::-webkit-scrollbar {
    display: none;
}

/* Hide Scrollbar (Firefox) */
.scroll-container {
    scrollbar-width: none;
}
