/* ================================================
   MCA Blog - blog.css
   Integrat cu tema Porto - mcagrup.ro
   Culoare principala: #ed6d20
   ================================================ */

/* ---- Continut articol ---- */
.blog-post-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EDEDED;
    font-family: inherit;
}
.blog-post-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #444;
    margin: 20px 0 8px;
}
.blog-post-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #555;
}
.blog-post-content ul,
.blog-post-content ol {
    margin: 10px 0 18px 22px;
    line-height: 1.8;
    color: #555;
}
.blog-post-content li { margin-bottom: 5px; }
.blog-post-content strong { color: #333; }
.blog-post-content a { color: #ed6d20; }
.blog-post-content a:hover { color: #c5560f; text-decoration: underline; }

/* ---- Badge categorie ---- */
.blog-badge-cat {
    display: inline-block;
    background: #ed6d20;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---- Titlu articol ---- */
.blog-article-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
}

/* ---- Meta ---- */
.blog-article-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EDEDED;
}
.blog-tip-badge {
    background: #f5f5f5;
    padding: 2px 7px;
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
}

/* ---- Imagine hero ---- */
.blog-hero-img {
    margin: 0 0 28px;
    overflow: hidden;
}
.blog-hero-img img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

/* ---- Etichete ---- */
.blog-tags-wrap {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #EDEDED;
}
.blog-tag {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #EDEDED;
    padding: 3px 10px;
    font-size: 12px;
    margin: 3px 3px 3px 0;
    color: #666;
}

/* ---- Articole inrudite ---- */
.blog-inrudite h4 {
    border-bottom: 2px solid #ed6d20;
    padding-bottom: 8px;
    margin: 36px 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.blog-inrudite-img {
    height: 130px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 8px;
}
.blog-inrudite h5 {
    font-size: 13px;
    margin: 0 0 4px;
}
.blog-inrudite h5 a { color: #333; }
.blog-inrudite h5 a:hover { color: #ed6d20; }

/* ---- Sidebar ---- */
.blog-sidebar-widget {
    border: 1px solid #EDEDED;
    margin-bottom: 24px;
}
.blog-sidebar-title {
    background: #f5f5f5;
    border-bottom: 2px solid #ed6d20;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #333;
    margin: 0;
}
.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-sidebar-list li {
    border-bottom: 1px solid #EDEDED;
    padding: 10px 15px;
}
.blog-sidebar-list li:last-child { border-bottom: none; }
.blog-sidebar-list a {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}
.blog-sidebar-list a:hover { color: #ed6d20; }
.blog-sidebar-list small { color: #aaa; font-size: 11px; }
.blog-sidebar-search {
    padding: 14px 15px;
}
.blog-sidebar-produse {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
}
.blog-sidebar-produse li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.blog-sidebar-produse li:last-child { border-bottom: none; }
.blog-sidebar-produse a { color: #444; }
.blog-sidebar-produse a:hover { color: #ed6d20; }
.blog-sidebar-cta {
    display: block;
    background: #ed6d20;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    margin: 12px 15px 15px;
    text-decoration: none !important;
}
.blog-sidebar-cta:hover { background: #c5560f; }

/* ---- Breadcrumb ---- */
.blog-breadcrumb {
    list-style: none;
    background: none;
    padding: 0;
    margin-bottom: 18px;
    font-size: 13px;
    color: #999;
}
.blog-breadcrumb li { display: inline; }
.blog-breadcrumb li + li::before { content: " / "; color: #ccc; padding: 0 4px; }
.blog-breadcrumb a { color: #ed6d20; }
.blog-breadcrumb .active { color: #999; }

/* ---- Blog listing ---- */
.blog-listing-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EDEDED;
}
.blog-listing-header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 700;
}
.blog-listing-header p { color: #888; font-size: 14px; margin: 0; }

/* ---- Filtre categorii ---- */
.blog-cat-filter {
    margin-bottom: 24px;
}
.blog-cat-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    border: 1px solid #ddd;
    color: #555;
    margin: 3px;
    text-decoration: none;
    transition: all .15s;
}
.blog-cat-btn:hover,
.blog-cat-btn.activ {
    background: #ed6d20;
    border-color: #ed6d20;
    color: #fff !important;
    text-decoration: none;
}

/* ---- Card articol listing ---- */
.blog-card {
    border: 1px solid #EDEDED;
    background: #fff;
    margin-bottom: 28px;
    transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.blog-card-img-wrap {
    overflow: hidden;
    height: 190px;
}
.blog-card-img-wrap img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .3s;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.03); }
.blog-card-placeholder {
    width: 100%;
    height: 190px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}
.blog-card-body { padding: 16px; }
.blog-card-meta { margin-bottom: 8px; }
.blog-card-cat-badge {
    background: #ed6d20;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.blog-card-date { color: #aaa; font-size: 11px; margin-left: 8px; }
.blog-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 8px;
    color: #333;
}
.blog-card-title a { color: #333; }
.blog-card-title a:hover { color: #ed6d20; }
.blog-card-excerpt { font-size: 13px; color: #888; margin-bottom: 12px; line-height: 1.5; }
.blog-card-link { color: #ed6d20; font-size: 13px; font-weight: 600; }
.blog-card-link:hover { color: #c5560f; }

/* ---- Paginare ---- */
.pagination > .active > a,
.pagination > .active > span {
    background-color: #ed6d20 !important;
    border-color: #ed6d20 !important;
}
.pagination > li > a { color: #ed6d20; }
.pagination > li > a:hover { color: #c5560f; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .blog-article-title { font-size: 20px; }
    .blog-post-content h2 { font-size: 17px; }
    .blog-cta-box { flex-direction: column; text-align: center; padding: 22px 18px; }
    .blog-cta-box-btns { justify-content: center; }
}

/* Fix CTA button overflow */
.call-to-action.call-to-action-primary {
    border-radius: 0;
}
.call-to-action.call-to-action-primary .call-to-action-btn {
    padding-right: 20px;
    flex-shrink: 0;
}
.call-to-action.call-to-action-primary .btn-default {
    white-space: nowrap;
    min-width: 180px;
}

/* Fix CTA full width - iese din coloana col-md-8 */
.blog-article-wrap .call-to-action.call-to-action-primary {
    margin-left: -15px;
    margin-right: -15px;
    overflow: visible;
}

/* Fix call-to-action in col-md-8 - buton mai lat */
.blog-post .call-to-action .call-to-action-btn,
article .call-to-action .call-to-action-btn {
    width: 30%;
    right: 15px;
}
article .call-to-action .call-to-action-content {
    width: 65%;
}

/* Call-to-action-primary - culoare MCA */
.call-to-action.call-to-action-primary {
    background: #ed6d20;
}
.call-to-action.call-to-action-primary h3,
.call-to-action.call-to-action-primary p {
    color: #fff;
}

/* Fix culori listing - inlocuire albastru si rosu cu #ed6d20 */
.blog-listing-header h1 { color: #333 !important; }
.blog-card-title a { color: #333 !important; }
.blog-card-title a:hover { color: #ed6d20 !important; }
.blog-card-cat-badge { background: #ed6d20 !important; }
.blog-cat-btn.activ,
.blog-cat-btn:first-child { background: #ed6d20 !important; border-color: #ed6d20 !important; color: #fff !important; }
