/* =============================================
   COOLSIGN BLOG - PREMIUM DESIGN
   ============================================= */

/* --- BLOG HEADER --- */
.blog-hero {
    background: linear-gradient(135deg, #0052a2 0%, #003d7a 50%, #001f3f 100%);
    padding: 140px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,153,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.blog-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero .breadcrumb-blog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.blog-hero .breadcrumb-blog a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-hero .breadcrumb-blog a:hover {
    color: #fff;
}

.blog-hero .breadcrumb-blog .sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
}

.blog-hero .breadcrumb-blog .current {
    color: rgba(255,255,255,0.4);
}

/* --- BLOG GRID --- */
.blog-section {
    padding: 70px 0;
    background: #f9fafb;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 2rem; }
}

/* --- BLOG CARD --- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #0066CC;
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
}

.blog-card-img .blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066CC, #004C99);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img .blog-placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
}

.blog-card-img .blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0066CC;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.blog-card-meta i {
    margin-right: 4px;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card:hover h3 a {
    color: #0066CC;
}

.blog-card-body p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
}

.blog-read-more {
    color: #0066CC;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 10px;
    color: #004C99;
}

/* --- BLOG EMPTY STATE --- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e0ecf8, #d0e2f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.blog-empty-icon i {
    font-size: 2.5rem;
    color: #0066CC;
}

.blog-empty h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.blog-empty p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* --- BLOG DETAIL --- */
.blog-detail-section {
    padding: 60px 0;
    background: #fff;
}

.blog-detail-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.blog-detail-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.blog-detail-img .blog-placeholder-lg {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #0066CC, #004C99);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.blog-detail-img .blog-placeholder-lg i {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.blog-detail-img .blog-placeholder-lg span {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 32px;
    font-size: 0.88rem;
    color: #64748b;
}

.blog-detail-meta i {
    margin-right: 6px;
    color: #0066CC;
}

.blog-detail-meta .blog-cat-tag {
    background: #eef4fb;
    color: #0066CC;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Blog Content Typography */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #374151;
}

.blog-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef4fb;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 0.8rem;
}

.blog-content p {
    margin-bottom: 1.3rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.3rem;
}

.blog-content li {
    margin-bottom: 0.6rem;
}

.blog-content blockquote {
    border-left: 4px solid #0066CC;
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.blog-content a {
    color: #0066CC;
    text-decoration: underline;
}

/* Blog Bottom Nav */
.blog-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
    margin-top: 40px;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066CC;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #0066CC;
    border-radius: 10px;
    transition: all 0.3s;
}

.blog-back-btn:hover {
    background: #0066CC;
    color: #fff;
}

.blog-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.blog-share-btn:hover {
    transform: scale(1.1);
}

/* Sidebar */
.blog-sidebar-cta {
    background: linear-gradient(135deg, #0066CC, #004C99);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.blog-sidebar-cta i.cta-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    opacity: 0.8;
}

.blog-sidebar-cta h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.blog-sidebar-cta p {
    font-size: 0.88rem;
    opacity: 0.8;
    margin-bottom: 20px;
    color: #fff;
}

.blog-sidebar-cta .cta-phone-btn {
    display: inline-block;
    background: #fff;
    color: #0066CC;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-sidebar-cta .cta-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.blog-sidebar-recent {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.blog-sidebar-recent h5 {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
    color: #1e293b;
}

.blog-sidebar-recent h5 i {
    color: #0066CC;
    margin-right: 8px;
}

.blog-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-sidebar-link:hover {
    background: #f8fafc;
}

.blog-sidebar-link strong {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
    line-height: 1.4;
}

.blog-sidebar-link small {
    color: #94a3b8;
    font-size: 0.78rem;
}

.blog-sidebar-link i {
    color: #cbd5e1;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-left: 12px;
}

/* CTA Section */
/* Light mode CTA */
.blog-cta-section {
    background: #f0f4f8;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.blog-cta-section p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0066CC;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,102,204,0.3);
}

.blog-cta-btn:hover {
    background: #004C99;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,102,204,0.4);
}

/* =============================================
   DARK MODE - TUM BLOG (body.dark-mode + [data-theme="dark"])
   ============================================= */
body.dark-mode .blog-cta-section,
[data-theme="dark"] .blog-cta-section { background: #1F2937; }
body.dark-mode .blog-cta-section h2,
[data-theme="dark"] .blog-cta-section h2 { color: #fff; }
body.dark-mode .blog-cta-section p,
[data-theme="dark"] .blog-cta-section p { color: rgba(255,255,255,0.6); }
body.dark-mode .blog-cta-btn,
[data-theme="dark"] .blog-cta-btn { box-shadow: 0 4px 20px rgba(0,102,204,0.5); }
body.dark-mode .blog-cta-btn:hover,
[data-theme="dark"] .blog-cta-btn:hover { background: #fff; color: #0066CC; }

body.dark-mode .blog-section,
[data-theme="dark"] .blog-section { background: #0f172a; }

body.dark-mode .blog-card,
[data-theme="dark"] .blog-card { background: #1e293b; border-color: #334155; }
body.dark-mode .blog-card:hover,
[data-theme="dark"] .blog-card:hover { border-color: #3b82f6; }
body.dark-mode .blog-card-body h3 a,
[data-theme="dark"] .blog-card-body h3 a { color: #e2e8f0; }
body.dark-mode .blog-card:hover h3 a,
[data-theme="dark"] .blog-card:hover h3 a { color: #60a5fa; }
body.dark-mode .blog-card-body p,
[data-theme="dark"] .blog-card-body p { color: #94a3b8; }
body.dark-mode .blog-card-meta,
[data-theme="dark"] .blog-card-meta { color: #64748b; }
body.dark-mode .blog-card-footer,
[data-theme="dark"] .blog-card-footer { border-top-color: #334155; }

body.dark-mode .blog-detail-section,
[data-theme="dark"] .blog-detail-section { background: #0f172a; }
body.dark-mode .blog-detail-meta,
[data-theme="dark"] .blog-detail-meta { color: #94a3b8; border-bottom-color: #334155; }
body.dark-mode .blog-detail-meta .blog-cat-tag,
[data-theme="dark"] .blog-detail-meta .blog-cat-tag { background: rgba(0,102,204,0.2); color: #60a5fa; }

body.dark-mode .blog-content,
[data-theme="dark"] .blog-content { color: #cbd5e1; }
body.dark-mode .blog-content h2,
[data-theme="dark"] .blog-content h2 { color: #e2e8f0; border-bottom-color: #334155; }
body.dark-mode .blog-content h3,
[data-theme="dark"] .blog-content h3 { color: #e2e8f0; }
body.dark-mode .blog-content p,
[data-theme="dark"] .blog-content p { color: #cbd5e1; }
body.dark-mode .blog-content li,
[data-theme="dark"] .blog-content li { color: #cbd5e1; }
body.dark-mode .blog-content blockquote,
[data-theme="dark"] .blog-content blockquote { background: #1e293b; color: #94a3b8; border-left-color: #3b82f6; }
body.dark-mode .blog-content a,
[data-theme="dark"] .blog-content a { color: #60a5fa; }

body.dark-mode .blog-bottom-nav,
[data-theme="dark"] .blog-bottom-nav { border-top-color: #334155; }
body.dark-mode .blog-back-btn,
[data-theme="dark"] .blog-back-btn { color: #60a5fa; border-color: #60a5fa; }
body.dark-mode .blog-back-btn:hover,
[data-theme="dark"] .blog-back-btn:hover { background: #60a5fa; color: #0f172a; }

body.dark-mode .blog-sidebar-recent,
[data-theme="dark"] .blog-sidebar-recent { background: #1e293b; border-color: #334155; }
body.dark-mode .blog-sidebar-recent h5,
[data-theme="dark"] .blog-sidebar-recent h5 { color: #e2e8f0; border-bottom-color: #334155; }
body.dark-mode .blog-sidebar-link,
[data-theme="dark"] .blog-sidebar-link { border-bottom-color: #293548; }
body.dark-mode .blog-sidebar-link:hover,
[data-theme="dark"] .blog-sidebar-link:hover { background: #263244; }
body.dark-mode .blog-sidebar-link strong,
[data-theme="dark"] .blog-sidebar-link strong { color: #cbd5e1; }
body.dark-mode .blog-sidebar-link small,
[data-theme="dark"] .blog-sidebar-link small { color: #64748b; }

body.dark-mode .blog-empty h3,
[data-theme="dark"] .blog-empty h3 { color: #e2e8f0; }
body.dark-mode .blog-empty p,
[data-theme="dark"] .blog-empty p { color: #64748b; }
body.dark-mode .blog-empty-icon,
[data-theme="dark"] .blog-empty-icon { background: rgba(0,102,204,0.15); }
