/* Footer styles */

footer {
    background: linear-gradient(135deg, #002244 0%, #003366 50%, #004080 100%);
    color: #fff;
    text-align: center;
    padding: 40px 0 10px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 30px 40px;
    background-color: transparent;
    color: #fff;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.footer-container > div {
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border: 1px solid rgba(255, 204, 0, 0.1);
}

.footer-container > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.footer-container .map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-container h3 {
    margin-top: 0;
    text-align: center;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    color: #ffcc00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
    border-radius: 2px;
}

.footer-container h4 {
    margin-top: 0;
    text-align: center;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    color: #ffcc00;
    font-weight: 600;
}

.footer-container h5 {
    margin-top: 0;
    text-align: center;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #ffcc00;
    font-weight: 600;
}

.footer-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-container ul li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95em;
    line-height: 1.6;
    transition: transform 0.2s ease;
}

.footer-container ul li:hover {
    transform: translateX(5px);
}

.footer-container ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-container ul li a:hover {
    color: #ffcc00;
    text-decoration: none;
}

.footer-container .important-dates,
.footer-container .quick-links {
    flex: 1;
}

.footer-container ul li::before {
    content: "▸";
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Important Dates Table */
.dates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

.dates-table tr {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dates-table tr:hover {
    background-color: rgba(255, 204, 0, 0.15);
}

.dates-table td {
    padding: 15px 12px;
    font-size: 1em;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.02);
}

.dates-table tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.dates-table tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.event-col {
    color: #e0e0e0;
    text-align: left;
    font-weight: 600;
    padding-right: 20px !important;
    text-wrap: wrap;
    width: 45%;
}

.date-col {
    color: #ffcc00;
    text-align: right;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-wrap: wrap;
    width: 55%;
}


/* Media Partners Section */
.media-partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.media-logos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    align-items: center;
    justify-items: center;
    margin-top: 20px;
    flex: 1;
    padding: 10px;
}

.logo-row {
    display: contents;
}

.media-logos img {
    max-width: 180px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
    object-fit: contain;
}

.media-logos img:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
}

/* Copyright text */
footer > p {
    margin: 30px 0 0 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #ccc;
    letter-spacing: 0.5px;
}

/* Responsive styles for footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .footer-container div {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }

    .footer-container > div {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-container .map {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .media-logos {
        gap: 15px;
    }
    
    .media-logos img {
        max-width: 120px;
    }
  }