/* =========================================================
   THETEJBLOGS 2.0 — CYBERSECURITY (cybersecurity.css)
   - 100% Identical Structure to Artificial Intelligence Page
   - No Divider Lines, No Squeeze, Natural Flow
   - Pure Red Theme Accent (#ff2a2a)
   ========================================================= */

:root {
    --bg-dark: #03060a;
    --text-pure: #f8fafc;
    --text-muted: rgba(235, 240, 242, 0.65);
    --text-faint: rgba(235, 240, 242, 0.38);
    --glass-bg: rgba(7, 16, 22, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(255, 255, 255, 0.18);
    
    /* Cyber Red Theme Accent */
    --accent-theme: #ff2a2a;

    --font-sans: "DM Sans", sans-serif;
    --font-display: "Manrope", sans-serif;
    --font-serif: "Playfair Display", serif;
    --font-mono: "JetBrains Mono", monospace;

    --container-max: 1320px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-pure);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 1. Page Wrapper: Natural Top Padding Matching AI Page */
.category-page-wrapper {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 64px), var(--container-max));
    margin: 0 auto;
    padding: 135px 0 80px;
    display: block;
}

/* =========================================================
   01. HERO SECTION (EXACT AI PAGE MATCH)
   ========================================================= */
.category-hero-section {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: none;
}

.category-hero-inner {
    max-width: 820px;
    text-align: left;
}

.category-welcome-kicker {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.2;
}

.category-page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 16px;
}

.category-title-italic {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--accent-theme);
}

.category-page-description {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 680px;
}

/* =========================================================
   02. ARTICLES HEADER (NO DIVIDER LINE)
   ========================================================= */
.category-articles-section {
    margin-top: 10px;
}

.articles-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    /* Divider line permanently removed */
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.articles-section-heading {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}

.articles-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 1px;
}

/* =========================================================
   03. CARDS GRID & EMPTY STATE (MATCHING AI PAGE)
   ========================================================= */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    width: 100%;
}

/* Empty State centering without extra gaps */
.category-cards-grid:has(.category-empty-container) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 10px;
}

.category-empty-container {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.ring-core-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px auto;
}

.dynamic-spinning-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: var(--accent-theme);
    border-right-color: var(--accent-theme);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 22px rgba(255, 42, 42, 0.55);
    animation: rotateOrbitalRing 6s linear infinite;
}

@keyframes rotateOrbitalRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ring-logo-circle {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(3, 7, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.ring-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.05);
}

.empty-status-title {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #ffffff;
}

.empty-status-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin: 0 auto;
}

/* =========================================================
   04. ARTICLE CARDS (EXACT AI STYLE)
   ========================================================= */
.page-glass-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.page-glass-card:hover {
    border-color: var(--glass-hover-border);
    background: rgba(10, 22, 32, 0.75);
}

.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #020508;
}

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

.card-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 16, 22, 0.95) 100%);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(3, 6, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent-theme);
    text-transform: uppercase;
}

.card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.card-meta-row .date-updated {
    color: var(--accent-theme);
    font-weight: 700;
}

.card-meta-dot {
    opacity: 0.4;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 10px;
    height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-glass-card:hover .card-title {
    color: var(--accent-theme);
}

.card-excerpt {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 4.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-pure);
}

.cta-arrow {
    font-size: 13px;
    color: var(--accent-theme);
}

/* =========================================================
   05. RESPONSIVE RULES
   ========================================================= */
@media (max-width: 860px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .category-page-wrapper {
        width: calc(100% - 32px);
        padding: 105px 0 50px;
    }
}