/* Blog detail page styles for the aboutinsider theme */

/* ===================== Article layout ===================== */
.opla-article-wrap {
    padding-top: 4px;
}

/* ===================== Article header ===================== */
.opla-article-cat-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--opla-primary);
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-decoration: none;
}

.opla-article-cat-link:hover {
    text-decoration: underline;
    color: var(--opla-primary);
    opacity: 0.8;
}

.opla-article-h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--opla-text);
    line-height: 1.3;
    margin-bottom: 14px;
}

.opla-article-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: var(--opla-text-muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--opla-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.opla-article-meta__author {
    font-weight: 600;
    color: var(--opla-text);
}

/* ===================== Article body ===================== */
#opla-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--opla-text);
}

#opla-content img {
    max-width: 70%;
    height: auto;
    border-radius: 3px;
    margin: 12px 0;
}

#opla-content img[alt=""] {
    display: none;
}

#opla-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--opla-text);
    margin: 28px 0 12px;
    line-height: 1.3;
}

#opla-content h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--opla-text);
    margin: 22px 0 10px;
}

#opla-content p {
    margin: 0 0 16px;
}

#opla-content ul,
#opla-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

#opla-content ul {
    list-style: disc;
}

#opla-content ol {
    list-style: decimal;
}

#opla-content li {
    margin-bottom: 6px;
}

#opla-content a {
    color: var(--opla-primary);
    text-decoration: underline;
}

#opla-content a:hover {
    color: var(--opla-primary-dark);
    opacity: 1;
}

#opla-content blockquote {
    border-left: 3px solid var(--opla-primary);
    margin: 20px 0;
    padding: 10px 16px;
    background: var(--opla-bg-light);
    color: var(--opla-text-muted);
    font-style: italic;
}

/* ===================== FAQ Section ===================== */
.opla-faq {
    margin-top: 32px;
    border-top: 1px solid var(--opla-border);
    padding-top: 24px;
}

.opla-faq__heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--opla-text);
    margin-bottom: 18px;
}

.opla-faq-item {
    border-bottom: 1px solid var(--opla-border);
    padding: 14px 0;
}

.opla-faq-item:last-child {
    border-bottom: none;
}

.opla-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: var(--opla-text);
    margin-bottom: 6px;
}

.opla-faq-a {
    font-size: 14px;
    color: var(--opla-text-muted);
    line-height: 1.7;
}

/* ===================== Prev / Next navigation ===================== */
.opla-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--opla-border);
    font-size: 13px;
    flex-wrap: wrap;
}

.opla-article-nav__prev,
.opla-article-nav__next {
    flex: 1;
    min-width: 0;
}

.opla-article-nav__label {
    display: block;
    font-size: 11px;
    color: var(--opla-text-muted);
    /*text-transform: uppercase;*/
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.opla-article-nav__title {
    font-weight: 600;
    color: var(--opla-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.opla-article-nav__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-article-nav__next {
    text-align: right;
}

/* ===================== Related Articles ===================== */
.opla-related {
    margin-top: 40px;
    border-top: 3px solid var(--opla-primary);
    padding-top: 16px;
}

.opla-related__header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--opla-text);
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.opla-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.opla-related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opla-related-card__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    transition: opacity 0.2s ease;
}

.opla-related-card__img:hover {
    opacity: 0.85;
}

.opla-related-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opla-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.opla-related-card__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

/* ===================== Detail sidebar popular items ===================== */
.opla-popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--opla-border);
}

.opla-popular-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.opla-popular-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opla-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    flex: 1;
}

.opla-popular-item__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-popular-item__date {
    font-size: 11px;
    color: var(--opla-text-muted);
    margin-top: 4px;
}

.opla-cat-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--opla-border);
    font-size: 14px;
    color: var(--opla-text);
    text-decoration: none;
}

.opla-cat-list-link:last-child {
    border-bottom: none;
}

.opla-cat-list-link:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

/* ===================== Responsive ===================== */
@media (max-width: 600px) {
    .opla-article-h1 {
        font-size: 24px;
    }

    .opla-related__grid {
        grid-template-columns: 1fr 1fr;
    }
}
