/* ==========================================================================
   Resources Template
   ========================================================================== */

.res-template-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.res-hero {
    background: linear-gradient(rgba(27, 53, 40, 0.85), rgba(27, 53, 40, 0.85)),
                linear-gradient(135deg, #8FBC8F, #2a5140);
    color: #fff;
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.res-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.res-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ── Filters ──────────────────────────────────────────────────────────────── */

.res-filters-section {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
}

.res-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.res-filter-btn {
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.res-filter-btn:hover,
.res-filter-btn.active {
    background: #1B3528;
    color: #fff;
    border-color: #1B3528;
}

/* ── Shared section layout ────────────────────────────────────────────────── */

.res-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.res-section-title {
    color: #1B3528;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.res-section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ── Resources grid ───────────────────────────────────────────────────────── */

.res-resources-section {
    background: #fff;
    padding: 5rem 2rem;
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.res-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.res-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.res-card.hidden {
    display: none;
}

.res-card-header {
    background: #1B3528;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.res-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.res-card-type {
    background: #8FBC8F;
    color: #1B3528;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.res-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.res-card-content h3 {
    color: #1B3528;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.res-card-content > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.res-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.res-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.res-download-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: #1B3528;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    margin-top: auto;
}

.res-download-btn:hover {
    background: #2a5140;
    transform: translateY(-2px);
}

.res-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ── FAQ section ──────────────────────────────────────────────────────────── */

.res-faq-section {
    background: #f8f9fa;
    padding: 5rem 2rem;
}

.res-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.res-faq-category {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid #8FBC8F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.res-faq-category h3 {
    color: #1B3528;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ── Accordion ────────────────────────────────────────────────────────────── */

.res-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.res-faq-item:last-of-type {
    border-bottom: none;
}

.res-faq-question {
    color: #1B3528;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2rem 1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: relative;
}

.res-faq-question::-webkit-details-marker {
    display: none;
}

.res-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #8FBC8F;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.res-faq-item[open] .res-faq-question::after {
    content: '\2212';
}

.res-faq-answer {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 0 1rem;
}

.res-faq-answer p {
    margin-bottom: 0.75rem;
}

.res-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */

.res-cta-section {
    background: linear-gradient(135deg, #1B3528 0%, #2a5140 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.res-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.res-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.res-cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #fff;
    color: #1B3528 !important;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.15rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.res-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 968px) {
    .res-hero h1 {
        font-size: 2.5rem;
    }

    .res-grid {
        grid-template-columns: 1fr;
    }

    .res-cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .res-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .res-hero p {
        font-size: 1.1rem;
    }

    .res-filters-section,
    .res-resources-section,
    .res-faq-section,
    .res-cta-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.et_pb_menu_0_tb_header.et_pb_menu ul li.current-menu-item a, .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu a,
.et_pb_menu_0_tb_header.et_pb_menu ul li.current-menu-item a, .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu a{
    color: #1c3628 !important;
}

.single-team .et_pb_section_0_tb_header {
    background-color: #1c3628 !important;
}