/* DNA Garage Doors Blog Styles */
:root {
    --primary: #0a1930;
    --primary-light: #1a3a5c;
    --accent: #e94560;
    --blue: #0060c0;
    --success: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; }
.top-bar a { color: rgba(255,255,255,.8); text-decoration: none; }
.top-bar a:hover { color: #fff; }
.top-bar i { margin-right: 6px; }

/* Header */
.blog-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.logo img { height: 50px; border-radius: 6px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all .2s;
}
.main-nav a:hover { background: var(--gray-100); color: var(--primary); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    margin-left: 8px;
}
.nav-cta:hover { background: #d6304a !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--gray-700); cursor: pointer; }

/* Hero Banner for blog listing */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.blog-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}
.blog-hero p { font-size: 18px; opacity: .8; max-width: 600px; margin: 0 auto; }

/* Blog layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0 60px;
}

/* Post cards */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    margin-bottom: 28px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-card-body { padding: 24px; }

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 12px;
}
.post-card-meta i { margin-right: 4px; }
.post-card-meta a { color: var(--blue); text-decoration: none; }
.post-card-meta a:hover { text-decoration: underline; }

.post-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }

.post-card-excerpt {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap .2s;
}
.read-more:hover { gap: 10px; }

/* Featured post */
.featured-post { position: relative; }
.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Single post */
.post-single { max-width: 100%; }
.post-single-header { margin-bottom: 32px; }
.post-single-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 16px;
}
.post-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 14px;
}
.post-single-meta i { margin-right: 4px; }
.post-single-meta a { color: var(--blue); text-decoration: none; }

.featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.post-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-700);
}
.post-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 16px;
}
.post-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px;
}
.post-content p { margin-bottom: 16px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.post-content a { color: var(--blue); }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--gray-100);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-600);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.post-tags a {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.post-tags a:hover { background: var(--blue); color: #fff; }

/* Sidebar */
.sidebar {}
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    transition: color .2s;
}
.widget-categories a:last-child { border-bottom: none; }
.widget-categories a:hover { color: var(--accent); }
.widget-categories .count {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.widget-recent a {
    display: block;
    padding: 10px 0;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    transition: color .2s;
}
.widget-recent a:last-child { border-bottom: none; }
.widget-recent a:hover { color: var(--accent); }
.widget-recent .date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-tags a {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.widget-tags a:hover { background: var(--blue); color: #fff; }

.widget-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
}
.widget-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.widget-cta p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.widget-cta .cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s;
}
.widget-cta .cta-btn:hover { transform: scale(1.05); }
.widget-cta .phone { font-size: 20px; font-weight: 700; margin-top: 12px; }
.widget-cta .phone a { color: #fff; text-decoration: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    background: #fff;
    transition: all .2s;
}
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Category page header */
.category-header {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
}
.category-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
}
.category-header p { opacity: .7; margin-top: 6px; }

/* Related posts */
.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}
.related-posts h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.related-card {
    background: var(--gray-50);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s;
}
.related-card:hover { transform: translateY(-2px); }
.related-card img { width: 100%; height: 150px; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card h4 { font-size: 15px; font-weight: 600; }
.related-card h4 a { color: var(--primary); text-decoration: none; }
.related-card h4 a:hover { color: var(--accent); }
.related-card .date { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* Footer */
.blog-footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    padding: 48px 0 0;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 50px; border-radius: 6px; margin-bottom: 14px; }
.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col p { font-size: 14px; margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; display: block; font-size: 14px; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 32px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

/* Empty state */
.empty-blog {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}
.empty-blog i { font-size: 60px; margin-bottom: 20px; }
.empty-blog h2 { font-family: 'Montserrat', sans-serif; color: var(--gray-600); margin-bottom: 8px; }

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray-400);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.share-buttons span { font-weight: 600; color: var(--gray-600); font-size: 14px; margin-right: 4px; }
.share-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: transform .2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Responsive */
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-cta { margin-left: 0 !important; text-align: center; }
    .blog-hero h1 { font-size: 28px; }
    .post-single-header h1 { font-size: 26px; }
    .top-bar-right { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .post-card-img { height: 200px; }
}
