/* css/index.css */

/* --- Banner Styling --- */
.banner-container {
    display: block;
    position: relative;
    width: 100%;
    height: 45vh;
    max-height: 450px;
    overflow: hidden;
    background-color: #e9ecef;
}

.banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    background: none;
    padding: 0;
    color: #fff;
    z-index: 2;
}

.banner-overlay-text h1 {
    font-family: var(--font-display);
    font-size: 80px;
    color: #fff;
    font-weight: 200;
    line-height: 1.1;
    margin: 0 auto 10px auto;
    padding: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.9);
}

.banner-overlay-text p {
    font-family: var(--font-display);
    color: #fff;
    font-size: 32px;
    font-weight: 10;
    line-height: 1.428571429;
    margin: 0 auto 10px auto;
    padding: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.9);
}
.banner-overlay-text p:last-of-type {
    margin-bottom: 0;
}

/* --- Responsive adjustments for Banner Text --- */
@media(max-width: 768px) {
    .banner-overlay-text h1 {
        font-size: 40px;
        line-height: 1.15;
    }
    .banner-overlay-text p {
        font-size: 18px;
        line-height: 1.3;
    }
}
@media(max-width: 480px) {
     .banner-overlay-text h1 {
        font-size: 32px;
         line-height: 1.2;
    }
    .banner-overlay-text p {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* --- Layout: Main Content + Sidebar --- */
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    gap: 3rem;
    width: 90%;
}

.home-main {
    flex: 3;
    min-width: 0;
    padding: 0;
}

.home-main h2 {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.home-main p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.home-main ul {
    margin-bottom: 1.5rem;
}

.news-sidebar {
    flex: 1;
    min-width: 300px;
    padding: 0;
    height: fit-content;
}

.news-sidebar h3 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 100;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

/* --- News Item Styling --- */
#news-bar-content {
    max-height: none;
    overflow-y: visible;
}
.news-item {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}
.news-item:last-child {
    margin-bottom: 0;
}

.news-item h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.news-date {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.news-item p {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.news-item a {
    font-size: 1rem;
    font-weight: 700;
}

/* --- Call to Action Link Styling --- */
 .text-link-button {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
 }

 .text-link-button:hover {
    text-decoration: underline;
    color: var(--accent-color-hover);
 }
 .text-link-button::after {
     content: ' →';
     display: inline-block;
     margin-left: 0.2em;
     transition: transform 0.2s ease;
 }
 .text-link-button:hover::after {
     transform: translateX(3px);
 }

/* --- Responsive adjustments for Layout --- */
@media(max-width: 768px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem; 
        margin-bottom: 2rem;
    }
    .home-main { order: 1; }
    .news-sidebar { 
        order: 2; 
        width: 100%; 
        min-width: unset; 
    }
    .news-sidebar h3 {
        font-size: 30px;
    }
}

@media(max-width: 480px) {
    .main-content-wrapper {
        width: 95%;
    }
}

/* Special Thanks Section */
.special-thanks {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.special-thanks h3 {
    margin-bottom: 1.5rem;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.sponsor-logos a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sponsor-logos a:hover {
    opacity: 0.8;
}

.sponsor-logos img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sponsor-logos {
        gap: 1.5rem;
    }

    .sponsor-logos img {
        max-height: 50px;
        max-width: 150px;
    }
}
