/* ================= BASE ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #F4EEDC, #EFE6CF);
    padding-top: 90px;
    color: #36463B;
}

/* ================= HERO ================= */
.boardgame-page .hero {
    position: relative;
    height: 60vh;
    min-height: 480px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    overflow: hidden;

    background: url('/sumatera_control/asset_frontend/img/logoa.jpg') center/cover fixed;
}

/* overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.2) 50%,
        rgba(244,238,220,1) 100%
    );

    z-index: 1;
}

/* hero text */
.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

    padding: 0 50px;
    background: linear-gradient(90deg, #3B2F2F, #2E2424);

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #E9DFC7;
}

.nav-logo {
    height: 60px;
    object-fit: contain;
}

/* ================= SECTION ================= */
.boardgame-page .section {
    max-width: 1100px;
    margin: 90px auto;
    padding: 50px;

    background: linear-gradient(180deg, #FFF9EB, #F6EED9);
    border-radius: 30px;

    box-shadow: 0 30px 60px rgba(0,0,0,.12);
}

/* title */
.section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #C9A24D;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* text */
.section p {
    text-align: center;
    color: #5b6b60;
    line-height: 1.7;
    max-width: 700px;
    margin: 18px auto 0;
}

/* ================= GRID ================= */
.component-grid {
    margin-top: 60px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* ================= ABOUT CARD ================= */
.boardgame-page .about-card {
    position: relative;
    padding: 70px 80px;

    border-radius: 40px;

    background: linear-gradient(
        180deg,
        rgba(255,249,235,0.95),
        rgba(233,223,199,0.9)
    );

    box-shadow:
        0 30px 80px rgba(0,0,0,.15);

    overflow: hidden;
}

/* glow tengah */
.boardgame-page .about-card::before {
    content: '';
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at center,
        rgba(201,162,77,0.25),
        transparent 70%
    );

    z-index: 0;
}

/* isi di atas glow */
.boardgame-page .about-card * {
    position: relative;
    z-index: 1;
}

/* title kiri */
.boardgame-page .about-card h2 {
    text-align: left;
    font-size: 36px;
    margin-bottom: 20px;
}

/* garis bawah kiri */
.boardgame-page .about-card h2::after {
    margin-left: 0;
}

/* teks kiri */
.boardgame-page .about-card p {
    text-align: left;
    max-width: 800px;
    font-size: 18px;
    line-height: 1.9;
    color: #475569;
}
/* ================= HOW TO PLAY FIX ================= */
.boardgame-page .how-to-play {
    max-width: 750px;
    margin: 40px auto;

    padding: 30px 40px;

    background: rgba(255,255,255,0.4);
    border-radius: 20px;

    font-size: 18px;
    line-height: 1.9;
    color: #475569;

    text-align: left;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* nomor list */
.boardgame-page .how-to-play li {
    margin-bottom: 14px;
}

/* warna nomor */
.boardgame-page .how-to-play li::marker {
    color: #C9A24D;
    font-weight: bold;
}

/* sub list */
.boardgame-page .how-to-play ul {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-left: 20px;
}

/* hover biar hidup */
.boardgame-page .how-to-play li:hover {
    color: #2F3E34;
    transition: .2s;
}

/* ================= COMMENT ================= */
.comment-form {
    margin: 40px auto 0;
    max-width: 600px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-form input,
.comment-form textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #D6C7A1;
    background: #FFF7E6;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #C9A24D;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.comment-form button:hover {
    background: #b8923f;
}

/* ================= COMMENT LIST ================= */
.comment-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-card {
    background: #EFE6CF;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.comment-card p {
    margin: 0;
    line-height: 1.6;
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(90deg,#3B2F2F,#2E2424);
    color: #E9DFC7;

    margin-top: 100px;
    padding: 60px 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-brand,
.footer-links,
.footer-contact {
    min-width: 200px;
}

.footer-brand {
    flex: 1;
}

.footer-brand p,
.footer-contact p {
    font-size: 14px;
    line-height: 1.7;
    color: #d6cfc2;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: #E9DFC7;
    font-size: 14px;
    transition: .2s;
}

.footer-links a:hover {
    color: #E6B566;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;
    font-size: 13px;
    color: #cfc7b8;
}
/* ================= FIX GAMBAR (INI YANG PENTING) ================= */
.component-card img {
    width: 100%;         /* FULL LEBAR */
    height: 260px;       /* BESARIN GAMBAR */
    object-fit: contain; /* biar gak gepeng */
    display: block;
    margin-bottom: 15px;
}

/* ================= BOARDGAME COMPONENT FIX TOTAL ================= */

/* CARD */
.boardgame-page .component-card {
    padding: 0; /* biar gambar full */
    border-radius: 20px;
    overflow: hidden;
    background: #EFE6CF;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: 0.3s;
}

/* hover effect */
.boardgame-page .component-card:hover {
    transform: translateY(-8px);
}

/* WRAPPER GAMBAR */
.boardgame-page .component-img {
    width: 100%;
    height: 300px; /* bebas mau 300 / 320 */
    overflow: hidden;
}

/* GAMBAR */
.boardgame-page .component-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 ini bikin FULL */
    display: block;
}

/* TEXT */
.boardgame-page .component-card h3 {
    padding: 15px 20px 5px;
    font-size: 19px;
}

.boardgame-page .component-card p {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6b60;
}