/* Custom Styles for DongbaBiKB */

/* Fonts */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #ea580c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d97706, #c2410c);
}

/* Knowledge Card Hover Effects */
.knowledge-card {
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #f59e0b, #ea580c);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger Animation for Cards */
.knowledge-card:nth-child(1) { animation-delay: 0.1s; }
.knowledge-card:nth-child(2) { animation-delay: 0.2s; }
.knowledge-card:nth-child(3) { animation-delay: 0.3s; }
.knowledge-card:nth-child(4) { animation-delay: 0.4s; }
.knowledge-card:nth-child(5) { animation-delay: 0.5s; }
.knowledge-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .knowledge-card {
        margin-bottom: 1rem;
    }
}

/* 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: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Input Focus Styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(to right, #f59e0b, #ea580c);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #d97706, #c2410c);
    transform: translateY(-2px);
}

/* Detail Page Styles */
.detail-content {
    line-height: 1.8;
}

.detail-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.detail-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
}

.detail-content p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.detail-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

.callout-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.callout-success {
    background-color: #d1fae5;
    border-color: #10b981;
}

