/* Custom CSS for Detik Theme v2.0 - Exact Match detik.com */

/* Additional styling to perfect the match */

/* Ensure proper spacing and layout */
body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Fix any layout issues */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enhanced featured grid styling */
.featured-grid article {
    transition: transform 0.2s ease;
}

.featured-grid article:hover {
    transform: translateY(-2px);
}

/* News feed enhancements */
.news-feed {
    background: transparent;
}

.news-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Sidebar enhancements */
.sidebar-widget {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: #111827;
}

/* Link styling */
a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #dc2626;
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
    color: white;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Loading animation for AJAX */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Print styles */
/* Footer Styles */
.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-section h3 {
    color: #dc2626;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-desc {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dc2626;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #333333;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #333333;
    background: #2a2a2a;
    color: #ffffff;
    border-radius: 4px 0 0 4px;
}

.newsletter-form input::placeholder {
    color: #999999;
}

.newsletter-form button {
    padding: 10px 15px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #b91c1c;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #999999;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #dc2626;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media print {
    .top-header-bar,
    .main-navigation,
    .header-ad-banner,
    .main-sidebar,
    .main-footer {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}
