/* blog.css - PropertysDeal Premium Styling */

:root {
    --pd-brand-orange: #eb8944;
    --pd-brand-orange-hover: #d97732;
    --pd-brand-teal: #1e5f7a;
    --pd-text-dark: #1a2b3c;
    --pd-text-muted: #5c6b7a;
    --pd-border: rgba(30, 95, 122, 0.12);
    --pd-shadow-sm: 0 2px 8px rgba(26, 43, 60, 0.06);
    --pd-shadow-md: 0 12px 40px rgba(26, 43, 60, 0.12);
    --pd-radius: 12px;
}

/* Compact Hero Section */
.blog-hero {
    position: relative;
    background: var(--pd-brand-teal);
    padding: 60px 0;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb Spacing */
.breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid var(--pd-border);
}

.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--pd-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--pd-brand-orange);
}

.breadcrumb-item.active {
    color: var(--pd-text-dark);
    font-weight: 600;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--pd-radius);
    margin-bottom: 2.5rem;
    box-shadow: var(--pd-shadow-md);
    object-fit: cover;
}

/* Article Styling */
.blog-article {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--pd-border);
    margin-bottom: 3rem;
}

.blog-body {
    line-height: 1.75;
    color: var(--pd-text-dark);
}

.blog-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1.25rem;
    color: var(--pd-brand-teal);
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.seo-highlight {
    color: var(--pd-brand-orange);
    font-weight: 700;
}

.blog-quote {
    background: #fdfaf7;
    border-left: 4px solid var(--pd-brand-orange);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--pd-text-dark);
}

/* Sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--pd-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pd-border);
}

/* Sidebar Search */
.sidebar-search .form-control {
    border: 1px solid var(--pd-border);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.sidebar-search .btn {
    background: var(--pd-brand-teal);
    color: #fff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
}

/* Recent Posts */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.recent-item:hover {
    transform: translateX(4px);
}

.recent-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-info .title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pd-text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Category List */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list li {
    margin-bottom: 0.75rem;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    color: var(--pd-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(26, 43, 60, 0.05);
}

.cat-list a:hover {
    color: var(--pd-brand-orange);
}

/* FAQ */
.faq-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pd-border);
}

.accordion-item {
    border: 1px solid var(--pd-border);
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: #fdfaf7;
    color: var(--pd-brand-orange);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--pd-brand-orange);
}

/* CTA */
.blog-cta {
    background: linear-gradient(135deg, var(--pd-brand-teal) 0%, #164a61 100%);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
}

.blog-cta .btn-primary {
    background: var(--pd-brand-orange);
    border: none;
    padding: 0.875rem 2.5rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Pagination */
.blog-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
}

.nav-link-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link-box:hover {
    border-color: var(--pd-brand-orange);
    background: #fffcf9;
}

.nav-link-box .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pd-text-muted);
    margin-bottom: 0.5rem;
}

.nav-link-box .title {
    font-weight: 800;
    color: var(--pd-text-dark);
    font-size: 0.9375rem;
}

@media (max-width: 991px) {
    .blog-article { padding: 1.5rem; }
    .blog-hero h1 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
    .blog-nav { flex-direction: column; }
}
