/* ==========================================================================
   Blog System & Article Pages Stylesheet - الريادة للألمنيوم بالرياض
   ========================================================================== */

.blog-page {
    background-color: #f8fafc;
}

.blog-hero {
    padding: 150px 0 80px;
    background: linear-gradient(125deg, #0b2e56 0%, #0f3d6f 55%, #127d82 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 45px solid rgba(229, 169, 60, 0.16);
    border-radius: 50%;
    left: -120px;
    bottom: -180px;
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    margin-bottom: 18px;
    line-height: 1.35;
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin: 0 auto 28px;
}

/* --- Blog Cards Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 61, 111, 0.1);
    box-shadow: 0 10px 30px rgba(15, 61, 111, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 61, 111, 0.13);
    border-color: rgba(229, 169, 60, 0.6);
}

.blog-card-img,
.blog-card-img-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #0f3d6f;
}

.blog-card-img img,
.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img,
.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.06);
}

.blog-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 61, 111, 0.92);
    color: #f2c166;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.blog-card-body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-body h2,
.blog-card-body h3 {
    font-size: 1.32rem;
    color: #0f3d6f;
    margin-bottom: 12px;
    line-height: 1.45;
}

.blog-card-body h2 a,
.blog-card-body h3 a {
    color: inherit;
}

.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
    color: #127d82;
}

.blog-card-body p {
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn,
.blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: #f1f5f9;
    color: #0f3d6f;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.blog-card:hover .read-more-btn,
.blog-card:hover .blog-read-more {
    background: linear-gradient(135deg, #e5a93c, #d4962a);
    color: #111;
}

/* --- Blog Category Filter Tabs --- */
.blog-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 38px;
}

.blog-filter-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid rgba(15, 61, 111, 0.15);
    background: #ffffff;
    color: #0f3d6f;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: #0f3d6f;
    color: #f2c166;
    border-color: #0f3d6f;
    box-shadow: 0 8px 20px rgba(15, 61, 111, 0.18);
}

/* --- Neighborhood Badges & Area Pages --- */
.neighborhood-badges-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin: 34px 0;
    border: 1px solid rgba(15, 61, 111, 0.12);
    box-shadow: 0 10px 30px rgba(15, 61, 111, 0.05);
}

.neighborhood-badges-box h2 {
    color: #0f3d6f;
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.neighborhood-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.neighborhood-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 61, 111, 0.18);
    border-right: 4px solid #e5a93c;
    border-radius: 10px;
    color: #0f3d6f;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.2s ease;
}

.neighborhood-badge:hover {
    background: #0f3d6f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Single Article Page Layout --- */
.article-header {
    padding: 145px 0 65px;
    background: linear-gradient(125deg, #0b2e56 0%, #0f3d6f 60%, #127d82 100%);
    color: #fff;
    position: relative;
}

.article-header .breadcrumb {
    color: #f2c166;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.article-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.article-header .breadcrumb a:hover {
    color: #f2c166;
}

.article-header h1 {
    font-size: clamp(1.85rem, 4vw, 2.9rem);
    max-width: 920px;
    margin-bottom: 20px;
    line-height: 1.38;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.45fr);
    gap: 34px;
    align-items: start;
}

.article-main {
    background: #ffffff;
    border-radius: 18px;
    padding: 44px;
    border: 1px solid rgba(15, 61, 111, 0.09);
    box-shadow: 0 12px 35px rgba(15, 61, 111, 0.06);
}

.article-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 30px;
}

.article-content h2 {
    color: #0f3d6f;
    font-size: 1.65rem;
    margin: 34px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    color: #127d82;
    font-size: 1.3rem;
    margin: 26px 0 12px;
}

.article-content p {
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.article-content a {
    color: #0f3d6f;
    font-weight: 700;
    border-bottom: 2px solid #e5a93c;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #127d82;
    background: rgba(229, 169, 60, 0.15);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px;
    padding-right: 22px;
    display: grid;
    gap: 12px;
}

.article-content li {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.75;
    padding: 12px 16px;
    background: #f8fafc;
    border-right: 4px solid #e5a93c;
    border-radius: 6px;
    list-style: none;
}

/* --- Mid-Article & End-of-Article CTA Box --- */
.article-cta-box {
    margin: 36px 0;
    padding: 32px 28px;
    background: linear-gradient(135deg, #0f3d6f 0%, #124e66 100%);
    color: #ffffff;
    border-radius: 16px;
    border-right: 6px solid #e5a93c;
    box-shadow: 0 15px 35px rgba(15, 61, 111, 0.18);
    text-align: right;
}

.article-cta-box h3 {
    color: #f2c166 !important;
    font-size: 1.4rem !important;
    margin: 0 0 10px 0 !important;
}

.article-cta-box p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.06rem !important;
    margin-bottom: 20px !important;
}

.article-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.article-cta-buttons .btn {
    border-bottom: none !important;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 26px 0;
    border-radius: 12px;
    border: 1px solid rgba(15, 61, 111, 0.15);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    text-align: right;
}

.comparison-table th {
    background: #0f3d6f;
    color: #fff;
    padding: 15px 18px;
    font-size: 1.02rem;
}

.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.98rem;
}

.comparison-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* --- Interactive FAQ Accordion --- */
.faq-accordion {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.faq-accordion-item {
    border: 1px solid rgba(15, 61, 111, 0.14);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-accordion-item.active {
    border-color: #0f3d6f;
    box-shadow: 0 8px 20px rgba(15, 61, 111, 0.08);
}

.faq-question {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 18px 22px;
    text-align: right;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f3d6f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-icon {
    font-size: 1.3rem;
    color: #e5a93c;
    font-weight: 800;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
    background: #ffffff;
}

.faq-accordion-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 22px 20px;
    border-top: 1px solid #f1f5f9;
}

.faq-answer p {
    margin-bottom: 0 !important;
    color: #4b5563 !important;
    font-size: 1.02rem !important;
}

/* --- Sidebar --- */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 24px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(15, 61, 111, 0.1);
    box-shadow: 0 10px 30px rgba(15, 61, 111, 0.06);
}

.sidebar-widget h3 {
    color: #0f3d6f;
    font-size: 1.25rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5a93c;
}

.sidebar-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.sidebar-links li a {
    display: block;
    padding: 9px 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.94rem;
    transition: all 0.2s ease;
}

.sidebar-links li a:hover {
    background: #0f3d6f;
    color: #fff;
    transform: translateX(-4px);
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-main {
        padding: 26px 20px;
    }

    .article-sidebar {
        position: static;
    }

    .article-cta-buttons {
        flex-direction: column;
    }

    .article-cta-buttons .btn {
        width: 100%;
    }
}

