/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 8 Apr 2026, 9:08:42 pm
    Author     : LENOVO
*/

:root {
    --primary: #4a3728;
    --accent: #d4a373;
    --bg: #fdfaf5;
    --text: #333;
}

body { font-family: 'Poppins', sans-serif; background: var(--bg);  color: var(--text); }



.culture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* Card Styling */
.culture-card { 
    background: white; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer;
}
.culture-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.card-image { position: relative; height: 200px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.category-badge { 
    position: absolute; top: 15px; left: 15px; background: var(--accent);
    color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem;
}

.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 10px; color: var(--primary); }
.card-body p { font-size: 0.9rem; color: #666; line-height: 1.5; height: 4.5em; overflow: hidden; }

/* Modal Styling */
.modal { 
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; 
    width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}
.modal-content { 
    background: white; margin: 5% auto; width: 80%; max-width: 1000px; 
    border-radius: 20px; position: relative; padding: 40px; overflow-y: auto; max-height: 80vh;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Vertical Flow Styles */
.modal-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.modal-main-title {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 2rem;
    text-align: center;
}

.modal-section {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-img-display {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.desc-preview {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.video-wrapper h4 {
    margin-top: 20px;
}

.video-wrapper video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.modal-section h4 {
    color: var(--primary);
    border-bottom: 2px solid var(--bg);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Filter Bar Styles */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-item {
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid transparent;
}

.filter-item:hover {
    background: var(--accent);
    color: white;
}

.filter-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 55, 40, 0.3);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #aaa;
}

@media (max-width: 768px) { .modal-grid { grid-template-columns: 1fr; } }

.close-btn { position: absolute; right: 25px; top: 15px; font-size: 30px; cursor: pointer; }
.modal-media video { width: 100%; border-radius: 10px; background: #000; }