/* =====================
    GENERAL LAYOUT
===================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* =====================
   HEADER
===================== */
.site-header {
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 100px;
    width: auto;
}

.main-nav a {
    margin-left: 2rem;
    text-decoration: none;
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* =====================
    FLEX GRID / CARD
===================== */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* bagi jarak sama rata */
    gap: 1.5rem; /* jarak antara card */
	justify-content: center; /* supaya cards tengah-tengah */
    padding: 0 2rem; /* ruang kiri-kanan kontainer */
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: calc((70% - 4 * 1.5rem) / 3); /* 3 card per row + 4 gap */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* =====================
    CARD CONTENT
===================== */
.card-content {
    padding: 1rem;
    text-align: center;
}

.card-content h3 {
    margin: 0.5rem 0;
}
.card-content h3 a {
    text-decoration: none;
    color: #333;
    text-decoration: none;
}
.card-content h3 a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #333;
    margin: 4px auto 0;
    transition: width 0.3s;
}

.card-content h3 a:hover::after {
    width: 60%;
}
/* =====================
    BUTTON INSIDE CARD (OPTIONAL)
===================== */
.card-content a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
}

.card-content a:hover {
    text-decoration: underline;
}
/* =====================
    PAGINATION
===================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
    gap: 0.5rem;
}

.pagination a {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    background: #eee;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.pagination a:hover {
    background: #1a73e8;
    color: #fff;
}

.pagination a.active {
    background: #1a73e8;
    color: #fff;
    cursor: default;
}

/* =====================
   FOOTER
===================== */
.site-footer {
    background: #111; /* dark premium */
    color: #cfcfcf;
    font-size: 14px;
}

/* FOOTER CONTAINER */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* FOOTER COLUMN */
.footer-column {
    flex: 1;
}

/* FOOTER HEADING */
.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

/* ACCENT LINE UNDER HEADING */
.footer-column h4::after {
    content: "";
    display: block;
    width: 35px;
    height: 2px;
    background: #007bff;
    margin-top: 0.75rem;
}

/* FOOTER TEXT */
.footer-column p {
    margin: 0 0 0.75rem;
    line-height: 1.8;
    color: #bdbdbd;
}

/* FOOTER LINKS (kalau ada) */
.footer-column a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom {
    background: #ffffff;
    color: #000;
    text-align: center;
    font-size: 15px;
    padding: 12px 10px;
    border-top: 1px solid #e5e5e5;
}

/* =====================
   SOCIAL ICONS
===================== */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social:hover {
    background: #007bff;
    transform: translateY(-3px);
}

.social.facebook { background: #1877f2; }
.social.tiktok { background: #000; }

.social.instagram {
    background: radial-gradient(circle at 30% 110%,
        #fdf497 0%, #fdf497 5%, #fd5949 45%,
        #d6249f 60%, #285aeb 90%);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }