/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: white;
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Section Styling */
.section {
    width: 100%;
    padding: 100px 0 20px 0;
    position: relative;
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center the section contents */
}

/* Sponsors Section Container */
.container {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Sponsors Heading */
h2 {
    color: #00ffff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .section {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
    .section {
        padding-top: 160px;
    }
}

/* Sponsors Box with Shadow */
.partners-box {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
    display: inline-block;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
}

/* Grid layout for sponsors */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns layout */
    gap: 30px;
    justify-items: center; /* Centers logos horizontally */
    align-items: center; /* Centers logos vertically */
}

/* Major Sponsors (Double size) */
.logo-box.major-sponsor {
    grid-column: span 2; /* Span two columns for major sponsors */
    grid-row: span 2;    /* Span two rows */
    display: flex; /* Flexbox to center logo */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
}

.logo-box.major-sponsor img {
    max-height: 240px; /* Double the logo size of major sponsors */
    object-fit: contain;
}

/* Secondary Sponsors */
.logo-box.secondary-sponsor {
    display: flex; /* Flexbox to center logo */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
}

.logo-box.secondary-sponsor img {
    max-height: 120px; /* Smaller logo for secondary sponsors */
    object-fit: contain;
}

/* Hover effect for all logos */
.logo-box img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/* Background image for the sponsors section */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .partners-logos {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller screens */
    }
}

@media (max-width: 900px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media (max-width: 600px) {
    .partners-logos {
        grid-template-columns: repeat(1, 1fr); /* Single column layout on mobile */
    }

    .logo-box.major-sponsor {
        grid-column: span 1;
        grid-row: span 1; /* Remove the grid span on mobile */
    }

    .logo-box.major-sponsor img {
        max-height: 200px; /* Adjust major sponsor logo size for mobile */
    }
}
