/* ============================================================
   WEBINARS GRID – CSS
   ============================================================ */

/* ── Reset / Base ── */
.wg-wrapper *,
.wg-wrapper *::before,
.wg-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wg-wrapper {
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 40px; */
    /* font-family: 'Segoe UI', Arial, sans-serif; */
}

/* ── Search Bar ── */
.wg-search-bar {
    display: flex;
    align-items: center;
    max-width: 680px;
    height: 60px;
    margin: 0 auto 40px;
    /* border: 1px solid #ddd; */
    border-radius: 30px;
    overflow: hidden;
    background: var(--base-2);
    /* box-shadow: 0 11.74px 70.44px 0px rgba(0,0,0,0.07); */
    box-shadow: 0px 11.74px 70.44px 0px #262D7614;

    padding: 0 15px;
}

.wg-search-bar input {
    flex: 1;
    height: 60px;
    background: transparent;
    border: none !important;
    outline: none !important;
    padding: 11px 18px;
    font-size: 14px;
    background: transparent;
    color: hwb(0deg 0% 100% / 70%) !important;
    font-size: 16px;
}

.wg-search-bar button,
#wg-search-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.wg-search-bar button:hover,
#wg-search-btn:hover {
    color: #333;
    background-color: transparent;
}

/* ── Grid ── */
.wg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .wg-grid { grid-template-columns: 1fr; }
    body .wg-card{ padding: 5px; }
    body .wg-title{ font-size: 16px; }
    body .wg-date{ font-size: 14px; }
    body .wg-btn{ height: 40px; font-size: 14px; padding: 10px 20px; }
    body .wg-load-more-btn{ font-size: 14px; }
    body .wg-no-posts{ color: #000; padding: 15px 0; font-size: 16px; opacity: 0.5;; }
    body .wg-search-bar input{ padding: 5px; }

}

@media (min-width: 480px) and (max-width: 1024px) {
    .wg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Card ── */
.wg-card {
    background: #fafafa;
    /* border: 1px solid #e8e8e8; */
    border-radius: 12px;
    padding: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.06); */
    transition: box-shadow 0.25s, transform 0.25s;
    animation: wgFadeIn 0.4s ease both;
}

.wg-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

@keyframes wgFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Thumbnail ── */
.wg-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.wg-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-position: top;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wg-card:hover .wg-thumb img {
    transform: scale(1.04);
}

.wg-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2b4a;
    color: #aaa;
    font-size: 13px;
}

/* ── Body ── */
.wg-body {
    padding: 20px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wg-date {
    font-size: 16px;
    color: #00000080;
    line-height: 1.5em;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.wg-title {
    font-size: 20px;
    font-weight: 700;
    color: #153900;
    line-height: 1.4;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body .wg-title a {
    color: #153900;
}

/* ── Watch Button ── */
.wg-btn {
    display: inline-flex;
    height: 43px;
    align-self: flex-start;
    padding: 10px 25px;
    border: 1px solid #9FB100;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    text-transform: uppercase;
}

body .wg-btn:hover {
    background-color: var(--accent);
     border: 1px solid #9FB100;
    color: #fff !important;
}

/* ── Load More ── */
.wg-loadmore-wrap {
    text-align: center;
    margin-top: 40px;
}

.wg-load-more-btn {
    background-color: var(--accent);
    color: #ffffff;
    display: inline-block;
    font-size: 16px !important;
    letter-spacing: 2%;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid var(--accent);;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    height: 43px;
}

.wg-load-more-btn:hover {
    border-color: var(--accent);
    background-color: rgba(0, 0, 0, 0);
    color: var(--accent);

}

.wg-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ── Loader Spinner ── */
.wg-spinner {
    display: none;
    margin: 30px auto 0;
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #c8a84b;
    border-radius: 50%;
    animation: wgSpin 0.75s linear infinite;
}

.wg-spinner.active {
    display: block;
}

@keyframes wgSpin {
    to { transform: rotate(360deg); }
}

/* ── No Posts ── */
.wg-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #000;
    padding: 20px 0;
    font-size: 20px;
    opacity: 0.5;
}
