/* Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    padding-bottom: 60px; /* Space for mobile sticky footer */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #1e293b;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #e11d48;
    color: #ffffff;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 10px;
    white-space: nowrap;
    border-radius: 3px;
}

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

.site-logo {
    max-height: 45px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.header-cta {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 2px solid #0284c7;
    color: #0284c7;
}

.btn-login:hover {
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
}

.btn-register {
    background-color: #16a34a;
    border: 2px solid #16a34a;
    color: #ffffff;
}

.btn-register:hover {
    background-color: #15803d;
    border-color: #15803d;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
}

.hero-banner {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-main {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.badge {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    font-weight: bold;
    border-radius: 3px;
}

.featured-main h2 {
    margin: 15px 0;
    font-size: 1.6rem;
}

.featured-sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.featured-sidebar h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 5px;
}

.mini-post {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.mini-post .category {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
}

.mini-post h4 a {
    color: #1e293b;
    font-size: 0.95rem;
}

/* Content Sections */
.content-section {
    padding: 40px 0;
}

.bg-light {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #16a34a;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card, .article-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.card-tag {
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* Tools Banner */
.tools-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    margin: 40px 0;
}

.tools-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.btn-action {
    background: #f59e0b;
    color: #ffffff;
    margin-top: 20px;
}

.btn-action:hover {
    background: #d97706;
    text-decoration: none;
}

/* Community Section */
.community-section {
    margin-bottom: 50px;
}

.community-box {
    background: #f0fdf4;
    border: 2px dashed #16a34a;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-telegram {
    background: #0284c7;
    color: #ffffff;
}

.btn-wa {
    background: #16a34a;
    color: #ffffff;
}

/* Footer Styles */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #94a3b8;
}

.footer-col a:hover {
    color: #ffffff;
}

.maps-link {
    color: #38bdf8 !important;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.social-title {
    margin-top: 15px;
}

.social-links a {
    color: #38bdf8;
    font-weight: bold;
}

.footer-bottom {
    background: #020617;
    text-align: center;
    padding: 15px 0;
    font-size: 0.8rem;
    border-top: 1px solid #1e293b;
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 10px 15px;
    z-index: 9999;
    justify-content: space-between;
    gap: 10px;
}

.btn-sticky {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
}

.btn-sticky-login {
    background: #0284c7;
    color: #ffffff;
}

.btn-sticky-register {
    background: #16a34a;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-section {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Menyembunyikan menu di mobile agar tetap ringkas */
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-cta {
        display: none; /* Dipindahkan ke sticky bar di mobile */
    }
    .mobile-sticky-cta {
        display: flex; /* Menampilkan tombol CTA di bawah khusus layar ponsel */
    }
}

/* Breadcrumbs Styling */
.breadcrumbs-container {
    padding: 15px 0 5px 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumbs li + li::before {
    content: "/";
    padding: 0 8px;
    color: #94a3b8;
}

.breadcrumbs a {
    color: #0284c7;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
    color: #1e293b;
    font-weight: 600;
}