﻿.article-hero {
    width: 100%;
    background: #fff;
}

.article-hero-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    z-index: 10;
}

.article-hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.article-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 24px;
}

.article-hero-text h1 {
    font-size: 2rem;
    font-weight: 500;
    color: white;
}

.article-content-area {
    display: flex;
    gap: 24px;
}

.article-sidebar-left {
    width: 64px;
    display: none;
}

.article-sidebar-left .article-sidebar-content {
    position: sticky;
    top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.article-sidebar-button {
    padding: 12px;
    border-radius: 50%;
    background: #dee4e7;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.article-sidebar-button:hover {
    background: #cbd0d2;
}

.article-sidebar-button.bookmark-active {
    background: #dbeafe;
}

.article-sidebar-button.bookmark-active:hover {
    background: #ccddf4;
}

.article-sidebar-button svg {
    width: 20px;
    height: 20px;
    color: #4a5568;
}

.article-sidebar-button.bookmark-active svg {
    fill: #2563eb;
}

.article-read-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.article-read-time svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.article-content-body {
    flex: 1;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-content-body .article-intro {
    font-size: 1.1rem;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-container h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a202c;
}

.article-container p {
    font-size: 1rem;
    color: #4b5563;
}


/* Common table styles */
.article-container table {
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
    background-color: #fff;
    border-color: #000;
}

.article-container table th,
.article-container table td {
    border: 1px solid;
    padding: 6px;
    color: #000;
    word-break: break-word;
}

/* Striped rows */
.article-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ul css */
.article-content-body ul{
    margin-left: 2rem;
}
/* container end */


@media (min-width: 1024px) {
    .article-sidebar-left {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-hero-image {
        height: 200px;
    }

    .article-hero-text {
        padding: 16px;
    }

    .article-hero-text h1 {
        font-size: 1.5rem;
    }

    .article-content-area {
        flex-direction: column;
        gap: 16px;
    }

    .article-intro {
        font-size: 1rem;
    }

    .article-content-body,
    .article-container {
        gap: 14px;
    }

    .article-content-body h2 {
        font-size: 1.3rem;
    }

    .article-content-body p {
        font-size: 0.95rem;
    }

    .article-content-body img {
        width: 100%;
        object-fit: cover;
    }   
}

@media (max-width: 480px) {
    .article-hero-image {
        height: 150px;
    }

    .article-hero-text {
        padding: 12px;
    }

    .article-hero-text h1 {
        font-size: 1.3rem;
    }

    .article-content-area {
        gap: 12px;
    }

    .article-intro {
        font-size: 0.9rem;
    }

    .article-content-body,
    .article-container {
        gap: 12px;
    }

    .article-content-body h2 {
        font-size: 1.2rem;
    }

    .article-content-body p {
        font-size: 0.9rem;
    }
    .article-content-body img {
        width: 100%;
        object-fit: cover;
    }
}
