/*
Theme Name: My Custom Theme
Theme URI: https://zatamira.com/
Author: PT MEDIA SOROT EDUKASI INDONESIA
Author URI: https://zatamira.com/
Description: Tema custom SEO-friendly, ringan, responsif, dan siap Google Discover.
Version: 2.0 (Clean UI)
License: GNU General Public License v2 or later
Text Domain: my-custom-theme
*/

/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  background: #040404;
  color: #ffffff;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #0a0a0a;
  border-bottom: 1px solid #222;
}

.topbar .container {
  max-width: 1200px;
  margin: auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
}

.topbar a {
  color: #aaa;
  font-size: 13px;
  margin-left: 18px;
  transition: 0.3s;
}

.topbar a:hover {
  color: #fbbf24;
}

/* ================= HEADER ================= */
.site-header {
  background: #111;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #fbbf24;
  margin: 0;
}

/* ================= NAVIGATION ================= */
/* ================= NAVBAR UPGRADE ================= */
.site-header {
  background: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU */
.main-navigation {
  display: flex;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-menu li {
  list-style: none;
  position: relative;
}

/* LINK */
.main-menu a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: 0.3s;
}

/* HOVER */
.main-menu a:hover {
  color: #fbbf24;
}

/* ACTIVE */
.main-menu .current-menu-item > a {
  background: #fbbf24;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
}

/* UNDERLINE */
.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #fbbf24;
  transition: 0.3s;
}

.main-menu a:hover::after {
  width: 100%;
}

/* DROPDOWN */
.main-menu li ul {
  position: absolute;
  top: 120%;
  left: 0;
  background: #111;
  padding: 10px 0;
  border-radius: 10px;
  display: none;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.main-menu li:hover ul {
  display: block;
}

.main-menu li ul li a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
}

.main-menu li ul li a:hover {
  background: #222;
  color: #fff;
}

/* ================= ANNOUNCEMENT ================= */
.announcement-bar {
  background: #fbbf24;
  overflow: hidden;
  white-space: nowrap;
  height: 35px;
  display: flex;
  align-items: center;
}

.announcement-bar .marquee {
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
  color: #000;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ================= SLIDER ================= */
.seo-slider {
  max-width: 1200px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.seo-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.seo-slide {
  min-width: 100%;
}

.seo-slide img {
  width: 100%;
}

.seo-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.seo-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.6);
}

.seo-slider-dots button.active {
  background: #fbbf24;
}

/* ================= GRID ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fbbf24;
  border-radius: 12px;
  padding: 15px;
  color: #000;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.card h2 {
  font-size: 1.1em;
  margin: 8px 0;
}

.card p {
  font-size: 0.9em;
}

/* ================= SINGLE ================= */
.single-container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.content-area {
  flex: 2;
}

.single-article {
  background: #111;
  padding: 20px;
  border-radius: 12px;
}

.single-title {
  font-size: 2em;
  margin-bottom: 15px;
}

.single-content {
  line-height: 1.7;
  color: #eee;
}

.single-content h2 {
  margin-top: 30px;
  color: #fbbf24;
}

.single-content p {
  margin-bottom: 16px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  flex: 1;
  max-width: 350px;
  background: #fbbf24;
  padding: 15px;
  border-radius: 12px;
  color: #000;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  gap: 30px;
}

.site-footer a {
  color: #cbd5f5;
}

.site-footer a:hover {
  color: #38bdf8;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: #fbbf24;
  }

  .main-navigation {
    display: none;
    width: 100%;
  }

  .main-navigation.active {
    display: block;
  }

  .main-menu {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #111;
    padding: 15px 0;
    border-radius: 10px;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .single-container {
    flex-direction: column;
  }

  .sidebar {
    max-width: 100%;
  }
}