/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b2545;
    --secondary-color: #1a4b8c;
    --accent-color: #fca311;
    --accent-hover: #e08b00;
    --text-color: #2b2b2b;
    --text-light: #5f6368;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.article-content img,
main > .container img,
main img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
body > header {
    background-color: #0b2545;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.header-cta .btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
}

.btn-login {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    margin-right: 10px;
}

.btn-daftar {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(252, 163, 17, 0.3);
}
.btn-daftar:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--white);
    border: 2px solid #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}
.btn-danger:hover {
    background-color: #c82333;
    color: var(--white);
    border-color: #c82333;
}
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn-main {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
    transition: transform 0.3s ease, background-color 0.3s;
}

.hero .btn-main:hover {
    transform: translateY(-3px);
    background-color: var(--accent-hover);
}

/* Cards & Grid */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title a {
    color: var(--text-color);
}
.card-title a:hover {
    color: var(--secondary-color);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

/* Article Styles */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.article-content h2, 
.article-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content h2 { font-size: 26px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.article-content h3 { font-size: 22px; }

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.cta-box {
    background: rgba(252, 163, 17, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.cta-box a {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* FAQ Box */
.faq-container {
    margin-top: 50px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    padding: 20px;
}
.faq-question {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    font-size: 14px;
}
.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .article-content {
        padding: 20px;
    }
}
