/* ===== Container ===== */
.resources__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* ===== Heading ===== */
.resources__heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Search Bar ===== */
.resources__search {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.resources__search-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

    .resources__search-input:focus {
        border-color: #0073aa;
        outline: none;
    }

.resources__search-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .resources__search-button:hover {
        background-color: #005f8a;
    }

/* ===== Filters ===== */
.resources__filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.resources__filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.resources__filter-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
}

.resources__filter {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.95rem;
}

/* ===== Grid ===== */
.resources__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* ===== Card ===== */
.resources__card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 300px;
    padding: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .resources__card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

/* ===== Card Image ===== */
.resources__thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== Card Content ===== */
.resources__title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
}

.resources__desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    flex-grow: 1;
}

.resources__link {
    background-color: #0073aa;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: auto;
    transition: background 0.3s;
}

    .resources__link:hover {
        background-color: #005f8a;
    }

.resources__type {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
    text-align: right;
}




/* Edit Form */
/* FORM WRAPPER */
.dnnForm {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

    /* HEADINGS */
    .dnnForm h4 {
        margin-top: 20px;
        color: #333;
    }

/* FORM LABELS */
.dnnFormItem label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

/* INPUT FIELDS */
.dnnFormInputBox,
.dnnFormInput {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
}

/* BUTTON STYLES */
.dnnPrimaryAction {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

    .dnnPrimaryAction:hover {
        background-color: #005f8a;
    }

.dnnSecondaryAction {
    background-color: #eaeaea;
    color: #333;
    padding: 6px 12px;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

    .dnnSecondaryAction:hover {
        background-color: #d5d5d5;
    }

/* ADMIN REPEATER LIST */
.resourceEntry {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 6px;
}

    .resourceEntry strong {
        font-size: 1.1em;
        display: block;
        margin-bottom: 6px;
    }

    .resourceEntry a {
        color: #0073aa;
        font-weight: bold;
        text-decoration: none;
    }

        .resourceEntry a:hover {
            text-decoration: underline;
        }


.closeFormBtn {
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: auto;
    transition: background 0.3s;
}

    .closeFormBtn:hover {
        background-color: #d9363e;
    }
