/* ============================================================
   Haitian Corner — Custom EasyBlog Theme
   3-Column Grid + Featured Slider
   ============================================================ */
:root {
    --hc-blue:   #003F87;
    --hc-red:    #D4181C;
    --hc-gold:   #FFD700;
    --hc-dark:   #111111;
    --hc-gray:   #f5f5f5;
    --hc-border: #e5e5e5;
    --hc-text:   #1a1a1a;
    --hc-muted:  #6b6b6b;
    --hc-white:  #ffffff;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Blog wrapper ── */
.eb-blog-wrap {
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hc-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================================
   FEATURED SLIDER
   ============================================================ */
.hc-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.hc-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hc-slider__slide {
    min-width: 100%;
    height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 40px 48px;
    position: relative;
    background: linear-gradient(135deg, var(--hc-blue) 0%, var(--hc-red) 100%);
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
}
.hc-slider__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.hc-slider__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hc-slider__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.hc-slider__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hc-gold);
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hc-slider__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hc-slider__meta {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    display: flex;
    gap: 12px;
    align-items: center;
}
.hc-slider__meta span { display: flex; align-items: center; gap: 4px; }
.hc-slider__readmore {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--hc-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s;
}
.hc-slider__readmore:hover { background: var(--hc-blue); color: #fff; }

/* Dots */
.hc-slider__dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.hc-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.hc-slider__dot.is-active {
    background: var(--hc-gold);
    width: 24px;
    border-radius: 4px;
}

/* Arrows */
.hc-slider__prev,
.hc-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hc-slider__prev { left: 16px; }
.hc-slider__next { right: 16px; }
.hc-slider__prev:hover,
.hc-slider__next:hover { background: var(--hc-red); }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.hc-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hc-blue);
    border-left: 3px solid var(--hc-red);
    padding-left: 10px;
    margin-bottom: 20px;
}

/* ============================================================
   3-COLUMN GRID
   ============================================================ */
.hc-grid {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-columns: 1fr 24px 1fr 24px 1fr;
    gap: 24px;
    margin-bottom: 40px;
    -webkit-align-content: start;
    align-content: start;
}

@media (max-width: 900px) {
    .hc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hc-grid { grid-template-columns: 1fr; }
    .hc-slider__slide { height: 280px; padding: 24px; }
    .hc-slider__title { font-size: 20px; }
}

/* ── Card ── */
.hc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hc-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.hc-card:hover {
    box-shadow: 0 8px 32px rgba(0,63,135,0.14);
    transform: translateY(-3px);
}

/* Card image */
.hc-card__img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--hc-blue), var(--hc-red));
}
.hc-card__img-placeholder {
    width: 100%;
    height: 185px;
    background: linear-gradient(135deg, var(--hc-blue) 0%, var(--hc-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 40px;
}

/* Card body */
.hc-card__body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hc-card__cat {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hc-red);
    margin-bottom: 8px;
}
.hc-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hc-text);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}
.hc-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.hc-card__title a:hover { color: var(--hc-blue); }
.hc-card__excerpt {
    font-size: 13px;
    color: var(--hc-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hc-border);
    padding-top: 12px;
    margin-top: auto;
}
.hc-card__meta {
    font-size: 11px;
    color: var(--hc-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.hc-card__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hc-border);
}
.hc-card__readmore {
    font-size: 11px;
    font-weight: 700;
    color: var(--hc-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.hc-card__readmore:hover { color: var(--hc-red); }

/* ============================================================
   PAGINATION
   ============================================================ */
.hc-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 40px;
}
.hc-pagination a,
.hc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--hc-border);
    color: var(--hc-text);
    background: #fff;
    transition: all 0.2s;
}
.hc-pagination a:hover { background: var(--hc-blue); color: #fff; border-color: var(--hc-blue); }
.hc-pagination .active { background: var(--hc-blue); color: #fff; border-color: var(--hc-blue); }

/* ============================================================
   ENTRY / SINGLE POST
   ============================================================ */
.hc-entry {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 40px;
}
.hc-entry__header { margin-bottom: 24px; }
.hc-entry__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hc-red);
    margin-bottom: 10px;
}
.hc-entry__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--hc-text);
    margin-bottom: 16px;
}
.hc-entry__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--hc-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hc-border);
}
.hc-entry__cover {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    object-fit: cover;
    max-height: 480px;
}
.hc-entry__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hc-text);
}
.hc-entry__content h2,
.hc-entry__content h3 { font-weight: 700; margin: 28px 0 12px; color: var(--hc-blue); }
.hc-entry__content p { margin-bottom: 18px; }
.hc-entry__content a { color: var(--hc-blue); }
.hc-entry__content img { max-width: 100%; border-radius: 8px; }

/* Hide X close button and external link warning */
.eb-external-url-warning,
.eb-external-url,
[data-eb-external-url-warning],
.eb-disclaimer,
a[href="javascript:void(0)"].eb-close { display: none !important; }

/* Hide the X at top of page */
.eb-content > a:first-child,
a.eb-close-btn { display: none !important; }

/* ── Fix wireframe items inside our grid ── */
/* Hide X close button */
.hc-grid .fdi.fa.fa-times,
.hc-grid .eb-post-admin,
.hc-grid [data-eb-post-admin] { display: none !important; }

/* Hide "By accepting" external link warning */
.eb-external-link-overlay,
.eb-external-link-warning,
[data-eb-external-link],
.eb-post-listing__item .eb-disclaimer { display: none !important; }

/* Make wireframe post items look like our cards */
.hc-grid .eb-post-listing__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hc-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s, transform 0.25s;
}
.hc-grid .eb-post-listing__item:hover {
    box-shadow: 0 8px 32px rgba(0,63,135,0.14);
    transform: translateY(-3px);
}

/* Show cover image */
.hc-grid .eb-post-image { display: block !important; width: 100% !important; }
.hc-grid .eb-post-image img { width: 100% !important; height: 185px !important; object-fit: cover !important; }

/* Hide ugly wireframe elements */
.hc-grid .eb-post-nickel { padding: 0 !important; }
.hc-grid .eb-post-top { padding: 12px 16px 0 !important; }
.hc-grid .eb-post-content { padding: 0 16px 16px !important; }

/* ── Hide external link popup & X button ── */
.eb-image-popup,
.eb-image-popup-header,
[data-eb-external-link-overlay],
.eb-external-link-overlay { display: none !important; }

/* Hide X close button that shows above slider */
.eb-content > a:first-of-type,
a[onclick*="close"],
.eb-post-admin { display: none !important; }

/* Show post images in grid cards */
.hc-grid .eb-post-image { display: block !important; }
.hc-grid .eb-post-image a img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ── Hide X (image popup close) ── */
.eb-image-popup { display: none !important; }

/* ── Hide GDPR/external link warning ── */
.gdpr-notice-container,
.gdpr-notice-container__content,
[data-gdpr-template-agree],
[data-eb-external-link-overlay] { display: none !important; }

/* ── Show post images in grid cards ── */
.hc-grid .eb-post-image { display: block !important; }
.hc-grid .eb-post-image img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px 12px 0 0 !important;
}

/* ── Hide image popup X button ── */
.eb-image-popup { display: none !important; visibility: hidden !important; }

/* ── Hide GDPR external link warning ── */
.gdpr-notice-container { display: none !important; }

/* ── Show post cover images in grid ── */
.hc-grid .eb-post-image { display: block !important; }
.hc-grid .eb-post-image img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px 12px 0 0 !important;
}

/* ── Hide image popup X button ── */
.eb-image-popup { display: none !important; visibility: hidden !important; }

/* ── Hide GDPR external link warning ── */
.gdpr-notice-container { display: none !important; }

/* ── Show post cover images in grid ── */
.hc-grid .eb-post-image { display: block !important; }
.hc-grid .eb-post-image img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Hide reading progress bar (black bar) */
.eb-reading-progress,
.eb-progress-bar,
[data-eb-reading-progress] { display: none !important; }

/* Show post images in grid - eb-post-simple__image is the image link */
.hc-grid .eb-post-simple__image {
    display: block !important;
    width: 100% !important;
    height: 185px !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}
.hc-grid .eb-post-simple__image img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    display: block !important;
}
/* Hide the bookmark label inside image link */
.hc-grid .eb-post-simple__label { display: none !important; }

/* Hide fixed footer bar on blog pages */


/* Fix card grid height - equal height cards */
.hc-grid { align-items: start; }
.hc-grid .eb-post-listing__item { height: auto; }
.hc-grid .eb-post-head { padding: 8px 14px 4px !important; }
.hc-grid .eb-post-title { font-size: 14px !important; font-weight: 700 !important; line-height: 1.4 !important; margin: 0 0 4px !important; }
.hc-grid .eb-post-body { padding: 0 14px !important; font-size: 13px !important; color: #555 !important; }
.hc-grid .eb-post-body p { margin: 0 0 6px !important; }
.hc-grid .eb-post-more { padding: 4px 14px 8px !important; }
.hc-grid .eb-post-actions { padding: 6px 14px !important; border-top: 1px solid #e5e5e5 !important; font-size: 11px !important; }

/* ── Entry (blog reading) page fixes ── */
.eb-view-entry .eb-post-simple__thumb { display: none !important; }
.eb-view-entry .eb-image-popup { display: none !important; }
.eb-view-entry .eb-image-popup-close-button { display: none !important; }

/* ── Equal height cards ── */
.hc-grid { align-items: stretch; }
.hc-grid .eb-post-listing__item { display: flex; flex-direction: column; }
.hc-grid .eb-post-content { flex: 1; display: flex; flex-direction: column; }
.hc-grid .eb-post-body { flex: 1; }

/* ── Cosmetic fixes: equal height cards, bigger images, better spacing ── */
.hc-grid{align-items:stretch!important;gap:20px!important;}
.hc-grid .eb-post-listing__item{display:flex!important;flex-direction:column!important;}
.hc-grid .eb-post-content{flex:1!important;display:flex!important;flex-direction:column!important;}
.hc-grid .eb-post-body{flex:1!important;padding:0 16px 8px!important;font-size:13px!important;line-height:1.6!important;}
.hc-grid .hc-thumb-wrap{height:210px!important;}
.hc-grid .hc-thumb-wrap .eb-post-simple__image{height:210px!important;}
.hc-grid .hc-thumb-wrap .o-aspect-ratio{height:210px!important;}
.hc-grid .hc-card-title{padding:14px 16px 6px!important;font-size:15px!important;line-height:1.5!important;}
.hc-grid .hc-author-bar{padding:6px 16px 8px!important;font-size:12px!important;}
.hc-grid .eb-post-more{padding:4px 16px 12px!important;}
.hc-grid .eb-post-more a{color:#003F87!important;font-weight:600!important;}
.hc-grid .eb-post-actions{padding:8px 16px!important;}

/* Safari mobile grid fix */
@supports (-webkit-touch-callout: none) {
    .hc-grid {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    .hc-grid .eb-post-listing__item {
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
        width: calc(33.333% - 12px) !important;
        min-width: 280px !important;
    }
}

/* Mobile - single column on small screens */
@media (max-width: 600px) {
    .hc-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .hc-grid .eb-post-listing__item {
        width: 100% !important;
    }
}

/* Fix Safari grid - ensure eb-post-listing doesn't shrink grid */
.eb-post-listing.is-row { display: block !important; width: 100% !important; }
.eb-post-listing.is-row .hc-grid { width: 100% !important; }
