/* ========== DARK THEME OVERRIDE ========== */
body {
    background: #0a0f1a;
    color: #b8bcc8;
}

h1, h2, h3, h4, h5, h6 { color: #ffffff; }
a { color: #22aaee; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #44bbf5; }

/* ========== KEYFRAMES ========== */
@keyframes color-blink-in {
    0% { color: #22aaee; opacity: 0; }
    50% { color: #22aaee; opacity: 1; }
    100% { color: #ffffff; opacity: 1; }
}
@keyframes color-sweep {
    0% { color: #22aaee; }
    100% { color: #ffffff; }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== DOT-GRID CANVAS ========== */
#dot-grid-ripple-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ========== MAIN ========== */
main { margin-top: 64px; position: relative; z-index: 1; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.2rem; text-transform: uppercase; margin-bottom: 1.5rem;
}
.section-label-blue { color: #22aaee; }

/* ========== HERO ========== */
.hero {
    background: transparent; position: relative;
    padding: 10rem 2rem 3rem; text-align: center; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero .section-label { display: inline-block; animation: fade-in 0.6s ease forwards; }
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800;
    line-height: 1.2; margin-bottom: 1.5rem;
}
.hero h1 .char { display: inline; opacity: 0; }
.hero p { color: #8892a4; font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }
.hero-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, #22aaee, transparent); margin: 0 auto;
}
@media (max-width: 768px) {
    .hero { padding: 6rem 1.5rem 2rem; }
    .hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
}

/* ========== SEARCH & FILTERS ========== */
.blog-controls { padding: 2rem 2rem 1rem; }
.blog-controls .section-container {
    max-width: 1000px; display: flex; flex-direction: column;
    gap: 1.5rem; align-items: center;
}
.blog-search { position: relative; width: 100%; max-width: 480px; }
.blog-search input {
    width: 100%; padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(34, 170, 238, 0.12);
    border-radius: 10px; color: #ffffff; font-family: 'Inter', sans-serif;
    font-size: 0.92rem; outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.blog-search input::placeholder { color: #5a6178; }
.blog-search input:focus {
    border-color: rgba(34, 170, 238, 0.4); background: rgba(255, 255, 255, 0.06);
}
.blog-search-icon {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: #5a6178; pointer-events: none;
}
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.filter-tab {
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.08rem; text-transform: uppercase; padding: 0.45rem 1rem;
    border-radius: 20px; border: 1px solid rgba(34, 170, 238, 0.12);
    background: transparent; color: #8892a4; cursor: pointer; transition: all 0.3s ease;
}
.filter-tab:hover { border-color: rgba(34, 170, 238, 0.3); color: #22aaee; }
.filter-tab.active {
    background: rgba(34, 170, 238, 0.12); border-color: #22aaee; color: #22aaee;
}
@media (max-width: 768px) {
    .blog-controls { padding: 1.5rem 1.5rem 0.5rem; }
    .filter-tabs { gap: 0.4rem; }
    .filter-tab { font-size: 0.6rem; padding: 0.4rem 0.75rem; }
}

/* ========== FEATURED POST ========== */
.featured-section { padding: 1.5rem 2rem 2rem; }
.featured-section .section-container { max-width: 1000px; }
.featured-post {
    display: block; background: #121726;
    border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid #22aaee;
    border-radius: 16px; padding: 2.5rem 3rem; text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-post:hover {
    background: #1a2035;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.featured-badge { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.featured-badge .blog-card-category { margin-bottom: 0; }
.featured-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.1rem; text-transform: uppercase; color: #9dc51c;
    background: rgba(157, 197, 28, 0.1);
    padding: 0.25rem 0.7rem; border-radius: 20px;
}
.featured-post h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700;
    margin-bottom: 0.75rem; line-height: 1.3;
}
.featured-post p { color: #8892a4; font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; max-width: 700px; }
.featured-meta { display: flex; align-items: center; gap: 1.5rem; }
@media (max-width: 768px) {
    .featured-section { padding: 1rem 1.5rem 1.5rem; }
    .featured-post { padding: 1.75rem 1.5rem; }
    .featured-post h2 { font-size: 1.25rem; }
}

/* ========== BLOG GRID ========== */
.blog-section { background: transparent; padding: 1rem 2rem 6rem; }
.blog-section .section-container { max-width: 1000px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.blog-card {
    background: #121726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 1.75rem;
    display: flex; flex-direction: column;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    background: #1a2035;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.blog-card.hidden { display: none; }
.blog-card-category {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.1rem; text-transform: uppercase; padding: 0.25rem 0.7rem;
    border-radius: 20px; display: inline-block; margin-bottom: 0.85rem; align-self: flex-start;
}
.blog-card-category.cybersecurity { background: rgba(255, 71, 87, 0.1); color: #ff4757; }
.blog-card-category.ai { background: rgba(157, 197, 28, 0.1); color: #9dc51c; }
.blog-card-category.cloud { background: rgba(34, 170, 238, 0.1); color: #22aaee; }
.blog-card-category.compliance { background: rgba(255, 165, 2, 0.1); color: #ffa502; }
.blog-card-category.voip { background: rgba(162, 155, 254, 0.1); color: #a29bfe; }
.blog-card-category.it-tips { background: rgba(0, 210, 211, 0.1); color: #00d2d3; }
.blog-card h3 {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card p {
    color: #8892a4; font-size: 0.88rem; line-height: 1.6; margin-bottom: 0.85rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; flex: 1;
}
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.blog-card-date {
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
    color: #5a6178; letter-spacing: 0.03rem;
}
.blog-card-link {
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 700;
    color: #22aaee; letter-spacing: 0.05rem; text-transform: uppercase;
}
.blog-card-link:hover { color: #44bbf5; }
@media (max-width: 768px) {
    .blog-section { padding: 1rem 1.5rem 4rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card h3 { font-size: 1rem; }
}
.no-results {
    text-align: center; padding: 3rem; color: #5a6178;
    font-size: 1rem; display: none;
}

/* ========== CTA SECTION ========== */
.cta-section {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(34, 170, 238, 0.03));
}
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.cta-section p { color: #8892a4; font-size: 1rem; margin-bottom: 1.5rem; }
.cta-button {
    display: inline-block; font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1rem;
    text-transform: uppercase; background: linear-gradient(135deg, #22aaee, #22aaee);
    color: #ffffff; padding: 0.85rem 2.5rem; border-radius: 28px;
    text-decoration: none; transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(34, 170, 238, 0.25);
}
.cta-button:hover {
    box-shadow: 0 4px 20px rgba(34, 170, 238, 0.4); transform: translateY(-2px);
    color: #ffffff;
}
.cta-phone { margin-top: 0.75rem; }
.cta-phone a { color: #8892a4; font-size: 0.9rem; }
.cta-phone a:hover { color: #22aaee; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 0.5rem; padding: 0 2rem 4rem; flex-wrap: wrap;
}
.pagination button {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700;
    min-width: 36px; height: 36px; padding: 0 0.5rem;
    border-radius: 8px; border: 1px solid rgba(34, 170, 238, 0.12);
    background: transparent; color: #8892a4; cursor: pointer;
    transition: all 0.25s ease; display: flex; align-items: center; justify-content: center;
}
.pagination button:hover {
    border-color: rgba(34, 170, 238, 0.3); color: #22aaee;
}
.pagination button.active {
    background: rgba(34, 170, 238, 0.12); border-color: #22aaee; color: #22aaee;
}
.pagination button:disabled {
    opacity: 0.3; cursor: default; pointer-events: none;
}
.pagination .page-info {
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
    color: #5a6178; letter-spacing: 0.03rem; padding: 0 0.75rem;
}
@media (max-width: 768px) {
    .pagination { gap: 0.35rem; padding: 0 1.5rem 3rem; }
    .pagination button { min-width: 32px; height: 32px; font-size: 0.65rem; }
}
