/* Base styles for sections */
.section {
    padding: 1rem 0;
    margin: 0 auto;
    max-width: 70%;
    
}

.section h2 {
    font-family: var(--titleFont);
    color: var(--orange1);
    text-align: left;
    margin-bottom: 1rem;
}

.section p {
    font-family: var(--mainFont);
    color: var(--fontColour);
    text-align: left;
    margin-bottom: 1rem;
}

/* Column Content Grid */
.column-content .grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    margin: 0 auto;
    margin-top: 2rem;

}

.column-content .grid-item {
    background: var(--gold);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-width: 45%;
}

.column-content .grid-item:hover{
    transform: translateY(-4px);
}

.column-content .grid-item h3 {
    font-family: var(--titleFont);
    color: var(--orange1);
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.column-content .grid-item h4 {
    font-family: var(--titleFont);
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 400;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: left;
    width: 100%;
}

.column-content .grid-item p {
    font-family: var(--mainFont);
    color: var(--fontColour);
    margin-bottom: 0.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.column-content .grid-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
    min-height: 150px;
    object-fit: cover;
    width: 100%;
}

/* Container for button to push it to bottom */
.column-content .grid-item .btn {
    margin-top: auto;
    align-self: center;
}

/* Links and Buttons */
.btn, button {
    display: inline-block;
    background-color: var(--orange2);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--mainFont);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover, button:hover {
    background-color: var(--orange3);
}

/* Content with Button */
.content-with-button {
    text-align: center;
}

.content-with-button button {
    margin-top: 1rem;
}

/* Funders Section */
.content-funders {
    text-align: left;
}

.content-funders img {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-right: auto;
}

.content-funders .funder-link {
    display: block;
    text-align: left;
    color: var(--orange2);
    text-decoration: underline;
    font-family: var(--mainFont);
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.content-funders .funder-link:hover {
    color: var(--orange3);
    text-decoration: none;
}

@media (max-width: 900px) {
    .column-content .grid-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}