/* ------------------------------
   GLOBAL SETTINGS
--------------------------------*/
:root {
    --max-width: 1200px;
    --accent: #e11d2d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, Arial, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.5;
}

/* ------------------------------
   HEADER
--------------------------------*/
header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 40px 20px; /* diganti agar ruang cukup utk background */
    max-width: var(--max-width);
    margin: 0 auto;
    background-image: url('img/banner.webp'); /* ganti sesuai nama file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.25); /* overlay gelap biar teks jelas */
    z-index: 0;
}

header * {
    position: relative;
    z-index: 1;
}

header img.logo {
    width: 90px;
    height: auto;
    border-radius: 10px;
}

header h1 {
    font-size: 20px;
    margin: 0;
}


/* ------------------------------
   NAVIGATION MENU
--------------------------------*/
nav {
    background: #0d6efd; /* BIRU */
    padding: 14px 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    border-radius: 6px; /* opsional */
  }
  
  nav a {
    color: #ffffff;   /* tulisan putih */
    font-weight: 600;
    text-decoration: none;
    font-size: 17px;
  }
  
  nav a:hover {
    opacity: 0.7;   /* efek hover */
  }  

/* ------------------------------
   CONTAINER
--------------------------------*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------
   HERO / ADS
--------------------------------*/
.hero-ad {
    width: 100%;
    margin: 10px 0;
    padding: 14px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background: #fff;
}

/* ------------------------------
   ARTICLE GRID
--------------------------------*/
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop 4 kolom */
    gap: 20px;
}

/* Tablet landscape (layar dipersempit) */
@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    }
}

/* Tablet / HP besar */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    }
}

/* HP kecil */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: repeat(1, 1fr); /* 1 kolom */
    }
}

.cards img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* ------------------------------
   CARD STYLE
--------------------------------*/
.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    display: block;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.card h3 {
    margin: 10px 0 6px;
    font-size: 17px;
}

.card .meta {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.card p {
    color: #555;
    font-size: 14px;
}

/* ------------------------------
   ARTICLE PAGE CONTENT (article1.html)
--------------------------------*/
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.article-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.article-content h2 {
    margin-top: 25px;
    color: #111;
}

.article-content p,
.article-content ul {
    font-size: 16px;
    color: #444;
}

/* ------------------------------
   FOOTER
--------------------------------*/
.footer {
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media(max-width: 900px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header h1 {
        font-size: 18px;
    }
}

/* ------------------------------
   AUTO DARK MODE FOOTER
--------------------------------*/
.auto-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #ffffff;
    color: #444;
}

.auto-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.auto-footer a:hover {
    text-decoration: underline;
}

/* DARK MODE AUTO */
@media (prefers-color-scheme: dark) {
    .auto-footer {
        background: #0f0f0f;
        border-top: 1px solid #333;
        color: #cccccc;
    }

    .auto-footer a {
        color: #4da3ff;
    }
}
/* Hilangkan border card di halaman APP */
.app-page .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}


.country-flag {
    width: 24px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 3px;
  }
  .country-label {
    font-size:14px;
    color:#444;
    margin-bottom:8px;
    display:flex;
    align-items:center;
    gap:6px;
  }
  
