/* Blog Details Premium Styles - Rever Homes Branding (Black, White & Gold) */

.content-area {
    padding: 100px 0 70px;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    color: #d4af37; /* Gold */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.article-read-more,
.article-info {
    font-size: .875rem;
}

.article-read-more {
    color: #d4af37; /* Gold */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.article-read-more:hover,
.article-read-more:focus {
    color: #b5952f;
    text-decoration: underline;
}

.container-flex {
    max-width: 70vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}

.article-body {
    width: 100%;
    text-align: justify;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.article-body h2 {
    font-size: 26px;
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #d4af37; /* Gold accent */
    line-height: 1.4;
}

.article-body h3 {
    font-size: 22px;
    color: #222;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.03); /* Subtle gold background */
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.article-body p {
    margin-bottom: 20px;
    padding: 0 10px;
}

.article-body blockquote,
.article-body .highlight {
    background: #111; /* Black background */
    color: #fff;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid #d4af37; /* Gold accent */
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-body blockquote::before {
    content: '\201C';
    font-size: 80px;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

@media (max-width:1050px) {
    .container-flex {
        flex-direction: column;
    }
    .site-title,
    .subtitle {
        width: 100%;
    }
    main {
        max-width: 100%;
    }
    .sidebar {
        max-width: 100%;
    }
}

/* articles */
.article-featured {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Subtle Gold border */
    padding-bottom: 3em;
    margin-bottom: 3em;
}

.article-featured .article-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.article-recent {
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
}

.article-recent-main {
    order: 2;
}

.article-recent-secondary {
    order: 1;
}

@media (min-width: 675px) {
    .article-recent {
        flex-direction: row;
        justify-content: space-between;
    }
    .article-recent-main {
        width: 58%;
    }
    .article-recent-secondary {
        width: 30%;
    }
}

.c-rec {
    font-size: 26px;
    border-bottom: 1px solid #111;
    margin-bottom: 35px;
    font-weight: 700;
    color: #111;
}

.blog-3 {
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    z-index: 2;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.24, 0.74, 0.58, 1);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-3:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.blog-3 .blog-image {
    position: relative;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.blog-3 .date-box {
    position: absolute;
    top: 20px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 15px;
    text-align: center;
    right: 20px;
    background: #111; /* Black */
    color: #d4af37; /* Gold */
    border-radius: 4px;
    display: block;
    z-index: 10;
    transition: 0.3s;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

.blog-3 .post-meta {
    position: absolute;
    bottom: 10px;
    font-size: 14px;
    border-radius: 4px;
    width: 90%;
    margin: 0 5%;
    padding: 8px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-3 .post-meta span {
    margin: 0 7px;
    display: inline-block;
    font-weight: 600;
    color: #111;
}

.blog-3 .post-meta a {
    color: #d4af37; /* Gold */
    text-decoration: none;
    transition: color 0.3s;
}

.blog-3 .post-meta a:hover {
    color: #111;
}

.blog-3 .detail {
    padding: 40px 25px 30px;
    transition: 0.4s cubic-bezier(0.24, 0.74, 0.58, 1);
}

.c-inf {
    margin-top: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 36px;
    color: #111;
    line-height: 1.2;
}

/* FAQ Custom Styles for Blog */
.faq-section {
    background: #fdfdfd;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 40px;
    padding-top: 50px;
}

.faq-title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.faq-section .text-muted {
    color: #666 !important;
    font-size: 16px;
}

.faq-accordion .accordion-item {
    border: 1px solid rgba(212, 175, 55, 0.2); /* Gold subtle border */
    background-color: #fff;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
}

.faq-accordion .accordion-button {
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 25px;
    color: #111;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(212, 175, 55, 0.05); /* Very light gold */
    color: #d4af37; /* Gold */
}

.faq-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111; /* Black */
    color: #d4af37; /* Gold */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    font-size: 16px;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-number {
    background: #d4af37; /* Gold */
    color: #111; /* Black */
}

.accordion-body {
    padding: 0 25px 25px 85px; /* Offset to align with text */
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: grayscale(100%) brightness(0%); /* Black icon */
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(80%) sepia(40%) saturate(1000%) hue-rotate(350deg) brightness(100%) contrast(100%); /* Gold icon approximation */
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 28px;
    }
    .accordion-body {
        padding: 0 20px 20px 20px;
    }
    .faq-accordion .accordion-button {
        font-size: 16px;
        padding: 15px;
    }
    .faq-number {
        margin-right: 15px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .c-inf {
        font-size: 28px;
    }
}

/* TOC Sidebar Styles */
.toc-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: #d4af37; 
    border-radius: 10px;
}

.toc-link {
    color: #666;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    line-height: 1.4;
}

.toc-link:last-child {
    border-bottom: none;
}

.toc-link:hover, .toc-link.active {
    color: #d4af37;
    padding-left: 5px;
    background: transparent;
}

.toc-link.active {
    font-weight: 700;
}
