﻿/* Article view page */
.av-wrapper {
    color: #000;
}


/* Override gradient/dark text inside the panel */
.av-wrapper .av-panel,
.av-wrapper .av-panel .custom-text-color,
.av-wrapper .av-panel a:not(.btn):not(.badge) {
    color: #000;
}

.av-wrapper .av-panel .av-card,
.av-wrapper .av-panel .av-card__header,
.av-wrapper .av-panel .av-card__body,
.av-wrapper .av-panel .av-card__title,
.av-wrapper .av-panel .av-related-list a {
    color: #000;
}

.av-wrapper .av-panel .av-related-list a:hover {
    color: #E68A8F;
}

.av-hero {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.915);
}

.av-hero__img {
    width: 100%;
    height: 375px;
    border-radius: .75rem;
    object-fit: contain;
    object-position: center;
    background: rgba(200, 90, 99, 0.06);
}

@media (max-width: 767.98px) {
    .av-hero__img {
        height: 260px;
    }
}

.av-hero__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.av-hero__divider {
    border: 0;
    border-top: 4px solid  rgba(84, 56, 4, 0.266);
    margin: .75rem 0 1rem;
}

.av-hero__lead {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    opacity: .92;
}

/* Info items strip */
.av-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    align-items: center;
    padding: .75rem 1rem;
    background: rgba(84, 56, 4, 0.266);
    border-radius: .75rem;
}

.av-info-item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    line-height: 1.25;
}

.av-info-item__icon {
    font-size: 1.5rem;
    color: #331e03;
    flex: 0 0 auto;
}

.av-info-item__text {
    white-space: pre-line;
}

/* Body content */
.av-body {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.75;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgb(201, 201, 201);
}

.av-body img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: 1rem 0;
}

.av-body h2,
.av-body h3,
.av-body h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    color: #e78b12;
}

/* Share buttons */
.av-share {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.share-btn-fb { background: #1877f2; border: 1px solid #0f5fc5; }
.share-btn-fb:hover { background: #145bc0; }
.share-btn-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border: none; }
.share-btn-ig:hover { filter: brightness(1.1); }

/* Remove Bootstrap green focus ring — use project orange */
.av-share .btn:focus,
.av-share .btn:focus-visible,
.av-share .btn:active,
.av-share .btn:active:focus {
    outline: none;
    box-shadow: 0 0 0 .25rem rgba(231, 139, 18, .45);
}

/* Like button */
.av-like-btn {
    background: #fff;
    border: 1.5px solid #e05d5d;
    color: #e05d5d;
    border-radius: 2rem;
    font-size: .82rem;
    font-weight: 600;
    padding: .28rem .75rem;
    transition: background .2s, color .2s, transform .15s;
    line-height: 1.4;
}
.av-like-btn:hover {
    background: #ffe8e8;
    transform: scale(1.07);
}
.av-like-btn.liked {
    background: #e05d5d;
    color: #fff;
    border-color: #c44;
}
.av-like-btn.liked .fa-heart {
    animation: av-heartbeat .35s ease;
}
@keyframes av-heartbeat {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

/* Gallery grid */
.av-gallery {
    margin-top: 2rem;
}

.av-gallery__title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f1302;
}

.av-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.av-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: .5rem;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, .15);
}

.av-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.av-gallery__item:hover img {
    transform: scale(1.06);
}

@media (max-width: 991.98px) {
    .av-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .av-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .av-info-strip {
        gap: .75rem 1rem;
    }
}

/* ── Article-view sidebar column ── */
.av-sidebar-col {
    padding: 0;
    margin: 0;
}

/* Card shell */
.av-card {
    background: rgba(255, 255, 255, 0.012);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-right: 1px solid #fff;
}

.av-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: #E68A8F;
    color: #fff;
    border-bottom: 1px solid rgba(200, 90, 99, 0.15);
}
.av-card__header i { font-size: 1rem; }
.av-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.av-card__body {
    padding: 0.95rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Sidebar customizations specific to article view */
.av-sidebar-content {
    font-size: .92rem;
    line-height: 1.6;
}

.av-sidebar-content img {
    max-width: 100%;
    height: auto;
    border-radius: .35rem;
}

/* Related articles */
.av-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.av-related-list li + li {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.av-related-list a {
    color: inherit;
    text-decoration: none;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}

.av-related-list a:hover {
    color: #e78b12;
}

.av-related-list img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: .35rem;
    flex: 0 0 auto;
}

.av-related-list .av-related-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25;
}

.av-related-list .av-related-date {
    font-size: .72rem;
    opacity: .7;
}
