/* Article Detail Page Styles */

.article-hero-section {
    position: relative;
}

/* Override main.less styles for article hero */
.article-hero-section.second-page-top .section-block-title,
.article-hero-section .second-page-top .section-block-title {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.article-hero-section .section-title {
    position: relative;
    z-index: 2;
    width: 100% !important;
}

.article-hero-section .section-title .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.article-hero-section .section-title .row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.article-hero-section .section-title .col-md-10 {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    float: none !important;
}

.article-hero-section .section-title .col-md-offset-1 {
    margin-left: 0 !important;
}

.article-hero-section .section-title-body {
    text-align: center !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    display: block !important;
}

.article-hero-section article.section-title-body {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.article-hero-section .section-title-body.white {
    color: white;
}

.article-hero-section .section-title-body .head-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white !important;
    display: block !important;
    width: 100% !important;
}

.article-hero-section .section-title-body .head-text {
    font-size: 18px !important;
    line-height: 1.7 !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 20px auto 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px !important;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.article-hero-section .head-breadcrumb {
    margin-top: 40px !important;
    text-align: center !important;
    width: 100%;
}

.article-hero-section .head-breadcrumb .breadcrumb {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    list-style: none;
    text-align: center;
}

.article-hero-section .head-breadcrumb .breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    float: none !important;
}

.article-hero-section .head-breadcrumb .breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.7;
}

.article-hero-section .head-breadcrumb .breadcrumb li + li::before {
    display: none !important;
}

.article-hero-section .head-breadcrumb .breadcrumb li a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-hero-section .head-breadcrumb .breadcrumb li a:hover {
    color: #01c057 !important;
}

.article-hero-section .head-breadcrumb .breadcrumb li.active {
    color: #01c057 !important;
    font-weight: 600;
}

/* Responsive adjustments for hero section */
@media (max-width: 991px) {
    .article-hero-section.second-page-top .section-block-title,
    .article-hero-section .second-page-top .section-block-title {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        min-height: 350px;
    }
    
    .article-hero-section .section-title-body .head-title {
        font-size: 36px !important;
    }
    
    .article-hero-section .section-title-body .head-text {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .article-hero-section.second-page-top .section-block-title,
    .article-hero-section .second-page-top .section-block-title {
        padding-top: 80px !important;
        padding-bottom: 50px !important;
        min-height: 300px;
    }
    
    .article-hero-section .section-title-body .head-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .article-hero-section .section-title-body .head-text {
        font-size: 15px !important;
        padding: 0 15px;
    }
    
    .article-hero-section .head-breadcrumb {
        margin-top: 30px !important;
    }
    
    .article-hero-section .head-breadcrumb .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .article-hero-section.second-page-top .section-block-title,
    .article-hero-section .second-page-top .section-block-title {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
        min-height: 250px;
    }
    
    .article-hero-section .section-title-body .head-title {
        font-size: 24px !important;
    }
    
    .article-hero-section .section-title-body .head-text {
        font-size: 14px !important;
    }
}

.article-detail-section {
    position: relative;
}

.article-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.article-category,
.article-date,
.article-author,
.article-views {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.article-category {
    background: rgba(1, 192, 87, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.article-category i,
.article-date i,
.article-author i,
.article-views i {
    font-size: 18px;
    color: var(--primary-color);
}

.article-featured-image {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.article-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 35px 0 20px;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
    line-height: 1.3;
}

.article-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 12px;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 35px;
}

.article-body li {
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.7;
}

.article-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(1, 192, 87, 0.3);
    transition: var(--transition);
}

.article-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-dark);
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.article-share h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: #ffffff;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.share-btn i {
    font-size: 18px;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.contact-info i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
    padding-left: 3px;
}

.related-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.related-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-article-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    flex: 1;
}

.related-article-content h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-article-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-article-content h5 a:hover {
    color: var(--primary-color);
}

.related-article-date {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-article-date i {
    font-size: 14px;
    color: var(--primary-color);
}

.cta-widget {
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.1) 0%, rgba(96, 202, 249, 0.1) 100%);
    border: 2px solid rgba(1, 192, 87, 0.2);
}

.cta-widget h4 {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .article-content {
        padding: 30px 25px;
    }
    
    .article-body h2 {
        font-size: 28px;
    }
    
    .article-body h3 {
        font-size: 22px;
    }
    
    .article-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .article-content {
        padding: 25px 20px;
    }
    
    .article-meta {
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 24px;
        margin: 30px 0 15px;
    }
    
    .article-body h3 {
        font-size: 20px;
        margin: 25px 0 12px;
    }
    
    .article-footer {
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
    
    .sidebar-widget h4 {
        font-size: 18px;
    }
    
    .related-article-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .related-article-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 575px) {
    .article-content {
        padding: 20px 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
}

