/* Base styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.main-content2 {
    flex: 1;
    margin: 100px 12vw 0px 8vw;
    padding: 20px;
    color: #000b1b;
}

/* Header styles */
.main-content2 h1 {
    font-size: 2.2rem;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5vh;
}

/* Grid layout */
.content-grid {
    margin: 20px 0;
}

.content-item {
    flex: 1 1 calc(50% - 20px); /* Adjusts the width of each item */
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    align-items: stretch; /* Ensures all items stretch to the same height */
}

.content-item > .item-list-container {
    height: 100%; /* Ensures the container inside stretches to fill the item height */
    display: flex;
    flex-direction: column;
}

.content-item > .item-list-container > ul {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Content titles */
.content-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Item list container */
.item-list-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Item list */
.item-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.item-list li {
    font-size: 1rem;
    padding: 5px 0;
}

/* Hover effect */
.item-list-container:hover {
    transform: scale(1.03);
}

/* Section colors */
.c1 {
    background-color: #dbe9f9;
}

.c2 {
    background-color: #dbe9f9;
}

.c3 {
    background-color: #cce0f5;
}

.c4 {
    background-color: #cce0f5;
}

.c5 {
    background-color: #acc6e8;
}

.c6 {
    background-color: #acc6e8;
}

.c7 {
    background-color: #95b6da;
}

.c8 {
    background-color: #95b6da;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .main-content2 {
        margin: 50px 5vw;
    }

    .content-item {
        flex: 1 1 100%; /* Full-width items on smaller screens */
    }

    .content-title {
        font-size: 1.25rem;
    }

    .item-list-container {
        padding: 10px;
    }
}
