html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body > *:not(.footer) {
    flex: 1 0 auto;
}

body {
    margin: 0;
    padding: 0;
}

.footer {
    background: linear-gradient(45deg, #FFD1D1, #D1E8FF, #D1FFD1, #FFE8D1); /* Made colors stronger */
    background-size: 400% 400%;
    animation: gradientBG 15s ease-in-out infinite; /* Changed to ease-in-out and increased duration */
    color: #444444;
    margin: 0; /* Add this */
    padding: 40px 0; /* Keep existing padding */
    /*font-family: 'Comic Sans MS', 'Bubblegum Sans', cursive;*/
    font-family: 'Comic Sans MS', 'Bubblegum Sans';
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Changed from 4px to 5px */
    background: linear-gradient(90deg, #FF8088, #FFA199, #FFC8A8, #CBDEB4, #9EDEC0, #FF8088); /* Made colors stronger */
    animation: rainbow 8s linear infinite; /* Increased duration */
    background-size: 200% auto;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.footer .footer-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Made more opaque */
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out; /* Updated for smoother transition */
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.footer .footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 150, 150, 0.4); /* Made shadow stronger */
}

.footer .footer-section h3 {
    color: #FF5252; /* Made heading color stronger */
    margin-bottom: 20px;
    font-size: clamp(18px, 2vw, 22px);
    position: relative;
    padding-left: 35px; /* Increase from 30px to 35px to add more space */
}

.footer .footer-section h3::before {
    content: '\f0c1'; /* links icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    margin-right: 10px; /* Add spacing between icon and text */
}

.footer .footer-section:nth-child(1) h3::before {
    content: '\f0c1'; /* links icon */
}

.footer .footer-section:nth-child(2) h3::before {
    content: '\f129'; /* info icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.footer .footer-section:nth-child(3) h3::before {
    content: '\f2b6'; /* envelope icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.footer .footer-section:nth-child(4) h3::before {
    content: '\f017'; /* operatinghours icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-section li {
    margin-bottom: 12px;
    font-size: clamp(14px, 1.5vw, 16px);
    position: relative;
    padding-left: 25px;
}

.footer .footer-section a {
    color: #555555;
    text-decoration: none;
    transition: all 0.4s ease-in-out; /* Updated for smoother transition */
    position: relative;
}

.footer .footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8088; /* Made underline color stronger */
    transition: width 0.4s ease-in-out; /* Updated for smoother transition */
}

.footer .footer-section a:hover {
    color: #FF5252; /* Made hover color stronger */
    transform: translateX(5px);
}

.footer .footer-section a:hover::after {
    width: 100%;
}

.footer .contact-info-footer {
    line-height: 1.8;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #555555;
}

.footer .contact-info-footer p {
    position: relative;
    padding-left: 35px; /* Increased from 25px */
}

.footer .contact-info-footer p::before {
    content: '';
    position: absolute;
    left: 10px; /* Add this line to position icon */
    top: 50%; /* Add this line to vertically center */
    transform: translateY(-50%); /* Add this line to vertically center */
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*.footer .contact-info p:nth-child(1)::before {
    background-image: url('path/to/your/building-icon.png');
}

.footer .contact-info p:nth-child(2)::before {
    background-image: url('path/to/your/phone-icon.png');
}

.footer .contact-info p:nth-child(3)::before {
    background-image: url('path/to/your/email-icon.png');
}

.footer .contact-info p:nth-child(4)::before {
    background-image: url('path/to/your/weekday-icon.png');
}

.footer .contact-info p:nth-child(5)::before {
    background-image: url('path/to/your/saturday-icon.png');
}

.footer .contact-info p:nth-child(6)::before {
    background-image: url('path/to/your/sunday-icon.png');
}*/

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 107, 107, 0.3);
    font-size: clamp(12px, 1.5vw, 14px);
    color: #555555;
}

.footer .toggle-sponsors {
    background: linear-gradient(90deg, #FF9AA2, #FFB7B2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin: 20px auto;
    display: flex;
    align-items: center;
    font-family: inherit;
    font-size: 16px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 154, 162, 0.3);
}

.footer .toggle-sponsors:hover {
    transform: scale(1.05);
}

.footer .arrow-icon {
    transition: transform 0.6s ease-in-out; /* Updated for smoother transition */
    margin-left: 8px;
}

.footer .arrow-icon.rotate {
    transform: rotate(180deg);
}

.footer .sponsors-section {
    max-height: 0;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); /* Updated for smoother transition */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 230, 230, 0.95)); /* Made more opaque */
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-20px);
}

.footer .sponsors-section.show {
    max-height: none; /* Changed from 1000px to none to prevent cutoff */
    opacity: 1;
    transform: translateY(0);
    padding: 40px 0;
}

.footer .sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns */
    gap: 25px;
    max-width: 800px; /* Add max-width to maintain center alignment */
    margin: 0 auto; /* Center the grid container */
    padding: 20px;
    justify-items: center; /* Add this to center the cards */
}

.footer .sponsor-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.2);
    transition: transform 0.4s ease-in-out; /* Updated for smoother transition */
    margin: 0 auto;
    max-width: 350px;
}

.footer .sponsor-card:hover {
    transform: translateY(-5px);
}

.footer .sponsor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #FFB7B2;
}

.footer .sponsor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer .sponsor-quote {
    font-style: italic;
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.footer .sponsor-name {
    color: #FF6B6B;
    font-weight: bold;
    margin-top: 10px;
}

.footer .sponsor-title {
    color: #666;
    margin: 5px 0;
    font-weight: bold;
}

.footer .contact-info-footer p {
    font-size: 1em; /* Adjust as needed */
    text-align: left; /* Adjust as needed */
    color: #555555; /* Define the desired color */
    margin: 0;
    padding-left: 35px; /* Maintain consistent padding with your icon styles */
}


@media (max-width: 1024px) {
    .footer .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }

    .footer .sponsors-grid {
        grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns */
        gap: 25px;
        max-width: 800px; /* Add max-width to maintain center alignment */
        margin: 0 auto; /* Center the grid container */
    }

    .footer .sponsor-image {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .footer .footer-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .footer .sponsor-card {
        padding: 15px;
    }

    .footer .sponsor-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .footer .footer-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .footer .sponsor-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer .sponsor-image {
        width: 120px;
        height: 120px;
    }

    .footer .sponsor-quote {
        font-size: 14px;
    }

    .footer .gratitude-message {
        padding: 15px;
        font-size: 14px;
    }
}

.footer .gratitude-message {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 20px;
    line-height: 1.8;
    color: #666;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(255, 154, 162, 0.2);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}