/* =============================
   BLOG LAYOUT
============================= */

.sr-blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* =============================
   SIDEBAR
============================= */

.sr-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sr-widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.sr-widget h3,
.sr-widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sr-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-widget ul li {
    margin-bottom: 8px;
}

.sr-widget ul li a {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.sr-widget ul li a:hover {
    color: #2563eb;
}

/* =============================
   CTA BOX
============================= */

.sr-cta {
    background: #0f172a;
    color: #ffffff;
}

.sr-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.sr-btn:hover {
    background: #1e40af;
}

/* =============================
   SEARCH
============================= */

.sr-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sr-search-input {
    flex: 1;
    min-width: 0; /* 🔥 IMPORTANT FIX */
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}


.sr-search-input:focus {
    border-color: #2563eb;
}

.sr-search-btn {
    white-space: nowrap; /* Prevent text breaking */
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}

.sr-search-btn:hover {
    background: #1e40af;
}

/* =============================
   TESTIMONIAL
============================= */

.sr-testimonial {
    font-style: italic;
    background: #f8fafc;
}
.sr-post-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.sr-post-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

.sr-post-meta span {
    margin-right: 5px;
}

.sr-content a {
    color: #4169e1 !important;
}

/* =============================
   MOBILE
============================= */

@media (max-width: 992px) {
    .sr-blog-layout {
        grid-template-columns: 1fr;
    }

    /* Show sidebar below content on mobile */
    .sr-sidebar {
        display: block;
        margin-top: 30px;
    }
    
    .sr-blog-layout {
        grid-template-columns: 1fr;
    }

    .sr-content {
        order: 1;
    }

    .sr-sidebar {
        order: 2;
    }
}
