/* Google Fonts for Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Main Blog Container & Layout */
.repo-blog-single-container {
    background: #fff;
    padding: 0;
    margin-bottom: 30px;
}

/* Feature Image Styling */
.cmt-post-featured img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px !important;
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
}

/* Content Area Typography */
.cmt-box-desc-text {
    font-family: 'Merriweather', serif;
    color: #444;
    font-size: 16px;
    /* Reduced base size */
    line-height: 1.7;
    text-align: justify;
}

/* Ensure images inside content are responsive */
.cmt-box-desc-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Fix Large Headings in Content */
.cmt-box-desc-text h1,
.entry-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem !important;
    /* Significantly reduced */
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 15px;
}

.cmt-box-desc-text h2,
.entry-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem !important;
    /* Significantly reduced */
    line-height: 1.3;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    border-left: none;
    padding-left: 0;
    background: none;
}

.cmt-box-desc-text h3,
.entry-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem !important;
    /* Significantly reduced */
    line-height: 1.3;
    font-weight: 600;
    color: #34495e;
    margin-top: 18px;
    margin-bottom: 10px;
}

.cmt-box-desc-text p {
    margin-bottom: 15px;
    font-weight: 400;
}

.cmt-box-desc-text blockquote {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 4px solid #770101;
    margin: 20px 0;
    padding: 15px 20px;
    background: #fff9f9;
    /* Softer tint */
    border-radius: 0 8px 8px 0;
}

/* Meta Data Styling */
.post-meta {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-meta .cmt-meta-line i {
    color: #770101;
    margin-right: 8px;
}

/* =========================================
   Sidebar Styling
   ========================================= */
.sidebar-right {
    padding-left: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #01162c;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #770101;
    display: inline-block;
}

/* Recent Post List */
.widget-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-post-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.widget-post-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-post-list a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

.widget-post-list .post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.widget-post-list .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.widget-post-list a:hover .post-thumb img {
    transform: scale(1.1);
}

.widget-post-list .post-content {
    flex-grow: 1;
}

.widget-post-list .post-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 5px;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.widget-post-list a:hover .post-title {
    color: #770101;
}

.widget-post-list .post-date {
    font-size: 12px;
    color: #999;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    width: 100%;
    margin-bottom: 0;
}

.search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fcfcfc;
}

.search-submit {
    display: none;
    /* Hide default submit, maybe style it better later if needed */
}

/* Categories Widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 10px;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 5px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    /* Ensure no underline */
}

.sidebar-widget.widget-categories ul li a:hover {
    background-color: #770101 !important;
    color: #ffffff !important;
    padding-left: 20px;
}

.widget-categories li a:after {
    content: "\f105";
    font-family: "FontAwesome";
    transition: color 0.3s;
}

.sidebar-widget.widget-categories ul li a:hover:after {
    color: #ffffff !important;
}

/* =========================================
   Social Sharing Box
   ========================================= */
.social-share-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-top: 50px;
}

.social-share-box h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s ease;
    background: #f4f4f4;
    color: #555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Brand Colors on Hover */
.social-icon.facebook:hover {
    background: #3b5998;
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.social-icon.whatsapp:hover {
    background: #25d366;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-right {
        margin-top: 50px;
        padding-left: 0;
    }
}