:root {
    --awid-primary: #0b3d6d;
    --awid-primary-dark: #082948;
    --awid-accent: #1f7ae0;
    --awid-light: #f4f8fc;
}

body {
    background-color: #fff;
    color: #1f2933;
    min-height: 100vh;
}

.bg-primary {
    background-color: var(--awid-primary) !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar {
    background: linear-gradient(90deg, var(--awid-primary-dark), var(--awid-primary)) !important;
}

.brand-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.2rem 0.4rem;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.25rem;
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 40px;
        max-width: 160px;
    }
}

.page-banner {
    background: #f7fafc;
}

.page-banner-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.95rem;
}

.page-breadcrumb {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem !important;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: #8a97a5;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--awid-primary);
}

.page-breadcrumb .breadcrumb-item.active {
    color: #5c6670;
    font-weight: 600;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #c0c8d1;
    content: "/";
    padding-right: 0.45rem;
    font-weight: 400;
}

.page-banner-title {
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.3;
    color: #1f2933;
    margin: 0;
}

.hero-section {
    --hero-min-height: 340px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    min-height: var(--hero-min-height);
    background-color: var(--awid-primary-dark);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(8, 41, 72, 0.92) 0%,
        rgba(11, 61, 109, 0.82) 48%,
        rgba(11, 61, 109, 0.55) 100%
    );
}

.hero-section .lead {
    max-width: 760px;
}

.content-card {
    background: #fff;
}

.content-card img,
.content-card video {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.content-card .figure-caption {
    font-size: 0.875rem;
}

.meta-date {
    color: #6c757d;
    font-size: 0.95rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    display: inline-block;
    background: var(--awid-light);
    border: 1px solid #d7e3f0;
    color: var(--awid-primary);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.filter-code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.sidebar-card {
    background: var(--awid-light);
    border: 1px solid #dbe7f3;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.sidebar-links li + li {
    margin-top: 0.5rem;
}

.attacks-sidebar-card {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.attacks-sidebar-list {
    background: #fff;
}

.attacks-sidebar-item + .attacks-sidebar-item {
    border-top: 1px solid #e8eef4;
}

.attacks-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.25rem;
    color: #243447;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.attacks-sidebar-link i {
    color: var(--awid-accent);
    font-size: 1.05rem;
}

.attacks-sidebar-link:hover {
    background: #f8fbff;
    color: var(--awid-primary);
}

.attacks-sidebar-item.is-active .attacks-sidebar-link {
    background: #eef5fc;
    color: var(--awid-primary);
    border-left: 3px solid var(--awid-accent);
    padding-left: calc(1.25rem - 3px);
}

.attacks-sidebar-item.is-active .attacks-sidebar-link i {
    color: var(--awid-primary);
}

.mission-card,
.dataset-card {
    background: #fff;
    border: 1px solid #e5edf5;
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
}

.mission-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--awid-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.mission-card h3 a {
    color: var(--awid-primary);
}

.home-stats-section {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #e5edf5;
    border-radius: 1rem;
    padding: 2rem 1.25rem;
}

.home-stat-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 0.9rem;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(11, 61, 109, 0.05);
}

.home-stat-value {
    color: var(--awid-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.home-stat-label {
    color: #6c7a89;
    font-size: 0.95rem;
    line-height: 1.35;
}

.btn-ref {
    background: #e9ecef;
    color: #111;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.75rem;
}

.btn-ref:hover {
    background: #dde2e6;
    color: #000;
}

.ref-pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.site-footer {
    background: var(--awid-primary-dark);
    margin-top: auto;
}

.table-responsive .table {
    font-size: 0.92rem;
}

.vuln-table td,
.vuln-table th {
    white-space: normal;
    vertical-align: top;
}

.vuln-table .chipset-list {
    display: inline;
    line-height: 1.65;
}

.vuln-table .chipset-item {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .home-stats-section {
        padding: 1.5rem 1rem;
    }

    .home-stat-card {
        padding: 1rem 0.85rem;
    }

    .home-stat-label {
        font-size: 0.88rem;
    }

    .vuln-table {
        font-size: 0.85rem;
    }

    .vuln-table th,
    .vuln-table td {
        padding: 0.45rem 0.5rem;
    }
}

.contact-card .contact-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.contact-name-icon {
    color: var(--awid-accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-affiliation {
    color: #5c6670;
    margin-bottom: 1rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: #f7fafc;
    border: 1px solid #e5edf5;
    border-radius: 0.5rem;
}

.contact-email-icon {
    color: var(--awid-accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-email-img {
    max-height: 28px;
    width: auto;
    height: auto;
    display: block;
}

.video-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blog-list-page {
    width: 100%;
}

.blog-list-card {
    padding: 0;
    overflow: hidden;
}

.blog-list-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.blog-list {
    background: #fff;
}

.blog-list-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
}

.blog-list-item + .blog-list-item {
    border-top: 1px solid #e8eef4;
}

.blog-list-item:hover {
    background: #f8fbff;
}

.blog-list-thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 90px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e8eef4;
    display: block;
}

.blog-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-list-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a97a5;
    font-size: 1.75rem;
}

.blog-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.blog-list-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.4rem;
}

.blog-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.4rem;
}

.blog-list-title a {
    color: #243447;
    text-decoration: none;
}

.blog-list-title a:hover {
    color: var(--awid-primary);
}

.blog-list-excerpt {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.55rem;
}

.blog-list-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--awid-accent);
    text-decoration: none;
}

.blog-list-more:hover {
    color: var(--awid-primary);
}

.blog-list-pagination {
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .blog-list-item {
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .blog-list-thumb {
        flex-basis: 88px;
        width: 88px;
        height: 72px;
    }

    .blog-list-title {
        font-size: 1.02rem;
    }

    .blog-list-excerpt {
        font-size: 0.9rem;
    }
}

.meta-date i {
    margin-right: 0.35rem;
}

.blog-sidebar {
    position: sticky;
    top: 5.5rem;
}

.recent-posts-card {
    padding: 0;
    overflow: hidden;
}

.recent-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dbe7f3;
    background: #fff;
}

.recent-posts-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--awid-accent);
    text-decoration: none;
    white-space: nowrap;
}

.recent-posts-all:hover {
    color: var(--awid-primary);
}

.recent-posts-list {
    background: #fff;
}

.recent-post-item + .recent-post-item {
    border-top: 1px solid #e8eef4;
}

.recent-post-link {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.recent-post-link:hover {
    background: #f8fbff;
}

.recent-post-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.45rem;
}

.recent-post-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #243447;
    margin-bottom: 0.35rem;
}

.recent-post-link:hover .recent-post-title {
    color: var(--awid-primary);
}

.recent-post-excerpt {
    display: block;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #6b7280;
}

.blog-post .meta-date {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.blog-post-title {
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.35;
    color: #1f2933;
    margin: 0 0 0.5rem;
}

.blog-post-subtitle {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.blog-post-body {
    color: #374151;
    line-height: 1.7;
}

.blog-post-action {
    color: var(--awid-accent);
    font-weight: 600;
    text-decoration: none;
}

.blog-post-action:hover {
    color: var(--awid-primary);
}

.blog-post img {
    max-height: 480px;
    object-fit: contain;
    width: 100%;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        --hero-min-height: 260px;
    }

    .hero-security-visual {
        max-width: 320px;
    }

    .hero-security-image {
        min-height: calc(var(--hero-min-height) * 0.45);
    }
}
