/*
 Theme Name:   Newsis Child
 Theme URI:    https://wordpress.org/themes/newsis/
 Description:  Newsis Child Theme
 Author:       Krisna
 Author URI:   https://blogs.unpad.ac.id/krisna
 Template:     newsis
 Version:      1.0.0
 License:      GPLv2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  newsis-child
*/

/* Tambahkan CSS kustom Anda di bawah baris ini */
body .site-branding img.custom-logo {
  width: 160px;
}

.site-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #333;
  padding: 20px 20px 5px;
  margin: 0;
}

pre {
  background: #eee;
  font-family: var(--post-content-font);
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  padding: 0;
}

/* Memastikan ikon Font Awesome muncul di dalam tombol majalah */
.majalah-actions ._df_button i,
.majalah-actions .btn-download i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
}

/* Layout Wrapper agar ada jarak yang enak dilihat */
.harvard-layout-wrapper {
    padding: 40px 0;
    background-color: #fff; /* Atau sesuaikan dengan warna background Style A Anda */
}

/* Bagian Hero (Atas) */
.harvard-section-hero {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee; /* Garis pemisah tipis ala koran */
    padding-bottom: 20px;
}

/* Bagian Grid (Bawah) - Menggunakan CSS Grid Modern */
.harvard-section-grid .widget {
    /* Ini akan memaksa widget post didalamnya menjadi grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom */
    gap: 30px; /* Jarak antar berita */
}

/* Responsif untuk HP (Menjadi 1 kolom) */
@media (max-width: 768px) {
    .harvard-section-grid .widget {
        grid-template-columns: 1fr;
    }
}

/* Pembersihan Style Bawaan Newsis yang mungkin mengganggu */
.harvard-layout-wrapper .widget-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
    border-left: 5px solid #d32f2f; /* Aksen merah Harvard/Newsis */
    padding-left: 10px;
}

/* Style untuk Kotak Info Agenda */
.agenda-info-box {
    background: #f9f9f9;
    border-left: none;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.agenda-info-box h3 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
}

.agenda-table th, .agenda-table td {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #fff;
}

.agenda-table th {
    width: 35%;
    font-weight: 600;
    color: #333;
}

.agenda-table td {
    color: #555;
}

/* Ikon FontAwesome (pastikan tema memuat FontAwesome) */
.agenda-table i {
    margin-right: 8px;
    color: #ee3333;
    width: 20px;
    text-align: center;
}

/* Style Kotak Pengumuman */
.pengumuman-box {
    background-color: #e3f2fd; /* Warna biru muda lembut */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.pengumuman-row {
    margin-bottom: 15px;
    font-size: 16px;
}

.pengumuman-row:last-child {
    margin-bottom: 0;
}

/* Tombol Download */
.btn-download-pengumuman {
    display: inline-block;
    background-color: #2196F3;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-download-pengumuman:hover {
    background-color: #0b7dda;
    color: #fff !important;
}

.btn-download-pengumuman i {
    margin-right: 5px;
}

/* Container Grid */
.dari-media-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom */
    gap: 25px;
    margin: 30px 0;
}

/* Kartu Item */
.dari-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dari-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dari-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}

/* Gambar Thumbnail */
.dari-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

/* Area Teks */
.dari-content {
    padding: 15px;
}

.dari-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.dari-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.dari-item:hover .dari-title {
    color: #448BEF; /* Warna biru Newsis */
}

/* Style untuk Tanggal di Dari Media */
.dari-date {
    font-size: 12px;
    color: #999;
    margin-top: 10px; /* Jarak dari judul */
    font-weight: 500;
}

.dari-date i {
    margin-right: 5px;
    color: #ccc; /* Warna ikon kalender lebih pudar */
}

/* Opsional: Efek saat mouse diarahkan ke card, ikon jadi merah */
.dari-item:hover .dari-date i {
    color: #448BEF;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .dari-media-container {
        grid-template-columns: repeat(1, 1fr); /* 1 Kolom di HP */
    }
    .dari-thumb {
        height: 200px;
    }
}

footer .main-footer {
  background-color: #143A62 !important;
  padding-top: var(--footer-padding-top);
  padding-bottom: var(--footer-padding-bottom);
  display: flex;
  flex-wrap: wrap;
  margin-top: -1px;
}

.site-footer .bottom-footer {
  padding: 10px 0;
  background-color: #0e2c49 !important;
  text-align: center;
  margin-top: -1px;
}

/* Menyembunyikan Featured Image di dalam Halaman Single Post */
.single .entry-header .post-thumbnail {
  display: none;
}

/* Menghilangkan nama author di halaman daftar berita dan halaman detail */
.entry-meta .posted-by, 
.entry-meta .author,
.entry-footer .author-info-wrapper,
.single .post-author-box {
    display: none !important;
}

.byline, .author-name, .post-meta-author {
    display: none !important;
}

/* Menghilangkan pemisah (garis miring/titik) jika masih muncul setelah author hilang */
.entry-meta span:first-child::after {
    display: none !important;
}

/* Container Grid Majalah */
.majalah-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom untuk Desktop */
    gap: 30px;
    margin: 40px 0;
}

/* Kartu Majalah */
.majalah-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.majalah-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Gambar Cover (Rasio 3:4 standar majalah) */
.majalah-cover {
    padding-bottom: 133%; /* Membuat rasio portrait */
    background-size: cover;
    background-position: center top;
    border-bottom: 3px solid #143A62; /* Aksen merah Newsis */
}

/* Info & Judul */
.majalah-info {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.majalah-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* --- AREA TOMBOL --- */
.majalah-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center; /* Memastikan sejajar di tengah */
}

/* Menyamakan bentuk dasar KEDUA tombol */
.majalah-actions ._df_button,
.majalah-actions .btn-download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important; /* Kita paksa tingginya sama persis */
    padding: 0 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    cursor: pointer;
}

/* Warna khusus tombol BACA (Hitam) */
.majalah-actions ._df_button {
    background: #222 !important;
    color: #fff !important;
}
.majalah-actions ._df_button:hover {
    background: #fdb716 !important; /* Jadi merah saat di-hover */
}

/* Warna khusus tombol UNDUH (Abu-abu terang) */
.majalah-actions .btn-download {
    background: #f0f0f0 !important;
    color: #333 !important;
    transition: background 0.2s;
}
.majalah-actions .btn-download:hover {
    background: #e0e0e0 !important;
}

/* Responsif */
@media (max-width: 992px) {
    .majalah-grid-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .majalah-grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .majalah-grid-container { grid-template-columns: 1fr; }
}

