/*
Theme Name: My Custom Theme
Theme URI: https://adishare.com/
Author: Adishare
Author URI: https://adishare.com/
Description: Tema custom SEO-friendly, ringan, responsif, dan siap Google Discover.
Version: 1.1
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;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= HEADER ================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 1.5em;
  font-weight: bold;
  color: orange;
  margin: 0;
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-bar input {
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
}

.search-bar button {
  padding: 6px 12px;
  background: red;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ================= ANNOUNCEMENT BAR ================= */
.announcement-bar {
  background: orange;
  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%); }
}

/* ================= SECTION TITLE ================= */
.section-title {
  text-align: center;
  padding: 20px 0;
  font-weight: bold;
}

/* ================= SEO SLIDER (NATIVE) ================= */
.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%;
  height: auto;
}

/* Slider dots */
.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);
  cursor: pointer;
}

.seo-slider-dots button.active {
  background: red;
}

/* ================= GRID ARTIKEL ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #040404;
}

.card {
  background: #fbbf24;
  border-radius: 12px;
  padding: 15px;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* gambar thumbnail */
.card img {
  width: 100%;
  height: 260px;           /* tinggi stabil desktop */
  object-fit: cover;       /* FULL TANPA PECAH */
  display: block;
  margin: 0 0 10px 0;
  border-radius: 8px;
}

.card h2 {
  font-size: 1.1em;
  margin: 8px 0;
  color: #111;
}

.card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card .meta span {
  background: #dc2626;
  color: #fff;
  font-size: 0.8em;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.card p {
  font-size: 0.9em;
  color: #111;
}

.card button {
  margin-top: 10px;
  padding: 10px 16px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}

.card button:hover {
  background: #b91c1c;
}


/* ================= PAGINATION ================= */
.pagination {
  text-align: center;
  padding: 20px;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  color: orange;
  font-weight: bold;
}

/* ================= SINGLE PAGE ================= */
.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;
}

.meta-info {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.meta-info span {
  background: red;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
}

.featured-image img {
  border-radius: 8px;
  margin: 15px 0;
}

.single-content {
  line-height: 1.7;
  color: #eee;
}

/* ================= SIDEBAR ================= */
.sidebar {
  flex: 1;
  max-width: 350px;
  background: #fbbf24;
  padding: 15px;
  border-radius: 12px;
  color: #000;
}

.sidebar-title {
  font-weight: bold;
  margin-bottom: 15px;
}

.sidebar-card {
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.btn-readmore {
  display: inline-block;
  background: red;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85em;
}

.page-content {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.page-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-body {
  line-height: 1.7;
  font-size: 1em;
}


/* ================= SPONSOR ================= */
.sidebar-sponsor {
  background: #111;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.sidebar-sponsor .sponsor-title {
  background: #fbbf24;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sidebar-sponsor .sponsor-note {
  font-size: 0.75em;
  color: #aaa;
  margin-top: 8px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #111;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: orange;
}

/* ================= HEADER MENU ================= */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: orange;
  cursor: pointer;
}

/* MENU DESKTOP */
.main-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 10px 0 0;
}

.main-menu li a {
  color: orange;
  text-decoration: none;
  font-weight: bold;
}

.main-menu li a:hover {
  color: red;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .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;
  }

  .main-menu li a {
    font-size: 1.1em;
  }


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .search-bar {
    margin-top: 10px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .single-container {
    flex-direction: column;
  }

  .sidebar {
    max-width: 100%;
    margin-top: 20px;
  }

  .announcement-bar .marquee {
    font-size: 0.9em;
    animation-duration: 12s;
  }
}
