
/* =========================================
   RESET & DASAR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   NAVBAR (DESKTOP)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 5px 30px;
    color: #404040;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2000;
}

.logo img {
    height: 100px;
    width: 100px;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none !important;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}



.nav-links li {
    list-style: none !important;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: gray;
    font-size: 17px;
    transition: 0.3s;
    position: relative;
}

.nav-links a.navbaractive,
.nav-links a:hover {
    color: blue;
}

/* =========================================
   HAMBURGER — hidden di desktop
   ========================================= */
.nav-toggle {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 2001;
    position: relative;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1f2dbf;
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55),
                opacity 0.3s ease;
}
.theme-toggle {
    border: 1px solid gray;
    background: var(--surface);
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 16px;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.theme-toggle-dark {
    display: none;
}

html.dark .theme-toggle-light {
    display: none;
}

/* =========================================
   CTA DARK MODE
   ========================================= */

html.dark .cta {
  background: #111827; /* dark card */
  color: #e5e7eb;
  border: 1px solid #334155;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

html.dark .cta h2 {
  color: #93c5fd; /* biru soft */
	font-size: 20px;
}

html.dark .cta p {
  color: #cbd5e1;
	font-size: 13px;
}

html.dark .cta-links a {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #334155;
}

html.dark .cta-links a:hover {
  background: #243244;
  border-color: #60a5fa;
}

html.dark .cta-links span {
  color: #94a3b8;
}

html.dark .cta-footer {
  color: #94a3b8;
}

html.dark .theme-toggle-dark {
    display: inline;
}
/* X state saat menu terbuka */
.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   GOOGLE TRANSLATE
   ========================================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-logo-link { display: none !important; }
.goog-te-gadget span { display: none !important; }

#google_translate_element {
    display: inline-flex;
    align-items: center;
    position: relative;
}

#google_translate_element select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 14px;
    border: 1px solid blue;
    border-radius: 8px;
    background: #fff;
    color: blue;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    line-height: 1;
}

#google_translate_element::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: blue;
    pointer-events: none;
    font-size: 14px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,50,150,0.6), rgba(0,50,150,0.4)),
                url('/images/billboard.jpeg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

/* =========================================
   ARTIKEL DETAIL PAGE
   ========================================= */
.artikel-page {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 18px;
}

.detail-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.detail-back {
    display: inline-block;
    text-decoration: none;
    color: #1f2dbf;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
    transition: color 0.2s;
}

.detail-back:hover {
    color: #163db0;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.detail-image {
    width: 100%;
    overflow: hidden;
    background: #f3f3f3;
	line-height: 0;
}

.detail-image img {
    width: 100%;
    height: auto;
	object-fit: contain;
    display: block;
}

.detail-body {
    padding: 28px 32px 36px;
}

.detail-title {
    font-size: 26px;
    font-weight: 800;
    color: #1f2a37;
    line-height: 1.3;
    margin-bottom: 10px;
}

.detail-author {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 6px;
    font-style: italic;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: #374151;
}

.detail-content p {
    margin-bottom: 16px;
	text-align: justify;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

/* =========================================
   NAV PREV / NEXT
   ========================================= */
.detail-nav {
    display: flex;
    flex-direction: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.detail-nav-card {
    display: block;
    text-decoration: none;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 14px 16px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
	flex: 1;
}

.detail-nav-card:hover {
    background: #eef2ff;
    border-color: #4361EE;
    transform: translateY(-2px);
}

.detail-nav-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.detail-nav-label-right {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    text-align: right;
}

.detail-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-nav-row--right {
    flex-direction: flex-end;
}

.detail-nav-thumb {
    width: 60px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.detail-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2a37;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.cta {
  max-width: 700px;
  margin: 30px auto;
  background: #f1f5f9; /* abu terang kayak gambar */
  color: #1e3a8a; /* biru utama */
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cta h2 {
  margin-bottom: 6px;
  font-size: 20px;
  color: #1e3a8a; /* biru */
  text-align: center;
}

.cta p {
  font-size: 13px;
  color: #475569; /* abu gelap biar enak dibaca */
  margin-bottom: 14px;
	text-align: center;
}

.cta-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cta-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff; /* card putih */
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e3a8a;
  border: 1px solid #e2e8f0;
  transition: 0.25s ease;
}

.cta-links a:hover {
  background: #e0e7ff; /* hover biru soft */
  transform: translateY(-2px);
}


.cta-links span {
  font-size: 12px;
  color: #64748b;
}

.cta-footer {
  margin-top: 14px;
  font-size: 11px;
  color: #64748b;
}


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #020B40;
    color: white;
    padding: 48px 0 20px;
}

.footer-branch {
	color: white;
	font-size: 18px;
	font-weight: 600;
}

.site-footer .footer-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr .85fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-col {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.footer-title {
    font-size: 22px;
    margin: 0 0 14px;
    font-weight: 800;
    color: white;
}

.footer-text {
    margin: 0;
    color: #eaf0ff;
    font-size: 14px;
    line-height: 1.55;
	text-align: justify;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
}

.footer-list li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: 0.1s ease-in-out;
}

.footer-list li a:hover,
.footer-list li a.active {
    color: blue;
}

.footer-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.5;
    color: #eaf0ff;
}

.footer-icon {
    padding-top: 2px;
}

.footer-social {
    margin-top: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: transform .25s ease, filter .25s ease;
}

.footer-social a:hover {
    transform: translateY(-5px);
    filter: brightness(1.05);
}

.footer-social svg {
    width: 40px;
    height: 40px;
    display: block;
}

.footer-bottom {
    width: 90%;
    max-width: 1300px;
    margin: 22px auto 0;
    text-align: center;
    color: #eaf0ff;
    font-size: 13px;
}

.footer-divider {
    background: rgba(255,255,255,.35);
    height: 1px;
    width: 100%;
    margin-bottom: 20px;
}

/* =========================================
   RESPONSIVE — TABLET (≤ 1100px)
   ========================================= */
@media (max-width: 1100px) {
    .site-footer .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
	
	.detail-image {
		width: 100%;
		overflow: hidden;
		background: #f3f3f3;
		line-height: 0;
	}
	
	.detail-image img {
		width: 100%;
		height: auto;
		object-fit: contain;
		display: block;
	}
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
	
	.detail-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
	
	    .artikel-search {
        padding: 0 14px;
    }

    .searchbox {
        width: 100px;
        padding: 8px;
    }

    .searchbox input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .search-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    /* Navbar bar atas */
    .navbar {
        flex-wrap: nowrap;
        padding: 10px 18px;
    }

    /* Logo di navbar */
    .logo img {
        width: 70px;
        height: 70px;
    }

    /* Tampilkan hamburger */
    .hamburger {
        display: flex !important;
    }

    /* ── FULLSCREEN OVERLAY ── */
    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 110px 28px 40px;
        gap: 0;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                    opacity 0.28s ease;
        z-index: 1999;
        overflow-y: auto;
    }

    /* Buka saat checkbox dicentang */
    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Menu items */
    .nav-links li {
        list-style: none !important;
        width: 100%;
        border-bottom: 1px solid #ebebeb;
        padding: 0;
        margin: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Link teks */
    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 15px;
        font-weight: 400;
        color: #555555;
        text-decoration: none;
        transition: color 0.2s, padding-left 0.2s;
    }

    .nav-links a.navbaractive {
        color: blue;
        font-weight: 600;
    }

    .nav-links a:hover {
        color: blue;
        padding-left: 4px;
    }
	
		.detail-image {
		width: 100%;
		overflow: hidden;
		background: #f3f3f3;
		line-height: 0;
	}
	
	.detail-image img {
		width: 100%;
		height: auto;
		object-fit: contain;
		display: block;
	}

    /* Google Translate di dalam overlay */
    .nav-links li:has(#google_translate_element) {
        border-bottom: none;
        padding: 24px 0 8px;
    }

    #google_translate_element {
        width: 100%;
        justify-content: flex-start;
    }

    #google_translate_element select {
        width: 100%;
        padding: 12px 40px 12px 14px;
        border: 1.5px solid #1f2dbf;
        border-radius: 10px;
        color: #1f2dbf;
        font-weight: 700;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        height: 220px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 14px;
        padding: 0 12px;
    }

    /* Artikel page */
    .artikel-page {
        margin: 18px auto;
        padding: 0 14px;
    }

    /* Detail card */
    .detail-body {
        padding: 20px 18px 28px;
    }

    .detail-title {
        font-size: 20px;
    }

   	.detail-image {
		width: 100%;
		overflow: hidden;
		background: #f3f3f3;
		line-height: 0;
	}
	
	.detail-image img {
		width: 100%;
		height: auto;
		object-fit: contain;
		display: block;
	}

    .detail-content {
        font-size: 14.5px;
    }

    /* Nav prev/next */
    .detail-nav-thumb {
        width: 50px;
        height: 42px;
    }

    .detail-nav-title {
        font-size: 13px;
    }

    /* Footer */
    .site-footer .footer-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
	
	  .cta-links {
		  display: grid;
    grid-template-columns: repeat(2,1fr);
		  gap: 12px;
  }
}

/* HP kecil banget */
@media (max-width: 420px) {
    .logo img {
        width: 60px;
        height: 60px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-body {
        padding: 16px 14px 24px;
    }
	    .searchbox {
        gap: 6px;
    }

    .searchbox input {
        font-size: 12px;
    }

    .search-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
		  .cta-links {
		  display: grid;
    grid-template-columns: repeat(2,1fr);
		  gap: 12px;
  }
}

/* =========================================
   DARK MODE
   Tempel di paling bawah CSS
   ========================================= */

html.dark body,
html.dark .artikel-page {
    background: #0f172a;
    color: #e5e7eb;
}

html.dark .navbar {
    background-color: #111827;
    color: #e5e7eb;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.35);
}

html.dark .nav-links a {
    color: #e5e7eb;
}

html.dark .nav-links a.navbaractive {
	color: #93c5fd;
	font-weight: 600;
}
html.dark .nav-links a:hover {
    color: #93c5fd;
}

html.dark #google_translate_element select {
    background: #111827;
    color: #93c5fd;
    border-color: #334155;
}

html.dark #google_translate_element::after {
    color: #93c5fd;
}

html.dark .detail-back {
    color: #93c5fd;
}

html.dark .detail-back:hover {
    color: #bfdbfe;
}

html.dark .detail-card {
    background: #111827;
    border: 1px solid #334155;
    box-shadow: 0 8px 28px rgba(0,0,0,0.30);
}

html.dark .detail-image {
    background: #1f2937;
}

html.dark .detail-title {
    color: #f8fafc;
}

html.dark .detail-author {
    color: #cbd5e1;
}

html.dark .detail-meta {
    color: #94a3b8;
    border-bottom: 1px solid #334155;
}

html.dark .detail-content {
    color: #e5e7eb;
}

html.dark .detail-nav {
    border-top: 1px solid #334155;
}

html.dark .detail-nav-card {
    background: #1f2937;
    border: 1px solid #334155;
}

html.dark .detail-nav-card:hover {
    background: #243244;
    border-color: #60a5fa;
}

html.dark .detail-nav-label,
html.dark .detail-nav-label-right {
    color: #94a3b8;
}

html.dark .detail-nav-thumb {
    border: 1px solid #475569;
}

html.dark .detail-nav-title {
    color: #f8fafc;
}

html.dark .site-footer {
    background-color: #020617;
}

html.dark .footer-text,
html.dark .footer-item,
html.dark .footer-bottom {
    color: #cbd5e1;
}

html.dark .footer-list li a {
    color: #ffffff;
}

html.dark .footer-list li a:hover,
html.dark .footer-list li a.active {
    color: #93c5fd;
}

/* =========================================
   DARK MODE MOBILE
   ========================================= */
@media (max-width: 768px) {
    html.dark .nav-links {
        background: #111827;
    }

    html.dark .nav-links li {
        border-bottom: 1px solid #334155;
    }

    html.dark .nav-links a {
        color: #e5e7eb;
    }

    html.dark .nav-links a.navbaractive,
    html.dark .nav-links a:hover {
        color: #93c5fd;
    }

    html.dark #google_translate_element select {
        background: #111827;
        color: #93c5fd;
        border: 1.5px solid #334155;
    }
}