/* ═══════════════════════════════════════════════════
   Honey Grid Widget — Stylesheet v1.2.0
   Works with Prime WP Pro (ThemesDNA) at 1920px
═══════════════════════════════════════════════════ */

/* ── BASE ───────────────────────────────────────── */
.hgw-widget *,
.hgw-widget *::before,
.hgw-widget *::after { box-sizing: border-box; }

.hgw-widget { width: 100%; font-family: inherit; }

.hgw-header { margin-bottom: 18px; }
.hgw-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* ── GRID TRACK ─────────────────────────────────── */
.hgw-track {
    display: grid;
    gap: 20px;
    width: 100%;
}
.hgw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hgw-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ── PANEL ──────────────────────────────────────── */
.hgw-panel { display: flex; flex-direction: column; }

.hgw-panel-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c0872a;
    border-bottom: 2px solid #c0872a;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* ── SLIDES ─────────────────────────────────────── */
.hgw-slides { flex: 1; }
.hgw-slide  { display: none; }
.hgw-slide.hgw-slide-active { display: block; }

/* ── CARD ───────────────────────────────────────── */
.hgw-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── IMAGE ──────────────────────────────────────── */
.hgw-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8edf2;
}
.hgw-img-link { display: block; height: 100%; }
.hgw-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.hgw-img-link:hover .hgw-img { transform: scale(1.06); }

.hgw-img-default { object-fit: contain; opacity: 0.4; }

/* ── IMAGE OVERLAY ──────────────────────────────── */
.hgw-img-overlay {
    position: absolute;
    left: 0;
    right: 0;
    padding: 14px 12px;
    pointer-events: none;
}
.hgw-overlay-overlay-bottom {
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.hgw-overlay-overlay-center {
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background: rgba(0,0,0,0.45);
    padding: 16px;
}
.hgw-overlay-overlay-center a,
.hgw-overlay-overlay-bottom a { pointer-events: all; }

/* Category badge on image */
.hgw-cat-on-img {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* ── CARD BODY ──────────────────────────────────── */
.hgw-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── CATEGORY BADGE ─────────────────────────────── */
.hgw-cat-wrap { }
.hgw-cat-badge {
    display: inline-block;
    background: #1a3a5c;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.hgw-cat-badge:hover { background: #c0872a; color: #fff; }

/* ── META ───────────────────────────────────────── */
.hgw-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hgw-date,
.hgw-author,
.hgw-comments,
.hgw-likes { font-size: 11px; color: #888; white-space: nowrap; }

/* ── POST TITLE ─────────────────────────────────── */
.hgw-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 2px 0;
    color: inherit;
}
.hgw-post-title a { text-decoration: none; color: inherit; }
.hgw-post-title a:hover { text-decoration: underline; }

/* Title overlay — always white */
.hgw-title-overlay,
.hgw-title-overlay a { color: #fff !important; }

/* ── TITLE STYLES ───────────────────────────────── */
.hgw-title-style-uppercase { text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.hgw-title-style-lowercase { text-transform: lowercase; }
.hgw-title-style-underline { text-decoration: underline; text-underline-offset: 3px; }
.hgw-title-style-marker a  {
    background: linear-gradient(transparent 55%, rgba(255,224,80,0.65) 55%);
    padding-bottom: 1px;
}
.hgw-title-style-box a {
    background: #1a3a5c;
    color: #fff !important;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline;
}

/* ── EXCERPT ────────────────────────────────────── */
.hgw-excerpt {
    font-size: 12.5px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
.hgw-excerpt p { margin: 0; }

/* Full post */
.hgw-fullpost { font-size: 12px; color: #444; line-height: 1.7; }
.hgw-fullpost p { margin: 0 0 8px; }

/* ── FOOTER ─────────────────────────────────────── */
.hgw-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hgw-readmore {
    font-size: 12px;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.2s;
}
.hgw-readmore:hover { color: #c0872a; }

/* ── SHARE BUTTONS ──────────────────────────────── */
.hgw-share { display: flex; gap: 4px; }
.hgw-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.2s, transform 0.15s;
}
.hgw-share-btn:hover { opacity: 0.85; transform: scale(1.1); }
.hgw-share-fb { background: #1877f2; }
.hgw-share-x  { background: #000; }
.hgw-share-li { background: #0077b5; }
.hgw-share-wa { background: #25d366; }

/* ── DOTS ───────────────────────────────────────── */
.hgw-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.hgw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}
.hgw-dot:hover { background: #999; transform: scale(1.2); }
.hgw-dot.hgw-dot-active { background: #1a3a5c; transform: scale(1.2); }

/* ══════════════════════════════════════════════════
   SCROLL ANIMATIONS — PROGRESSIVE ENHANCEMENT
   ─────────────────────────────────────────────────
   IMPORTANT: Panels are ALWAYS visible by default.
   Only AFTER JavaScript runs and adds the class
   "hgw-js-ready" to <html> does the CSS hide panels
   ready for animation. This means if JavaScript fails
   to load or is blocked, visitors still see the content.
══════════════════════════════════════════════════ */

/* Always apply a smooth transition (harmless if JS never fires) */
.hgw-scroll-fade,
.hgw-scroll-slide,
.hgw-scroll-zoom {
    transition: opacity 0.75s ease, transform 0.75s ease;
}

/* ONLY hide when JavaScript has confirmed it is running */
.hgw-js-ready .hgw-scroll-fade  { opacity: 0; }
.hgw-js-ready .hgw-scroll-slide { opacity: 0; transform: translateY(32px); }
.hgw-js-ready .hgw-scroll-zoom  { opacity: 0; transform: scale(0.88); }

/* Reveal — added by IntersectionObserver (or safety timeout) */
.hgw-anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Staggered reveal delay per column */
.hgw-panel:nth-child(1) { transition-delay: 0.00s; }
.hgw-panel:nth-child(2) { transition-delay: 0.10s; }
.hgw-panel:nth-child(3) { transition-delay: 0.20s; }
.hgw-panel:nth-child(4) { transition-delay: 0.30s; }
.hgw-panel:nth-child(5) { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════════
   HOVER EFFECTS
══════════════════════════════════════════════════ */

/* Lift */
.hgw-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hgw-hover-lift:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Glow */
.hgw-hover-glow {
    transition: box-shadow 0.3s ease;
}
.hgw-hover-glow:hover {
    box-shadow: 0 0 0 3px #c0872a, 0 8px 28px rgba(192,135,42,0.28);
}

/* Colour Shift */
.hgw-hover-colorshift {
    transition: background 0.35s ease, box-shadow 0.3s ease;
}
.hgw-hover-colorshift:hover {
    background: #f0f7ff;
    box-shadow: 0 6px 22px rgba(26,58,92,0.12);
}

/* Tilt — handled via JS (mousemove), CSS provides perspective base */
.hgw-hover-tilt {
    transform-style: preserve-3d;
    transition: transform 0.12s ease;
}

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

/* Large tablets / smaller desktops */
@media screen and (max-width: 1280px) {
    .hgw-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .hgw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets */
@media screen and (max-width: 900px) {
    .hgw-cols-5,
    .hgw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media screen and (max-width: 580px) {
    .hgw-cols-5,
    .hgw-cols-4 { grid-template-columns: 1fr; }

    .hgw-post-title { font-size: 15px; }
    .hgw-body { padding: 12px; }
}
