html { scroll-behavior: smooth; }

/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0d0c1d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.breadcrumb {
    font-size: 0.97rem;
    color: #ffe156;
    margin-bottom: 1.3rem;
    margin-top: 0.5rem;
}
.breadcrumb a {
    color: #21aaff;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #7a1be2;
}
.breadcrumb span {
    color: #d2d8f7;
    margin: 0 3px;
}
/* ====== HEADER ====== */
.site-header {
    background-color: #15142a;
    padding: 15px 0;
    border-bottom: 1px solid #2a2842;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    position: relative;
    padding: 0 18px;
    gap: 0;
}
.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
.site-logo-link:hover { transform: scale(1.02); }
.site-logo-img { max-height: 40px; width: auto; border-radius: 4px; }
.site-logo-text { font-size: 1.2rem; font-weight: 600; color: #7a1be2; }
.main-nav {
    margin-left: auto;
    z-index: 1002;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 16px;
}
.nav-toggle .bar {
    width: 26px;
    height: 3px;
    background: #ffe156;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: #ffe156;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.18s;
    padding: 7px 14px;
    border-radius: 4px;
}
.nav-menu li a:hover,
.nav-menu li a:focus {
    background: #211f3c;
    color: #fff;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        right: 18px;
        top: 58px;
        background: #15142a;
        border-radius: 10px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        padding: 18px 22px;
        min-width: 170px;
    }
    .main-nav.active {
        display: block;
        animation: fadeInNav 0.3s;
    }
    .nav-toggle {
        display: flex;
    }
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    .nav-menu {
        flex-direction: column;
        gap: 14px;
    }
}

@keyframes fadeInNav {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
/* Hamburger active state (change icon to X if mau, opsional) */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====== SKIP LINK ====== */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #ffe156;
    color: #15142a;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 4px;
    transition: left 0.2s;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    outline: 2px solid #7a1be2;
}

/* ====== MAIN CONTENT ====== */
.main-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    color: #fafaff;
}
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1b1a32, #100f24);
    border-radius: 15px;
    border: 1px solid #2a2842;
    color: #fff;
}
.brand-name {
    color: #7a1be2;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.page-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    display: block;
    transition: transform 0.3s ease;
}
.featured-image:hover { transform: scale(1.02); }
.content {
    font-size: 1.13rem;
    line-height: 1.8;
    margin: 2rem 0;
    color: #fff;
    border-radius: 12px;
}
.content p { margin-bottom: 1rem; }
.info-section {
    background: linear-gradient(145deg, #1b1a32 80%, #191833 100%);
    border-radius: 15px;
    border: 1px solid #2a2842;
    box-shadow: 0 4px 24px rgba(40,40,60,0.08);
    margin-bottom: 2.5rem;
    padding: 2rem;
    color: #fff;
}
.section-title {
    font-size: 1.4rem;
    color: #ffe156;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(30,20,0,0.20);
}
.subheading {
    font-size: 1.13rem;
    color: #ffd84a;
    margin: 1.2rem 0 0.7rem 0;
    font-weight: 600;
}
.detail-heading {
    font-size: 1.05rem;
    color: #50fa7b;
    margin: 1rem 0 0.6rem 0;
    font-weight: 600;
}
ul, ol {
    margin-left: 1.8em;
    margin-bottom: 1rem;
    color: #fafcff;
}
ul li, ol li {
    margin-bottom: 0.35em;
    color: #fafaff;
    font-size: 1.04rem;
    line-height: 1.7;
}
a, a:visited {
    color: #21aaff;
    transition: color 0.2s;
}
a:hover {
    color: #7a1be2;
    text-decoration: underline;
}
p, h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* ====== FAQ ====== */
.faq-section {
    margin: 3rem 0 0 0;
    background: linear-gradient(145deg, #18172b 80%, #100f24 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #26244a;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffe156;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item {
    border-radius: 10px;
    overflow: hidden;
    background: #15142a;
    border: 1px solid #292749;
    transition: box-shadow 0.2s;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    box-shadow: 0 4px 24px rgba(122,27,226,0.12);
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.08rem;
    color: #fff;
    padding: 1rem 1.2rem;
    cursor: pointer;
    outline: none;
    position: relative;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.18s;
}
.faq-question:hover, .faq-question[aria-expanded="true"] {
    background: #211f3c;
    color: #ffd84a;
}
.faq-arrow {
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
    font-size: 1rem;
    color: #ededf9;
    display: none;
    animation: fadeInFaq 0.33s;
}
.faq-question[aria-expanded="true"] + .faq-answer {
    display: block;
}
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ====== ADVANCED FOOTER (Desktop) ====== */
.footer-advanced {
    background: #151a2e;
    color: #d2d8f7;
    padding: 50px 0 0 0;
    font-size: 1rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 32px;
}
.footer-about h4,
.footer-links h4,
.footer-legal h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-about p {
    color: #d2d8f7;
    font-size: 1rem;
    margin-bottom: 0;
}
.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-legal li {
    margin-bottom: 0.75em;
}
.footer-links a,
.footer-legal a {
    color: #d2d8f7;
    text-decoration: none;
    transition: color 0.18s;
}
.footer-links a:hover,
.footer-legal a:hover {
    color: #ffe156;
}
.footer-social .social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.footer-social a img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.18s;
}
.footer-social a:hover img {
    opacity: 1;
}
.footer-bottom {
    text-align: center;
    color: #93a1ce;
    font-size: 0.97rem;
    margin: 38px 0 0 0;
    border-top: 1px solid #1e2344;
    padding: 18px 0;
}
.footer-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}
.footer-logo-img {
    height: 44px;
    width: auto;
    border-radius: 5px;
    display: block;
    padding: 2px;
    margin-bottom: 12px;
}
/* ====== RESPONSIVE ====== */
@media (max-width: 1020px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;
        padding: 0 18px;
    }
}
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 12px;
    }
    .footer-about, .footer-links, .footer-legal, .footer-social {
        text-align: left;
    }
    .footer-logo-img {
        height: 32px;
        margin-bottom: 10px;
    }
}
/* Hide footer if on mobile and using fixed-footer */
@media (max-width: 768px) {
    .footer-advanced { display: none; }
}
/* ====== FIXED MOBILE FOOTER ====== */
.fixed-footer {
    display: none;
}
@media (max-width: 768px) {
    .fixed-footer {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 70px;
        background-color: #15142a;
        border-top: 1px solid #2a2842;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
        z-index: 1002;
        align-items: center;
        justify-content: space-around;
    }
    .footer { display: none; }
    .footer-nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        padding: 0;
    }
    .footer-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #ffe156;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        transition: color 0.18s;
    }
    .footer-button svg {
        width: 24px;
        height: 24px;
        color: #ffe156;
        stroke: #ffe156;
        transition: color 0.18s, stroke 0.18s;
    }
    .footer-button:active,
    .footer-button:focus,
    .footer-button:hover {
        color: #fff;
    }
    .footer-button:hover svg {
        color: #fff;
        stroke: #fff;
    }
}
/* ====== ANIMASI, KEYFRAMES, ETC ====== */
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes wiggle {
    0%,100% { transform: rotate(0deg);}
    25% { transform: rotate(-8deg);}
    75% { transform: rotate(8deg);}
}
.animated-icon {
    animation: wiggle 1.5s ease-in-out infinite;
}
.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(224,224,240,0.3);
    border-radius: 50%;
    border-top-color: #7a1be2;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
    body { padding-bottom: 80px; }
}

.home-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #7a1be2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #4e0f98;
}

/* ====== BLOG SECTION ====== */
.blog-list {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 20px;
}

.blog-post {
    background: linear-gradient(145deg, #1b1a32 80%, #191833 100%);
    border-radius: 15px;
    border: 1px solid #2a2842;
    box-shadow: 0 4px 24px rgba(40, 40, 60, 0.08);
    margin-bottom: 2.5rem;
    padding: 2rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffe156;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #7a1be2;
}

.post-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #d2d8f7;
}

.read-more {
    display: inline-block;
    padding: 12px 20px;
    background-color: #7a1be2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #ffe156;
}

/* ====== MOBILE RESPONSIVENESS ====== */
@media (max-width: 768px) {
    .blog-list {
        padding: 0 15px;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-summary {
        font-size: 1rem;
    }

    .read-more {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pagination-btn {
    background-color: #7a1be2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.18s;
}
.pagination-btn:disabled {
    background-color: #3c3564;
    color: #d2d8f7;
    cursor: not-allowed;
}
.pagination-btn:not(:disabled):hover {
    background-color: #4e0f98;
}
#pageInfo {
    color: #ffe156;
    font-weight: bold;
}

.home-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #7a1be2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.home-button:hover {
    background-color: #ffe156;
}
