body {
    margin: 0;
    background-color: #f2ecff;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    padding: 100px 20vw;
}

section h2 {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 300;
    font-style: italic;
}
section p {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.modal-header h2 {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 300;
    font-style: italic;
}
.modal-body p {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
}

footer {
	text-align: center;
	margin-top: 50px;
	padding-top: 20px;
	border-top: 2px solid #473198;
	font-size: 1rem;
}

.banner {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.banner section {
    position: absolute;
    width: 100%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 1rem; 
    flex-wrap: wrap;
    text-align: center;
    position: absolute;
    transform: translateY(-50%);
}

.title {
    text-align: center;
    font-size: 4rem;
    flex: 1 1 auto;
}

section h2 img.icon {
    flex-shrink: 0; /* Prevent the icon from shrinking */
    width: 50px; /* Default size for icons next to titles */
    height: auto; /* Maintain aspect ratio */
}

@media (max-width: 768px) {
    section h2 {
        font-size: 2rem; /* Adjust font size for smaller screens */
        gap: 0.5rem; /* Reduce spacing between icon and title */
    }
}

@media (min-width: 1200px) {
    section h2 {
        font-size: 3rem; /* Increase font size for larger screens */
        gap: 1.5rem; /* Add more spacing between icon and title */
    }
}

/* Center the title-wrapper when reduced motion is enabled */
@media (prefers-reduced-motion: reduce) {
    .title-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
