* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: rgb(0, 0, 0);
    --sec-bg: rgb(53, 53, 53);
    --accent-color: #1E96A5;
    --accent-color-dark: #167a85;
    --sec-accent-color: #FFCB00;
    --tert-bg: #002F52;
    --text-color: #F7F2EC;
    --card-bg: #1a1a1a;
    --box-shadow-light: rgba(0, 0, 0, 0.1);
    --box-shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.delegate-resources {
    color: var(--text-color);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.delegate-resources h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.resource-buttons {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    flex-wrap: wrap;
}

.resource-button {
    display: block;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 15px var(--box-shadow-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 200px;
    text-align: center;
}

.resource-button:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 9px 20px var(--box-shadow-dark);
}

@media (min-width: 768px) {
    .delegate-resources {
        padding: 120px 20px;
    }

    .resource-buttons {
        flex-direction: row;
        gap: 30px;
        max-width: none;
    }

    .resource-button {
        width: auto;
        min-width: 220px;
    }

    .resources-section {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 50px;
    }

    .resource-card {
        flex-direction: row;
    }

    .resource-card .resource-img {
        width: 40%;
        height: auto;
        border-bottom: none;
        border-right: 5px solid var(--sec-accent-color);
    }

    .resource-card .resource-content {
        width: 60%;
    }

    .resource-img {
        height: 280px;
    }
}

@media (min-width: 1024px) {
    .resource-buttons {
        gap: 40px;
    }

    .resource-button {
        padding: 22px 45px;
        font-size: 1.4rem;
    }

    .resources-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}