.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: url('Images/Banner.webp') no-repeat center center/cover;
    overflow: hidden;
    padding-bottom: var(--space-xxl);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 11, 12, 0.7), rgba(11, 11, 12, 0.9));
    z-index: 1;
}

.hero-content {
    padding: var(--space-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: fadeInHeroContentAnimation 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInHeroContentAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 6rem);
    margin: 0 0 var(--space-sm) 0;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #fff, #b39ff3, #fff);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin: 0 0 var(--space-xl) 0;
    color: var(--text-light);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
    animation: slideInUpSubtitle 0.8s 0.4s ease-out backwards;
}

@keyframes slideInUpSubtitle {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta-button {
    display: inline-block;
    padding: var(--space-md) var(--space-xxl);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    animation: slideInUpButton 0.8s 0.6s ease-out backwards;
    margin-bottom: 0;
}

.hero-cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color-cyan);
}

.hero-highlights {
    margin-top: var(--space-xl);
    margin-left: auto;
    margin-right: auto;
    max-width: 350px;
    background-color: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(6px);
    padding: var(--space-md) var(--space-lg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    animation: fadeInHighlight 1s 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInHighlight {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-highlights h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #FFFFFF;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color-medium);
    padding-bottom: var(--space-xs);
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-highlights p {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 400;
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-highlights p:last-child { margin-bottom: 0; }
.hero-highlights strong { color: var(--primary-color); font-weight: 600; }
.hero-highlights .players { font-size: 0.85rem; color: #FFFFFF; opacity: 0.65; font-style: italic; font-weight: 300; }

/* ===== STATS BAR ===== */
.stats-bar-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--medium-gray);
    padding: var(--space-lg) var(--space-md);
    border-radius: 8px;
    margin-top: var(--space-xxl);
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-medium);
    gap: var(--space-lg);
}

.stat-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; color: var(--text-muted); min-width: 120px;
    padding: var(--space-sm); flex-grow: 1;
}
.stat-icon { height: 30px; width: auto; margin-bottom: var(--space-sm); opacity: 0.7; filter: brightness(0) invert(1); }
.stat-value { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-light); line-height: 1.1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== ABOUT SECTION ===== */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-xxl);
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* Important for containing pseudo-elements */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 450px;

    /* --- BACKGROUND IMAGE IS NOW ON THE SECTION ITSELF --- */
    background-color: var(--dark-color); /* Fallback color */
    background-image: url('Images/about-background.webp');
    background-size: cover;
    background-position: center;
}

/* --- GRADIENT OVERLAY FOR TEXT READABILITY --- */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* This gradient starts dark on the left and fades to transparent on the right */
    background: linear-gradient(to right, 
        var(--dark-color) 20%, 
        rgba(11, 11, 12, 0.7) 50%, 
        transparent 70%
    );
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2; /* Ensure text is above the gradient overlay */
    padding: var(--space-xxl) var(--space-xl);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 var(--space-lg) 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: var(--space-sm);
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 500px; /* Constrain text width for better readability */
}

.about-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.about-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    text-align: center;
    min-width: 140px;
}

.about-button.primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.about-button.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.about-button.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color-medium);
}

.about-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* This is now an empty placeholder to create space for the image to show */
.about-image-placeholder {
    align-self: stretch;
    min-height: 300px;
}

/* ===== WHY JOIN SECTION ===== */
.why-join-section { padding: 80px 0; text-align: center; }
.why-join-section h2 {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase;
    font-weight: 600; color: var(--primary-color); margin: 0 auto var(--space-xxl) auto;
    position: relative; letter-spacing: 1.5px; display: inline-block; padding-bottom: var(--space-sm);
}
.why-join-section h2::after {
    content: ""; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 70%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}
.why-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); }
.feature-item {
    background: var(--medium-gray); padding: var(--space-xl) var(--space-lg);
    border-radius: 12px; border: 1px solid var(--border-color-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: var(--transition-medium);
}
.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-color-dark), 0 0 25px var(--primary-glow);
}
.feature-icon {
    margin-bottom: var(--space-lg); color: var(--primary-color);
    transition: transform var(--transition-medium);
}
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}
.feature-item h3 {
    font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-light);
    margin: 0 0 var(--space-sm) 0; letter-spacing: 0.5px;
}
.feature-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ===== NEWS SECTION ===== */
.news-section {
    padding: var(--space-xxl) 0;
    text-align: center;
}

.news-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 auto var(--space-xxl) auto;
    position: relative;
    letter-spacing: 1.5px;
    padding-bottom: var(--space-sm);
    display: inline-block;
}

.news-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xxl);
}

.news-card {
    background: var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-medium);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-color-dark);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-text {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0 0 var(--space-sm) 0;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-medium);
    margin-top: auto; /* Push link to the bottom */
}

.read-more-link:hover {
    transform: translateX(5px);
}

/* ===== SPONSORS SECTION ===== */
.sponsors-section {
    padding: var(--space-xxl) 0;
    text-align: center;
}

.sponsors-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 auto var(--space-xl) auto;
    position: relative;
    letter-spacing: 1px;
    display: inline-block;
}

.sponsors-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
}

.sponsor-logo {
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: var(--transition-medium);
    max-width: 150px; /* Adjust as needed */
}

.sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: none; /* Removes the invert filter on hover if the logo is a colored one */
}

.sponsor-logo img {
    height: auto;
    width: 100%;
}