/* General Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

.containerblog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Page Titles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: #212529;
    margin-bottom: 10px;
}

.page-header p {
    color: #6c757d;
}

/* ===================================================
   1. BLOG LISTING PAGE STYLES
   =================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-tag {
    display: inline-block;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
}

.card-title a:hover {
    color: #0d6efd;
}

.card-excerpt {
    font-size: 17px;
    color: #000;
    margin-bottom: 15px;
}

.card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* ===================================================
   2. SINGLE BLOG DETAIL + SIDEBAR STYLES
   =================================================== */
.main-layout {
    display: grid;
    grid-template-columns: 67% 30%;
    gap: 3%;
    margin-bottom: 50px;
}

/* Main Content Area */
.blog-article {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: 32px;
    color: #111;
    margin: 10px 0 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}

.article-body {
    font-size: 17px;
    color: #333;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #222;
}

/* Quote Box */
.highlight-quote {
    background: #f0f7ff;
    border-left: 4px solid #0d6efd;
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 17px;
    color: #6c757d;
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
    color: #222;
}

/* Recent Posts List */
.recent-posts {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.recent-post-item img {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info h4 a:hover {
    color: #0d6efd;
}

.recent-post-info span {
    font-size: 12px;
    color: #888;
}

/* City List */
.city-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 17px;
    transition: background 0.2s ease;
}

.city-list li a:hover {
    background: #e7f1ff;
    color: #0d6efd;
}

/* Footer */
.site-footer {
    background: #212529;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES
   =================================================== */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr; gap:30px; /* Single column on tablet/mobile */
    }
}

@media (max-width: 600px) {
    .blog-article {
        padding: 18px;
    }
    
    .article-title {
        font-size: 24px;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }
}






/* Author Section Container */
.author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

/* Author Anchor Tag Wrapper - Image Distortion Prevent karne ke liye */
.author-section > a {
    display: inline-block;
    flex-shrink: 0; /* Container resize hone par image shrink na ho */
    width: 80px;
    height: 80px;
}

/* Author Avatar Image */
.author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;          /* Bilkul round/circle shape */
    object-fit: cover;           /* Aspect ratio maintain rakhega, image stretch nahi hogi */
    object-position: center;      /* Face center me aligned rahega */
    display: block;
    border: 2px solid #0d6efd;   /* Optional: Premium look ke liye subtle border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Author Text Info Details */
.author-info {
    flex-grow: 1;
}

.author-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #222;
}

.author-info p {
    font-size: 17px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsive adjustment */
@media (max-width: 600px) {
    .author-section {
        flex-direction: column;
        text-align: center;
    }
}