/* Layout skins and visual theme extensions */

/* --- Header layouts --- */
.header-centered .menu-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-centered .navbar-wrap.main-menu {
    width: 100%;
    justify-content: center;
}

.header-centered .navbar-wrap ul {
    justify-content: center;
}

.header-centered .custom-logo {
    line-height: 1.2;
    padding: 20px 0 10px;
}

.header-left .menu-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* --- Card shadows --- */
.card-shadow-soft .latest-post-item,
.card-shadow-soft .weekly-post-item,
.card-shadow-soft .banner-post-two,
.card-shadow-soft .banner-post-thumb-two,
.card-shadow-soft .weekly-post-thumb,
.card-shadow-medium .latest-post-item,
.card-shadow-medium .weekly-post-item,
.card-shadow-medium .banner-post-two,
.card-shadow-medium .banner-post-thumb-two,
.card-shadow-medium .weekly-post-thumb {
    box-shadow: var(--card-shadow);
}

.card-shadow-soft .featured-post-content,
.card-shadow-medium .featured-post-content {
    background: var(--color-surface);
}

/* --- Image aspect ratio --- */
.ratio-thumb img,
.featured-post-thumb img,
.weekly-post-thumb img,
.banner-post-thumb-two img,
.blog-details-thumb img,
.horizontal-post-thumb img {
    aspect-ratio: var(--image-ratio);
    object-fit: cover;
}

/* --- Skin: Magazine (v1) --- */
.skin-magazine .banner-post-two,
.skin-magazine .weekly-post-item.weekly-post-two {
    transition: transform 0.2s ease;
}

/* --- Skin: Cards Grid (v2 home) --- */
.skin-grid .latest-post-area {
    padding-top: 50px;
}

.skin-grid .latest-post-item.small-post {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skin-grid .latest-post-item.small-post:hover {
    transform: translateY(-4px);
}

.skin-grid .latest-post-item.small-post .featured-post-content {
    padding: 20px;
}

.skin-grid .latest-post-item.small-post .featured-post-thumb {
    border-radius: 0;
}

.skin-grid .weekly-post-grid .weekly-post-item {
    flex-direction: row;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    gap: 0;
}

.skin-grid .weekly-post-grid .weekly-post-thumb {
    width: 180px;
    flex-shrink: 0;
    border-radius: 0;
}

.skin-grid .weekly-post-grid .weekly-post-content {
    padding: 20px 24px;
}

.skin-grid .weekly-post-grid .weekly-post-thumb img {
    height: 100%;
    min-height: 140px;
    max-height: none;
}

/* --- Newsletter variants --- */
.form-main.newsletter-filled {
    background: var(--color-primary);
    color: var(--color-header-text);
    padding: 40px 30px;
    border-radius: var(--radius-card);
    max-width: 640px;
}

.form-main.newsletter-filled h4,
.form-main.newsletter-filled span,
.form-main.newsletter-filled label {
    color: var(--color-header-text);
}

.form-main.newsletter-filled form button {
    background: var(--color-surface);
    color: var(--color-primary);
}

.form-main.newsletter-light {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
}

/* --- Article v2 --- */
.article-v2-hero .blog-details-thumb {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 30px;
}

.article-v2-hero .blog-details-thumb img {
    width: 100%;
    max-height: 480px;
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-sidebar .sidebar-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary);
}

.article-sidebar .horizontal-post-two {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    flex-direction: row;
}

.article-sidebar .horizontal-post-two .horizontal-post-thumb {
    width: 90px;
    border-radius: calc(var(--radius-card) / 2);
    overflow: hidden;
}

.article-sidebar .horizontal-post-two .horizontal-post-content .post-title {
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .skin-grid .weekly-post-grid .weekly-post-item {
        flex-direction: column;
    }

    .skin-grid .weekly-post-grid .weekly-post-thumb {
        width: 100%;
    }

    .article-sidebar {
        position: static;
        margin-top: 40px;
    }
}
