/* ================================================
   BLOG ARCHIVE PAGE - TeroTAM
   Font: Montserrat | Colors: #0C1C44, #FF8214
   ================================================ */

/* ---------- Global Overrides ---------- */
.blog-archive-page,
.blog-archive-page *,
.blog-archive-page *::before,
.blog-archive-page *::after { box-sizing: border-box; }
.blog-archive-page {
    font-family: 'Montserrat', sans-serif;
    max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
    margin-block-start: 0 !important;
    width: 100%; overflow-x: clip;
}
.blog-archive-page section {
    max-width: 100% !important;
    margin-left: 0 !important; margin-right: 0 !important;
}

/* ---------- Container ---------- */
.blog-archive-page .blog-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px; width: 100%;
}

/* ---------- Breadcrumbs ---------- */
.blog-breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 24px; }
.blog-breadcrumbs a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .3s; }
.blog-breadcrumbs a:hover { color: #FF8214; }
.blog-bread-sep { color: rgba(255,255,255,0.4); display: flex; }
.blog-bread-current { color: #FF8214; font-weight: 500; }

/* ================================
   HERO
   ================================ */
.blog-hero {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 60%, #0C1C44 100%);
    padding: 60px 0 0; position: relative; overflow: hidden;
}
.blog-hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,130,20,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,130,20,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.blog-hero-bg-pattern::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    border: 1px solid rgba(255,130,20,0.08); pointer-events: none;
}
.blog-hero .blog-container { position: relative; z-index: 2; }
.blog-hero-title { font-size: 42px; font-weight: 700; color: #fff !important; line-height: 1.2; margin: 0 0 16px 0; }
.blog-hero-title span { color: #FF8214; }
.blog-hero-desc { font-size: 16px; color: rgba(255,255,255,0.75) !important; max-width: 680px; line-height: 1.7; margin: 0; }

/* Stats */
.blog-hero-stats-wrapper {
    margin-top: 40px; background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px); padding: 28px 30px; position: relative; z-index: 2;
}
.blog-hero-stats { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; justify-content: center; }
.blog-stat { display: flex; align-items: center; gap: 14px; }
.blog-stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; background: rgba(255,130,20,0.1); border-radius: 0; flex-shrink: 0;
}
.blog-stat-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.blog-stat-number { font-size: 32px; font-weight: 700; color: #FF8214; line-height: 1; }
.blog-stat-suffix { font-size: 20px; font-weight: 700; color: #FF8214; }
.blog-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; width: 100%; }
.blog-stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.12); }

/* ================================
   FILTER & SEARCH
   ================================ */
.blog-filter-section {
    background: #fff; padding: 28px 0;
    box-shadow: 0 2px 20px rgba(12,28,68,0.06); position: relative; z-index: 10;
}
.blog-filter-bar { display: flex; flex-direction: column; gap: 20px; }
.blog-search-wrapper { position: relative; max-width: 400px; }
.blog-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 2; }
.blog-archive-page .blog-search-input {
    width: 100% !important; padding: 12px 16px 12px 46px !important;
    border: 1px solid #e2e5ea !important; border-radius: 0 !important;
    font-size: 14px !important; font-family: 'Montserrat', sans-serif;
    background: #F8F9FE !important; transition: all .3s; outline: none;
}
.blog-archive-page .blog-search-input:focus {
    border-color: #FF8214 !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,130,20,0.1) !important;
}
.blog-archive-page .blog-search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none !important; border: none !important;
    font-size: 20px; color: #999 !important; cursor: pointer; line-height: 1; padding: 4px;
}
.blog-filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-archive-page .blog-filter-tag {
    padding: 8px 18px !important; border-radius: 0 !important;
    font-size: 13px !important; font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer !important; transition: all .3s !important;
    border: 1px solid #e2e5ea !important; background: #fff !important;
    color: #555 !important; line-height: 1.4 !important;
    display: inline-flex !important; align-items: center !important;
    white-space: nowrap !important;
}
.blog-archive-page .blog-filter-tag:hover {
    border-color: #FF8214 !important; color: #FF8214 !important;
    background: rgba(255,130,20,0.04) !important;
}
.blog-archive-page .blog-filter-tag.active {
    background: #0C1C44 !important; color: #fff !important; border-color: #0C1C44 !important;
}

/* ================================
   MAIN CONTENT AREA
   ================================ */
.blog-main-section { padding: 30px 0 70px; background: #F8F9FE; }
.blog-layout {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 40px; align-items: start;
}

/* Results */
.blog-results-info { margin-bottom: 20px; }
.blog-results-count { font-size: 14px; color: #666; }
.blog-results-count strong { color: #0C1C44; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card {
    background: #fff; border-radius: 0;
    box-shadow: 0 4px 20px rgba(12,28,68,0.04);
    overflow: hidden; transition: all .4s cubic-bezier(.25,.8,.25,1);
    display: flex; flex-direction: column;
    border: 1px solid #e8eaf0;
    opacity: 0; transform: translateY(20px);
}
.blog-card.visible { opacity: 1; transform: translateY(0); }
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(12,28,68,0.1);
    border-color: #FF8214;
}
.blog-card-image-wrapper { position: relative; overflow: hidden; }
.blog-card-image-link { display: block; }
.blog-card-img {
    width: 100% !important; aspect-ratio: 16/10; object-fit: contain; background: #f0f2f5;
    display: block; transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-img-placeholder {
    width: 100%; aspect-ratio: 16/10;
    display: flex; align-items: center; justify-content: center; background: #f0f2f5;
}
.blog-card-overlay {
    position: absolute; inset: 0; background: rgba(12,28,68,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .4s;
}
.blog-card:hover .blog-card-overlay { opacity: 1; }
.blog-card-overlay-text {
    color: #fff; font-size: 14px; font-weight: 600;
    padding: 10px 24px; border: 2px solid #FF8214; border-radius: 0;
    transition: background .3s;
}
.blog-card:hover .blog-card-overlay-text { background: #FF8214; }
.blog-category-badge {
    position: absolute; top: 14px; left: 14px;
    background: #0C1C44; color: #fff !important;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    padding: 5px 14px; border-radius: 0; letter-spacing: 0.5px;
    z-index: 2; text-decoration: none;
}
.blog-card-body {
    padding: 24px 28px 28px;
    display: flex; flex-direction: column; flex: 1;
}
.blog-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #888; margin-bottom: 12px;
}
.blog-card-date { display: flex; align-items: center; gap: 5px; color: #FF8214; font-weight: 500; }
.blog-card-date svg { color: #FF8214; }
.blog-card-separator { color: #ddd; }
.blog-card-author { color: #888; }
.blog-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin: 0 0 10px 0; }
.blog-card-title a { color: #0C1C44 !important; text-decoration: none; transition: color .3s; }
.blog-card-title a:hover { color: #FF8214 !important; }
.blog-card-excerpt { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 18px; flex: 1; }
.blog-read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #FF8214 !important;
    text-decoration: none; transition: gap .3s, color .3s;
}
.blog-read-more:hover { color: #0C1C44 !important; gap: 12px; }

/* ================================
   SIDEBAR
   ================================ */
.blog-sidebar {
    position: -webkit-sticky; position: sticky; top: 30px;
    min-width: 0; align-self: start;
}
.blog-sidebar-widget { margin-bottom: 28px; }
.blog-sidebar-heading {
    font-size: 16px; font-weight: 700; color: #0C1C44;
    margin: 0 0 16px 0; padding-bottom: 10px;
    border-bottom: 2px solid #FF8214;
}

/* Sidebar Search */
.blog-sidebar-search { display: flex; border: 1px solid #e2e5ea; border-radius: 0; overflow: hidden; }
.blog-archive-page .blog-sidebar-search-input {
    flex: 1; padding: 10px 14px !important; border: none !important;
    font-size: 13px !important; font-family: 'Montserrat', sans-serif;
    outline: none; background: #F8F9FE !important;
}
.blog-archive-page .blog-sidebar-search-btn {
    padding: 10px 14px !important; background: #0C1C44 !important;
    border: none !important; color: #fff !important; cursor: pointer;
    display: flex !important; align-items: center !important;
    transition: background .3s;
}
.blog-archive-page .blog-sidebar-search-btn:hover { background: #FF8214 !important; }

/* Sidebar CTA */
.blog-sidebar-cta {
    background: linear-gradient(135deg, #0C1C44, #142952);
    border-radius: 0; padding: 32px 24px;
    text-align: center; margin-bottom: 28px;
}
.blog-sidebar-cta-icon { margin-bottom: 16px; }
.blog-sidebar-cta h3 { font-size: 18px; font-weight: 700; color: #fff !important; margin: 0 0 10px 0; line-height: 1.3; }
.blog-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0 0 20px 0; line-height: 1.6; }

/* Sidebar Categories */
.blog-sidebar-categories { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.blog-sidebar-categories li { border-bottom: 1px solid #f0f0f0; }
.blog-sidebar-categories li:last-child { border-bottom: none; }
.blog-sidebar-categories a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; font-size: 13px; color: #555; text-decoration: none;
    transition: all .3s;
}
.blog-sidebar-categories a:hover { color: #FF8214; padding-left: 8px; }
.blog-sidebar-categories a.active { color: #FF8214; font-weight: 600; }
.blog-cat-count {
    font-size: 11px; background: #F8F9FE; color: #888;
    padding: 2px 8px; border-radius: 0; min-width: 28px;
    text-align: center;
}

/* Sidebar Popular Posts */
.blog-sidebar-popular { display: flex; flex-direction: column; gap: 12px; }
.blog-popular-item {
    display: flex; gap: 14px; text-decoration: none;
    padding: 12px; border: 1px solid #f0f0f0;
    transition: all .3s;
}
.blog-popular-item:hover {
    border-color: #FF8214;
    box-shadow: 0 4px 12px rgba(12,28,68,0.06);
    transform: translateX(4px);
}
.blog-popular-rank {
    font-size: 24px; font-weight: 700; color: #FF8214;
    line-height: 1; min-width: 32px; flex-shrink: 0;
    opacity: 0.4;
}
.blog-popular-info { min-width: 0; flex: 1; }
.blog-popular-title {
    font-size: 13px; font-weight: 600; color: #0C1C44;
    line-height: 1.4; margin: 0 0 4px 0; transition: color .3s;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.blog-popular-item:hover .blog-popular-title { color: #FF8214; }
.blog-popular-date { font-size: 11px; color: #999; }

/* ================================
   BUTTONS
   ================================ */
.blog-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 0;
    font-size: 14px; font-weight: 600; text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: all .3s; cursor: pointer; border: 2px solid transparent;
}
.blog-archive-page .blog-btn-orange,
.blog-archive-page .blog-btn-orange:link,
.blog-archive-page .blog-btn-orange:visited {
    background: #FF8214 !important; color: #fff !important; border-color: #FF8214 !important;
}
.blog-archive-page .blog-btn-orange:hover {
    background: #e6720e !important; border-color: #e6720e !important; color: #fff !important;
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,130,20,0.3);
}
.blog-btn-full { width: 100%; justify-content: center; }
.blog-btn-primary { background: #0C1C44; color: #fff; border-color: #0C1C44; }
.blog-btn-primary:hover { background: #142952; transform: translateY(-2px); }
.blog-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.blog-btn-outline:hover { border-color: #FF8214; color: #FF8214; }

/* ================================
   PAGINATION
   ================================ */
.blog-pagination { margin-top: 50px; display: flex; justify-content: center; }
.blog-pagination .page-numbers { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.blog-pagination .page-numbers li { display: flex; }
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 6px;
    border-radius: 0; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all .3s;
    border: 1px solid #e2e5ea; color: #555; background: #fff;
}
.blog-pagination .page-numbers a:hover {
    border-color: #FF8214; color: #FF8214; background: rgba(255,130,20,0.04);
}
.blog-pagination .page-numbers .current {
    background: #0C1C44; color: #fff; border-color: #0C1C44;
}

/* No Results */
.blog-no-results { text-align: center; padding: 80px 20px; }
.blog-no-results-icon { margin-bottom: 20px; }
.blog-no-results h3 { font-size: 22px; color: #0C1C44; margin: 0 0 8px 0; }
.blog-no-results p { color: #666; margin: 0 0 24px 0; }

/* ================================
   CTA SECTION
   ================================ */
.blog-cta-section {
    background: linear-gradient(135deg, #0C1C44 0%, #142952 100%);
    padding: 80px 0; position: relative; overflow: hidden; text-align: center;
}
.blog-cta-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,130,20,0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(255,130,20,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.blog-cta-content { position: relative; z-index: 2; }
.blog-cta-title { font-size: 34px; font-weight: 700; color: #fff !important; margin: 0 0 14px 0; }
.blog-cta-title span { color: #FF8214; }
.blog-cta-desc { font-size: 15px; color: rgba(255,255,255,0.7) !important; max-width: 560px; margin: 0 auto 30px; line-height: 1.7; }
.blog-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .blog-hero-title { font-size: 34px; }
    .blog-hero-stats { gap: 30px; }
    .blog-stat-number { font-size: 26px; }
    .blog-layout { grid-template-columns: 1fr 280px; gap: 30px; }
}

@media (max-width: 768px) {
    .blog-hero { padding: 40px 0 0; }
    .blog-hero-title { font-size: 28px; }
    .blog-hero-desc { font-size: 14px; }
    .blog-hero-stats { flex-wrap: wrap; gap: 20px; }
    .blog-hero-stats-wrapper { padding: 20px; }
    .blog-stat-divider { display: none; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .blog-grid { grid-template-columns: 1fr; max-width: 500px; }
    .blog-filter-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .blog-search-wrapper { max-width: 100%; width: 100%; }
    .blog-cta-title { font-size: 26px; }
    .blog-cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .blog-hero-stats { flex-direction: column; gap: 16px; }
    .blog-stat { width: 100%; }
    .blog-hero-title { font-size: 24px; }
    .blog-card-body { padding: 20px; }
    .blog-card-title { font-size: 16px; }
    .blog-btn { padding: 11px 20px; font-size: 13px; }
}

/* blog-mobile-img-fix */
@media(max-width:767px){.blog-card-img{aspect-ratio:auto!important;object-fit:contain!important;height:auto!important}.blog-card-image-wrapper{overflow:visible!important}}
/* end-blog-mobile-img-fix */

/* blog-mobile-img-fix-v2 */
@media(max-width:767px){.blog-card-img{aspect-ratio:auto !important;object-fit:contain !important;height:auto !important;max-height:250px}.blog-card-image-wrapper{overflow:visible !important}}
