/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
    background-color: #fafafa;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #8B1538;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}



.btn-subscribe {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #8B1538;
    transition: background 0.2s;
}

.btn-subscribe:hover {
    background: #6d0f2a;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #4a4a4a;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}

.breadcrumbs a {
    color: #8B1538;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumbs span {
    color: #999;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #8B1538;
}

.search-box input::placeholder {
    color: #999;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    background: white;
    display: inline-block;
}

.filter-btn.active {
    background: #8B1538;
    color: white;
    border-color: #8B1538;
}

.filter-info {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.clear-search {
    font-size: 13px;
    color: #8B1538;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: underline;
}

.clear-search:hover {
    opacity: 0.7;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: rgba(26, 26, 26, 0.85);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: capitalize;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-date {
    font-size: 13px;
    color: #C41E3A;
    font-weight: 500;
}

.favorite-btn {
    padding: 4px;
    transition: opacity 0.2s;
}

.favorite-btn:hover {
    opacity: 0.7;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
    flex: 1;
}

.article-title a {
    transition: color 0.2s;
}

.article-title a:hover {
    color: #8B1538;
}

.article-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #C41E3A;
    font-weight: 500;
}

.word-count {
    font-size: 12px;
    color: #999;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-articles p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.no-articles .muted {
    font-size: 14px;
    color: #999;
}



/* Article Page */
.article-page {
    background: white;
}

.article-container {
    max-width: 800px;
}

.article-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid #e5e5e5;
}

.article-hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: #8B1538;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.article-headline {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.article-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.metadata-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name {
    color: #8B1538;
    font-weight: 600;
}

.metadata-divider {
    color: #d0d0d0;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s;
    color: #666;
}

.action-btn:hover {
    border-color: #8B1538;
    color: #8B1538;
}

.action-btn.favorite {
    color: #C41E3A;
}

/* Article Body */
.article-body {
    padding: 40px 0;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-part {
    margin-bottom: 25px;
}

.article-part p {
    margin-bottom: 20px;
}

.article-part h2 {
    font-size: 28px;
    margin: 35px 0 20px;
    color: #1a1a1a;
}

.article-part h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.article-part ul,
.article-part ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-part li {
    margin-bottom: 10px;
}

/* Article Footer Section */
.article-footer-section {
    padding: 30px 0;
    border-top: 1px solid #e5e5e5;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.tags-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.tag {
    padding: 6px 14px;
    background: #f0f0f0;
    color: #4a4a4a;
    font-size: 13px;
    border-radius: 16px;
    font-weight: 500;
}



.back-link {
    padding: 30px 0;
}

.back-link a {
    color: #8B1538;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.back-link a:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 50px 0 30px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
}

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

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

.footer-links a {
    color: #999;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
}

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

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

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.footer-tagline {
    color: #8B1538;
    font-weight: 600;
    font-size: 14px;
}

.muted {
    color: #666;
}

/* Subscribe Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-content .close:hover {
    color: #333;
}

#subscribeForm {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#subscribeForm input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
}

#subscribeForm input[type="email"]:focus {
    outline: none;
    border-color: #8B1538;
}

.btn-submit {
    padding: 12px 24px;
    background: #8B1538;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #6d0f2a;
}

#subscribeMessage {
    min-height: 20px;
}

#subscribeMessage .success {
    color: #28a745;
    font-weight: 500;
}

#subscribeMessage .error {
    color: #dc3545;
    font-weight: 500;
}

/* About Page */
.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 30px;
}

.back-button {
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.back-button:hover {
    border-color: #8B1538;
    color: #8B1538;
}

.red-divider {
    height: 4px;
    background: #8B1538;
    margin: 30px 0;
}

.about-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
}

.contact-section {
    margin-top: 40px;
}

.contact-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.contact-link {
    color: #8B1538;
    font-size: 15px;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-subscribe {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #subscribeForm {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .article-headline {
        font-size: 32px;
    }
    
    .article-metadata {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-body {
        font-size: 16px;
    }
    

    

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .article-headline {
        font-size: 26px;
    }
}
