/* Ghost CMS overrides and additions for Foodeiblog theme */

/* =============================================
   FONT OVERRIDE — Be Vietnam Pro + Lora
   ============================================= */

/* Body & all text → Be Vietnam Pro (designed for Vietnamese) */
body,
p, li, span, a, input, button, textarea,
.categories__post__item__text p,
.sidebar__item ul li a,
.post__widget li,
.single-post__top__text p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
}

/* Headings → Lora (elegant serif) */
h1, h2, h3, h4, h5, h6,
.categories__post__item__text h3,
.single-post__title__text h4,
.sidebar__feature__item__list__single h5,
.hero__inside__item--text h4,
.hero__inside__item--text h5 {
    font-family: 'Lora', serif !important;
    font-weight: 700;
}

/* Logo title */
.header__logo--text,
.footer__logo--text {
    font-family: 'Lora', serif !important;
}

/* Navigation — remove uppercase, use Be Vietnam Pro */
.header__menu ul li a {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    font-size: 14px;
}

/* Post labels / badges */
.post__label,
.post__label--large li,
ul.label li {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}

/* Sidebar titles */
.sidebar__item__title h6 {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: 0.05em;
}

/* Buttons */
.primary-btn, .site-btn {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0.02em;
}

/* Hero meta date */
.hero__inside__item--meta span,
.hero__inside__item--meta p,
.post__meta h4,
.post__meta span,
.single-post__title__meta h2,
.single-post__title__meta span {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Mobile hamburger menu */
.humberger__menu__nav ul li a {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    text-transform: none !important;
}


/* Text logo fallback when no image logo is set */
.header__logo--text {
    font-family: 'Unna', serif;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    margin: 0;
    padding: 10px 0;
    display: inline-block;
}

.footer__logo--text {
    font-family: 'Unna', serif;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.humberger__menu__title-text {
    font-family: 'Unna', serif;
    font-size: 22px;
    color: #1a1a1a;
}

/* Ghost Koenig required CSS classes (GS050) */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 0 auto;
    transform: translateX(calc(50% - 50vw + (50vw - 50%)));
    max-width: 1200px;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

/* Contain wide/full within post column on smaller screens */
@media (max-width: 768px) {
    .kg-width-wide,
    .kg-width-full {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }
}

/* Ghost Koenig card styles */
.single-post__top__text figure {
    margin: 20px 0;
}

.single-post__top__text figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post__top__text figure figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Responsive YouTube/video embeds */
.kg-embed-card,
.kg-video-card {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.kg-embed-card iframe,
.kg-embed-card video,
.kg-video-card iframe,
.kg-video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ghost image card */
.kg-image-card {
    margin: 20px 0;
}

.kg-image-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Ghost gallery card */
.kg-gallery-card {
    margin: 20px 0;
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-gallery-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.kg-gallery-image {
    flex: 1;
    overflow: hidden;
}

.kg-gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* Ghost bookmark card */
.kg-bookmark-card {
    margin: 20px 0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
}

.kg-bookmark-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.kg-bookmark-description {
    color: #777;
    font-size: 14px;
}

/* Post content typography */
.single-post__top__text h1,
.single-post__top__text h2,
.single-post__top__text h3,
.single-post__top__text h4,
.single-post__top__text h5,
.single-post__top__text h6 {
    font-family: 'Unna', serif;
    color: #1a1a1a;
    margin: 25px 0 15px;
}

.single-post__top__text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.single-post__top__text ul,
.single-post__top__text ol {
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.single-post__top__text blockquote {
    border-left: 4px solid #e02d37;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.single-post__top__text a {
    color: #e02d37;
    text-decoration: underline;
}

/* Ghost pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e8e8e8;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .page-number--current {
    background: #e02d37;
    color: #fff;
    border-color: #e02d37;
}

/* Categories strip hover */
.categories__item {
    cursor: pointer;
}

/* Header logo alignment */
.header__logo {
    text-align: center;
    padding: 15px 0;
}

/* Fix: make post cover images taller for better impact */
.categories__post__item__pic {
    min-height: 240px;
}

.categories__post__item__pic.small__item {
    min-height: 180px;
}

/* Responsive hero text */
@media (max-width: 768px) {
    .hero__inside__item--text h4 {
        font-size: 18px;
    }
    .header__logo--text {
        font-size: 22px;
    }
}
