/* GLOBAL */
body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    background: #f5f5f7;
    color: #333;
}

/* HEADER IMAGE */
.header-image img {
    width: 100%;
    display: block;
}

/* STICKY HEADER */
.header-image {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-image img {
    width: 100%;
    display: block;
}

/* PAGE CONTAINER */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* INTRO TEXT */
.container p {
    font-size: 1.25rem;
    /* Larger text */
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* HERO CARD */
.hero-card {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin: 40px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-button {
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 14px 28px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.hero-button:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* TOURNAMENT GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.card {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
}

.card .title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card .amount {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card,
.hero-card {
    background-size: cover;
    background-position: center center;
    /* Keeps the middle of the image visible */
    background-repeat: no-repeat;
    /* ... keep your existing height and border-radius ... */
}

/* CHARITY LOGOS */
.charity-logos {
    margin: 60px auto;
    text-align: center;
}

.charity-logos h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    align-items: center;
}

.logo-grid img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.sponsor-grid img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.partners-footer {
    padding: 40px 0;
    text-align: center;
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.sponsor-grid img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

/* Ensure the wrapper displays clearly */
.sponsor-text-wrapper {
    width: 100%;
    display: block;
    clear: both;
    /* Prevents float issues */
}

.partners-footer {
    background: #fff;
    /* Giving it a background makes it easier to debug */
    padding: 60px 0;
    margin-top: 20px;
}

.sponsor-text-wrapper,
.partners-footer {
    clear: both;
    display: block;
    overflow: visible;
}

/* --- Bottom Page Sections --- */

/* Text Section */
.partner-text-wrapper {
    background: #ffffff;
    padding: 30px 0 10px 0;
    /* Reduced top padding from 60px to 30px */
    text-align: center;
    border-top: 1px solid #e1e1e1;
}

.partner-main-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    /* Reduced margin from 10px to 5px */
    color: #333;
}

.partner-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #ccc;
    margin: 0 10px;
}

/* Logo Section */
.partner-logos-section {
    background: #ffffff;
    padding-bottom: 60px;
}

.partner-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo-grid img {
    max-width: 280px;
    height: auto;
}

/* DataGolf Footer */
.data-credit-footer {
    background: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.data-flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.datagolf-logo {
    height: 60px;
    width: auto;
}

.datagolf-text {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .partner-main-text {
        font-size: 1.2rem;
    }

    .partner-logo-grid img {
        max-width: 200px;
    }
}