/* =========================
GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6; 
}

/* =========================
LAYOUT BODY
========================= */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* =========================
CONTAINER UTAMA
========================= */
main {
    flex: 1; 
    padding-bottom: 40px; 
}

/* =========================
CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
HEADER
========================= */
.main-header {
    background: #fff;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav ul li a:hover {
    color: #e63946;
}

.header-tools button {
    padding: 6px 12px;
    cursor: pointer;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* =========================
TICKER
========================= */
.ticker-section {
    background: #1d1160;
    color: #fff;
    padding: 6px 0;
    font-size: 0.95rem;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
    animation: ticker 12s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* =========================
HERO
========================= */
.hero-section {
    padding: 40px 0;
}

.hero-content {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 30px;
    margin-bottom: 10px;
    line-height: normal;
}

.btn-readmore {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    text-decoration: none;
    background: #e63946;
    color: #fff;
    
}

.hero-image img {
    width: 100%;
    border-radius: 6px;
}

/* =========================
NEWS GRID
========================= */
.news-grid-section {
    margin-top: 40px; 
}

.news-grid-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

/* Grid container */
.news-grid {
    display: grid;
    gap: 30px; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* News card styling */
.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-bottom: 10px;
}

.news-card img {
    width: 100%;
    display: block;
}

.news-card h3 {
    font-size: 1.1rem;
    padding: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.news-card h3 a {
    text-decoration: none;
    color: #222;
}

.news-card h3 a:hover {
    color: #e63946;
}

.news-card p {
    padding: 0 10px 10px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.news-card:hover {
    transform: translateY(-6px);
}

/* =========================
FOOTER
========================= */
.main-footer {
    background: #1d1160;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* Container Flex */
.main-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo kiri */
.main-footer .footer-logo img {
    height: 50px;
    width: auto;
    margin-top: 20px;
}

/* Menu navigasi kanan */
.main-footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.main-footer .footer-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-footer .footer-menu a:hover {
    color: #ff7f7f;
    text-decoration: underline;
}

/* Separator optional */
.main-footer .footer-menu .separator {
    margin: 0 6px;
    color: #aaa;
}

@media screen and (max-width: 768px) {
    .main-footer .footer-container {
        flex-direction: column;
        align-items: flex-start; 
    }

    .main-footer .footer-menu {
        flex-direction: column; /* menu vertikal */
        gap: 8px;
        margin-top: 10px;
        justify-content: flex-start; /* mulai dari kiri */
        width: 100%; 
    }

    .main-footer .footer-menu .separator {
        display: none; 
    }

    .main-footer .footer-menu a {
        padding-left: 0;
    }
}

/* =========================
LOGO IMAGE
========================= */
.logo img {
    height: 50px; 
    width: auto;
    display: block;
}

/* =========================
HAMBURGER MENU MOBILE FIX
========================= */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    position: relative; /* penting agar z-index bekerja */
    z-index: 200; 
}

@media screen and (max-width: 768px) {
    .main-header {
        position: relative; 
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        z-index: 200;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid #ddd;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        z-index: 300;
        position: relative;
    }

    .header-tools {
        display: flex;
        gap: 10px;
    }
}

.article-page {
    max-width: 800px; 
    margin: 0 auto;   
    padding: 20px;    
    line-height: 1.6; 
}

.article-page h1, 
.article-page h2, 
.article-page h3, 
.article-page h4 {
    line-height: 1.3; 
    margin-bottom: 0.5em;
    font-size: 28px;
}
.article-page h2, 
.article-page h3, 
.article-page h4 {
    font-size: 20px;
}
.article-page p {
    margin-bottom: 1em;
}

.article-page img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .article-page {
        padding: 15px;
        max-width: 100%; /* muat layar mobile */
    }
}

a {
    color: #1d1160;         
    text-decoration: none;   
    transition: color 0.2s ease;
}

a:hover {
    color: #e63946;           
    text-decoration: underline;
}


.article-page a {
    color: #1d1160;
}

.article-page a:hover {
    color: #e63946;
    text-decoration: underline;
}

.article-page ul,
.article-page ol {
    padding-left: 2rem;  
    margin-bottom: 1rem; 
}

.article-page ul li,
.article-page ol li {
    margin-bottom: 0.6rem;
    line-height: 1.6;     
}

/* =========================
READ ALSO / BACA JUGA
========================= */
.read-also {
    background: #f9f9f9;         
    border: 1px solid #ddd;      
    border-radius: 8px;          
    padding: 20px;               
    margin: 30px 0;              
}

.read-also h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111;
}

.read-also ul {
    list-style: disc inside;    
    padding-left: 1rem;
}

.read-also ul li {
    margin-bottom: 10px;
}

.read-also ul li a {
    text-decoration: none;
    color: #1d1160;            
    transition: color 0.2s ease;
}

.read-also ul li a:hover {
    color: #e63946;           
    text-decoration: underline;
}

/* =========================
FOTO ARTIKEL 1:1
========================= */
.article-page figure img {
    width: 100%;
    aspect-ratio: 1 / 1;   
    object-fit: cover;     
    border-radius: 6px;
}

/* =========================
FAQ
========================= */
/* ===== FAQ WORKING ===== */
.faq-section {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.faq-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 15px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #eaeaea;
}

.faq-question::after {
    content: "\25BC"; /* ▼ */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(180deg); /* ▲ */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 15px;
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    border-left: 3px solid #e63946;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.faq-item.open .faq-answer {
    max-height: 500px; /* cukup tinggi untuk jawaban */
    padding: 10px 15px;
    margin-top: 5px;
}

/* =========================
FIGURE & CAPTION FOTO MINIMALIS
========================= */
.article-page figure {
    margin: 20px 0;          
    text-align: center;      
}

.article-page figure img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;     
    border-radius: 6px;     
}

.article-page figure figcaption {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    font-style: italic;
    margin-top: 4px;
}

/* =========================
TEAM GRID / KOTAK REDAKSI
========================= */
/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* ===== TEAM MEMBER CARD ===== */
.team-member {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* IMAGE */
.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* NAME / HEADING */
.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1d1160;
}

/* SPECIALIZATION & PROFIL */
.team-member p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #333;
}

/* ===== PORTFOLIO LIST ===== */
.team-member ul {
    list-style: none; 
    padding-left: 0;
    margin-bottom: 15px;
}

.team-member ul li {
    padding-left: 0;
    margin-bottom: 6px;
    text-align: left;
    position: relative;
}

.team-member ul li::before {
    content: "•";
    color: #e63946;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* ===== BUTTON PROFIL ===== */
.btn-profile {
    display: inline-block;
    padding: 10px 18px;
    background-color: #e63946;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
    margin-top: auto; 
    text-align: center;
}

.btn-profile:hover {
    background-color: #d12d3a;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .team-member img {
        height: 180px;
    }
}

/* List umum di artikel dan author page */
.article-page ul,
.article-page ol,
.team-member ul,
.team-member ol,
.author-page ul,
.author-page ol {
    padding-left: 2rem;   
    margin-bottom: 1rem;  
    list-style-position: outside; 
    line-height: 1.6;     
}

/* List item */
.article-page ul li,
.article-page ol li,
.team-member ul li,
.team-member ol li,
.author-page ul li,
.author-page ol li {
    margin-bottom: 0.5rem; 
}



.header-tools a{
    display: inline-block;
    padding: 8px 16px;
    background-color: #222;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-tools a:hover{
    background-color: #444;
}

.header-tools a:active{
    transform: scale(0.95);
}