/*
 Theme Name: Charifund Child
 Theme URI: http://wowtheme7.com/wp/charifund/
 Author: Your Name
 Template: charifund
 Version: 1.0.0
 Text Domain: charifund-child
*/

/* ======================================================
   GLOBAL CARD SYSTEM (WORKSHOPS + EVENTS)
====================================================== */

.workshop-grid,
#event-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* Card Base */
.workshop-card,
.event-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workshop-card:hover,
.event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.18);
}

/* Images */
.workshop-card img,
.event-card img,
.event-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* Body */
.workshop-card .content,
.event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Titles */
.workshop-card h3,
.event-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
    line-height: 1.35;
}

/* Meta */
.workshop-card p,
.event-card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Buttons */
.workshop-card a.button,
.event-card-btn {
    margin-top: auto;
    background: linear-gradient(135deg,#00AEEF,#0A86FF);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.workshop-card a.button:hover,
.event-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,174,239,0.45);
}

/* ======================================================
   HEADER / FILTER PANELS
====================================================== */

.workshop-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.workshop-header-area div {
    font-size: 26px;
    font-weight: 800;
}

.workshop-header-area span {
    background: #0A86FF;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    margin-left: 10px;
}

.workshop-filter-panel,
.events-filter-panel {
    background: #f8f9fc;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.workshop-filter-panel label,
.events-filter-panel label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.workshop-filter-panel select,
.workshop-filter-panel input,
.events-filter-panel select,
.events-filter-panel input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Apply Filter Button */
#apply-filters {
    background: linear-gradient(135deg,#00AEEF,#0A86FF);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Total Count */
#total-count {
    font-size: 20px;
    font-weight: 700;
    color: #0A86FF;
}

/* ======================================================
   SINGLE WORKSHOP / EVENT
====================================================== */

.single-workshop .workshop-thumbnail img,
.single-events img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* ======================================================
   LOAD MORE BUTTON
====================================================== */

#load-more {
    background: #0A86FF;
    color: #fff;
    border: none;
    padding: 14px 42px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s;
}

#load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10,134,255,0.45);
}

/* ======================================================
   RESPONSIVE FIXES
====================================================== */

@media (max-width: 991px) {
    .workshop-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .workshop-card img,
    .event-card img {
        height: 200px;
    }

    .workshop-card h3,
    .event-card-title {
        font-size: 18px;
    }
}
/* Workshops Archive - Force 4 Cards per Row on Desktop */
@media (min-width: 992px) {
    #workshop-results {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 35px !important;
    }
}

/* Mobile & Tablet */
@media (max-width: 991px) {
    #workshop-results {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    #workshop-results {
        grid-template-columns: 1fr !important;
    }
}
/* ============================
   NEWSLETTER ARCHIVE
============================ */

.newsletter-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    transition: all .35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newsletter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.18);
}

.newsletter-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.newsletter-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newsletter-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.newsletter-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.newsletter-btn {
    margin-top: auto;
    background: linear-gradient(135deg,#00AEEF,#0A86FF);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.newsletter-btn:hover {
    box-shadow: 0 10px 25px rgba(0,174,239,0.45);
    transform: translateY(-2px);
}