/* ========================================
   SIDEBAR CARD
======================================== */
.custom-sidebar-card {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ========================================
   HEADER
======================================== */
.custom-card-header {
    background: #1C468E;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 11px;
    line-height: 1.3;
}

/* ========================================
   BODY
======================================== */
.custom-card-body {
    padding: 12px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.custom-card-body.p-0 {
    padding: 0;
}

/* ========================================
   ISSN / DOI / STATUS
======================================== */
.custom-card-body strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.status-ongoing {
    display: inline-block;
    padding: 4px 12px;
    background: #fff5e6;
    border: 1px solid #ffd699;
    color: #d97706;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
}

/* ========================================
   MENU LIST
======================================== */
.custom-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-menu-list li {
    border-bottom: 1px solid #ececec;
}

.custom-menu-list li:last-child {
    border-bottom: none;
}

.custom-menu-list a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #2f2f2f;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.custom-menu-list a:hover {
    background: #f7f9fc;
    color: #1C468E;
}

/* ========================================
   ICON TEMPLATE
======================================== */
.custom-menu-list img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ========================================
   DOWNLOAD TEMPLATE (Perbaikan Presisi Vertikal)
======================================== */
.custom-card-body.p-0 > .template-download-btn {
    display: flex !important;
    flex-direction: column !important; /* Menyusun ikon di atas teks */
    align-items: center !important; /* Paksa rata tengah horizontal */
    justify-content: center !important; /* Paksa rata tengah vertikal */
    
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 14px !important;
    
    background-color: #ffffff;
    
    /* Opsional: Membuat batas kotak halus di dalam kartu */
    border-bottom: 1px solid #dfe3e8;
    
    /* Paksa warna dan hilangkan garis bawah OJS */
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center !important; 
    
    transition: all 0.2s ease-in-out;
}

.template-download-btn img {
    width: 40px !important; /* Ukuran ikon dibesarkan */
    height: 40px !important;
    object-fit: contain;
    margin-bottom: 8px !important; /* Jarak antara ikon dan teks */
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

.template-download-btn:hover {
    background-color: #f7faff !important;
    color: #1C468E !important;
}

.template-download-btn:hover img {
    transform: translateY(-3px); /* Efek memantul ke atas */
}

/* ========================================
   TOOLS / INDEXED / SUPPORTED
======================================== */
.grid-box {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    border: 1px solid #e4e4e4;
    border-radius: 4px;

    padding: 10px;
    margin-bottom: 8px;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;

    transition: all 0.2s ease;
}

.grid-box:last-child {
    margin-bottom: 0;
}

.grid-box:hover {
    border-color: #1C468E;
    color: #1C468E;
    background: #ffffff;
}

/* ========================================
   VISITOR
======================================== */
.custom-card-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

/* ========================================
   STATS CARD
======================================== */
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1C468E;
    line-height: 1;
}

.stats-label {
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

/* ========================================
   MOBILE
======================================== */
@media (max-width: 768px) {

    .custom-card-header {
        font-size: 0.95rem;
        padding: 10px;
    }

    .custom-menu-list a {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .grid-box {
        font-size: 0.92rem;
        padding: 9px;
    }

    .custom-card-body {
        font-size: 0.95rem;
    }

    .stats-number {
        font-size: 1.8rem;
    }
}