/* PORTAL PPDS - Gaya utama. Navy, putih, gold. Huruf besar agar mudah dibaca. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --navy: #0b2545;
  --navy-dark: #071a31;
  --navy-soft: #13315c;
  --gold: #c9a227;
  --gold-soft: #f6edcf;
  --white: #ffffff;
  --bg: #f5f7fb;
  --text: #1c2733;
  --muted: #5a6776;
  --border: #dbe2ec;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(11, 37, 69, 0.1);
}

* { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0 0 .5em; }
a { color: var(--navy-soft); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.is-hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffd700;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4), 0 3px 8px rgba(0, 0, 0, 0.35);
  background: var(--navy-dark);
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.04);
}
.brand-name {
  font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: block;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #fff2cc 30%, #ffd700 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  line-height: 1.2;
  margin-bottom: 3px;
}
.brand-sub {
  font-family: 'Montserrat', "Segoe UI", Roboto, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 1.2px;
  color: #e2eaf4;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
  display: none; background: transparent; color: var(--white); border: 2px solid var(--gold);
  border-radius: 8px; padding: .4rem .8rem; font-size: 1rem; cursor: pointer;
}

.main-nav { background: var(--navy-soft); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: .8rem 1rem; color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: var(--gold); color: var(--navy); }
.mobile-auth-item { display: none; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 8px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #b08d1c; border-color: #b08d1c; }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-small { padding: .4rem .9rem; font-size: .9rem; }

/* ---------- Banner ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy-soft)); color: var(--white); padding: 4rem 0; text-align: center; }
.hero h1 { color: var(--white); font-size: 2.2rem; }
.hero .tagline { color: var(--gold); font-weight: 800; letter-spacing: 2px; font-size: 1.15rem; margin-bottom: 1rem; }
.hero p { max-width: 680px; margin: 0 auto 1.5rem; color: #dbe4f0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Bagian ---------- */
.section { padding: 2.5rem 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 3px solid var(--gold); padding-bottom: .5rem; }
.section-title h2 { margin: 0; font-size: 1.6rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1.1rem; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 1.15rem; }
.card .meta { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.card-cover { width: 100%; height: 170px; object-fit: cover; background: var(--gold-soft); }
.card-cover.placeholder { display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; font-size: 1.4rem; }
.read-more { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--navy); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.read-more:hover { color: var(--gold); text-decoration: underline; }

.stat { text-align: center; padding: 1.25rem; border-top: 5px solid var(--gold); }
.stat .number { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .label { color: var(--muted); font-weight: 600; }

.badge { display: inline-block; background: var(--gold-soft); color: var(--navy); border-radius: 20px; padding: .1rem .7rem; font-size: .75rem; font-weight: 700; margin-right: .4rem; }

.event-item { display: flex; gap: 1rem; align-items: center; padding: 1rem; }
.event-date { background: var(--navy); color: var(--white); border-radius: 10px; text-align: center; padding: .5rem .8rem; min-width: 68px; flex-shrink: 0; }
.event-date .day { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--gold); }
.event-date .month { font-size: .8rem; text-transform: uppercase; }
.event-item h3 { margin: 0; font-size: 1.05rem; }

.empty, .loading { padding: 1.5rem; text-align: center; color: var(--muted); background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c8d3e3; margin-top: 2rem; border-top: 4px solid var(--gold); }
.footer-inner { padding: 2rem 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-footer h3 { color: var(--gold); font-size: 1.05rem; }
.site-footer a { color: #e6edf7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { text-align: center; padding: 1rem; font-size: .85rem; border-top: 1px solid #1d3557; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-top {
    padding: 0.45rem 0;
    gap: 0.5rem;
  }
  .brand {
    gap: 0.6rem;
    min-width: 0;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }
  .brand-name {
    font-size: 1.15rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin-bottom: 2px;
    line-height: 1.1;
  }
  .brand-sub {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: #e2eaf4;
    font-weight: 600;
    opacity: 0.92;
    white-space: nowrap;
  }
  .header-actions #btn-login,
  .btn-desktop-auth {
    display: none !important;
  }
  .menu-toggle {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .mobile-auth-item {
    display: block;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 0.35rem;
  }
  .mobile-auth-link {
    color: #ffd700 !important;
    background: rgba(201, 162, 39, 0.15);
    font-weight: 700 !important;
  }
  .mobile-auth-link:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
  }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.2px;
  }
  .menu-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
  }
}

/* ---------- Formulir & Pesan (Tahap 6) ---------- */
.page-narrow { max-width: 560px; margin: 2.5rem auto; }
.form-card { background: var(--white); border: 1px solid var(--border); border-top: 5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.form-card h1 { font-size: 1.6rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.form-group .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(19, 49, 92, .15); }
.form-group input[type="checkbox"] { width: auto; min-height: 0; margin-right: .5rem; transform: scale(1.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.alert { padding: .9rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; border-left: 5px solid; }
.alert-error { background: #fdecea; color: #8a1c13; border-color: #d93025; }
.alert-success { background: #e6f4ea; color: #14532d; border-color: #1e8e3e; }
.alert-info { background: var(--gold-soft); color: #5c4700; border-color: var(--gold); }
.form-footer { margin-top: 1rem; text-align: center; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Berita & Tabel (Tahap 7) ---------- */
.filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.filter-bar select { min-height: 44px; padding: .4rem .8rem; font-size: 1rem; border: 2px solid var(--border); border-radius: 8px; background: var(--white); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; color: var(--gold); }
.article { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; max-width: 820px; margin: 0 auto; }
.article h1 { font-size: 1.9rem; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin: 1rem 0; }
.article-content { white-space: pre-line; font-size: 1.08rem; line-height: 1.7; transition: font-size 0.2s ease, line-height 0.2s ease; }

/* Pengatur Ukuran Huruf (A- / A / A+) */
.font-resizer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #f0f4f9;
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.font-resizer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.font-btn-group {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.btn-font-size {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.btn-font-size:hover {
  border-color: var(--gold);
}
.btn-font-size.active {
  background: var(--navy);
  color: #ffd700;
  border-color: var(--navy);
}

/* Pengatur Ukuran Huruf Detail Berita */
.article.font-sm h1 { font-size: 1.45rem !important; }
.article.font-sm .article-content,
.article-content.font-sm { font-size: 0.95rem !important; line-height: 1.6 !important; }

.article.font-md h1 { font-size: 1.85rem !important; }
.article.font-md .article-content,
.article-content.font-md { font-size: 1.1rem !important; line-height: 1.75 !important; }

.article.font-lg h1 { font-size: 2.3rem !important; }
.article.font-lg .article-content,
.article-content.font-lg { font-size: 1.38rem !important; line-height: 1.85 !important; }

.article.font-xl h1 { font-size: 2.75rem !important; }
.article.font-xl .article-content,
.article-content.font-xl { font-size: 1.68rem !important; line-height: 2 !important; }

/* Kategori Kabar Duka Cita & Takziah Bersama */
.badge-duka {
  background: #1a252f !important;
  color: #ffffff !important;
  border: 1px solid #7f8c8d;
}
.badge-kesehatan {
  background: #0b5ed7 !important;
  color: #ffffff !important;
}
.box-duka {
  background: #fafbfc;
  border: 2px solid #2c3e50;
  border-left: 8px solid #1a252f;
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  text-align: center;
}
.box-duka .arabic {
  font-family: "Amiri", "Traditional Arabic", "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a252f;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.box-duka p {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.98rem;
}
.takziah-section {
  margin-top: 2rem;
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
}
.takziah-section h3 {
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.takziah-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}
.takziah-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-soft);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.takziah-item .author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.takziah-item .time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.takziah-item .text {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
  white-space: pre-line;
}
.btn-wa-takziah {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff !important;
  border: 2px solid #20b858;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.75rem;
}
.btn-wa-takziah:hover {
  background: #1ea952;
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--navy); color: var(--white); text-align: left; padding: .7rem; font-size: .9rem; }
.data-table td { padding: .7rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .95rem; }
.actions { white-space: nowrap; }
.actions .btn { margin-right: .3rem; }
.btn-danger { background: #d93025; border-color: #d93025; color: var(--white); }
.btn-danger:hover { background: #b3261e; border-color: #b3261e; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); margin-left: .5rem; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Agenda (Tahap 8) ---------- */
.event-item h3 a { color: var(--navy); text-decoration: none; }
.event-item h3 a:hover { text-decoration: underline; color: var(--gold); }

/* ---------- Galeri (Tahap 9) ---------- */
.card h3 a { color: var(--navy); text-decoration: none; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.media-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding-bottom: .5rem; }
.media-item img, .media-item video { width: 100%; height: 200px; object-fit: cover; display: block; background: #000; }
.media-item .btn { margin: 0 .5rem; }
.media-caption { padding: .5rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- Kegiatan Sosial (Tahap 10) ---------- */
.timeline-item { border-left: 4px solid var(--gold); padding: .25rem 0 .25rem 1rem; margin: 1rem 0; }
.timeline-item h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.timeline-item .btn { margin-top: .5rem; }

/* ---------- Ruang Silaturahmi (Tahap 11) ---------- */
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; color: var(--gold); }
.comment { border-left: 4px solid var(--gold); background: var(--bg); border-radius: 0 10px 10px 0; padding: .75rem 1rem; margin: .8rem 0; }
.comment-actions { margin-top: .5rem; }
.comment-actions .btn { margin-right: .4rem; }
.comment-form { margin-top: 1.25rem; }
.badge-warn { background: #fdecea; color: #8a1c13; }

/* ---------- Admin & Status Badges (Tahap 12) ---------- */
.badge-success { background: #e6f4ea; color: #14532d; }
.badge-danger { background: #fdecea; color: #8a1c13; }
.form-select-sm { padding: 0.25rem 0.5rem; font-size: 0.9rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white); }
.filter-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-buttons .btn.active { background: var(--navy); color: var(--white); }
.text-center { text-align: center; }

/* Tombol Unduh Foto Galeri */
.media-actions { padding: 0.5rem; text-align: center; background: #fafbfc; border-top: 1px solid var(--border); }
.btn-download { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-download:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--gold); }

/* ---------- Visitor Counter di Footer ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  font-size: 0.85rem;
  border-top: 1px solid #1d3557;
}
.footer-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #dbe4f0;
}
.counter-number {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   BOTTOM NAVIGATION BAR (Khusus Tampilan HP / Mobile)
   ========================================================= */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px !important;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #ffffff;
    border-top: 1.5px solid #e2e8f0;
    box-shadow: 0 -3px 14px rgba(11, 37, 69, 0.08);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item .bottom-nav-icon {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 2px;
    transition: transform 0.15s ease;
  }

  .bottom-nav-item.active {
    color: var(--navy);
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.15);
  }

  .bottom-nav-item.active .bottom-nav-label {
    color: var(--navy);
    font-weight: 700;
    position: relative;
  }

  .bottom-nav-item.active .bottom-nav-label::after {
    content: '';
    display: block;
    width: 14px;
    height: 2.5px;
    background: var(--gold);
    border-radius: 2px;
    margin: 2px auto 0;
  }
}

/* =========================================================
   TOMBOL PINTAS UTAMA BERANDA (Quick Action Cards)
   ========================================================= */
.quick-actions-section {
  padding: 1.75rem 0 0.5rem;
  background: #f8fafc;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.12);
  border-color: var(--gold);
}

.quick-action-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.quick-action-text {
  flex-grow: 1;
}

.quick-action-text h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.quick-action-text p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}

.quick-action-arrow {
  color: #94a3b8;
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s, color 0.2s;
}

.quick-action-card:hover .quick-action-arrow {
  transform: translateX(4px);
  color: var(--navy);
}

@media (max-width: 900px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .quick-action-card {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
  }
  .quick-action-icon {
    font-size: 1.75rem;
  }
  .quick-action-text h3 {
    font-size: 0.92rem;
  }
  .quick-action-text p {
    font-size: 0.75rem;
  }
  .quick-action-arrow {
    display: none;
  }
}

/* Universal Formatting Toolbar (Tebal, Miring, Garis Bawah, dsb) */
.formatting-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 0.4rem 0.6rem;
}

.btn-fmt {
  padding: 0.22rem 0.55rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: background 0.15s, border-color 0.15s;
}

.btn-fmt:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.has-toolbar {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

