/**
 * OMEGAV - BLOG ENHANCEMENTS
 * Premium styles for blog listing and detail pages
 */

/* ========================================
   BLOG LISTING (blogthree)
   ======================================== */
.blogthree {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blogthree:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blogthree figure {
    margin: 0;
    overflow: hidden;
    position: relative;
    height: 300px;
    /* Fixed height for consistency */
}

.blogthree figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blogthree:hover figure img {
    transform: scale(1.1);
}

.blogthree>span {
    background-color: var(--theme-colour);
    color: #000;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blogthree-text {
    padding: 30px;
}

.blogthree-text h4 {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blogthree-text h4::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--theme-colour);
}

.blogthree-text h2 {
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.4;
}

.blogthree-text h2 a {
    color: #1a1a1a;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 700;
}

.blogthree-text h2 a:hover {
    color: var(--common-colour);
}

.blogthree-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogthree-text a i {
    width: 45px;
    height: 45px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.blogthree-text a:hover i {
    background: var(--theme-colour);
    color: #000;
}

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */
.sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-title h3,
.sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar h3::after,
.boder {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--theme-colour);
    margin-top: 0;
    /* Override */
}

.boder {
    display: none;
    /* Hide default div divider to use pseudo-element */
}

/* Search Widget */
.search-input input {
    width: 100%;
    height: 55px;
    border: 1px solid #eee;
    background: #f9f9f9;
    padding: 0 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-input input:focus {
    border-color: var(--theme-colour);
    background: #fff;
    outline: none;
}

.search-button button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 45px;
    width: 45px;
    background: var(--theme-colour);
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button button:hover {
    background: var(--common-colour);
    color: #fff;
}

/* Recent Posts Widget */
.sidebar .recent-post li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar .recent-post li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .recent-post figure {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
}

.sidebar .recent-post figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .recent-post div a {
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.sidebar .recent-post div a:hover {
    color: var(--common-colour);
}

.sidebar .recent-post div span {
    font-size: 13px;
    color: #888;
}

.sidebar .recent-post div span i {
    color: var(--theme-colour);
    margin-right: 5px;
}

/* Categories Widget */
.sidebar .categories li {
    margin-bottom: 12px;
}

.sidebar .categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .categories li a:hover {
    background: var(--theme-colour);
    color: #000;
    padding-left: 20px;
}

/* ========================================
   BLOG DETAIL PAGE
   ======================================== */
.blog-details-all article {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.blog-details-all .img5 {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-post-icons2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.blog-post-icons2 li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.blog-post-icons2 li a img {
    width: 20px;
    height: auto;
}

.hadding2 h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hadding2 p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.hadding2 blockquote {
    background: #f9fdfa;
    border-left: 4px solid var(--theme-colour);
    padding: 30px;
    margin: 30px 0;
    font-size: 20px;
    font-style: italic;
    color: #333;
    border-radius: 0 10px 10px 0;
}

/* Tags in detail */
.blog-details-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.details-tag-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.details-tag-list ul li a {
    display: inline-block;
    padding: 8px 18px;
    background: #f4f4f4;
    border-radius: 30px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
}

.details-tag-list ul li a:hover {
    background: var(--theme-colour);
    color: #000;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-details-all article {
        padding: 20px;
    }

    .hadding2 h2 {
        font-size: 26px;
    }

    .blogthree figure {
        height: 240px;
    }
}