/* --- General Layout --- */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
    --blog-bg: #FFFFFF;
    --blog-light: #F8FAFC;
    --blog-border: #E2E8F0;
    --blog-text: #1E293B;
    --blog-muted: #64748B;
    --blog-primary: #0030DB; /* Electric Blue */
    --font-main: 'Ubuntu', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--blog-text);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* --- v15 Fixed Syntax Error & Compact Typography --- */
.blog-hero-section {
    padding: 50px 0; /* User's manual update */
    background: #FFFFFF;
}

.hero-top {
    margin-bottom: 60px;
    text-align: left;
}

.hero-top h1 {
    font-size: 22px !important; /* Overriding global !important */
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 12px;
    letter-spacing: -1.2px;
}



.hero-top p {
    font-size: 16px !important;
    color: var(--blog-muted);
}

.hero-grid-2-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-section-title {
    font-size: 30px !important;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Latest Post Card */
.latest-card {
    background: #fff;
    cursor: pointer;
    width: 100%;
}

.latest-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--blog-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.latest-card:hover .latest-image img {
    transform: scale(1.05); /* Zoom on hover */
}

.latest-content h3 {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 12px;
    line-height: 1.25;
}

.latest-meta {
    display: flex;
    gap: 16px;
    color: var(--blog-muted);
    font-size: 14px !important;
}

/* Editor's Picks Cards */
#editor-picks-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.editor-pick-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    cursor: pointer;
    align-items: center;
}

.pick-image {
    width: 100%;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--blog-light);
}

.pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.editor-pick-card:hover .pick-image img {
    transform: scale(1.08); /* Zoom on hover */
}

.pick-content h4 {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-content p {
    font-size: 13px !important;
    color: var(--blog-muted);
    margin-bottom: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-meta {
    font-size: 12px !important;
    color: var(--blog-muted);
    display: flex;
    gap: 12px;
}

/* Category Filters Section */
.blog-filters-section {
    padding: 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    
}

.filter-tabs-minimal {
    display: flex;
    gap: 32px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 16px !important;
    font-weight: 600;
    color: var(--blog-muted);
    cursor: pointer;
    padding: 20px 0;
    position: relative;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--blog-primary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blog-primary);
}

/* Blog Grid section */
.blog-grid-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.text-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--blog-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.text-card:hover .card-image img {
    transform: scale(1.06); /* Zoom on hover */
}

.card-category {
    font-size: 12px !important;
    font-weight: 700;
    color: var(--blog-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-card h3 {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.text-card p {
    font-size: 15px !important;
    color: var(--blog-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--blog-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-read-time {
    font-size: 13px !important;
    color: var(--blog-muted);
}

.card-link {
    color: var(--blog-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--blog-border);
    text-decoration: none;
    color: var(--blog-text);
    font-weight: 600;
    transition: all 0.2s;
    font-size: 15px !important;
}

.page-link.active, .page-link:hover {
    background: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
}

.page-link.next {
    width: auto;
    padding: 0 24px;
    gap: 8px;
}

/* Value Strip */
.value-strip {
    background: var(--blog-primary);
    padding: 60px 0;
    color: #fff;
}

.value-strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.value-strip-content p {
    font-size: 20px !important;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.btn-primary-small {
    background: #fff;
    color: var(--blog-primary);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Bottom CTA */
.electric-blue-cta {
    background: #0028b8; /* Richer Electric Blue */
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

.electric-blue-cta h2 {
    font-size: 32px !important;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.2px;
}

.electric-blue-cta p {
    font-size: 18px !important;
    opacity: 0.9;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    background: #fff;
    color: var(--blog-primary);
    padding: 18px 36px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 16px;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 16px 36px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cta-white:hover, .btn-cta-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive Polish */
@media (max-width: 1200px) {
    .container { padding: 0 32px; }
    .hero-grid-2-cols { gap: 40px; }
    .hero-top h1 { font-size: 30px; }
}

@media (max-width: 1024px) {
    .hero-grid-2-cols { 
        grid-template-columns: 1fr; 
        gap: 60px; 
    }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .hero-top { margin-bottom: 60px; }
}

@media (max-width: 768px) {
    .blog-hero-section { padding: 40px 0; }
    .hero-top h1 { font-size: 28px; letter-spacing: -1px; }
    .hero-top p { font-size: 15px; }
    
    .latest-content h3 { font-size: 24px; }
    .blog-grid { grid-template-columns: 1fr; }
    
    .editor-pick-card { 
        grid-template-columns: 100px 1fr; 
        gap: 16px; 
    }
    .pick-image { height: 75px; }
    .pick-content h4 { font-size: 16px; }
    
    .filter-tabs-minimal { 
        overflow-x: auto; 
        padding-bottom: 5px; 
        gap: 24px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn { white-space: nowrap; padding: 16px 0; font-size: 13px; }
    
    .electric-blue-cta h2 { font-size: 32px; letter-spacing: -1px; }
    .btn-cta-white, .btn-cta-outline { 
        width: 100%; 
        margin-right: 0; 
        margin-bottom: 16px; 
        padding: 14px;
        font-size: 16px;
    }
}
