main.front-page-template h2 {
    font-weight: 700;
    font-family: Arial, sans-serif;
}

main.front-page-template a {
    color: #ffffff;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    display: flex;
    background: #0f6d37;
    border-radius: 25px;
    overflow: hidden;
    color: white;
    font-family: Arial, sans-serif;
    margin-bottom: 32px;
    height: 330px;
    width: 800px;
    max-width: 800px;
    max-height: 330px;
    animation: fadeInUp 0.7s ease;
}

/* Left Image */
.post-image {
    flex: 1.1;
    position: relative;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image figure a {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image figure {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Panel */
.post-content {
    flex: 1;
    padding: 20px 35px;
    background: #1b7e42;
    position: relative;
}

.post-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0.6rem 0 0;
}

.divider {
    width: 100%;
    height: 3px;
    background: #a5d68a;
    margin: 0.8rem 0;
}

/* Footer */
.post-footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
    font-size: 15px;
}

.category,
.date {
    font-weight: 500;
}

main.front-page-template {
    position: relative;
    overflow: hidden;
    padding-right: 200px;
    padding-left: 200px;
    padding-top: 85px;
    color: #414141;
    min-height: 1000px;
    display: flex;
    justify-content: center;
    font-size: 16px;
}

main.front-page-template > *:not(.background-image) {
    position: relative;
    z-index: 1;
}

.background-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1000px;
    z-index: 0;
    background-image:
            linear-gradient(to bottom, rgba(255,255,255,0) 70%, #fff 100%),
            url('/wp-content/themes/tsgailingentheme/assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

div.front-page-sponsors {
    font-size: 16px;
    padding-right: 150px;
    padding-left: 150px;
    margin-bottom: 24px;
}

.front-page-sponsors .logos {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.front-page-sponsors .logos img {
    width: 200px
}

.load-more-button {
    display: flex;
    color: #1b5e20;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    background: none;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.load-more-button img {
    width: 20px;
}

div.front-page-sponsors h2 {
    color: #1b5e20; /* Dark green text */
    font-weight: 700;
    font-family: Arial, sans-serif;
    border-bottom: 8px solid #a5d68a; /* Light green underline bar */
    padding-bottom: 6px;
    padding-top: 8px;
    font-size: 24px;
}

/* Responsive styles */
@media (max-width: 1110px) {
    main.front-page-template {
        padding-right: 32px;
        padding-left: 32px;
        padding-top: 80px;
    }

    div.front-page-sponsors {
        padding-right: 31px;
        padding-left: 31px;
    }
}

@media (max-width: 880px) {
    .post-description {
        display: none;
    }

    .post-footer {
        display: none;
    }

    .post-card {
        max-width: unset;
        max-height: unset;
        width: unset;
        height: unset;
        flex-direction: column-reverse;
    }

    .post-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
        position: relative;
    }

    .post-image img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-image figure {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .post-image figure a {
        width: 100%;
        height: 100%;
        display: block;
    }

    .post-content {
        padding: 0;
    }

    .divider {
        margin: 0;
    }

    .post-title {
        padding: 8px 8px 8px 16px;
    }

    .post-image figure {
        margin-bottom: 0;
    }

    .post-content h2 {
        margin: 0.6rem;
        font-size: 18px;
    }

    .topic-card {
        width: 100%;
        max-width: 380px;
        height: auto;
        min-height: 240px;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .topic-icon {
        align-self: flex-start;
    }

    .topics {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Topic Card (Jugendtrainer) */
.topics {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.topic-card-link {
    text-decoration: none;
}

.topic-card {
    background: linear-gradient(135deg, #0f6d37 0%, #1b7e42 100%);
    color: white;
    border-radius: 16px;
    padding: 20px;
    width: 380px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 240px;
    box-shadow: 0 6px 18px rgba(11,54,30,0.18);
}

.topic-icon {
    align-self: flex-start;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.topic-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.topic-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-card h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
    flex-shrink: 0;
}

.topic-card p {
    margin: 0;
    color: #eaf7e7;
    line-height: 1.3;
    flex: 1;
}

.topic-cta {
    display: inline-block;
    background: #a5d68a;
    color: #0f6d37;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    align-self: flex-start;
}

@media (max-width: 880px) {
    .topics {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .topic-card {
        width: min(380px, calc(100% - 32px));
        max-width: 380px;
        min-height: 160px;
        margin: 0 auto;
        box-sizing: border-box;
        height: auto;
        align-items: flex-start;
    }

    .topic-cta {
        margin-top: 16px;
    }
}