/* Article Content Styles */
.article-content, .article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content img, .article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    display: block;
}

.article-content p, .article-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h1, .article-content h2, .article-content h3, 
.article-text h1, .article-text h2, .article-text h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.article-content h4, .article-content h5, .article-content h6,
.article-text h4, .article-text h5, .article-text h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.article-content blockquote, .article-text blockquote {
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-content ul, .article-content ol,
.article-text ul, .article-text ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li, .article-text li {
    margin-bottom: 0.5rem;
}

/* Commodity and Market Cards */
.commodity-card, .market-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.commodity-card:hover, .market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.commodity-card .fas, .market-card .fas {
    transition: transform 0.3s ease;
}

.commodity-card:hover .fas, .market-card:hover .fas {
    transform: scale(1.1);
}

/* UMKM Categories */
.umkm-category {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.umkm-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Program Items */
.program-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.program-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Investment Cards */
.investment-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.investment-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero Section Variants */
.hero-section.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.hero-section.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
}

/* Text Colors */
.text-brown {
    color: #8B4513;
}

.text-orange {
    color: #FF8C00;
}
}

.article-content table, .article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th, .article-content table td,
.article-text table th, .article-text table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.article-content table th, .article-text table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-content table tr:hover, .article-text table tr:hover {
    background: #f8f9fa;
}

/* Article Header Styles */
.article-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

.article-title {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

/* Share Buttons */
.share-buttons .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Related Articles Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.related-article, .latest-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.related-article:hover, .latest-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-article img {
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
    height: 60px;
}

.related-article h6, .latest-item h6 {
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-article:hover h6, .latest-item:hover h6 {
    color: var(--dark-color);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Article Image Styling */
.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.article-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive Article Styles */
@media (max-width: 768px) {
    .article-content, .article-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta .meta-item {
        margin-right: 1rem;
    }
    
    .share-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
}

/* Custom CSS for OKU Portal */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8d700;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #f8d700 0%, #eab308 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(44, 90, 160, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: url('../images/header2.jpeg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0; /* Shorthand for top, right, bottom, left */
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.85), rgba(25, 135, 84, 0.75));
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-hero {
    max-width: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Gallery Carousel */
.hero-gallery-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(0,0,0,0.2);
}

.hero-gallery-carousel .carousel-inner {
    border-radius: 12px;
}

.hero-gallery-carousel .carousel-item img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

.hero-gallery-carousel .carousel-item .ratio {
    height: 100%;
    width: 100%;
    aspect-ratio: 16/9;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    margin-bottom: 1rem;
}

.stat-item h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card i {
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

.service-card h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* About Section */
.about-image img {
    max-width: 250px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Contact Section */
.contact-item {
    padding: 2rem;
}

.contact-item i {
    margin-bottom: 1rem;
}

.contact-item h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--gradient-primary) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .logo-hero {
        max-width: 200px;
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Pagination Info */
.pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}
/* Visitor Stats in Footer */
.visitor-stats-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.visitor-stats-footer .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visitor-stats-footer .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.visitor-stats-footer .stat-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.visitor-stats-footer .stat-icon.online {
    background: rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

.visitor-stats-footer .stat-icon.online i {
    color: #28a745;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
}

.visitor-stats-footer .stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.visitor-stats-footer .stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.visitor-stats-footer .stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .visitor-stats-footer {
        gap: 10px;
    }
    
    .visitor-stats-footer .stat-item {
        padding: 6px 12px;
    }
    
    .visitor-stats-footer .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .visitor-stats-footer .stat-number {
        font-size: 14px;
    }
    
    .visitor-stats-footer .stat-label {
        font-size: 9px;
    }
}
