/**
 * AREF Theme — homepage styles (African Review of Economics and Finance)
 */

.aref-theme .page_index_journal.aref-home .pkp_structure_main { padding-top: 0; }

.aref-home { padding-top: 10px; }

/* Title + meta bar */
.aref-post-head {
    padding: 6px 0 14px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 18px;
}

.aref-home-title {
    margin: 0 0 10px;
    font-family: 'Oswald', 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #6f7878;
    letter-spacing: 0.5px;
}

.aref-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.aref-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9aa0a0;
    font-style: italic;
    font-size: 14px;
}

.aref-meta__item .fa { color: #c2c7c7; font-style: normal; }

/* Conference / announcement banner */
.aref-conf-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 22px;
    background: var(--aref-info);
    border: 1px solid #bce8f1;
    border-radius: 4px;
    color: var(--aref-info-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.06);
}

.aref-conf-banner:hover { color: var(--aref-info-text); }

.aref-conf-banner__badge {
    flex-shrink: 0;
    background: var(--aref-red);
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.5);
    animation: aref-badge-pulse 1.6s infinite;
}

@keyframes aref-badge-pulse {
    0% { box-shadow: 0 0 3px rgba(231, 76, 60, 0.6); }
    50% { box-shadow: 0 0 22px rgba(231, 76, 60, 0.9); }
    100% { box-shadow: 0 0 3px rgba(231, 76, 60, 0.6); }
}

.aref-conf-banner__text {
    font-size: 16px;
    line-height: 1.4;
}

/* Homepage image slider (Highlights) */
.aref-home-highlights {
    margin-bottom: 26px;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}

.aref-home-slider {
    position: relative;
    width: 100%;
}

.aref-home-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aref-home-swiper .swiper-wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aref-home-swiper__slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    min-height: 220px;
    background: #1a2023;
}

.aref-home-swiper__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.aref-home-swiper__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.aref-home-swiper__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.aref-home-swiper__title {
    margin: 0 0 6px;
    font-family: 'Oswald', 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
}

.aref-home-swiper__desc {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.92;
}

.aref-home-swiper__desc p:last-child { margin-bottom: 0; }

.aref-home-swiper__cta {
    display: inline-block;
    margin-top: 10px;
    background: var(--aref-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

.aref-home-swiper__pagination {
    position: absolute;
    bottom: 12px !important;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
}

.aref-home-swiper__prev,
.aref-home-swiper__next {
    --swiper-navigation-size: 22px;
    --swiper-navigation-color: #fff;
    width: 42px;
    height: 42px;
    margin-top: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
}

.aref-home-swiper__prev:hover,
.aref-home-swiper__next:hover {
    background: rgba(28, 205, 202, 0.85);
}

.aref-home-swiper__prev { left: 12px; }
.aref-home-swiper__next { right: 12px; }

/* Single homepage image fallback */
.aref-home-image {
    margin-bottom: 26px;
    border-radius: 4px;
    overflow: hidden;
}

.aref-home-image img { width: 100%; height: auto; display: block; }

/* Two-column cards */
.aref-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 28px;
}

.aref-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.aref-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--aref-primary);
    color: #fff;
    font-family: 'Oswald', 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 17px;
    text-transform: capitalize;
}

.aref-card__head .fa { color: #fff; }

.aref-card__body { padding: 16px 20px; }

.aref-article-list {
    list-style: none;
    counter-reset: aref-art;
    margin: 0;
    padding: 0;
}

.aref-article-list__item {
    counter-increment: aref-art;
    position: relative;
    padding: 12px 0 12px 30px;
    border-bottom: 1px dashed #e2e2e2;
}

.aref-article-list__item:last-child { border-bottom: none; }

.aref-article-list__item::before {
    content: counter(aref-art) ".";
    position: absolute;
    left: 0;
    top: 12px;
    font-weight: 700;
    color: var(--aref-primary-dark);
}

.aref-article-list__title {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.45;
}

.aref-article-list__title .fa { color: var(--aref-primary); margin-right: 4px; }

.aref-article-list__title a {
    color: #123;
    font-weight: 700;
    text-decoration: underline;
}

.aref-article-list__title a:hover { color: var(--aref-red); }

.aref-article-list__authors,
.aref-article-list__stat {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: #777;
}

.aref-article-list__authors .fa { color: #bbb; margin-right: 4px; }

.aref-article-list__stat strong { color: #444; }

.aref-view-all {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}

.aref-view-all .fa { color: var(--aref-primary); margin-right: 4px; }

.aref-view-all a {
    color: #2e7d32;
    font-weight: 700;
    text-decoration: none;
}

.aref-view-all a:hover { text-decoration: underline; }

/* Generic section title (about / additional content) */
.aref-section { margin-bottom: 2.2rem; }

.aref-section__title {
    color: var(--aref-heading);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--aref-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.aref-section__title .fa { color: var(--aref-primary); }

@media (max-width: 992px) {
    .aref-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .aref-home-title { font-size: 23px; }
    .aref-conf-banner { padding: 14px 16px; }
    .aref-conf-banner__text { font-size: 14px; }
}
