* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1px 30px; 
    color: #404040;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
}

.logo img{
    height: 100px;
    width: 100px;
    position: relative;
    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:hover{
    color: blue;
    transition: 0.3s;
}

.dropdown {
    position: relative;
    flex: 0 0 auto;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;

  background: #fff;
  border: 1px solid blue;
  border-radius: 8px;
  cursor: pointer;

  white-space: nowrap;
}

.lang-btn img {
     border: 1px solid blue;
  width: 40px;        /* biar konsisten sama flag kamu */
  height: auto;
}

.lang-btn span {
  color: blue;
  font-weight: bold;
  font-size: 14px;
}

.dropdown-content img {
    border: 1px solid black;
    width: 40px;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: 100%;              /* ✅ lebar dropdown ikut tombol */
  min-width: 100%;
  box-sizing: border-box;

  margin: 0;                /* ✅ reset UL */
  padding: 8px;
  list-style: none;

  background: #fff;         /* ✅ biar jadi kotak utuh */
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  z-index: 9999;

  display: none;            /* ✅ default tertutup */
}

.dropdown.open .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 6px;                 /* ✅ jarak rapih antar item */
}


.dropdown-content li {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.dropdown-content li a {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;

  text-decoration: none;
  color: #333;
  font-size: 14px;

  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: 0.2s;
}

.dropdown-content li a img {
  width: 40px;
  height: auto;
  border: 1px solid black;
}

.dropdown-content li a span {
  flex: 1;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid transparent; 
}


.dropdown-content a:hover {
    background-color: #D0DCFD;
    color: blue;
    border-color: blue; 
}


.dropdown:hover .lang-btn {
    background-color: #e4e6eb;
}

.searchbox {
    display: flex;
    align-items: center;
    border: 1px solid black;
    border-radius: 20px;
    overflow: hidden;
    padding: 5px;
}

.searchbox input {
    border: none;
    outline: none;
    padding: 10px 12px;
    width: 200px;
    height: 30px;
    font-size: 13px;
}

.floating-action {
    position: fixed;   
    bottom: 10px;      
    right: -15px;     
    z-index: 9999;   
    cursor: pointer;  
    transition: transform 0.3s ease-in-out; 
}
.floating-action img {
    width: 110px;       
    height: auto;
    display: block;    
}

.floating-action:hover {
    transform: scale(1.1);     
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
}

ul li a.navbaractive {
    color: blue;
}


.footer-list li a.active {
    color: blue;
}

.hero {
    background: linear-gradient(rgba(0, 50, 150, 0.6), rgba(0, 50, 150, 0.4)),
    url('/images/earth.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* ===== ARTIKEL CARD DESIGN ===== */

.artikel-page{
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 18px;
}

/* GRID: auto responsive */
.artikel-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* 3 kolom */
  gap: 18px;
  justify-content: center;
}

/* Tablet */
@media (max-width: 980px){
  .artikel-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 kolom */
  }
}

/* Mobile */
@media (max-width: 620px){
  .artikel-grid{
    grid-template-columns: 1fr; /* 1 kolom */
  }
}

/* CARD */
.artikel-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: 0.25s ease;
  color: inherit;

  width: 100%;     /* HAPUS width 110% */
  gap: 0;          /* gap ga perlu di anchor */
}

.artikel-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  border: 1px solid #4361EE;
}

.artikel-thumb{
  height: 180px; /* lebih proporsional */
  background: #f3f3f3;
}

.artikel-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artikel-body{
  padding: 14px 14px 16px;
}

.artikel-body h3{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1f2a37;
  line-height: 1.4;
}

.artikel-body p{
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.55;
}

.artikel-link{
  font-size: 12.5px;
  font-weight: 700;
  color: #1d4ed8;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .artikel-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px){
  .artikel-grid{
    grid-template-columns: 1fr;
  }
  .artikel-thumb{
    height: 190px;
  }
}

.admin-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Judul Admin */
.admin-container h2, .admin-container h3 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Form Input Admin */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #555; }

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Tombol Upload */
.btn-upload {
    width: 100%;
    padding: 14px;
    background-color: #28a745; /* Hijau */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-upload:hover { background-color: #218838; }

/* List Artikel di Admin */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
}
.admin-list-item span { font-weight: 500; }

/* Tombol Hapus & Logout */
.btn-delete {
    background: #dc3545; /* Merah */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.logout {
    float: right;
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
}

/* =========================================
   6. LAIN-LAIN
   ========================================= */
.floating-action {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.floating-action img { width: 60px; height: auto; }

.artikel-pagination{
  display:flex;
  justify-content:center;
  margin: 22px 0 40px;
}

.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:36px;
  height:36px;
  padding:0 12px;

  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;

  font-weight:700;
  font-size:13px;
  text-decoration:none;
  color:#111;
  cursor:pointer;
  transition: .2s;
}

.page-btn:hover{ 
  background:#001A9E;
  color:#fff;
  border-color:#001A9E;
}

.page-btn.active{
  background:#001A9E;
  color:#fff;
  border-color:#001A9E;
}

.page-btn:disabled{
  opacity:.45;
  pointer-events:none;
}

.page-dots{
  padding: 0 6px;
  color:#6b7280;
  font-weight:700;
}

.site-footer {
    background-color: #020B40;
    color: white;
    padding: 48px 0 20px;
}

.footer-wrap {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 36px;
    grid-template-columns: 1.4fr 1.2fr 0.7fr 1fr;
    align-items: start;
    display: grid;
}

.footer-title {
    font-size: 22px;
    margin: 0 0 14px;
    font-weight: 800;
    color: white;
}

.footer-text {
    margin: 0;
    color: white;
    font-size: 14px;
}

.footer-text.small {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.footer-col {
    display: grid;
}

.footer-col .footer-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 10px;
    text-decoration: none;
}

.footer-list li a{
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.footer-list a:hover {
    color: blue;
    transition: 0.10s ease-in-out;
}

.newsletter-box {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 15px rgba(0,0,0,0.25);
}

.newsletter-form input {
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    outline: none;
    margin: 20px 0;
}

.newsletter-form button {
    border: 1px solid #4361EE;
    background: #4361EE;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}

.newsletter-form button:hover {
    filter: brightness(1.08);
}

.footer-social {
    margin-top: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.facebook{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}

.youtube{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}



.tiktok{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}
.linkedin{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}

.instagram {
    height: 40px;
    width: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    transition: 0.3s ease-in-out;
    background: radial-gradient(
        #feda75,
        #fa7e1e,
        #962fbf,
        #4f5bd5
    )
}

.facebook:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.youtube:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.facebook:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.instagram:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.tiktok:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.linkedin:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}

.footer-bottom {
    width: 90%;
    max-width: 1300px;
    margin: 22px auto 0;
    text-align: center;
}

.footer-divider {
    background: white;
    color: white;
    height: 1px;
    width: 1250px;
    display: grid;
    margin-bottom: 20px;
    opacity: 70%;    
}

.floating-action {
    position: fixed;   
    bottom: 10px;      
    right: -15px;     
    z-index: 9999;   
    cursor: pointer;  
    transition: transform 0.3s ease-in-out; 
}
.floating-action img {
    width: 110px;       
    height: auto;
    display: block;    
}

.floating-action:hover {
    transform: scale(1.1);     
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {

  /* tampilkan hamburger */
  .hamburger {
    display: flex;
  }

  /* sembunyikan menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px;

    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 999;
  }

  /* saat hamburger diklik */
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* biar navbar bisa turun */
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }
}

/* =========================
   MOBILE FIX (TAMBAHAN DOANG)
   Tempel di PALING BAWAH artikel.css
   (Tidak ubah nama class)
========================= */

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* MOBILE */
@media (max-width: 768px){

  /* NAVBAR */
  .navbar{
    padding: 8px 14px;
    flex-wrap: wrap;
    position: relative;
  }

  /* sembunyikan checkbox kotak */
  .nav-toggle{
    display: none !important;
  }

  /* munculin hamburger */
  .hamburger{
    display: flex !important;
    margin-left: auto;
    z-index: 2000;
  }

  /* nav links jadi dropdown */
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #fff;
    flex-direction: column;
    gap: 18px;
    padding: 18px;

    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1999;
  }

  .nav-toggle:checked ~ .nav-links{
    display: flex;
  }

  /* logo kecilin */
  .logo img{
    width: 80px;
    height: 80px;
  }

  /* search box biar muat */
  .searchbox input{
    width: 140px;
  }

  /* HERO lebih pendek biar ga makan layar */
  .hero{
    height: 240px;
  }

  /* ARTIKEL PAGE padding rapih */
  .artikel-page{
    margin: 18px auto;
    padding: 0 14px;
  }

  /* FOOTER jadi 1 kolom + divider ga fixed */
  .footer-wrap{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-divider{
    width: 100%;
  }

}

/* HP kecil */
@media (max-width: 420px){
  .searchbox input{ width: 120px; }

  .newsletter-box{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .newsletter-form{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .newsletter-form input{
    width:100%;
    margin:0 !important;
  }

  .newsletter-form button{
    width:110px;
  }

/* Kalau ternyata teksnya bukan <p>, pakai ini juga */


}
