/**
 * Magazine Blog Template Styles
 * FOX Theme Style Layout
 */

/* ==========================================================================
   WRAPPER
   ========================================================================== */
.mbt-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.mbt-wrapper *,
.mbt-wrapper *::before,
.mbt-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.mbt-hero {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mbt-hero-left {
    display: flex;
    flex-direction: column;
}

.mbt-hero-center {
    display: flex;
    flex-direction: column;
}

.mbt-hero-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================================================
   POST CARDS
   ========================================================================== */
.mbt-post {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbt-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Thumbnail */
.mbt-post-thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.mbt-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mbt-post:hover .mbt-post-thumb img {
    transform: scale(1.05);
}

.mbt-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Category */
.mbt-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mbt-post-category a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mbt-post-category a:hover {
    color: #1d4ed8;
}

/* Title */
.mbt-post-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.mbt-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mbt-post-title a:hover {
    color: #2563eb;
}

/* Date */
.mbt-post-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

/* Excerpt */
.mbt-post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* Read More */
.mbt-read-more {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

.mbt-read-more:hover {
    background: #2563eb;
    color: #fff !important;
}

/* ==========================================================================
   POST VARIANTS
   ========================================================================== */

/* FEATURED (center) */
.mbt-post-featured .mbt-post-thumb {
    height: 450px;
}

.mbt-post-featured .mbt-post-content {
    padding: 25px 0;
    text-align: center;
}

.mbt-post-featured .mbt-post-title {
    font-size: 32px;
}

.mbt-post-featured .mbt-post-excerpt {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SIDE (left column) */
.mbt-post-side .mbt-post-thumb {
    height: 220px;
}

.mbt-post-side .mbt-post-content {
    padding: 20px 0;
}

.mbt-post-side .mbt-post-title {
    font-size: 22px;
}

/* SMALL (right column) */
.mbt-post-small {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.mbt-post-small .mbt-post-thumb {
    flex: 0 0 120px;
    height: 100px;
}

.mbt-post-small .mbt-post-content {
    flex: 1;
    padding: 5px 0;
}

.mbt-post-small .mbt-post-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.mbt-post-small .mbt-post-excerpt {
    font-size: 13px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CATEGORY SECTION
   ========================================================================== */
.mbt-category-section {
    margin-bottom: 60px;
}

.mbt-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a1a1a;
}

.mbt-category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid 5 columns */
.mbt-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* GRID posts */
.mbt-post-grid .mbt-post-thumb {
    height: 180px;
    margin-bottom: 15px;
}

.mbt-post-grid .mbt-post-title {
    font-size: 18px;
}

.mbt-post-grid .mbt-post-excerpt {
    font-size: 14px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CATEGORY COLORS
   ========================================================================== */
.mbt-post-category.cat-business a { color: #2563eb; }
.mbt-post-category.cat-marketing a { color: #dc2626; }
.mbt-post-category.cat-technology a { color: #059669; }
.mbt-post-category.cat-opinion a { color: #7c3aed; }
.mbt-post-category.cat-news a { color: #d97706; }
.mbt-post-category.cat-lifestyle a { color: #ec4899; }
.mbt-post-category.cat-finance a { color: #0891b2; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .mbt-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .mbt-hero {
        grid-template-columns: 1fr 1fr;
    }
    
    .mbt-hero-right {
        grid-column: span 2;
        flex-direction: row;
    }
    
    .mbt-hero-right .mbt-post-small {
        flex: 1;
    }
    
    .mbt-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mbt-post-featured .mbt-post-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .mbt-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mbt-hero-right {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .mbt-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mbt-post-featured .mbt-post-thumb {
        height: 300px;
    }
    
    .mbt-post-featured .mbt-post-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .mbt-wrapper {
        padding: 20px 15px;
    }
    
    .mbt-category-grid {
        grid-template-columns: 1fr;
    }
    
    .mbt-post-small {
        flex-direction: column;
    }
    
    .mbt-post-small .mbt-post-thumb {
        flex: none;
        height: 180px;
    }
    
    .mbt-post-featured .mbt-post-thumb {
        height: 250px;
    }
}
