/* ─── Advisory Page ──────────────────────────────────────────────── */

.adv-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.adv-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.adv-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Header ────────────────────────────────────────────────── */
.adv-page-title {
    text-align: center;
    padding: 28px 0 10px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* ─── Equal-height row ───────────────────────────────────────────── */
.adv-main-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
}

.adv-list-col {
    flex: 0 0 58%;
    max-width: 58%;
    display: flex;
    flex-direction: column;
}

.adv-image-col {
    flex: 1;
    min-width: 260px;
}

@media (max-width: 991px) {
    .adv-list-col,
    .adv-image-col { flex: 0 0 100%; max-width: 100%; }
    .adv-image-col { display: none; }
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.adv-card-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 8px;
    border-left: 4px solid #1a7a1a;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.adv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    color: inherit;
    text-decoration: none;
}

.adv-card.is-latest {
    border-left-color: #d62828;
}

.adv-card__body {
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adv-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #1a7a1a;
}

.adv-card.is-latest .adv-card__icon {
    background: #fff0f0;
    color: #d62828;
}

.adv-card__info {
    flex: 1;
    min-width: 0;
}

.adv-card__title {
    font-size: .88rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-card__date {
    font-size: .73rem;
    color: #666;
    margin: 0;
}

.adv-card__action {
    flex-shrink: 0;
}

/* ─── Latest Badge Blink ─────────────────────────────────────────── */
.badge-latest {
    background: #d62828;
    color: #fff;
    font-size: .62rem;
    padding: 1px 7px;
    border-radius: 20px;
    vertical-align: middle;
    animation: adv-blink 1.2s step-start infinite;
}

@keyframes adv-blink {
    50% { opacity: 0; }
}

/* ─── Side Image ─────────────────────────────────────────────────── */
.adv-side-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    height: 100%;
}

.adv-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.adv-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.adv-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.adv-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.adv-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}
