:root {
    --bp-brand: #B71C1C;
    --bp-brand-soft: #E31837;
    --bp-accent: #FFC107;
    --bp-accent-dark: #FFA000;
    --bp-text: #1a2332;
    --bp-text-muted: #64748b;
    --bp-bg: #ffffff;
    --bp-bg-soft: #f7f9fc;
    --bp-border: #e8edf3;
    --bp-shadow-sm: 0 1px 3px rgba(15,46,68,0.06);
    --bp-shadow-md: 0 4px 18px rgba(15,46,68,0.08);
    --bp-shadow-lg: 0 16px 48px rgba(15,46,68,0.12);
    --bp-radius: 14px;
    --bp-radius-sm: 8px;
    --bp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bp-bg-soft);
}

/* Hero aligned with index.html .hero-section visual language */
.page-hero {
    position: relative;
    padding: 90px 0 70px;
    color: #fff;
    background-color: var(--bp-brand);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,46,68,0.35) 0%, rgba(15,46,68,0.55) 100%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.page-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: none;
}
.page-hero-icon {
    display: none;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    max-width: 880px;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.page-hero .page-hero-subtitle,
.page-hero-subtitle {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.page-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 0 1rem;
    font-weight: 400;
    opacity: 0.95;
}
.page-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--bp-accent);
    color: var(--bp-brand);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255,170,71,0.35);
    transition: transform var(--bp-transition), box-shadow var(--bp-transition);
}
.page-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255,170,71,0.5);
    background: var(--bp-accent-dark);
    color: var(--bp-brand);
}

.page-section-wrap {
    position: relative;
    padding: 2rem 0 4rem;
    z-index: 2;
}

.page-breadcrumb {
    margin-bottom: 2.25rem;
}
.page-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    font-size: 0.88rem;
}
.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: var(--bp-text-muted);
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--bp-brand);
}
.page-breadcrumb .breadcrumb-item.active {
    color: var(--bp-brand);
    font-weight: 600;
}

.articles-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--bp-brand);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1rem;
}
.articles-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 4px;
    border-radius: 2px;
    background: var(--bp-accent);
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
}
.blog-sidebar::-webkit-scrollbar { width: 4px; }
.blog-sidebar::-webkit-scrollbar-thumb { background: var(--bp-border); border-radius: 2px; }

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--bp-shadow-sm);
    transition: box-shadow var(--bp-transition);
}
.sidebar-widget:hover { box-shadow: var(--bp-shadow-md); }
.sidebar-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bp-brand);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bp-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-title i { color: var(--bp-accent); }

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--bp-text);
    text-decoration: none;
    border-radius: var(--bp-radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--bp-transition);
}
.sidebar-categories li a:hover {
    background: var(--bp-bg-soft);
    color: var(--bp-brand);
}
.sidebar-categories li.sidebar-active a {
    background: rgba(255,170,71,0.12);
    color: var(--bp-brand);
    font-weight: 700;
}
.sidebar-categories li a i {
    color: var(--bp-accent);
    font-size: 1rem;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sidebar-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--bp-bg-soft);
    color: var(--bp-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    transition: all var(--bp-transition);
    border: 1px solid transparent;
}
.sidebar-tag:hover {
    background: var(--bp-brand);
    color: #fff;
    transform: translateY(-1px);
}
.sidebar-tag.tag-active {
    background: var(--bp-accent);
    color: var(--bp-brand);
    font-weight: 700;
}

.sidebar-authors li { margin-bottom: 0.5rem; }
.sidebar-authors li a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--bp-radius-sm);
    text-decoration: none;
    transition: background var(--bp-transition);
}
.sidebar-authors li a:hover {
    background: var(--bp-bg-soft);
}
.sidebar-authors li.sidebar-active a {
    background: var(--bp-bg-soft);
}
.sidebar-authors img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bp-accent);
    flex-shrink: 0;
}
.sidebar-authors .author-name {
    font-weight: 700;
    color: var(--bp-brand);
    font-size: 0.88rem;
    line-height: 1.2;
}
.sidebar-authors .author-role {
    font-size: 0.72rem;
    color: var(--bp-text-muted);
    line-height: 1.3;
    margin-top: 0.15rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--bp-brand) 0%, var(--bp-brand-soft) 100%);
    border: none;
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.4rem;
    position: relative;
    overflow: hidden;
}
.sidebar-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,170,71,0.25), transparent 60%);
    pointer-events: none;
}
.sidebar-cta h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
    position: relative;
}
.sidebar-cta p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
    line-height: 1.55;
    position: relative;
}
.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: var(--bp-accent);
    color: var(--bp-brand);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--bp-transition);
    position: relative;
}
.sidebar-cta-btn:hover {
    background: #fff;
    color: var(--bp-brand);
    transform: translateY(-1px);
    gap: 0.6rem;
}

.feature-grid-section,
.faq-section,
.cta-banner-section,
.stat-row-section {
    margin-top: 3.5rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--bp-border);
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bp-brand);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.section-subtitle {
    color: var(--bp-text-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.feature-item {
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--bp-transition);
}
.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--bp-shadow-md);
    border-color: var(--bp-accent);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bp-accent), var(--bp-accent-dark));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255,170,71,0.3);
}
.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp-brand);
    margin: 0 0 0.5rem;
}
.feature-body {
    font-size: 0.9rem;
    color: var(--bp-text-muted);
    line-height: 1.55;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    overflow: hidden;
    transition: all var(--bp-transition);
}
.faq-item[open] {
    border-color: var(--bp-accent);
    box-shadow: var(--bp-shadow-md);
}
.faq-item summary {
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    color: var(--bp-brand);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--bp-accent);
    transition: transform var(--bp-transition);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
    padding: 0 1.4rem 1.25rem;
    color: var(--bp-text-muted);
    line-height: 1.65;
}
.faq-answer p { margin: 0; }

.cta-banner {
    background: linear-gradient(135deg, var(--bp-brand) 0%, var(--bp-brand-soft) 100%);
    color: #fff;
    padding: 2.5rem 2.25rem;
    border-radius: var(--bp-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--bp-shadow-md);
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,170,71,0.3), transparent 60%);
    pointer-events: none;
}
.cta-heading {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    position: relative;
}
.cta-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 620px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
    position: relative;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--bp-accent);
    color: var(--bp-brand);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--bp-transition);
    position: relative;
}
.cta-button:hover {
    background: #fff;
    color: var(--bp-brand);
    transform: translateY(-2px);
    gap: 0.75rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-col {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}
.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--bp-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--bp-text-muted);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 2px dashed var(--bp-border);
    border-radius: var(--bp-radius);
    color: var(--bp-text-muted);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        max-height: none;
    }
}
@media (max-width: 575px) {
    .page-hero { padding: 60px 0 50px; }
    .page-hero-inner { padding: 0 16px; }
    .page-hero h1 { font-size: 1.75rem; line-height: 1.2; }
    .page-hero-subtitle { font-size: 1rem; }
    .page-hero-badge { font-size: 0.72rem; padding: 0.4rem 1rem; }
}
