/**
 * MyBantuan.info Global Styles
 */

:root {
    --primary-color: #0d6efd; /* Dark Blueish */
    --secondary-color: #6c757d;
    --warning-color: #ffc107; /* Yellow Accent */
    --danger-color: #dc3545; /* Red for scam warnings */
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Helper Utilities */
.xsmall { font-size: 0.75rem; }
.transition-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.transition-up:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

/* Category Slider */
.category-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.25rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-card-wrapper {
    flex: 0 0 calc(25% - 1rem); /* 4 cards per row on desktop */
    min-width: 250px;
}

@media (max-width: 768px) {
    .category-card-wrapper {
        flex: 0 0 80%; /* 1.2 to 1.5 cards on mobile */
        min-width: 220px;
    }
}

.category-card {
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
}

/* ARTICLE THUMBNAIL RULE: Full original image visible, no crop */
.thumbnail-box {
    width: 100%;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.thumbnail-box img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* CRITICAL: Show full image without crop */
}

/* Quick Answer Box */
.quick-answer-box {
    background: #e7f1ff;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Key Facts Table */
.key-facts-table {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}
.key-facts-table .row {
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}
.key-facts-table .row:last-child {
    border-bottom: 0;
}
.key-facts-table .label {
    background: #f8f9fa;
    padding: 10px 15px;
    font-weight: bold;
    width: 30%;
}
.key-facts-table .value {
    padding: 10px 15px;
    width: 70%;
}

/* Article Content Rendering */
.article-body {
    font-size: 1.1rem;
}
.article-body h2 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}
.article-body p {
    margin-bottom: 1.2rem;
}
.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
}

/* Last Child No Border Utility */
.last-child-no-border:last-child {
    border-bottom: 0 !important;
}
