/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #460967;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Smooth shrinking effect */
}

header h1 {
    font-size: 2rem;
    margin: 0;
    transition: font-size 0.3s ease, transform 0.3s ease;
}

header p {
    font-size: 1rem;
    margin: 5px 0 0;
    transition: opacity 0.3s ease;
}

header.shrink {
    padding: 10px; /* Adjust padding to shrink the header */
}

header.shrink p {
    display: none; /* Hide the paragraph smoothly */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px; /* Ensure content is visible below fixed header */
    margin-bottom: 100px;
}

h2 {
    text-align: center;
    margin-top: 40px;
    font-size: 2em;
    color: #00db00;
}

/* General paragraph styling for main content */
.container p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 10px 0;
}

/* Footer-specific paragraph styling */
footer p {
    font-size: 0.8em;
    line-height: 1.2;
    margin: 0;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #00db00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Banner Container */
.banner-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Banner Styling */
.banner {
    width: 100%;
    height: 0;
    padding-bottom: 125%; /* Maintain 4:5 Aspect Ratio */
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the entire image fits */
}

/* Adjusted Spacing */
.banner-text {
    text-align: center;
    font-size: 1.2em;
    color: #333;
    margin-top: 5px; /* Reduce the space between title and banner */
    font-weight: bold;
}

/* Mobile responsiveness (media queries) */
@media screen and (max-width: 768px) {
    /* Change grid layout to one column on mobile */
    .banner-container {
        grid-template-columns: 1fr;
    }
    
    /* Adjust banner size to fit single column layout */
    .banner {
        padding-bottom: 125%; /* Maintain the aspect ratio for mobile */
    }
}
