/* Site Description Wrapper - Articles Section */
.site-description-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 50px 0;
    min-height: 400px;
}

/* ========================================
   HOMEPAGE ARTICLES STYLES
   ======================================== */

.homepage-articles {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Articles Header */
.articles-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid rgba(212, 175, 55, 0.3);
}

.articles-main-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-intro {
    max-width: 900px;
    margin: 0 auto;
}

.articles-intro p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* Article Card */
.article-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

.article-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Article Card Image */
.article-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #000;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.15);
}

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Article Card Content */
.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card-title {
    color: #d4af37;
}

/* Article Card Meta */
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.article-card-meta time,
.article-card-meta .reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-meta .meta-icon {
    width: 16px;
    height: 16px;
    color: #d4af37;
}

/* Article Card Excerpt */
.article-card-excerpt {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Card Read More */
.article-card-readmore {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-card-readmore svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-readmore {
    color: #66BB6A;
}

.article-card:hover .article-card-readmore svg {
    transform: translateX(5px);
}

/* View All Button */
.articles-view-all {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-view-all svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
}

.btn-view-all:hover svg {
    transform: translateX(5px);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
}

.no-articles p {
    font-size: 18px;
    color: #888;
}

/* ========================================
   SINGLE POST ARTICLE STYLES
   ======================================== */

.seo-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.article-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-transform: capitalize;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: #d4af37;
    flex-shrink: 0;
}

.meta-item .author {
    color: #d4af37;
    font-weight: 600;
}

.meta-item .published-date {
    color: #aaa;
}

.meta-item .categories a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item .categories a:hover {
    color: #66BB6A;
}

.reading-time {
    color: #888;
    font-style: italic;
}

/* Featured Image */
.article-featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.article-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-featured-image:hover img {
    transform: scale(1.05);
}

/* Article Content - SEO Optimized Typography */
.article-content {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin: 35px 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #fff;
    font-weight: 700;
    margin: 35px 0 20px 0;
    line-height: 1.4;
}

.article-content h1 {
    font-size: 32px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 15px;
}

.article-content h2 {
    font-size: 28px;
    color: #d4af37;
    position: relative;
    padding-left: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(to bottom, #d4af37, #f4d03f);
    border-radius: 3px;
}

.article-content h3 {
    font-size: 24px;
    color: #f4d03f;
}

.article-content h4 {
    font-size: 20px;
}

.article-content h5 {
    font-size: 18px;
}

.article-content h6 {
    font-size: 16px;
}

.article-content p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.article-content strong,
.article-content b {
    color: #fff;
    font-weight: 700;
}

.article-content em,
.article-content i {
    color: #d4af37;
}

.article-content a {
    color: #4CAF50;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.article-content a:hover {
    color: #66BB6A;
    border-bottom-color: #66BB6A;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content ul li,
.article-content ol li {
    margin: 12px 0;
    line-height: 1.7;
}

.article-content ul li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.article-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 18px;
}

.article-content ol li {
    padding-left: 10px;
}

.article-content ol li::marker {
    color: #d4af37;
    font-weight: bold;
}

/* Blockquote */
.article-content blockquote {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-left: 5px solid #d4af37;
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 0 10px 10px 0;
    position: relative;
    font-style: italic;
    color: #ccc;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 60px;
    color: #d4af37;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.article-content code {
    background: #2a2a2a;
    color: #4CAF50;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
}

.article-content pre {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid #d4af37;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.article-content table thead {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
}

.article-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.article-content table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.article-content table tbody tr:hover {
    background: #2a2a2a;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Images in Content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.article-content figure {
    margin: 30px 0;
}

.article-content figcaption {
    text-align: center;
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-icon {
    width: 20px;
    height: 20px;
    color: #d4af37;
    flex-shrink: 0;
}

.tags-label {
    color: #d4af37;
    font-weight: 700;
    font-size: 15px;
}

.article-tags a {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #4CAF50;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
}

.related-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4af37;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-item {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #000;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-item:hover .related-item-title {
    color: #d4af37;
}

.related-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.related-excerpt {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .articles-main-title {
        font-size: 30px;
    }
    
    .articles-intro p {
        font-size: 16px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .seo-article {
        padding: 30px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-description-wrapper {
        padding: 30px 0;
    }
    
    .homepage-articles {
        padding: 0 15px;
    }
    
    .articles-header {
        margin-bottom: 35px;
    }
    
    .articles-main-title {
        font-size: 24px;
    }
    
    .articles-intro p {
        font-size: 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card-image {
        height: 200px;
    }
    
    .seo-article {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h1 {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .related-posts {
        padding: 25px 20px;
    }
    
    .related-title {
        font-size: 22px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .articles-main-title {
        font-size: 20px;
    }
    
    .articles-intro p {
        font-size: 14px;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-card-title {
        font-size: 18px;
    }
    
    .seo-article {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-content {
        font-size: 14px;
    }
    
    .article-content h1 {
        font-size: 20px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .article-content table {
        font-size: 12px;
    }
    
    .article-content table th,
    .article-content table td {
        padding: 10px;
    }
    
    .related-posts {
        padding: 20px 15px;
    }
    
    .related-title {
        font-size: 20px;
    }
    
    .related-image {
        height: 160px;
    }
    
    .btn-view-all {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* Print Styles for SEO */
@media print {
    .site-description-wrapper {
        background: #fff;
    }
    
    .seo-article {
        background: #fff;
        border: none;
        box-shadow: none;
    }
    
    .article-title,
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        color: #000;
    }
    
    .article-content {
        color: #000;
    }
    
    .related-posts,
    .articles-view-all {
        display: none;
    }
}
