

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #fdfbf7;
    --text-color: #2c2c2c;
    --accent-color: #8e44ad;
    --secondary-text: #666;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --nav-bg: #ffffff;
    --success-color: #27ae60;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Lato', sans-serif; 
    line-height: 1.6; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .serif-font { font-family: 'Merriweather', serif; }


.navbar { 
    background: var(--nav-bg); 
    border-bottom: 1px solid var(--border-color); 
    padding: 1.5rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}

.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--text-color); letter-spacing: -0.5px; }

.nav-links { display: flex; align-items: center; }

.nav-links a { 
    text-decoration: none; 
    color: var(--secondary-text); 
    margin-left: 20px; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: color 0.3s ease; 
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }


.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    z-index: 1001;
}

.bar { width: 25px; height: 3px; background-color: var(--text-color); transition: 0.3s; }


.hero { text-align: center; padding: 4rem 20px; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--secondary-text); margin-bottom: 2rem; }

.btn-primary { 
    display: inline-block; 
    background-color: var(--text-color); 
    color: #fff; 
    padding: 12px 30px; 
    text-decoration: none; 
    border-radius: 2px; 
    transition: all 0.3s; 
    font-weight: bold; 
}

.btn-primary:hover { background-color: var(--accent-color); transform: translateY(-2px); }


.filters { text-align: center; margin-bottom: 3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }

.filter-btn { 
    background: none; border: none; cursor: pointer; 
    font-family: 'Lato', sans-serif; font-size: 1rem; 
    margin: 0 10px; padding-bottom: 5px; 
    color: var(--secondary-text); transition: all 0.3s; 
}

.filter-btn:hover, .filter-btn.active { color: var(--text-color); border-bottom: 2px solid var(--accent-color); }


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 4rem; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.work-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    padding: 2rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.work-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border-color: var(--accent-color); 
}

.work-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-color); margin-bottom: 0.5rem; display: block; }
.work-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.work-author { font-style: italic; color: var(--secondary-text); margin-bottom: 1.5rem; font-size: 0.95rem; }
.work-excerpt { font-size: 1rem; color: #444; line-height: 1.7; margin-bottom: 1.5rem; flex-grow: 1; }


.card-actions { border-top: 1px solid #eee; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.read-more { text-decoration: none; color: var(--text-color); font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid var(--text-color); transition: color 0.2s; }
.read-more:hover { color: var(--accent-color); border-color: var(--accent-color); }

.action-btn { background: none; border: 1px solid #ddd; padding: 5px 10px; font-size: 0.8rem; cursor: pointer; border-radius: 4px; color: #666; transition: all 0.2s; }
.action-btn:hover { border-color: var(--text-color); color: var(--text-color); }
.action-btn.active { background-color: var(--text-color); color: white; border-color: var(--text-color); }


#notification { 
    visibility: hidden; min-width: 250px; background-color: #333; color: #fff; 
    text-align: center; border-radius: 4px; padding: 16px; position: fixed; 
    z-index: 1001; left: 50%; bottom: 30px; transform: translateX(-50%); 
    opacity: 0; transition: opacity 0.5s, bottom 0.5s; 
}
#notification.show { visibility: visible; opacity: 1; bottom: 50px; }


footer { background: #f4f1ea; padding: 3rem 0; text-align: center; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-links a { color: var(--secondary-text) !important; text-decoration: none !important; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color) !important; text-decoration: underline !important; }


.search-container {
    position: relative;
    display: inline-block;
}


.search-container {
    
    width: 95vw;            
    max-width: 1600px;      
    position: relative;
    left: 50%;
    transform: translateX(-50%); 
    
    margin-bottom: 3rem;    
    box-sizing: border-box;
}


@media (max-width: 768px) {
    .search-container {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 15px; 
    }
}


.search-container::after {
    content: '\1F50D'; 
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
    font-size: 1.4rem;
}


#searchInput {
    width: 100%;                  
    padding: 20px 60px 20px 35px; 
    border: 2px solid #e0e0e0;
    border-radius: 100px;         
    font-size: 1.2rem;            
    outline: none;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#searchInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.25);
    transform: scale(1.005);      
}

@media (max-width: 768px) {

    .menu-toggle { display: flex; }
    
    .nav-container { position: relative; justify-content: space-between; padding: 10px 20px; }
    
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; left: 0; width: 100%; 
        background: var(--nav-bg); 
        padding: 20px 0; 
        border-bottom: 1px solid var(--border-color); 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 10px 0; font-size: 1rem; }

    .hero h1 { font-size: 2rem; }
    
    .filters { display: flex; overflow-x: auto; white-space: nowrap; padding: 0 10px 15px; gap: 10px; }
    .filter-btn { flex: 0 0 auto; margin: 0; }

    .card-actions { flex-direction: column; align-items: stretch; }
    .action-btn { padding: 10px; font-size: 0.9rem; flex-grow: 1; }

    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .footer-links a { margin: 0; font-size: 0.9rem; }

} 


.text-content {
    max-width: 800px !important; 
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.meta-info {
    background: #fdfbf7;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.text-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

.text-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.text-content ul, .text-content ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.text-content li {
    margin-bottom: 8px;
}

.text-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.note {
    font-size: 0.9rem;
    color: #666;
    background: #f5f5f5;
    padding: 10px;
    border-left: 3px solid #999;
    border-radius: 4px;
}
