/* Resources, Events and Contact page refresh (builds on membership.css tokens) */

/* ---------- shared filter chips ---------- */
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rs-chip {
    border: 1px solid #c9d0e0;
    background: #fff;
    color: var(--apk-ink);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}
.rs-chip:hover { border-color: var(--apk-blue); color: var(--apk-blue); }
.rs-chip.active { background: var(--apk-navy); border-color: var(--apk-navy); color: #fff; }
.rs-chip:focus-visible, .rs-select:focus-visible, .rs-clear:focus-visible, .rs-dl:focus-visible { outline: 3px solid rgba(4, 121, 244, .45); outline-offset: 2px; }
.rs-chips-topic .rs-chip { font-size: 13px; padding: 4px 14px; border-style: dashed; }
.rs-chips-topic .rs-chip.active { border-style: solid; }

/* ---------- Resources ---------- */
.rs-intro { padding: 36px 0 6px; }
.rs-directory { padding: 18px 0 40px; background: #fff; }
.rs-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 16px; }
.rs-tools .mp-search { flex: 1 1 280px; max-width: 460px; }
.rs-select {
    flex: 0 1 240px;
    padding: 10px 14px;
    border: 1px solid #c9d0e0;
    border-radius: 30px;
    background: #fff;
    font-size: 15px;
    color: var(--apk-ink);
}
.rs-clear { border: 0; background: none; color: var(--apk-blue); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
.rs-count { font-size: 14px; color: #5b6580; margin: 6px 0 14px; min-height: 20px; }
.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--apk-line);
    border-top: 4px solid var(--apk-navy);
    border-radius: 8px;
    padding: 16px 18px 16px;
}
.rs-card:hover { border-top-color: var(--apk-gold); box-shadow: 0 6px 18px rgba(29, 32, 135, .10); }
.rs-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; color: #5b6580; }
.rs-country { display: inline-flex; align-items: center; gap: 7px; color: var(--apk-ink); font-weight: 600; font-size: 13px; }
.rs-flag { height: 16px; width: auto; }
.rs-globe { width: 17px; height: 17px; fill: #8a94ad; }
.rs-date { white-space: nowrap; }
.rs-card h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--apk-navy); margin: 0 0 8px; }
.rs-by { font-size: 14px; color: #444; margin: 0 0 14px; }
.rs-dl {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 7px 16px;
    border: 1px solid var(--apk-blue);
    border-radius: 30px;
    color: var(--apk-blue);
    font-size: 14px;
}
.rs-dl:hover { background: var(--apk-blue); color: #fff; text-decoration: none; }
.rs-dl svg { width: 15px; height: 15px; fill: currentColor; }
.rs-tag { font-size: 10px; letter-spacing: .8px; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; line-height: 15px; opacity: .8; }
.rs-cases { background: var(--apk-soft); padding: 36px 0 10px; }
.rs-cases .resources-box { padding-top: 10px; }

/* ---------- Events ---------- */
.ev-intro { padding: 36px 0 6px; }
.ev-wrap .content-page { padding-top: 12px; }
.ev-filter { margin: 18px 0 0; }
.press-releases-box .news-box { border-radius: 8px; border-top: 4px solid var(--apk-navy); overflow: hidden; }
.press-releases-box .news-box:hover { border-top-color: var(--apk-gold); }
.press-releases-box .news-box img { border-radius: 4px; }
.press-releases-box .news-box .pr-list .date { color: var(--apk-blue); font-weight: 600; font-size: 14px; }
.press-releases-box .news-box .pr-list .venue:before {
    content: '';
    display: inline-block;
    width: 9px; height: 12px;
    margin-right: 6px;
    background: #909090;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg) scale(.8);
    vertical-align: -1px;
}
.press-releases-box .news-box .btn { border-radius: 30px; border: 1px solid var(--apk-blue); color: var(--apk-blue); }
.press-releases-box .news-box .btn:hover { background: var(--apk-blue); color: #fff; }
.press-releases-box .row > [data-ev-hidden] { display: none; }
.ev-empty { display: none; text-align: center; padding: 20px 0 30px; color: #5b6580; }
@media (min-width: 768px) {
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child { flex: 0 0 100%; max-width: 100%; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box {
        display: grid; grid-template-columns: 46% 1fr; column-gap: 28px; grid-template-rows: auto auto auto 1fr; align-items: start; min-height: 0; position: relative;
    }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > a:first-child { grid-column: 1; grid-row: 1 / span 4; display: block; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > a:first-child img { width: 100%; height: auto; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > .pr-list { grid-column: 2; grid-row: 1; border: 0; padding-top: 28px; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > .pr-list-content { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.6; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > .pr-more-btn { grid-column: 2; grid-row: 3; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box > .pr-list h3 { font-size: 26px; line-height: 1.25; }
    .press-releases-box .row.ev-featured-on > .col-md-4:first-child .news-box:before {
        content: 'Latest event'; position: absolute; top: 14px; left: 14px; z-index: 2;
        background: var(--apk-gold); color: #000; font-size: 12px; font-weight: 600; letter-spacing: .8px;
        text-transform: uppercase; padding: 3px 12px; border-radius: 30px;
    }
}

/* ---------- Contact ---------- */
.ct-wrap { padding: 36px 0 50px; background: var(--apk-soft); }
.ct-wrap .row { align-items: flex-start; }
.ct-info h2.mp-title { margin-bottom: 4px; }
.ct-paths { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ct-paths li {
    background: #fff;
    border: 1px solid var(--apk-line);
    border-left: 4px solid var(--apk-gold);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--apk-ink);
}
.ct-paths strong { display: block; color: var(--apk-navy); font-size: 16px; margin-bottom: 2px; }
.ct-mail { display: inline-block; margin-top: 18px; padding: 10px 22px; border-radius: 30px; background: var(--apk-navy); color: #fff; font-size: 15px; }
.ct-mail:hover { background: var(--apk-blue); color: #fff; text-decoration: none; }
.ct-meta { margin-top: 16px; font-size: 13.5px; color: #5b6580; line-height: 1.6; }
.ct-social { margin-top: 14px; display: flex; gap: 10px; }
.ct-social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #c9d0e0; border-radius: 30px; background: #fff; color: var(--apk-ink); font-size: 14px; }
.ct-social a:hover { border-color: var(--apk-blue); text-decoration: none; color: var(--apk-blue); }
.ct-social svg { width: 16px; height: 16px; }
.ct-social .li svg { fill: #0a66c2; }
.ct-social .yt svg { fill: #e00000; }
.ct-wrap .contact-form {
    background: #fff;
    border: 1px solid var(--apk-line);
    border-top: 4px solid var(--apk-navy);
    border-radius: 10px;
    padding: 8px 28px 26px;
    box-shadow: 0 6px 22px rgba(29, 32, 135, .07);
}
.ct-wrap .contact-form .section-title { margin-top: 18px; font-size: 24px; font-weight: 300; color: var(--apk-navy); }
.ct-wrap .contact-form .form-label { font-weight: 600; font-size: 13px; color: #44506c; }
.ct-wrap .contact-form .form-control { padding: 9px 12px !important; border-radius: 6px; border-color: #c9d0e0; font-size: 15px; }
.ct-wrap .contact-form .form-control:focus { border-color: var(--apk-blue); box-shadow: 0 0 0 3px rgba(4, 121, 244, .18); }
.ct-wrap .contact-form #btn-submit { border-radius: 30px; padding: 10px; }
.ct-wrap .contact-form textarea { min-height: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-wrap { padding: 28px 0 36px; }
    .ct-wrap .contact-form { margin-top: 24px; padding: 4px 18px 20px; }
}
@media (max-width: 640px) {
    .rs-grid { grid-template-columns: minmax(0, 1fr); }
    .rs-tools .mp-search, .rs-select { flex: 1 1 100%; max-width: none; }
    .rs-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .rs-chip { white-space: nowrap; flex: 0 0 auto; }
}
