:root {
    --primary: #2563EB;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body.dark-mode {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); transition: 0.3s; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
 
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem; /* bisa diatur sesuai proporsi icon */
}
.logo img {
  height: 40px;       /* desktop */
  max-height: 35px;   /* mobile */
  width: auto;        /* proporsional */
}
header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 14px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 50;
        }
        [data-theme="dark"] header { background: rgba(15, 23, 42, 0.85); }

        .brand {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        .brand i { color: var(--primary); }

        .btn-icon {
            background: var(--bg-card);
            border: 1px solid var(--border);
            width: 34px; height: 34px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            color: var(--text-sec);
            transition: all 0.2s ease;
        }
        .btn-icon:hover {
            color: var(--primary);
            border-color: var(--primary);
            transform: translateY(-1px);
        }

/* Navbar */
.navbar { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 99; }
.navbar-inner { height: 70px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 800; font-size: 1.4rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 32px; height: 32px; border-radius: 6px; }
.nav-menu { display: flex; gap: 25px; align-items: center; font-weight: 600; }
.nav-menu button { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 80px 0 50px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.hero p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grid & Cards */
.grid-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; padding-bottom: 80px; }
.card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); }
.card-thumb { height: 200px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.tag { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.card-title { font-size: 1.25rem; font-weight: 700; margin: 10px 0; line-height: 1.4; }
.card-desc { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-read { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Footer */
footer { text-align: center; padding: 20px; color: var(--text-sec); font-size: 0.75rem; border-top: 1px solid var(--border); }
.cta-wrapper {
  margin-top: 50px;
  text-align: center;
}

.ios-btn-clean {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 500;

  color: #007aff; /* iOS blue */
  background: #ffffff;

  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);

  text-decoration: none; /* ⬅️ ini yang ngilangin garis */

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  transition: background 0.15s ease,
              transform 0.1s ease,
              box-shadow 0.1s ease;
}

/* icon panah */
.ios-btn-clean i {
  font-size: 0.8rem;
}

/* hover */
.ios-btn-clean:hover {
  background: #f5f5f7;
}

/* tap / pressed */
.ios-btn-clean:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.ios-btn-clean,
.ios-btn-clean:visited,
.ios-btn-clean:hover,
.ios-btn-clean:active,
.ios-btn-clean:focus {
  text-decoration: none !important;
  color: #007aff;
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}