.page-title {
    margin-bottom: 25px;
    border-bottom: 2px solid #d32f2f; 
    padding-bottom: 10px;
}

.page-title h1 {
    color: #333;
    font-size: 20px; 
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.page-title,
.blog-meta,
.single-blog-text {
    text-align: center;
}

.single-blog-text {
    max-width: 740px;
    margin: 0 auto;
    text-align: left; 
}

.introduce-page { 
    padding-top: 70px;
}
.introduce-page .page-title { margin-top: 0; }

@media (max-width: 991px) {
    .introduce-page { padding-top: 130px; }
    .page-title h1 { font-size: 18px; }
}

.blog-meta {
    margin-bottom: 20px;
}

.blog-description {
    font-style: italic;
    color: #555;
    font-size: 14px; 
    line-height: 1.6;
    padding: 12px 20px;
    background: #fdfdfd;
    border-left: 3px solid #d32f2f; 
    margin-bottom: 25px;
    text-align: justify;
}

.single-blog-text {
    color: #424242;
    font-size: 15px;
    line-height: 1.8;
}

.single-blog-text h1,
.single-blog-text h2,
.single-blog-text h3,
.single-blog-text h4,
.single-blog-text h5,
.single-blog-text h6 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.single-blog-text p {
    margin-bottom: 15px;
}

.single-blog-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.single-blog-text ul,
.single-blog-text ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.single-blog-text li {
    margin-bottom: 5px;
}

.sidebar-area {
    padding-left: 20px;
}

.single-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.single-sidebar-widget h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.single-blog-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post-thumb {
    margin-right: 15px;
    flex-shrink: 0;
}

.blog-post-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
}

.blog-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.blog-post-content h4 a:hover {
    color: #007bff;
}

.blog-post-content .price {
    color: #007bff;
    font-weight: bold;
    font-size: 13px;
}
/* Sidebar */
.sidebar {
    font-family: 'Roboto', sans-serif;
    color: #424242;
    box-sizing: border-box;
}

.sidebar .bg-white {
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

.sidebar h5 {
    font-family: Inter;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #dc3545;
}

/* Container for each sidebar item */
.sidebar ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* Reduced gap to give text more width */
    padding: 10px 0; /* Matches padding from template */
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
    width: 100%;
    max-width: none; /* allow full width of sidebar */
    min-height: 50px; /* slightly smaller to match reduced image */
}

.sidebar ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Image container */
.sidebar ul li > a:first-child {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: block;
    margin: 0; /* Reset margin */
}

.sidebar ul li img,
.sidebar ul li .bg-light {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Text content container */
.sidebar ul li div {
    flex: 1;
    min-width: 0; /* Prevents overflow */
    padding: 0;
    margin: 0;
}

/* Individual text item (form field) */
.sidebar ul li div a {
    font-family: Inter;
    font-size: 13px;
    line-height: 1.25;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    display: block;
    white-space: normal;
    overflow: visible;
    margin: 0 0 4px 0;
    padding: 0;
}

/* Links inside the box (title/excerpt) */
.box-text.text-left a {
    color: #3D3D3D;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    margin: 0 0 6px;
    display: block;
    text-decoration: none;
}

.box-text.text-left h5.post-title.is-large{ margin-bottom:6px; }

/* utility: apply same styles when sidebar-title used on non-anchor elements */
.sidebar .sidebar-title{
    color: #1e5bb8;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .sidebar-area {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .blog-description {
        font-size: 14px;
        padding: 10px;
    }
    /* Allow sidebar titles to wrap on small screens */
    .sidebar .sidebar-title,
    .sidebar ul li div a {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Adjustments to match provided form */
.page-wrapper.page-right-sidebar {
    color: #424242;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 30px 0;
    box-sizing: border-box;
}

.page-inner {
    color: #424242;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

/* Ensure container gutters match visual spec */
.page-wrapper.page-right-sidebar .container {
    padding-left: 15px;
    padding-right: 15px;
}

.page-wrapper.page-right-sidebar .row {
    align-items: flex-start;
}

.page-wrapper.page-right-sidebar .col-lg-8 {
    padding-right: 30px; /* spacing between content and sidebar */
}

.page-wrapper.page-right-sidebar .col-lg-4,
.page-wrapper.page-right-sidebar .large-3.col {
    padding-left: 30px; /* sidebar inner spacing */
}

/* Make the sidebar column use same typography/spacing as .large-3.col (post-sidebar) */
.page-wrapper.page-right-sidebar .col-lg-4 {
    color: #424242;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 0 15px 30px 30px;
    box-sizing: border-box;
}

p {
    color: #424242;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    margin: 0 0 19.5px;
}

.large-3.col {
    color: #424242;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 0 15px 30px 30px;
}
