/* ==========================================================================
   Categories page (page-tpl_all_categories.php child override)
   ========================================================================== */
.cfc-page { padding-top: 10px; }

.cfc-intro .white-block-content { text-align: center; padding: 30px 40px; }
.cfc-intro h1 { margin: 0 0 10px; font-size: 30px; }
.cfc-intro p { max-width: 720px; margin: 0 auto; color: #6b7a83; font-size: 15px; line-height: 1.6; }

/* spotlight cards ----------------------------------------------------------*/
.cfc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.cfc-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .18s, transform .18s;
    overflow: hidden;
}
.cfc-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.cfc-card:hover h2 { color: #33a8d6; }

.cfc-media {
    background: #f4f8fa;
    border-bottom: 1px solid #e6ebee;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cfc-art svg { height: 120px; width: auto; }
.cfc-thumbs { display: flex; gap: 12px; align-items: center; }
.cfc-thumb {
    width: 92px; height: 110px; background: #fff; border: 1px solid #e6ebee; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; padding: 6px;
}
.cfc-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cfc-body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.cfc-body h2 { margin: 0 0 8px; font-size: 19px; transition: color .15s; }
.cfc-desc { color: #6b7a83; font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.cfc-meta { display: flex; align-items: center; gap: 14px; margin: auto 0 12px; font-size: 13px; color: #8a9aa3; }
.cfc-meta .fa { margin-right: 4px; color: #33a8d6; }
.cfc-from b { color: #e8473c; font-size: 15px; }
.cfc-soon { color: #9aa7ae; }
.cfc-btn {
    align-self: flex-start;
    background: #33a8d6; color: #fff; font-weight: 700; text-transform: uppercase;
    font-size: 12px; letter-spacing: .5px; padding: 9px 18px; border-radius: 3px; transition: background .15s;
}
.cfc-card:hover .cfc-btn { background: #2b93bd; }

/* how it works --------------------------------------------------------------*/
.cfc-how .white-block-content { padding: 28px 34px 8px; }
.cfc-how h2 { text-align: center; margin: 0 0 24px; font-size: 24px; }
.cfc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cfc-step { text-align: center; padding-bottom: 24px; }
.cfc-step-ico {
    width: 62px; height: 62px; border-radius: 50%; background: #e5f4fb; color: #33a8d6;
    display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.cfc-step h3 { font-size: 16px; margin: 0 0 6px; }
.cfc-step p { color: #6b7a83; font-size: 13.5px; line-height: 1.55; margin: 0; }

/* bottom search CTA ----------------------------------------------------------*/
.cfc-cta .white-block-content { text-align: center; padding: 30px 40px; }
.cfc-cta h2 { margin: 0 0 16px; font-size: 22px; }
.cfc-search { display: flex; max-width: 540px; margin: 0 auto; }
.cfc-search input {
    flex: 1; border: 1px solid #dfe6ea; border-right: 0; border-radius: 3px 0 0 3px;
    padding: 12px 16px; font-size: 14px; outline: none;
}
.cfc-search input:focus { border-color: #33a8d6; }
.cfc-search button {
    background: #8bc63f; color: #fff; border: 0; font-weight: 700; text-transform: uppercase;
    padding: 0 22px; border-radius: 0 3px 3px 0; font-size: 12px; letter-spacing: .5px; cursor: pointer;
}
.cfc-search button:hover { background: #79b530; }
.cfc-cta-sub { margin: 12px 0 0; color: #8a9aa3; font-size: 13px; }

/* responsive ----------------------------------------------------------------*/
@media (max-width: 991px) {
    .cfc-grid { grid-template-columns: repeat(2, 1fr); }
    .cfc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cfc-grid { grid-template-columns: 1fr; }
    .cfc-intro h1 { font-size: 24px; }
    .cfc-search { flex-direction: column; }
    .cfc-search input { border-right: 1px solid #dfe6ea; border-radius: 3px; margin-bottom: 8px; }
    .cfc-search button { padding: 12px; border-radius: 3px; }
}
