/* =================================================
   SUNIL KHAIRNAR BLOG – FINAL CLEAN CSS (MASONRY)
   ================================================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ================= SIDEBAR ================= */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 25%;
    background-image: url(https://sunildagakhairnar.org/wp-content/themes/weeland/assets/images/default-sidebar-image.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #d0d0d0;
    background-color: #333;
}

.sidebar-header h1 {
    font-size: 20px;
    color: #d4d4d4;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-image {
    max-width: 270px;
    margin: 20PX auto 15px;
}

.head_title { margin:10px auto; }

.sidebar-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.sidebar-nav {
    padding: 15px 20px 30px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.sidebar-nav a:hover {
    color: #d3c4a6;
}

/* ================= MAIN CONTENT ================= */


.post-excerpt,
.post-excerpt p {
    word-break: break-word;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.blog-post {
    overflow: hidden;
}


.main-content {
    margin-left: 25%;
    flex: 1;
    padding: 40px;
    background: #fff;
}

/* ================= BLOG MASONRY ================= */

.blog-grid {
    column-count: 2;
    column-gap: 25px;
    width: 100%;
    margin-bottom: 50px;
}


.post-image img {
    max-width: 100%;
}

/* Masonry items */
.blog-grid .blog-post {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* Featured full width */
.blog-post.featured-post {
    column-span: all;
    margin-bottom: 40px;
}

/* Blog card */
.blog-post {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-post img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

/* Meta */
.post-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}.head_title span {
    display: block;
}

span.bottom_title { font-size:32px; }

.post-title {
    font-size: 26px;
    color: #2d2d2d;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 32px;
}

.post-excerpt {
    font-size: 16px;
    color: #2d2d2d;
    margin-bottom: 15px;
}

/* Read more */
.read-more-btn {
    display: inline-block;
    background: #d3c4a6;
    color: #fff;
    padding: 8px 20px;
    font-size: 12px;
    text-decoration: none;
}

.read-more-btn:hover {
    background: #c49564;
}

/* Featured label */
.featured-label {
    display: inline-block;
    background: #d3c4a6;
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ================= FOOTER ================= */

footer.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer.sidebar-footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

footer.sidebar-footer ul li {
    margin: 0 10px;
}

footer.sidebar-footer ul li a {
    color: #fff;
}

/* ================= RESPONSIVE ================= */

/* Large screens */
@media (max-width: 1400px) {
    .sidebar { width: 28%; }
    .main-content { margin-left: 28%; }
}

/* Tablets */
@media (max-width: 992px) {
    .sidebar { width: 35%; }
    .main-content { margin-left: 35%; }
    .blog-grid { column-count: 2; }
}
/* ===============================
   SIDEBAR NAV – RESPONSIVE
   =============================== */

/* Toggle button hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    margin: 15px auto;
}

/* Desktop nav */
.sidebar-nav ul {
    display: block;
}.head_title span {
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 2px 3px #2d2d2d;
    font-size: 28px;
}

/* -------------------------------
   MOBILE
-------------------------------- */
@media (max-width: 768px) {

    /* Show toggle */
    .nav-toggle {
        display: block;
    }

    /* Hide nav by default */
    .sidebar-nav {
        display: none;
        padding: 10px 0;
    }

    /* Active state */
    .sidebar-nav.active {
        display: block;
    }

    .sidebar-nav ul {
        padding: 0;
    }

    .sidebar-nav li {
        margin: 12px 0;
    }

    .sidebar-nav a {
        font-size: 16px;
        padding: 8px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    footer.sidebar-footer { position:relative; }
    .container { flex-direction: column; }

    .sidebar {
        position: relative;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .blog-grid {
        column-count: 1;
    }

    .post-title {
        font-size: 20px;
    }
}
/* ===============================
   SIDEBAR NAV – SMOOTH & ICON TOGGLE
   =============================== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    margin: 15px auto;
}

/* Icons */
.nav-toggle .icon-close {
    display: none;
}

/* Mobile only */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .sidebar-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease;
        opacity: 0;
    }

    .sidebar-nav.active {
        max-height: 400px; /* enough for menu */
        opacity: 1;
    }

    /* Toggle icon swap */
    .nav-toggle.active .icon-menu {
        display: none;
    }

    .nav-toggle.active .icon-close {
        display: inline;
    }

    .sidebar-nav ul {
        padding: 10px 0;
    }

    .sidebar-nav li {
        margin: 12px 0;
    }

    .sidebar-nav a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .post-title { font-size: 18px; }
    .post-excerpt { font-size: 14px; }
}
