/* Article Page Styles */
.article-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* Breadcrumb Styles */
.article-breadcrumb {
    background-color: white;
    padding: 30px 0px 0px 0px;
    width: 100%;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    color: #6c757d;
    padding-left: 15px;
    max-width: 800px;
    overflow: hidden;
}

/* Truncate article name on all devices */
.breadcrumb-content .current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.breadcrumb-home {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-home:hover {
    color: #007bff;
}

.breadcrumb-home i {
    font-size: 16px;
}

/* Sidebar Card Styling */
.sidebar-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.sidebar-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #faba01;
}

.sidebar-card .search-form {
    width: 100%;
}

.sidebar-card .search-input-group {
    display: flex;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.sidebar-card .search-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #495057;
}

.sidebar-card .search-input-group input::placeholder {
    color: #6c757d;
}

.sidebar-card .search-input-group button {
    background: #148dc9;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-card .search-input-group button:hover {
    background: #0f7bb3;
    color: white;
}

.separator {
    color: #adb5bd;
    margin: 0 5px;
}

.current {
    color: #495057;
    font-weight: 500;
}

/* Article Header Styles */
.article-header {
    margin: 0 0 30px 0;
    background-color: #f8f8f8;
    padding: 15px 10px;
    border-radius: 8px;
}

.article-header .article-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin: 0px 0px 20px 0px;
    font-family: 'Inter', sans-serif;
}

.article-excerpt {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Horizontal Divider */
.article-divider {
    border: none;
    height: 1px;
    background-color: #e9ecef;
    margin: 0px 0px 10px 0px;
}

/* Article Meta Styles */
.article-meta {
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 12px;
    color: #6c757d;
}

.meta-item i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.meta-item span {
    flex: 1;
}

/* Article Content Styles */
.article-content {
    padding: 10px 0px 30px 0px;
    background-color: #ffffff;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 800px 400px;
    gap: 0;
    padding: 0 20px;
}

/* Article Body Column */
.article-body {
    grid-column: 1;
}

/* Sidebar Column */
.article-sidebar {
    grid-column: 2;
    padding-left: 20px;
    background-color: #ffffff;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ad Card */
.ad-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ad-card-header {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.ad-card-content {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 30px 20px;
    margin-bottom: 15px;
    border: 2px dashed #dee2e6;
}

.ad-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.ad-card-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px;
}

.ad-card-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ad-card-button:hover {
    background-color: #0056b3;
}

/* Featured Image in Article Body */
.article-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Article Body Content */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #212529;
    font-family: 'Inter', sans-serif;
}

.article-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #212529;
    font-family: 'Inter', sans-serif;
}

/* Content Separator */
.content-separator {
    border: none;
    height: 1px;
    background-color: #e9ecef;
    margin: 10px 0;
}

/* Sidebar Placeholder */
.sidebar-placeholder {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #212529;
    font-weight: 600;
    margin: 30px 0 15px;
    line-height: 1.3;
}

.article-body h2 {
    font-size: 1.75rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.25rem;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid #007bff;
    padding: 20px 30px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

/* Simple Caretrip blockquote styling - clean and minimal */
.article-body blockquote.caretrip-blockquote {
    border-left: 4px solid #007bff;
    padding: 20px 30px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.article-body a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.article-body code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.article-body pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.article-body pre code {
    background-color: transparent;
    padding: 0;
    color: #212529;
}

/* Social Sharing */
.social-sharing {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.social-sharing h4 {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.share-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    margin-right: 5px;
}

.share-btn {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    line-height: 36px;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.share-btn.instagram {
    background-color: #e4405f;
    color: white;
}

.share-btn.instagram:hover {
    background-color: #d63384;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background-color: #1a91da;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background-color: #006ba1;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
}

/* Related Topics Styles */
.related-topics {
    margin: 30px 0;
    padding: 20px 0;
}

.topics-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topics-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background-color: #faba01;
    border-radius: 2px;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.topic-tag i {
    font-size: 11px;
    color: #6c757d;
}

.topic-tag:hover {
    background-color: #faba01;
    color: white;
    border-color: #faba01;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(250, 186, 1, 0.3);
}

.topic-tag:hover i {
    color: white;
}

/* Related Articles */
.related-articles {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.related-article .article-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article .article-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.related-article .article-category span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-article .article-content {
    padding: 10px;
}

.related-article h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-article h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h3 a:hover {
    color: #007bff;
}

.related-article p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-article .article-excerpt {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-article .article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.related-article .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-breadcrumb .container {
        font-size: 13px;
    }
    
    .breadcrumb-home i {
        font-size: 14px;
    }
    
    
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Mobile: Single column layout */
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .article-sidebar {
        display: none;
    }
    
    
    .article-header .article-title {
        font-size: 24px;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    
    .related-articles {
        padding: 40px 0;
    }
    
    .related-articles h2 {
        font-size: 1.5rem;
    }
    
    .breadcrumb-content {
        padding-left: 3px;
    }
}