/* Custom CSS for 71%/29% layout */
.col-71 {
    flex: 0 0 71%;
    max-width: 71%;
}

.col-29 {
    flex: 0 0 29%;
    max-width: 29%;
}

/* Blog Post Design */
.blog-post-item-two {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    /*height: 100%;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-post-item-two:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #ff6b35;
}

.blog-post-thumb-two {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-post-thumb-two img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-thumb-two:hover img {
    transform: scale(1.05);
}

.blog-post-thumb-two .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.blog-post-thumb-two .tag:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.blog-post-content-two {
    padding: 25px;
}

.blog-post-content-two .title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.blog-post-content-two .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content-two .title a:hover {
    color: #ff6b35;
}

.blog-post-content-two p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px; /* 3 lines * 1.6 line-height * 15px font-size */
}

.blog-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.blog-meta .list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-meta .list-wrap li {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
}

.blog-meta .list-wrap li i {
    margin-right: 6px;
    color: #ff6b35;
}

.blog-meta .list-wrap li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-meta .list-wrap li a:hover {
    color: #ff6b35;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 20px;
    padding-left: 30px;
}

.sidebar-search {
    margin-bottom: 40px;
    position: relative;
}

.sidebar-search form {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #333;
}

.sidebar-search input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.sidebar-search input::placeholder {
    color: #999;
}

.sidebar-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: #ff6b35;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search button:hover {
    background: #e55a2b;
}

.blog-widget {
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.bw-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b35;
    position: relative;
    font-weight: 600;
    color: #333;
}

.bw-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e55a2b;
}

.bs-cat-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-cat-list li {
    margin-bottom: 12px;
}

.bs-cat-list li:last-child {
    margin-bottom: 0;
}

.bs-cat-list li a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
    position: relative;
}

.bs-cat-list li a:hover {
    color: #ff6b35;
    padding-left: 10px;
}

.bs-cat-list li a span {
    float: right;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.bs-cat-list li a:hover span {
    background: #ff6b35;
    color: white;
}

.rc-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.rc-post-item:hover {
    transform: translateX(5px);
}

.rc-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rc-post-item .thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.rc-post-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rc-post-item:hover .thumb img {
    transform: scale(1.1);
}

.rc-post-item .content {
    flex: 1;
}

.rc-post-item .date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.rc-post-item .date i {
    margin-right: 5px;
    color: #ff6b35;
}

.rc-post-item .title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    color: #333;
}

.rc-post-item .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rc-post-item .title a:hover {
    color: #ff6b35;
}

/* No Results Message */
#noSearchResults {
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #eee;
}

#noSearchResults i {
    color: #ccc;
}

#noSearchResults h4 {
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

#noSearchResults p {
    color: #888;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .col-71 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-29 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 50px;
    }
    
    .blog-sidebar {
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    .blog-post-thumb-two {
        height: 200px;
    }
    
    .blog-post-content-two {
        padding: 20px;
    }
    
    .blog-post-content-two .title {
        font-size: 18px;
    }
    
    .blog-post-content-two p {
        font-size: 14px;
        min-height: 67px; /* Adjust for smaller font */
    }
}

@media (max-width: 768px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .rc-post-item .thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    
    .blog-widget {
        padding: 20px;
    }
    
    .bw-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .blog-meta .list-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-post-thumb-two {
        height: 180px;
    }
    
    .blog-post-content-two p {
        min-height: auto;
        -webkit-line-clamp: 2;
    }
    
    .sidebar-search input {
        padding: 12px 45px 12px 15px;
        font-size: 13px;
    }
    
    .sidebar-search button {
        width: 45px;
    }
}

/* Animation for search results */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-post-column {
    animation: fadeIn 0.3s ease forwards;
}

/* Loading state for search */
.search-loading {
    position: relative;
    pointer-events: none;
}

.search-loading::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.breadcrumb-bg {
    background-size: cover;
    background-position: center;
    padding: 120px 0 130px;
    position: relative;
    z-index: 1;
}

.breadcrumb-content .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-content .title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 44px;
    line-height: 1.1;
    text-transform: capitalize;
    text-align: center;
}
.breadcrumb-item a {
    font-weight: bolder;
    color: #ff5a5d !important;
}

.breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 1rem !important;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem;
}

  
    .reasons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin: 25px 0;
    }
    

    
    .bullet-list {
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .bullet-list li {
        margin-bottom: 8px;
        color: #555;
    }
    
    /* Quote Form Styling */
    .quote-form-container {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        margin-top: 20px;
    }
    
    .quote-form-title {
        background-color: #0055ff;
        color: white;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        margin-bottom: 25px;
        font-size: 22px;
        font-weight: 600;
    }
    
    .form-grp {
        margin-bottom: 20px;
    }
    
    .form-grp input,
    .form-grp textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        transition: border 0.3s;
        background-color: #fff;
    }
    
    .form-grp input:focus,
    .form-grp textarea:focus {
        border-color: #0055ff;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.2);
    }
    
    .form-grp textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .submit-btn {
        background-color: #0055ff;
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 6px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        transition: background-color 0.3s;
    }
    
    .submit-btn:hover {
        background-color: #0044cc;
    }
    
    .note {
        font-size: 14px;
        color: #777;
        font-style: italic;
        margin-top: 10px;
        text-align: center;
    }
    
    .input-error {
        border-color: #ff4444 !important;
        background-color: #fff8f8 !important;
    }
    
    /* Sidebar List Styling */
    .services-cat-list {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    

    
    @media (max-width: 768px) {
        .reasons-grid {
            grid-template-columns: 1fr;
        }
          
       
    }
    .services-details-wrap img {
    width: 100%;
}