.blog-page {
    padding-top: 80px;
}

.blog-section {
    padding: 60px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-date {
    font-size: 12px;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--graphite);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    color: var(--terracotta);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--warm-white);
    box-shadow: 0 30px 90px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--graphite);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-close:hover {
    background: var(--terracotta);
    transform: rotate(90deg);
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 80px 60px;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-date {
    display: inline-block;
    font-size: 11px;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(201, 123, 99, 0.1);
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 30px;
    color: var(--graphite);
    line-height: 1.2;
    font-weight: 300;
}

.article-image {
    width: calc(100% + 120px);
    height: 450px;
    margin: 0 -60px 50px;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(250, 248, 243, 0.3));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 72px;
    line-height: 1;
    float: left;
    margin: 5px 15px 0 0;
    color: var(--terracotta);
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin: 50px 0 25px;
    color: var(--graphite);
    font-weight: 400;
    position: relative;
    padding-left: 30px;
}

.article-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: var(--terracotta);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--sand);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--graphite);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--terracotta);
}

.article-share {
    margin-top: 60px;
    padding: 40px;
    background: var(--sand);
    text-align: center;
}

.article-share h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--graphite);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--graphite);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.share-btn:hover {
    background: var(--terracotta);
    color: white;
    transform: translateY(-3px);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.tag {
    padding: 8px 18px;
    background: rgba(201, 123, 99, 0.1);
    color: var(--terracotta);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--terracotta);
    color: white;
}

.article-cta {
    margin-top: 60px;
    padding: 50px;
    background: var(--graphite);
    color: white;
    text-align: center;
}

.article-cta h4 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 15px;
}

.article-cta p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-cta .btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--terracotta);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.article-cta .btn-primary:hover {
    background: white;
    color: var(--graphite);
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .article-content {
        padding: 60px 30px;
    }
    
    .article-image {
        width: calc(100% + 60px);
        margin: 0 -30px 40px;
        height: 300px;
    }
    
    .article-body p:first-of-type::first-letter {
        font-size: 56px;
    }
    
    .article-body h3 {
        font-size: 26px;
        padding-left: 20px;
    }
    
    .article-share,
    .article-cta {
        padding: 30px 20px;
    }
}


.modal-body {
    position: relative;
}
