@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

.name-container {
    border-left: 1px solid #c7c7c7;
    padding-left: 30px;
}

.page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-top: none;
    position: relative;
    overflow: hidden;
}



/*home-section*/
.additional-home-section {
    margin-top: 30px;
}

/* CARD */
.article-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: #00a896;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-card>a {
    text-decoration: none;
}

.latest-content {
    padding: 15px !important;
}

.nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #00a896;
}





/**/

/* =================================
   JOURNAL METRICS SECTION
   ================================= */
.journal_metrics_section {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 5px;
}

.journal_metrics_section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #001d3d;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
    /* border-bottom: 2px solid #e9ecef; */
}

.journal_metrics_section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #00a896;
}

.metrics-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.metrics-grid [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease-in-out;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    line-height: 1.2;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    display: block;
}

/* =================================
   HOMEPAGE ANNOUNCEMENTS CARD GRID
   ================================= */
.homepage-announcements-section {
    margin-top: 35px;
    margin-bottom: 35px;
}

.homepage-announcements-section .section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #001d3d;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.homepage-announcements-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #00a896;
}

.announcements-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.announcement-grid-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 12px;
    display: flex;
}

.announcement-card-custom {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.announcement-card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.announcement-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.announcement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card-custom:hover .announcement-card-image img {
    transform: scale(1.05);
}

.announcement-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.announcement-card-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.announcement-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.announcement-card-meta i {
    color: #94a3b8;
}

.announcement-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.announcement-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.announcement-card-title a:hover {
    color: #00a896;
}

.announcement-card-summary {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-card-footer {
    padding: 0 20px 20px 20px;
    margin-top: auto;
}

.announcement-card-footer .btn-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00a896;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.announcement-card-footer .btn-read-more:hover {
    color: #008f80;
    gap: 10px;
}

/* Responsive design for announcement grid */
@media (max-width: 991px) {
    .announcement-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .announcement-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .announcements-grid-row {
        margin-right: 0;
        margin-left: 0;
    }

    .announcement-grid-col {
        padding: 12px 0;
    }
}

/* Latest Issue Banner Card Styles */
.current_issue_banner_card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.current_issue_banner_card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.current_issue_banner_title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.current_issue_banner_stats {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ensure article cards in the list have equal height using CSS Grid */
.cmp_article_list.articles {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cmp_article_list.articles>li {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cmp_article_list.articles>li>.article-card-custom {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

@media (min-width: 768px) {
    .cmp_article_list.articles {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 1fr !important;
        /* Force all rows to have equal height */
        grid-gap: 30px !important;
    }
}

/* =================================
   ARTICLE SIDEBAR CUSTOM CARDS
   ================================= */
.sidebar-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-card-title {
    color: #0f3d5f;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 2.5px solid #00a896;
    display: inline-block;
}

.metrics-stats {
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 12px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f3d5f;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid #eaedf1;
    margin: 20px 0;
}

.scite-section,
.dimensions-section {
    text-align: center;
    margin-top: 15px;
}

.scite-section-title,
.dimensions-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f3d5f;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.scite-badge-container,
.dimensions-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

/* Publication info styles */
.pub-info-list {
    display: flex;
    flex-direction: column;
}

.pub-info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dotted #c7c7c7;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pub-info-item:last-child {
    border-bottom: none;
}

.pub-info-label {
    font-weight: 600;
    color: #495057;
    width: 32%;
    flex-shrink: 0;
}

.pub-info-value {
    color: #212529;
    width: 68%;
    padding-left: 8px;
}