/* ══════════════════════════════════════════════════════
   KG Content Widgets — style.css
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

.kgcw-strip, .kgcw-strip *,
.kgcw-yt-wrap, .kgcw-yt-wrap *,
.kgcw-bg-wrap, .kgcw-bg-wrap * {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   1. PROMO STRIP (auto-scrolling marquee)
   ══════════════════════════════════════════════════════ */

.kgcw-strip {
    width: 100%;
    overflow: hidden;
    background: #fdf8f0;
    border-top: 1px solid #e8d9c3;
    border-bottom: 1px solid #e8d9c3;
    padding: 12px 0;
    position: relative;
}

.kgcw-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.kgcw-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    white-space: nowrap;
    animation-name: kgcw-marquee-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    padding-right: 0;
}

.kgcw-strip.kgcw-pause-hover:hover .kgcw-track {
    animation-play-state: paused;
}

@keyframes kgcw-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.kgcw-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a5c1e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 50px;
}
.kgcw-item a, .kgcw-item span { color: inherit; text-decoration: none; }
.kgcw-item a:hover { text-decoration: underline; }

.kgcw-bold {
    font-weight: 800;
    color: #1a4d0d;
}

.kgcw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.kgcw-icon-img {
    object-fit: contain;
    border-radius: 4px;
}

.kgcw-sep {
    color: #c9b896;
    margin-right: 50px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   2. YOUTUBE GALLERY
   ══════════════════════════════════════════════════════ */

.kgcw-yt-wrap { width: 100%; }

.kgcw-yt-heading {
    font-size: 28px;
    font-weight: 900;
    color: #2a6b2a;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: -0.3px;
}

.kgcw-yt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kgcw-yt-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s, transform 0.2s;
    cursor: pointer;
}
.kgcw-yt-card:hover {
    box-shadow: 0 8px 26px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.kgcw-yt-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}
.kgcw-yt-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.kgcw-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: transform 0.2s, background 0.2s;
}
.kgcw-yt-card:hover .kgcw-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.kgcw-yt-body {
    padding: 14px 16px 18px;
}

.kgcw-yt-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kgcw-yt-desc {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Inline embed iframe (when clicked, if open_mode=inline) */
.kgcw-yt-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.kgcw-yt-embed iframe {
    width: 100%; height: 100%;
    border: none;
    display: block;
}

/* ══════════════════════════════════════════════════════
   3. BLOG POST GRID
   ══════════════════════════════════════════════════════ */

.kgcw-bg-wrap { width: 100%; }

.kgcw-bg-head-wrap {
    text-align: center;
    margin-bottom: 28px;
}
.kgcw-bg-heading {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.kgcw-bg-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #a0621a;
    margin: 0;
}

.kgcw-bg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.kgcw-bg-card {
    display: flex;
    flex-direction: column;
}

.kgcw-bg-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    background: #c8a876;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}
.kgcw-bg-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.kgcw-bg-card:hover .kgcw-bg-img-wrap img {
    transform: scale(1.05);
}

.kgcw-bg-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kgcw-bg-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.kgcw-bg-title:hover { color: #a0621a; text-decoration: none; }

.kgcw-bg-excerpt {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

.kgcw-bg-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.kgcw-bg-viewmore {
    display: inline-block;
    padding: 13px 36px;
    background: #f5941c;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}
.kgcw-bg-viewmore:hover {
    background: #d97e0f;
    color: #fff;
    text-decoration: none;
}

.kgcw-empty {
    padding: 24px;
    background: #f8f8f8;
    border-radius: 10px;
    color: #999;
    text-align: center;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .kgcw-yt-heading,
    .kgcw-bg-heading { font-size: 22px; }
    .kgcw-item { font-size: 13px; }
    .kgcw-icon { font-size: 16px; width: 16px; height: 16px; }
}
