/**
 * Published Articles Archive Styles
 * MATCHING Graduate Research Premium Design
 */

:root {
    --art-primary: #1e407a;
    --art-accent: #ffc53a;
    --art-soft: #cdd4fb;
    --art-chip-bg: #b7d8ef;
    --art-text-main: #292929;
    --art-text-muted: #545454;
    --art-border-soft: #cdd4fb;
    --art-page-bg: #fbfbfb;
    --art-card-bg: #ffffff;
    --art-radius-lg: 20px;
    --art-radius-md: 14px;
    --art-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* NEW HERO SECTION - Full Bleed */
.art-hero-wrapper {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    left: 0;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-bottom: 3rem;
    background-color: var(--art-primary);
}

.limit-wrapper,
.vamtam-box-outer-padding {
    overflow: visible !important;
}

.art-hero-overlay-box {
    background: var(--art-primary);
    color: #ffffff;
    padding: 2.5rem 3rem;
    width: 90%;
    max-width: 600px;
    margin-left: 10%;
    margin-bottom: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top-left-radius: var(--art-radius-lg);
    border-top-right-radius: var(--art-radius-lg);
}

@media (max-width: 768px) {
    .art-hero-wrapper {
        height: 300px;
    }

    .art-hero-overlay-box {
        width: 95%;
        margin-left: 2.5%;
        margin-bottom: -2rem;
        padding: 1.5rem 2rem;
    }
}

.art-hero-title {
    margin: 0 0 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
}

.art-hero-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
}

/* RTL Support for Hero Section */
html[dir="rtl"] .art-hero-overlay-box,
html[lang="ar"] .art-hero-overlay-box,
body.rtl .art-hero-overlay-box {
    margin-left: 0;
    margin-right: 10%;
    text-align: right;
}

html[dir="rtl"] .art-hero-title,
html[lang="ar"] .art-hero-title,
body.rtl .art-hero-title {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .art-hero-subtitle,
html[lang="ar"] .art-hero-subtitle,
body.rtl .art-hero-subtitle {
    text-align: right;
    direction: rtl;
}

@media (max-width: 768px) {

    html[dir="rtl"] .art-hero-overlay-box,
    html[lang="ar"] .art-hero-overlay-box,
    body.rtl .art-hero-overlay-box {
        margin-left: 0;
        margin-right: 2.5%;
    }
}

html[dir="rtl"] .art-hero-wrapper,
html[lang="ar"] .art-hero-wrapper,
body.rtl .art-hero-wrapper {
    margin-left: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    right: 0;
    left: auto;
}

/* Hide default theme archive header */
.post-type-archive-published_article .page-header,
.post-type-archive-published_article .page-title,
.post-type-archive-published_article .entry-title,
.post-type-archive-published_article #sub-header,
.post-type-archive-published_article .elementor-page-title,
.post-type-archive-published-article .page-header,
.post-type-archive-published-article .page-title,
.post-type-archive-published-article .entry-title,
.post-type-archive-published-article #sub-header,
.post-type-archive-published-article .elementor-page-title {
    display: none !important;
}

/* Heading overrides */
.post-type-archive-published_article .art-archive-page h1,
.post-type-archive-published_article .art-archive-page h2,
.post-type-archive-published_article .art-archive-page h3,
.post-type-archive-published_article .art-archive-page h4 {
    font-family: inherit;
    line-height: 1.4;
}

.post-type-archive-published_article .art-title {
    font-size: 2rem !important;
    font-weight: 800;
    letter-spacing: 0.06em;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--art-page-bg);
    color: var(--art-text-main);
}

.art-archive-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 0 60px;
}

.art-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
.art-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.art-header-main {
    max-width: 650px;
}

.art-title {
    margin: 0;
    color: var(--art-primary);
    text-transform: uppercase;
}

.art-subtitle {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: var(--art-text-muted);
    line-height: 1.7;
}

.art-stat-card {
    min-width: 220px;
    padding: 14px 18px;
    border-radius: var(--art-radius-md);
    background: linear-gradient(135deg, var(--art-primary), #164885);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(6, 30, 72, 0.45);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.art-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.art-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.art-stat-note {
    font-size: 0.8rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .art-header {
        flex-direction: column;
    }

    .art-stat-card {
        align-self: stretch;
    }
}

/* FILTERS */
.art-filters {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) repeat(6, minmax(0, 1.2fr));
    gap: 12px 16px;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .art-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .art-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.art-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art-filter-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--art-text-muted);
    font-weight: 600;
}

.art-input,
.art-select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--art-border-soft);
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    background: #ffffff;
    color: var(--art-text-main);
}

.art-input:focus,
.art-select:focus {
    border-color: var(--art-primary);
    box-shadow: 0 0 0 1px rgba(30, 64, 122, 0.2);
}

/* GRID + CARDS */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .art-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .art-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.art-card {
    background: var(--art-card-bg);
    border-radius: var(--art-radius-lg);
    box-shadow: var(--art-shadow-soft);
    border: 1px solid rgba(205, 212, 251, 0.7);
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.art-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    font-size: 0.76rem;
    color: var(--art-text-muted);
}

.art-card-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.76rem;
}

.art-index-badges {
    display: flex;
    gap: 4px;
}

.art-index-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--art-chip-bg);
    border: 1px solid var(--art-soft);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--art-text-main);
}

.art-lang-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--art-chip-bg);
    border: 1px solid var(--art-soft);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--art-text-main);
}

.art-card-title {
    margin: 2px 0 2px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--art-primary);
}

.art-card-title a {
    color: inherit;
    text-decoration: none;
}

.art-card-title a:hover {
    text-decoration: underline;
}

.art-card-authors {
    margin: 0;
    font-size: 0.8rem;
    color: var(--art-text-muted);
}

.art-card-journal {
    margin: 0;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--art-text-main);
}

.art-card-meta {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--art-text-main);
    font-weight: 500;
}

.art-card-abstract {
    margin: 6px 0 6px;
    font-size: 0.82rem;
    color: var(--art-text-muted);
    line-height: 1.6;
    min-height: 40px;
}

.art-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

.art-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--art-chip-bg);
    border: 1px solid rgba(205, 212, 251, 0.9);
    font-size: 0.7rem;
    color: var(--art-text-main);
}

.art-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.art-keyword {
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff7e5;
    border: 1px solid #ffe0a3;
    font-size: 0.7rem;
    color: #92400e;
}

.art-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 0.76rem;
}

.art-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* BUTTONS */
.art-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, transform 0.15s ease;
}

.art-btn span {
    color: inherit;
}

.art-btn-primary {
    background: linear-gradient(120deg, var(--art-primary), #16345f);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 32, 70, 0.25);
}

.art-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(14, 32, 70, 0.35);
}

.art-btn-ghost {
    background: #ffffff;
    color: var(--art-primary);
    border: 1px solid var(--art-primary);
}

.art-btn-ghost:hover {
    background: var(--art-primary);
    color: #ffffff;
}

.art-card-id {
    color: var(--art-text-muted);
}

.art-empty {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--art-text-muted);
}

/* Force card title size */
.post-type-archive-published_article .art-card-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin: 2px 0 4px;
    font-weight: 700;
    color: var(--art-primary);
}

.post-type-archive-published_article .art-card-title a {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    text-decoration: none;
}

/* Force button text visibility */
.post-type-archive-published_article a.art-btn-primary {
    color: #ffffff !important;
    text-decoration: none !important;
}

.post-type-archive-published_article a.art-btn-primary span {
    color: inherit !important;
}

.post-type-archive-published_article a.art-btn-primary:hover {
    color: #ffffff !important;
}

/* PAGINATION */
.art-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.art-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.art-pagination li {
    display: inline-block;
}

.art-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #ffffff;
    border: 2px solid var(--art-border-soft);
    border-radius: 22px;
    color: var(--art-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.art-pagination .page-numbers.current,
.art-pagination .page-numbers.current:hover {
    background: var(--art-primary);
    color: #ffffff;
    border-color: var(--art-primary);
    box-shadow: 0 4px 12px rgba(30, 64, 122, 0.3);
}

.art-pagination .page-numbers:hover:not(.current) {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border-color: var(--art-primary);
    color: var(--art-primary);
}

/* RTL */
html[dir="rtl"] .art-card,
html[lang="ar"] .art-card,
body.rtl .art-card {
    direction: rtl;
    text-align: right;
}