/**
 * OMEGAV - BLOG DETAIL PAGE PREMIUM ENHANCEMENTS
 * Modern, premium styling for blog detail pages with advanced visual effects
 */

/* ========================================
   UTILITY CLASSES
   ======================================== */
.space8 {
    height: 8px;
}

.space20 {
    height: 20px;
}

.space32 {
    height: 32px;
}

/* ========================================
   GLOBAL BLOG DETAIL STYLES
   ======================================== */
.blog-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.blog-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(var(--theme-colour-rgb, 255, 215, 0), 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.blog-details .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   MAIN ARTICLE CONTAINER
   ======================================== */
.blog-details-all {
    position: relative;
}

.blog-details-all article {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-details-all article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, var(--common-colour) 100%);
}

.blog-details-all article:hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* ========================================
   FEATURED IMAGE
   ======================================== */
.blog-details-all .img5 {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-details-all .img5::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-details-all .img5:hover::after {
    opacity: 1;
}

.blog-details-all .img5 img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-details-all .img5:hover img {
    transform: scale(1.05);
}

/* ========================================
   POST META INFORMATION
   ======================================== */
.blog-post-icons2 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.blog-post-icons2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, transparent 100%);
}

.blog-post-icons2 li {
    position: relative;
}

.blog-post-icons2 li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.blog-post-icons2 li a:hover {
    background: var(--theme-colour);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-icons2 li a img {
    width: 18px;
    height: 18px;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.blog-post-icons2 li a:hover img {
    filter: grayscale(0);
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */
.hadding2 h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.hadding2 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, var(--common-colour) 100%);
    border-radius: 2px;
}

/* Content Typography */
.hadding2 p {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}

.hadding2 p:first-of-type::first-letter {
    font-size: 72px;
    font-weight: 800;
    float: left;
    line-height: 60px;
    padding-right: 12px;
    margin-top: 5px;
    color: var(--common-colour);
    font-family: Georgia, serif;
}

.hadding2 h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    position: relative;
    padding-left: 20px;
}

.hadding2 h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(180deg, var(--theme-colour) 0%, var(--common-colour) 100%);
    border-radius: 3px;
}

.hadding2 h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2a2a2a;
    margin: 30px 0 15px;
}

.hadding2 ul,
.hadding2 ol {
    margin: 25px 0;
    padding-left: 30px;
}

.hadding2 ul li,
.hadding2 ol li {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    position: relative;
}

.hadding2 ul li::marker {
    color: var(--theme-colour);
    font-size: 1.2em;
}

.hadding2 blockquote {
    background: linear-gradient(135deg, #f9fdfa 0%, #f0f9f4 100%);
    border-left: 5px solid var(--theme-colour);
    padding: 35px 40px;
    margin: 40px 0;
    font-size: 20px;
    font-style: italic;
    color: #2a2a2a;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.hadding2 blockquote::before {
    content: '"';
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--theme-colour);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.hadding2 a:not(.theme-btn5) {
    color: var(--common-colour);
    text-decoration: underline;
    text-decoration-color: rgba(var(--common-colour-rgb, 0, 123, 255), 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.hadding2 a:not(.theme-btn5):hover {
    text-decoration-color: var(--common-colour);
    text-underline-offset: 5px;
}

.hadding2 img {
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hadding2 img:hover {
    transform: scale(1.02);
}

/* ========================================
   TAGS SECTION
   ======================================== */
.blog-details-tags {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    position: relative;
}

.blog-details-tags::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, transparent 100%);
}

.blog-details-tag {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-details-tag h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.details-tag-list {
    flex: 1;
}

.details-tag-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.details-tag-list ul li a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 30px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.details-tag-list ul li a:hover {
    background: var(--theme-colour);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--theme-colour);
}

/* ========================================
   SIDEBAR ENHANCEMENTS
   ======================================== */
.blog-details-sidebar {
    position: sticky;
    top: 100px;
}

.blog-details-sidebar .single-widget,
.blog-details-sidebar .single-widget-all {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-details-sidebar .single-widget::before,
.blog-details-sidebar .single-widget-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, var(--common-colour) 100%);
}

.blog-details-sidebar .single-widget:hover,
.blog-details-sidebar .single-widget-all:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transform: translateY(-5px);
}

.blog-details-sidebar h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.blog-details-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-colour) 0%, var(--common-colour) 100%);
    border-radius: 2px;
}

/* Search Widget */
.blog-shearch {
    position: relative;
}

.blog-shearch .search-input input {
    width: 100%;
    height: 55px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    padding: 0 60px 0 20px;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.blog-shearch .search-input input:focus {
    border-color: var(--theme-colour);
    background: #ffffff;
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.blog-shearch .search-button button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 45px;
    width: 45px;
    background: linear-gradient(135deg, var(--theme-colour) 0%, var(--common-colour) 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-shearch .search-button button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Recent Posts Widget */
.recent-post {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.recent-post:hover {
    background: #ffffff;
    border-color: var(--theme-colour);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.recent-post-content h6 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.recent-post-content h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: var(--common-colour);
}

.blog-date-time {
    display: flex;
    align-items: center;
}

.blog-date li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.blog-date li svg {
    width: 14px;
    height: 14px;
    color: var(--theme-colour);
}

.recent-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recent-post:hover .recent-img {
    transform: scale(1.05);
}

.recent-img img {
    transition: transform 0.3s ease;
}

.recent-post:hover .recent-img img {
    transform: scale(1.1);
}

/* Categories Widget */
.blog-category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category-list ul li {
    margin-bottom: 12px;
}

.blog-category-list ul li:last-child {
    margin-bottom: 0;
}

.blog-category-list ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.blog-category-list ul li a:hover,
.blog-category-list ul li a.active {
    background: linear-gradient(135deg, var(--theme-colour) 0%, rgba(var(--theme-colour-rgb, 255, 215, 0), 0.8) 100%);
    color: #000;
    padding-left: 25px;
    border-color: var(--theme-colour);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-category-list ul li a span {
    transition: transform 0.3s ease;
}

.blog-category-list ul li a:hover span {
    transform: translateX(5px);
}

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud a {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.tagcloud a:hover {
    background: var(--theme-colour);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--theme-colour);
}

/* Contact CTA Widget */
.blog-details-sidebar .widget_categories h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-details-sidebar .theme-btn5 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--common-colour) 0%, rgba(var(--common-colour-rgb, 0, 123, 255), 0.8) 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
}

.blog-details-sidebar .theme-btn5:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(var(--common-colour-rgb, 0, 123, 255), 0.9) 0%, var(--common-colour) 100%);
}

.blog-details-sidebar .theme-btn5 img {
    filter: brightness(0) invert(1);
    width: 18px;
    height: 18px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1199px) {
    .blog-details-sidebar {
        top: 80px;
    }
}

@media (max-width: 991px) {
    .blog-details-all article {
        padding: 35px 25px;
    }

    .hadding2 h2 {
        font-size: 32px;
    }

    .hadding2 p {
        font-size: 17px;
    }

    .blog-details-sidebar {
        position: static;
        margin-top: 50px;
    }

    .blog-post-icons2 {
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .blog-details-all article {
        padding: 25px 20px;
    }

    .hadding2 h2 {
        font-size: 26px;
        padding-bottom: 15px;
    }

    .hadding2 h2::after {
        width: 40px;
        height: 3px;
    }

    .hadding2 p {
        font-size: 16px;
        line-height: 1.7;
    }

    .hadding2 p:first-of-type::first-letter {
        font-size: 48px;
        line-height: 40px;
    }

    .hadding2 h3 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    .hadding2 blockquote {
        padding: 25px 20px;
        font-size: 17px;
    }

    .blog-post-icons2 {
        gap: 10px;
    }

    .blog-post-icons2 li a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .blog-details-sidebar .single-widget,
    .blog-details-sidebar .single-widget-all {
        padding: 25px 20px;
    }

    .blog-details-sidebar h3 {
        font-size: 20px;
    }

    .recent-post {
        padding: 15px;
    }

    .recent-img {
        min-width: 70px !important;
    }

    .recent-img img {
        width: 70px !important;
    }
}

@media (max-width: 575px) {
    .hadding2 h2 {
        font-size: 22px;
    }

    .blog-details-tag {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-tag-list {
        width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .blog-details-sidebar,
    .blog-post-icons2,
    .blog-details-tags {
        display: none;
    }

    .blog-details-all article {
        box-shadow: none;
        padding: 0;
    }
}