/* Reset default styles */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f6f9;
    color: #222;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #00796b;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-size: 2.2em;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Main Section */
section {
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 1500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Sponsors Section */
.sponsors-section {
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.sponsors-section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #00796b; /* Matches the theme color */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #00796b;
    display: inline-block;
    padding-bottom: 5px;
}

/* Sponsor Grid */
.sponsors-container, .brand-partner-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
    padding: 10px;
}

/* Sponsor Images */
.sponsor-img, .brand-partner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 20px;
    background-color: #00796b;
    color: white;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
    color: #555;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* Button Styling */
button {
    font-size: 18px;
    padding: 15px 30px;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #004d40;
    transform: translateY(-3px);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.6);
}

/* Responsive Sponsor Grid */
@media (max-width: 1024px) {
    .sponsors-container {
        grid-template-columns: repeat(2, 1fr); /* Reduce columns for smaller screens */
    }
}

@media (max-width: 600px) {
    .sponsors-container {
        grid-template-columns: repeat(1, 1fr); /* Stack items for mobile screens */
    }
}

/* Image Styling */
img {
    display: inline-block; /* Ensures the images stay inline */
    margin: 0; /* Removes any default margin */
}

/* About Page Styling */
.about-container {
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.about-container h1 {
    font-size: 2.4em;
    color: #00796b;
    margin-bottom: 20px;
    text-align: center;
}

.about-container h2 {
    font-size: 1.8em;
    color: #004d40;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #00796b;
    padding-bottom: 5px;
}

.about-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-container ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 25px;
}

.about-container ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.about-container a {
    color: #00796b;
    text-decoration: none;
    font-weight: 500;
}

.about-container a:hover {
    text-decoration: underline;
}

.about-container .closing {
    font-style: italic;
    font-size: 1.1em;
    text-align: center;
    color: #555;
}

/* Brand Partner Container */
.brand-partner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 20px;
}

/* Standardized Brand Logo Box */
.brand-logo {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Make sure logos scale proportionally */
.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
