/* =================================================
   CUSTOM OJS 3 THEME - BLUE, YELLOW, BLACK, WHITE
   ================================================= */

:root {
    --ojs-blue: #345791;       /* Warna Biru Utama */
    --ojs-dark-blue: #243f6d;  /* Biru gelap untuk hover */
    --ojs-yellow: #FBC02D;     /* Aksen Kuning / Emas */
    --ojs-black: #1E1E1E;      /* Hitam */
    --ojs-white: #FFFFFF;      /* Putih */
}

/* 1. Header & Line Aksen Kuning Utama */
.pkp_structure_head {
    border-bottom: 3px solid var(--ojs-yellow) !important;
}

/* 2. Primary Navigation Bar */
.pkp_navigation_primary_row, 
.navbar-default {
    background-color: var(--ojs-blue) !important;
    border-top: none !important;
    border-bottom: 2px solid var(--ojs-yellow) !important;
}

/* Link Menu Utama */
.pkp_navigation_primary_row > ul > li > a, 
.navbar-default .navbar-nav > li > a {
    color: var(--ojs-white) !important;
    font-weight: 500;
}

/* Hover Menu Utama (Teks berubah jadi Kuning) */
.pkp_navigation_primary_row > ul > li > a:hover, 
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.open > a {
    background-color: var(--ojs-dark-blue) !important;
    color: var(--ojs-yellow) !important;
}

/* 3. Dropdown Menu dengan Aksen Kuning */
.navbar-default .navbar-nav .dropdown-menu {
    background-color: var(--ojs-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-top: 3px solid var(--ojs-yellow) !important; /* Aksen Kuning di atas dropdown */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 5px 0;
}

.navbar-default .navbar-nav .dropdown-menu > li > a {
    color: var(--ojs-black) !important;
    background-color: transparent !important;
    padding: 10px 20px;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Hover Item Dropdown (Garis Samping Kuning & Teks Putih) */
.navbar-default .navbar-nav .dropdown-menu > li > a:hover {
    background-color: var(--ojs-blue) !important;
    color: var(--ojs-white) !important;
    border-left: 4px solid var(--ojs-yellow) !important; /* Aksen Kuning samping */
    padding-left: 20px;
}

/* 4. Sidebar Custom Block Menu */
.custom-sidebar-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-top: 3px solid var(--ojs-yellow); /* Aksen Kuning atas sidebar */
    border-radius: 4px;
    overflow: hidden;
}

.custom-sidebar-menu a {
    display: block;
    padding: 12px 15px;
    background-color: var(--ojs-blue) !important;
    color: var(--ojs-white) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.custom-sidebar-menu a:hover {
    background-color: var(--ojs-dark-blue) !important;
    color: var(--ojs-yellow) !important; /* Teks Kuning saat hover */
    border-left: 4px solid var(--ojs-yellow) !important; /* Aksen Kuning samping */
    padding-left: 20px;
}

/* 5. Judul Block Sidebar Bawaan OJS */
.pkp_block .title {
    background-color: var(--ojs-blue) !important;
    color: var(--ojs-white) !important;
    border-left: 4px solid var(--ojs-yellow) !important;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
  }
  .sidebar-widget-title {
    background-color: #345791 !important;
    color: #ffffff !important;
    padding: 10px 15px;
    font-weight: 700;
    border-left: 4px solid #FBC02D !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0;
  }
  .sidebar-widget-content {
    padding: 15px;
  }
  .sidebar-template-card {
    display: block;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
  }
  .sidebar-template-card:last-child {
    margin-bottom: 0;
  }
  .sidebar-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 87, 145, 0.2);
    border-color: #345791;
  }
  .sidebar-template-card img {
    width: 100%;
    height: auto;
    display: block;
  }
  .accreditation-container {
    text-align: center;
  }
  .accreditation-logo {
    display: inline-block;
    max-width: 160px;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
  }
  .accreditation-logo:hover {
    transform: scale(1.03);
  }
  .accreditation-logo img {
    width: 100%;
    height: auto;
    display: block;
  }
  .accreditation-text {
    font-size: 12.5px;
    color: #444444;
    text-align: justify;
    line-height: 1.5;
  }
  .accreditation-text a {
    color: #345791;
    font-weight: 600;
    text-decoration: none;
  }
  .accreditation-text a:hover {
    text-decoration: underline;
    color: #243f6d;
  }
  .tool-item {
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
  }
  .tool-item:last-child {
    margin-bottom: 0;
  }
  .tool-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-color: #345791;
  }
  .tool-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .index-logo-item {
    display: block;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
  }
  .index-logo-item:last-child {
    margin-bottom: 0;
  }
  .index-logo-item:hover {
    background: #ffffff;
    border-color: #345791;
    box-shadow: 0 4px 10px rgba(52, 87, 145, 0.15);
    transform: translateY(-2px);
  }
  .index-logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .visitor-counter-box {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Memastikan semua elemen (gambar & tombol) rata tengah sempurna */
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .visitor-counter-box img {
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
  }
  .visitor-stats-btn {
    display: inline-block;
    margin: 0 auto;
    padding: 7px 16px;
    background-color: #345791;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  .visitor-stats-btn:hover {
    background-color: #243f6d;
    color: #FBC02D !important;
    box-shadow: 0 2px 6px rgba(52, 87, 145, 0.25);
  }
  .issn-card {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
  }
  .issn-number {
    font-size: 15px;
    font-weight: bold;
    color: #C62828;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .issn-type {
    font-size: 12px;
    color: #555555;
    margin-bottom: 12px;
  }
  .issn-btn {
    display: inline-block;
    padding: 7px 14px;
    background-color: #345791;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  .issn-btn:hover {
    background-color: #243f6d;
    color: #FBC02D !important;
    box-shadow: 0 2px 6px rgba(52, 87, 145, 0.25);
  }
  
 .focus-scope-container {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1E1E1E;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  /* Header Box */
  .focus-scope-header {
    background-color: #345791;
    color: #ffffff;
    padding: 15px 20px;
    border-left: 5px solid #FBC02D;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .focus-scope-header h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Description Text */
  .focus-scope-intro {
    font-size: 15px;
    color: #444444;
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
  }

  .focus-scope-intro strong {
    color: #C62828;
  }

  /* Grid Cards Layout */
  .scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .scope-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #345791;
    border-radius: 6px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  }

  .scope-card:hover {
    transform: translateY(-4px);
    border-top-color: #C62828;
    border-bottom: 3px solid #FBC02D;
    box-shadow: 0 6px 15px rgba(52, 87, 145, 0.15);
  }

  .scope-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background-color: #345791;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
  }

  .scope-card:hover .scope-number {
    background-color: #C62828;
    color: #ffffff;
  }

  .scope-title {
    font-size: 16px;
    font-weight: 700;
    color: #1E1E1E;
    margin: 0;
  }