/* CodeCraft.gr - Main Stylesheet */

html { 
    scroll-padding-top: 70px; 
}

:root {
    --neon-teal: #00f7ff;
    --neon-purple: #b967ff;
    --dark-blue: #0a192f;
    --midnight-black: #020814;
    --card-bg: #0c1a33;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
}

body {
    background-color: var(--midnight-black);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(185, 103, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 247, 255, 0.15) 0%, transparent 20%),
        linear-gradient(135deg, var(--dark-blue) 0%, var(--midnight-black) 100%);
    min-height: 100vh;
}

/* Glassy navbar (teal-tinted) */
.navbar {
    background: rgba(0, 247, 255, 0.10) !important;
    border-bottom: 1px solid rgba(0, 247, 255, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 247, 255, 0.10);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
    background: rgba(12, 26, 51, 0.70) !important;
    border-bottom-color: rgba(0, 247, 255, 0.45) !important;
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.15);
}

.navbar-brand {
    filter: drop-shadow(0 2px 8px rgba(0, 247, 255, 0.25));
}

.navbar .bi { 
    margin-right: 8px; 
    vertical-align: -0.125em;
}        

.nav-link { 
    color: var(--text-secondary) !important; 
}

.nav-link:hover { 
    color: var(--neon-teal) !important; 
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5); 
}

.nav-link.active { 
    color: var(--neon-teal) !important; 
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 247, 255, 0.35);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 26, 51, 0.8) 0%, rgba(2, 8, 20, 0.6) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: white;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.hero-subtitle {
    white-space: pre-line;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-btn {
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--neon-teal);
    color: var(--neon-teal);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-btn:hover {
    background: rgba(0, 247, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

/* Active category button style (orange) */
.category-btn.active {
   background: rgba(0, 247, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

.category-btn:active {
    background: rgba(0, 247, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

/* Container */
.container {
    max-width: 1400px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    margin-top: 70px;
}

/* Cards */
.blog-card, .video-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 247, 255, 0.3);
    height: 100%;
    margin: 0 auto;
}

.blog-card:hover, .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.25);
    border-color: rgba(185, 103, 255, 0.5);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    filter: brightness(0.9);
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-btn {
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

button.read-more-btn {
    cursor: pointer;
}

/* Infinite-scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}

.reveal.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

#load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
    filter: saturate(0.9);
}

.read-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.6);
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.category-badge {
    background: rgba(185, 103, 255, 0.2);
    color: var(--neon-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(185, 103, 255, 0.3);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Category filter bar — right below the Hero on the home page */
.category-filter-bar {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0, 247, 255, 0.15);
    padding: 14px 0;
}
.category-filter-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: .95rem;
    margin: 0 0 10px;
}
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.category-filter .category-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(0, 247, 255, 0.3);
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(0, 247, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.category-filter .category-pill:hover {
    background: rgba(0, 247, 255, 0.16);
    border-color: var(--neon-teal);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-1px);
}
.category-filter .category-pill.active {
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    border-color: transparent;
    color: var(--midnight-black);
}

/* Mobile: a single horizontally-scrollable row instead of wrapping into a tall, awkward block */
@media (max-width: 767.98px) {
    .category-filter-bar {
        padding: 12px 0;
    }
    .category-filter-bar .container {
        padding-left: 0;
        padding-right: 0;
    }
    .category-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 16px;
    }
    .category-filter::-webkit-scrollbar {
        display: none;
    }
    .category-filter .category-pill {
        flex: 0 0 auto;
    }
}

.domain-highlight {
    color: var(--neon-teal);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.4);
}

/* About Page Specific Styles */
.glass-card {
    background: rgba(12, 26, 51, 0.78);
    border: 1px solid rgba(0, 247, 255, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.10);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    height: 100%;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(185, 103, 255, 0.35);
    background: rgba(185, 103, 255, 0.15);
    color: var(--neon-purple);
    font-weight: 700;
    font-size: .9rem;
}

.feature-icon {
    width: 46px; 
    height: 46px; 
    border-radius: 12px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(0, 247, 255, 0.10);
    border: 1px solid rgba(0, 247, 255, 0.25);
    color: var(--neon-teal);
    box-shadow: 0 0 18px rgba(0, 247, 255, 0.12);
    margin-bottom: .8rem;
}

.muted { 
    color: var(--text-secondary); 
    line-height: 1.75; 
}

.pill {
    display: inline-block;
    background: rgba(0, 247, 255, 0.10);
    color: var(--neon-teal);
    border: 1px solid rgba(0, 247, 255, 0.22);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .9rem;
    margin: .25rem .35rem .25rem 0;
}

.btn-neon {
    border: 0;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    color: #fff;
    font-weight: 700;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-neon:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.45); 
    color: #fff; 
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(0, 247, 255, 0.25);
    padding: .6rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-ghost:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 14px rgba(0, 247, 255, .20); 
    border-color: rgba(0, 247, 255, 0.45); 
    color: #fff; 
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.author-block .author-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.2rem;
    box-shadow: 0 0 26px rgba(0, 247, 255, 0.18);
    flex: 0 0 auto;
}

.author-name { 
    font-size: 1.35rem; 
    font-weight: 800; 
    margin: 0; 
}

.author-role { 
    margin: .15rem 0 0; 
    color: var(--text-secondary); 
}

/* Blog Post Specific Styles */
.blog-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 247, 255, 0.35);
}

.blog-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Used by generated articles (no external hero image) */
.blog-hero-image.blog-hero-fallback {
    object-fit: initial;
    filter: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(185, 103, 255, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 82% 60%, rgba(0, 247, 255, 0.18) 0%, transparent 40%),
        linear-gradient(180deg, rgba(12, 26, 51, 0.90), rgba(2, 8, 20, 0.98));
    display: grid;
    place-items: center;
    padding: 0 2rem;
}

.blog-hero-image.blog-hero-fallback .blog-title {
    max-width: 1100px;
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.blog-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(2, 8, 20, 0.9) 70%);
    padding: 2rem 2rem 3rem;
    color: white;
}

/* Centered overlay variant (used by generated articles) */
.blog-content-overlay.blog-content-overlay--center {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 20% 30%, rgba(185, 103, 255, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(0, 247, 255, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, rgba(2, 8, 20, 0.35), rgba(2, 8, 20, 0.88));
    padding: 0 2rem;
}

.blog-content-overlay.blog-content-overlay--center .container {
    max-width: 1100px;
}

.blog-content-overlay.blog-content-overlay--center .blog-category-badge {
    margin-bottom: 0.9rem;
}

.blog-content-overlay.blog-content-overlay--center .blog-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
}

.blog-content-overlay.blog-content-overlay--center .blog-meta {
    justify-content: center;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-category-badge {
    background: rgba(185, 103, 255, 0.2);
    color: var(--neon-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(185, 103, 255, 0.3);
    display: inline-block;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Two-column article layout: content + sidebar ad slot */
.article-layout .blog-content--col {
    max-width: none;
    margin: 0;
    padding: 0;
}

.ad-placeholder {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    border: 2px dashed rgba(0, 247, 255, 0.3);
    border-radius: 15px;
    background: var(--card-bg);
    color: var(--text-secondary);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.ad-placeholder span {
    margin-top: .5rem;
    font-size: .85rem;
    font-weight: 400;
    opacity: .7;
}

@media (max-width: 991.98px) {
    .ad-placeholder {
        position: static;
        min-height: 120px;
        margin-top: 2rem;
    }
}

.ad-slot {
    position: sticky;
    top: 90px;
}

@media (max-width: 991.98px) {
    .ad-slot {
        position: static;
        margin-top: 2rem;
    }
}

.ad-placeholder--banner {
    position: static;
    width: 100%;
    max-width: 1200px;
    min-height: 90px;
    margin: 0 auto;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--neon-teal);
    font-weight: 700;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--neon-purple);
    font-weight: 600;
}

.blog-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-content code {
    background: rgba(0, 247, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--neon-teal);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.blog-content pre {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

/* The article's embedded video (YouTube/Vimeo, or a native file), always shown at the end of the body. */
.cc-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.cc-video-embed iframe,
.cc-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cc-video-credit {
    margin-top: -1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

/* Social share bar at the end of an article's text. */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 247, 255, 0.15);
}

.article-share-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .95rem;
    margin-right: .3rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 247, 255, 0.25);
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.share-btn:hover,
.share-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(0, 247, 255, .25);
    border-color: rgba(0, 247, 255, 0.45);
    color: var(--text-primary);
    text-decoration: none;
}

.share-copied {
    color: var(--neon-teal);
    font-size: .85rem;
    font-weight: 600;
}

.author-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.author-section .author-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-section .author-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.author-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-details p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-teal);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: var(--neon-purple);
    transform: translateX(-4px);
}

.tags-section {
    margin: 2rem 0;
    text-align: center;
}

.tag {
    display: inline-block;
    background: rgba(0, 247, 255, 0.1);
    color: var(--neon-teal);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 0.3rem 0.3rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 247, 255, 0.2);
    transform: translateY(-2px);
}

/* Video Page Specific Styles */
.video-card {
    position: relative;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--neon-teal);
    font-size: 24px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    background: rgba(185, 103, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-stats {
    display: flex;
    gap: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(12,26,51,.92), rgba(2,8,20,.92));
    border-top: 1px solid rgba(0, 247, 255, 0.25);
    padding: 3rem 0 2rem;
}

.footer .row > [class*="col-"] {
    text-align: left;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: .5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 2px;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
}

.footer-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { 
    margin: .55rem 0; 
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
    color: var(--neon-teal);
    transform: translateX(4px);
}

.footer-links i {
    font-size: .9rem;
    opacity: .9;
    color: var(--neon-teal);
}

.social-icons {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0, 247, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    color: var(--text-primary);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(0, 247, 255, .25);
    border-color: rgba(0, 247, 255, 0.45);
}

.footer .input-group .form-control {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(185,103,255,0.35);
    border-right: 0;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer .input-group .form-control::placeholder {
    color: rgba(255,255,255,.7);
}

.footer .input-group .form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(0, 247, 255, .25);
    border-color: var(--neon-teal);
}

.footer .input-group .btn {
    border: 1px solid rgba(185,103,255,0.35);
    border-left: 0;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple));
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(185, 103, 255, 0.18);
    margin-top: 2rem;
    padding-top: 1.25rem;
    color: var(--text-secondary);
    font-size: .9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .navbar-brand { font-size: 1.5rem; }
    .hero-video-container { height: 400px; }
    .hero-content { text-align: center; margin: 0 auto; padding: 0 15px; }
    .category-buttons { justify-content: center; }
    .footer .col-md-3 { margin-bottom: 2rem; }
    .footer .row > [class*="col-"] { text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-links { text-align: center; }
    .footer-links a { justify-content: center; }
    .main-content { margin-top: 70px; }
    .blog-title { font-size: 1.8rem; }
    .blog-hero-image { height: 300px; }
    .blog-content-overlay.blog-content-overlay--center { padding: 0 1.25rem; }
    .blog-content { padding: 0 1rem; }
    .author-info { flex-direction: column; text-align: center; }
    .author-avatar { margin-right: 0; margin-bottom: 0.5rem; }
    .author-block { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-video-container { height: 300px; }
    .blog-title { font-size: 1.5rem; }
    .blog-hero-image { height: 250px; }
    .blog-meta { flex-direction: column; gap: 0.5rem; }
    .blog-content h2 { font-size: 1.5rem; }
    .blog-content h3 { font-size: 1.2rem; }
    .video-thumbnail { height: 150px; }
    .play-button { width: 45px; height: 45px; }
    .play-button i { font-size: 18px; }
}
/* Ensure cards display side-by-side (responsive grid) for Latest Posts */
/* Latest Posts: force cards to fill Bootstrap columns */
.posts-row > .col {
  display: flex;
}

.posts-row > .col > .blog-card {
  width: 100%;
  margin: 0;        /* (αν θες κράτα margin auto έξω από εδώ) */
  flex: 1 1 auto;
}

/* Ensure card fills width in grid */
.blog-card {
  width: 100%;
}

/* Switch to single column on smaller screens */
@media (max-width: 1023px) {
  .posts-row {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.is-filtered-out {
  display: none !important;
}

/* ==== Sticky header stack: navbar → category bar → (article) back bar ==== */
:root { --nav-h: 62px; --cat-h: 0px; }

/* Navbar: roomier, pill-shaped links */
.navbar { padding-top: .55rem; padding-bottom: .55rem; }
.navbar-brand { font-weight: 700; letter-spacing: .2px; }
.navbar .nav-link {
    border-radius: 999px;
    padding: .4rem .95rem !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.navbar .nav-link:hover { background: rgba(0, 247, 255, 0.10); text-shadow: none; }
.navbar .nav-link.active {
    background: rgba(0, 247, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 247, 255, 0.35);
}

/* Category bar follows the page under the navbar; it shrinks to one scrolling row once you scroll */
.category-filter-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 1029;
    background: rgba(8, 20, 42, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
/* shrinking the bar changes the page height: no scroll anchoring, no animation of that height, or the page jitters around the threshold */
html, body { overflow-anchor: none; }
/* The pills are always ONE row (the bar never changes height): the label above, the pills below in a sideways scroller with arrows / wheel / drag */
.category-filter-bar { padding: 8px 0 10px; }
.category-filter-bar .category-filter-label { text-align: center; margin: 0 0 6px; font-size: .9rem; }
.category-scroller { position: relative; display: flex; align-items: center; }
.category-scroller .category-filter {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: safe center;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 4px;
    cursor: grab;
}
.category-scroller .category-filter::-webkit-scrollbar { display: none; }
.category-scroller .category-filter.dragging { cursor: grabbing; user-select: none; }
.category-scroller .category-filter.dragging .category-pill { pointer-events: none; }
.category-scroller .category-pill { flex: 0 0 auto; padding: .3rem .85rem; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.cat-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 34px; height: 34px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--neon-teal); background: rgba(8, 20, 42, 0.95);
    border: 1px solid rgba(0, 247, 255, 0.45); box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.cat-arrow[hidden] { display: none; }
.cat-arrow:hover { background: rgba(0, 247, 255, 0.2); }
.cat-prev { left: 0; }
.cat-next { right: 0; }
@media (hover: none) { .cat-arrow { display: none; } }      /* touch screens just swipe */
/* Article page: the "back" link is a bar of its own that stays under the header */
.article-subbar {
    position: sticky;
    top: calc(var(--nav-h) + var(--cat-h));
    z-index: 1028;
    padding: .55rem 0;
    margin-bottom: 1.25rem;
    background: rgba(2, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 247, 255, 0.12);
}
.article-subbar .back-to-blog { margin-bottom: 0; }

/* ==== Compact article cards: three in a row next to the sidebar (home) — also used by "Διάβασε επίσης" ==== */
.posts-row .card-img-top, .related-articles .card-img-top { height: 150px; }
.posts-row .card-body, .related-articles .card-body { padding: 1rem; }
.posts-row .card-title, .related-articles .card-title {
    font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.posts-row .card-text, .related-articles .card-text {
    font-size: .86rem; line-height: 1.5; margin-bottom: .5rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.posts-row .category-badge, .related-articles .category-badge { font-size: .72rem; padding: .15rem .55rem; }
.posts-row .read-more-btn, .related-articles .read-more-btn { padding: .3rem 1rem; font-size: .85rem; margin-top: .4rem; }
.posts-row .author-info, .related-articles .author-info { margin-top: .6rem; font-size: .8rem; }

.post-date { font-size: .78rem; color: var(--text-secondary); margin-bottom: .4rem; }
.post-date i { margin-right: .25rem; color: var(--neon-teal); opacity: .8; }

/* ==== Magazine front page (home) ============================================================================
   Hierarchy: featured story > section leads > normal cards > compact stories. Fixed aspect ratios (16:9 pictures,
   4:3 thumbnails) so nothing "dances"; metadata is small and quiet; the whole card leads to the article. */
.mag { padding: 2.25rem 0 3rem; }
.mag section { margin-bottom: 3.5rem; }
.mag a { text-decoration: none; }

/* pictures */
.mag-media, .mag-thumb { display: block; overflow: hidden; background: #0a1428; }
.mag-media { aspect-ratio: 16 / 9; border-radius: 12px; }
.mag-featured .mag-media { aspect-ratio: 1.91 / 1; }         /* matches the standard og:image ratio (1200x630) these covers are usually scraped from — 16:9 was slicing text off the edges */
.mag-thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.mag-media img, .mag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mag-media:hover img, .mag-thumb:hover img { transform: scale(1.035); }

/* type */
.mag-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--neon-teal); }
.mag-kicker:hover { color: var(--neon-purple); }
.mag-featured-title, .mag-card-title, .mag-compact-title { margin: 0; font-weight: 800; color: var(--text-primary); }
.mag-featured-title a, .mag-card-title a, .mag-compact-title a { color: inherit; }
.mag-featured-title a:hover, .mag-card-title a:hover, .mag-compact-title a:hover { color: var(--neon-teal); }
.mag-featured-title { font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.2; margin: .45rem 0 .65rem; }
.mag-card-title { font-size: 1.08rem; line-height: 1.32; margin: .3rem 0 .4rem; }
.mag-compact-title {
    font-size: 1rem; line-height: 1.32; font-weight: 700; margin: .2rem 0 .35rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-excerpt { margin: 0 0 .6rem; color: var(--text-secondary); font-size: .98rem; line-height: 1.55; }
.mag-meta { font-size: .76rem; color: var(--text-secondary); opacity: .85; }
.mag-meta span { margin: 0 .25rem; }

/* section heading */
.mag-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(0, 247, 255, 0.2); }
.mag-section-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mag-section-head h2 a { color: var(--text-primary); }
.mag-section-head h2::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: .6rem; vertical-align: -.12em; border-radius: 2px; background: linear-gradient(180deg, var(--neon-teal), var(--neon-purple)); }
.mag-all { font-size: .82rem; color: var(--text-secondary); white-space: nowrap; }
.mag-all:hover { color: var(--neon-teal); }
.mag-page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.mag-page-head h1 { margin: 0; font-size: 2rem; font-weight: 800; }
.mag-empty { text-align: center; color: var(--text-secondary); padding: 3rem 0; }

/* top stories: one large + a column of smaller ones */
.mag-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.75rem; }
.mag-top-side { display: flex; flex-direction: column; gap: 1.15rem; padding-left: 1.75rem; border-left: 1px solid rgba(0, 247, 255, 0.15); }
.mag-top-side .mag-compact { grid-template-columns: 124px 1fr; padding-bottom: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mag-top-side .mag-compact:last-child { border-bottom: 0; padding-bottom: 0; }

/* compact story (thumbnail + text) */
.mag-compact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .9rem; align-items: start; }
.mag-compact-body { min-width: 0; }
.mag-list .mag-compact { grid-template-columns: 172px minmax(0, 1fr); gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mag-list .mag-compact:first-child { padding-top: 0; }
.mag-list .mag-compact-title { font-size: 1.1rem; }

/* normal card */
.mag-card { height: 100%; }
.mag-card-body { padding: .7rem .1rem 0; }

/* sections: a different rhythm each */
.mag-sec-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.75rem; }
.mag-sec-grid--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.mag-sec-grid--flip .mag-sec-lead { order: 2; }
.mag-sec-list { display: flex; flex-direction: column; gap: 1.1rem; }
.mag-sec-list .mag-compact { padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mag-sec-list .mag-compact:last-child { border-bottom: 0; padding-bottom: 0; }
.mag-featured--sm .mag-featured-title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.mag-featured--wide { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.6rem; align-items: center; }
.mag-featured--wide .mag-featured-title { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.mag-sec-row { margin-top: 1.4rem; }

/* phones and tablets: the top story first, everything stacks naturally */
@media (max-width: 991.98px) {
    .mag { padding-top: 1.25rem; }
    .mag section { margin-bottom: 2.6rem; }
    .mag-top, .mag-sec-grid, .mag-sec-grid--flip, .mag-featured--wide { grid-template-columns: 1fr; }
    .mag-sec-grid--flip .mag-sec-lead { order: 0; }
    .mag-top-side { padding-left: 0; border-left: 0; padding-top: 1.1rem; border-top: 1px solid rgba(0, 247, 255, 0.15); }
    .mag-featured--wide { gap: .9rem; }
}
@media (max-width: 575.98px) {
    .mag-featured-title { font-size: 1.45rem; }
    .mag-list .mag-compact { grid-template-columns: 104px minmax(0, 1fr); gap: .85rem; }
    .mag-list .mag-compact-title { font-size: 1rem; }
    .mag-top-side .mag-compact { grid-template-columns: 104px minmax(0, 1fr); }
    .mag-page-head h1 { font-size: 1.6rem; }
}

/* ==== Home: refinement pass (spacing, hierarchy, contrast, balance) ==================================================== */
:root { --mag-excerpt: #c3c9de; --mag-meta: #98a2be; --mag-gap: 3rem; }

/* one editorial container: same width and side padding for the header, the category bar and the page */
.navbar > .container, .category-filter-bar > .container, .mag > .container { max-width: 1360px; padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem); }

/* hero: a slim branded band, not a landing page */
.hero-section { margin-bottom: 1.5rem; }
.hero-content { max-width: 900px; padding: 0 16px; }
.hero-title { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.2; margin-bottom: .3rem; }
.hero-subtitle { font-size: .95rem; line-height: 1.4; margin-bottom: 0; }
@media (max-width: 767.98px) { .hero-title { font-size: 1.25rem; } .hero-subtitle { font-size: .85rem; } }

/* type: one clear step per level (featured 800 > section lead 700 > titles 600), quieter text below */
.mag-featured-title { font-weight: 800; }
.mag-featured--sm .mag-featured-title, .mag-featured--wide .mag-featured-title { font-weight: 700; }
.mag-card-title, .mag-compact-title, .mag-list .mag-compact-title { font-weight: 600; }
.mag-excerpt { color: var(--mag-excerpt); font-weight: 400; margin: 0 0 .5rem; }
.mag-excerpt--sm {
    font-size: .84rem; line-height: 1.45; margin: 0 0 .3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-meta { color: var(--mag-meta); opacity: 1; font-weight: 400; }
.mag-all { color: #b5bdd6; font-weight: 600; }

/* consistent rhythm */
.mag section { margin-bottom: var(--mag-gap); }
.mag-section-head { margin-bottom: 1.15rem; padding-bottom: .5rem; }
.mag-section-head h2 { line-height: 1.2; }
.mag-featured-title { margin: .4rem 0 .55rem; }
.mag-card-body { padding-top: .65rem; }

/* balance: the side lists take the full height of the big story beside them, spread evenly (no empty block) */
.mag-top, .mag-sec-grid { align-items: stretch; }
.mag-top-side, .mag-sec-list { justify-content: space-between; }
.mag-top-side .mag-compact, .mag-sec-list .mag-compact { flex: 1 1 0; align-items: center; }
.mag-top-side .mag-compact { grid-template-columns: 148px minmax(0, 1fr); }
.mag-sec-list .mag-compact { grid-template-columns: 150px minmax(0, 1fr); }

/* "more stories": two columns on a desktop, one on a phone */
.mag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.mag-list .mag-compact { grid-template-columns: 132px minmax(0, 1fr); gap: .95rem; padding: .95rem 0; }
.mag-list .mag-compact:first-child { padding-top: .95rem; }
.mag-list .mag-compact-title { font-size: 1rem; }

@media (max-width: 991.98px) {
    .mag-top-side .mag-compact, .mag-sec-list .mag-compact { flex: 0 0 auto; grid-template-columns: 116px minmax(0, 1fr); align-items: start; }
    .mag-top-side, .mag-sec-list { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
    .mag-list { grid-template-columns: 1fr; }
    .mag-list .mag-compact { grid-template-columns: 104px minmax(0, 1fr); }
}

/* category bar: the main topics + "Περισσότερα" */
.cat-more { position: relative; flex: 0 0 auto; margin-left: .5rem; }
.cat-more .category-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    color: var(--text-primary); background: rgba(0, 247, 255, 0.08); border: 1px solid rgba(0, 247, 255, 0.3); border-radius: 999px; font-family: inherit;
}
.cat-more .category-pill:hover { background: rgba(0, 247, 255, 0.16); border-color: var(--neon-teal); }
.cat-more .category-pill.active { background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); border-color: transparent; color: var(--midnight-black); }
.cat-more-caret { font-size: .65rem; transition: transform .15s ease; }
.cat-more-btn[aria-expanded="true"] .cat-more-caret { transform: rotate(180deg); }
.cat-more-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1040; min-width: 230px; padding: .4rem;
    background: rgba(8, 20, 42, 0.98); border: 1px solid rgba(0, 247, 255, 0.3); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.cat-more-menu[hidden] { display: none; }
.cat-more-menu a { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: 8px; font-size: .9rem; color: var(--text-primary); }
.cat-more-menu a i { width: 1.2em; text-align: center; color: var(--neon-teal); opacity: .85; }
.cat-more-menu a:hover { background: rgba(0, 247, 255, 0.12); }
.cat-more-menu a.active { color: var(--neon-teal); font-weight: 600; }
.category-scroller:has(.cat-more) .cat-next { right: 8.5rem; }
.cat-extra-pill { display: none !important; }
@media (max-width: 767.98px) {
    .cat-extra-pill { display: inline-flex !important; }
    .cat-more { display: none; }
    .category-scroller:has(.cat-more) .cat-next { right: 0; }
}
.cat-more-menu a, .cat-more-menu a:hover { text-decoration: none; }

/* Ads between the category sections on the home page */
.ad-inline { margin: -.5rem 0 var(--mag-gap, 3rem); text-align: center; }
.ad-inline-code { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad-placeholder.ad-placeholder--inline { position: static; width: 100%; max-width: 970px; min-height: 90px; margin: 0 auto; padding: .6rem 1rem; }
@media (max-width: 991.98px) { .ad-placeholder.ad-placeholder--inline { min-height: 100px; margin-top: 0; } }

/* ==== Home: final polish (width, more-stories scale, quieter ads, one image radius) ================================= */
.navbar > .container, .category-filter-bar > .container, .mag > .container { max-width: 1440px; }
/* readable line length: the featured / lead descriptions do not stretch across the whole width */
.mag-featured .mag-excerpt { max-width: 68ch; }
.mag-featured--wide .mag-excerpt { max-width: 60ch; }

/* "more stories": about 12% bigger, still compact */
.mag-list { column-gap: 2.25rem; }
.mag-list .mag-compact { grid-template-columns: 150px minmax(0, 1fr); gap: 1.05rem; padding: 1.1rem 0; }
.mag-list .mag-compact:first-child { padding-top: 1.1rem; }
.mag-list .mag-compact-title { font-size: 1.12rem; }
@media (max-width: 767.98px) {
    .mag-list .mag-compact { grid-template-columns: 104px minmax(0, 1fr); padding: .95rem 0; }
    .mag-list .mag-compact-title { font-size: 1rem; }
}

/* one image radius everywhere on the front page */
.mag-media, .mag-thumb { border-radius: 10px; }

/* ads: quiet strips that follow the content width and never outshine the articles */
.ad-inline { margin: -.5rem 0 2.5rem; }
.ad-inline-code { opacity: .95; }
.ad-placeholder.ad-placeholder--inline {
    max-width: none; min-height: 64px; padding: .5rem 1rem; border-width: 1px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.02); border-color: rgba(0, 247, 255, 0.14); color: var(--mag-meta, #98a2be); font-size: .78rem; font-weight: 400;
}
.ad-placeholder.ad-placeholder--inline span { margin-top: .15rem; font-size: .72rem; opacity: .7; }
@media (max-width: 991.98px) { .ad-placeholder.ad-placeholder--inline { min-height: 56px; } }
.mag-sec-single { align-self: start; }
.mag-sec-single .col { width: 100%; }

/* ==== Homepage intro (template/hero.php): a slim, dark, minimal tech band ============================================ */
.cc-hero {
    position: relative; overflow: hidden; isolation: isolate;
    height: 190px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a1a33 0%, #0b1030 55%, #150f3a 100%);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(0, 247, 255, 0.55) 30%, rgba(185, 103, 255, 0.55) 70%, transparent 100%) 1;
}
.cc-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.cc-layer { position: absolute; inset: -24px; will-change: transform; }          /* the extra margin keeps the edges covered while a layer moves (front layer up to 20px) */
.cc-layer--back { inset: -8px; }
.cc-canvas { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); display: none; will-change: transform; }
.cc-layer--front .cc-canvas { inset: 0; width: 100%; height: 100%; }
.cc-live .cc-canvas { display: block; }
.cc-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0, 247, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 247, 255, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 85%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 85%);
}
.cc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cc-traces path { stroke: rgba(0, 247, 255, 0.13); stroke-width: 1; }
.cc-links path { stroke: rgba(0, 247, 255, 0.2); stroke-width: 1; }
.cc-nodes circle { fill: rgba(185, 103, 255, 0.6); }
.cc-nodes circle:nth-child(odd) { fill: rgba(0, 247, 255, 0.5); }
.cc-wave { stroke: rgba(0, 247, 255, 0.1); stroke-width: 1; }
.cc-live .cc-static-net { display: none; }                                       /* the canvas network replaces the static one */
.cc-sym span {
    position: absolute; font: 500 .85rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .04em; color: rgba(0, 247, 255, 0.2); will-change: transform;
}
.cc-sym span:nth-child(even) { color: rgba(185, 103, 255, 0.24); }
.cc-sym span:nth-child(3n) { font-size: .75rem; }
.cc-sym { position: absolute; inset: 0; }
.cc-hero.no-sym .cc-sym { display: none; }
.cc-hero-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 45% 90% at 12% 55%, rgba(0, 247, 255, 0.07), transparent 70%), radial-gradient(ellipse 45% 90% at 88% 45%, rgba(185, 103, 255, 0.08), transparent 70%);
}

.cc-hero-content { position: relative; z-index: 1; text-align: center; padding: 0 1rem; }
.cc-hero-title { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: .01em; line-height: 1.15; color: var(--text-primary); text-shadow: 0 2px 24px rgba(0, 247, 255, 0.18); }
.cc-hero-title .domain-highlight { color: var(--neon-teal); }
.cc-hero-sub { margin: .55rem 0 0; font-size: clamp(.86rem, 1.15vw, 1.02rem); font-weight: 500; line-height: 1.45; color: #c3c9de; white-space: pre-line; }

@media (max-width: 991.98px) { .cc-hero { height: 160px; } }
@media (max-width: 575.98px) {
    .cc-hero { height: 128px; }
    .cc-sym span:nth-child(n+5) { display: none; }                               /* fewer fragments on a phone */
    .cc-wave { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-layer, .cc-canvas, .cc-sym span { transform: none !important; will-change: auto; }
}

/* ==== Scroll motion (template/assets/scroll-motion.js): arrive-on-scroll + depth on pictures ============================= */
.sr { opacity: 0; transform: translate3d(0, 38px, 0) scale(.97); transition: opacity var(--sr-dur, .8s) ease, transform var(--sr-dur, .8s) cubic-bezier(.2, .8, .2, 1); }
.sr.sr-l { transform: translate3d(-46px, 14px, 0) scale(.97); }
.sr.sr-r { transform: translate3d(46px, 14px, 0) scale(.97); }
.sr.sr-in { opacity: 1; transform: none; }
.px img { scale: 1.12; translate: 0 var(--py, 0px); will-change: translate; }               /* individual transform properties: they do not fight the hover zoom */
@media (prefers-reduced-motion: reduce) { .sr { opacity: 1; transform: none; transition: none; } .px img { scale: 1; translate: none; } }

/* the intro when Hero Manager has an uploaded video / image active */
.cc-hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cc-hero-media video, .cc-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-hero-overlay { position: absolute; inset: 0; }
.cc-hero--media .cc-hero-content { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .cc-hero-media video { display: none; } }

/* "Θεματολογία" label: same voice as the section headings (uppercase, gradient marks), with a fading rule on both sides */
.category-filter-bar .category-filter-label {
    display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 0 .7rem;
    font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--text-primary);
}
.category-filter-bar .category-filter-label::before, .category-filter-bar .category-filter-label::after {
    content: ""; flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.45));
}
.category-filter-bar .category-filter-label::after { background: linear-gradient(90deg, rgba(185, 103, 255, 0.45), transparent); }

/* ==== Article page (pages/article/article.php): a technology-magazine story ========================================== */
.art { --art-text: #d3d9ea; --art-muted: #98a3bd; --art-line: rgba(0, 247, 255, 0.16); --art-main: 780px; --art-side: 320px; --art-gap: 48px; padding-bottom: 2rem; }
.art-container { max-width: 1240px; }

/* header */
.art-header { max-width: 860px; padding: 1.4rem 0 1.6rem; }
.art-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8rem; color: var(--art-muted); margin-bottom: 1.1rem; }
.art-crumbs a { color: var(--art-muted); text-decoration: none; }
.art-crumbs a:hover { color: var(--neon-teal); }
.art-crumbs [aria-current] { color: #c3c9de; }
.art-kickers { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: .7rem; }
.art-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--neon-teal); text-decoration: none; }
.art-kicker:hover { text-decoration: underline; }
.art-title { margin: 0; font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.16; letter-spacing: -.005em; color: var(--text-primary); text-wrap: balance; }
.art-deck { margin: 1rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; font-weight: 400; color: #b9c2da; max-width: 780px; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin: 1.3rem 0; padding-top: 1rem; border-top: 1px solid var(--art-line); }
.art-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem; font-size: .86rem; color: var(--art-muted); }
.art-author { color: #e4e8f5; font-weight: 600; }

/* share */
.art-share { display: flex; align-items: center; gap: .4rem; }
.art-share-label { font-size: .78rem; color: var(--art-muted); margin-right: .2rem; }
.art-byline .art-share-label { display: none; }
.art-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 247, 255, 0.28); background: transparent; color: #c3c9de !important; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.art-share-btn:hover { background: rgba(0, 247, 255, 0.12); color: var(--neon-teal) !important; border-color: var(--neon-teal); }
.art-share-btn:focus-visible, .art-code-copy:focus-visible, .art a:focus-visible, .art-comment-form .btn-send:focus-visible { outline: 2px solid var(--neon-teal); outline-offset: 2px; }
.art-share-copied { font-size: .78rem; color: var(--neon-teal); min-width: 5.5em; }
.art-main > .art-share { margin: 1.6rem 0 0; padding: 1rem 0; border-top: 1px solid var(--art-line); }

/* layout: text + sidebar */
.art-layout { display: grid; grid-template-columns: minmax(0, var(--art-main)) var(--art-side); gap: var(--art-gap); justify-content: start; align-items: start; }
.art-main { min-width: 0; }
.art-side { position: sticky; top: calc(var(--nav-h, 62px) + var(--cat-h, 0px) + 16px); display: flex; flex-direction: column; gap: 1.6rem; }

/* cover */
.art-cover { margin: 0 0 2rem; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0a1428; border: 1px solid var(--art-line); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-cover--fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a1a33, #0b1030 55%, #150f3a); }
.art-cover-mark { font: 700 clamp(2rem, 6vw, 4rem)/1 ui-monospace, Consolas, monospace; color: rgba(0, 247, 255, 0.28); }

/* body */
.art-body { font-size: 1.16rem; line-height: 1.78; color: var(--art-text); overflow-wrap: break-word; }
.art-body > *:first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.5rem; }
.art-body > p:first-of-type { font-size: 1.22rem; color: #e1e6f4; }
.art-body h2 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); font-weight: 800; line-height: 1.25; color: var(--text-primary); margin: 2.8rem 0 1rem; }
.art-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.3; color: #f0f3fb; margin: 2.2rem 0 .8rem; }
.art-body h4 { font-size: 1.1rem; font-weight: 700; color: #f0f3fb; margin: 1.8rem 0 .6rem; }
.art-body a { color: var(--neon-teal); text-decoration: underline; text-decoration-color: rgba(0, 247, 255, 0.4); text-underline-offset: 3px; }
.art-body a:hover { text-decoration-color: var(--neon-teal); }
.art-body strong { color: #f0f3fb; font-weight: 700; }
.art-body ul, .art-body ol { margin: 0 0 1.6rem; padding-left: 1.5rem; }
.art-body li { margin-bottom: .55rem; padding-left: .2rem; }
.art-body li::marker { color: var(--neon-teal); }
.art-body blockquote { margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--neon-purple); font-size: 1.22rem; line-height: 1.6; font-style: italic; color: #e1e6f4; }
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body img, .art-body video { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.art-body p > img { margin: 2rem auto; }
.art-body figure { margin: 2.2rem 0; }
.art-body figcaption, .art-body .wp-caption-text { margin-top: .6rem; font-size: .84rem; line-height: 1.5; color: var(--art-muted); text-align: center; }
.art-body hr { border: 0; border-top: 1px solid var(--art-line); margin: 2.4rem 0; }
.art-body .cc-video-embed { position: relative; aspect-ratio: 16 / 9; margin: 2.2rem 0 .6rem; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--art-line); }
.art-body .cc-video-embed iframe, .art-body .cc-video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.art-body .cc-video-credit { margin: 0 0 2rem; font-size: .84rem; color: var(--art-muted); text-align: center; }
.art-body .cc-video-credit em { font-style: normal; }

/* code */
.art-body code { font: .88em ui-monospace, "Cascadia Code", Consolas, monospace; color: #9df7ff; background: rgba(0, 247, 255, 0.08); border: 1px solid rgba(0, 247, 255, 0.14); padding: .12em .4em; border-radius: 5px; }
.art-body pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; background: #050d1c; border: 1px solid var(--art-line); border-radius: 12px; font-size: .92rem; line-height: 1.6; color: #d7f6ff; tab-size: 4; }
.art-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.art-body > pre { margin: 1.8rem 0; }
.art-code { position: relative; margin: 1.8rem 0; }
.art-code-copy { position: absolute; top: .5rem; right: .6rem; padding: .18rem .6rem; font-size: .72rem; color: #c3c9de; background: rgba(12, 26, 51, 0.9); border: 1px solid rgba(0, 247, 255, 0.3); border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.art-code:hover .art-code-copy, .art-code-copy:focus-visible { opacity: 1; }
@media (hover: none) { .art-code-copy { opacity: 1; } }

/* tables */
.art-table { max-width: 100%; overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--art-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.art-body table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; margin: 0; }
.art-body th, .art-body td { padding: .7rem .95rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0, 247, 255, 0.1); }
.art-body th { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #e4e8f5; background: rgba(0, 247, 255, 0.07); white-space: nowrap; }
.art-body tr:last-child td { border-bottom: 0; }
.art-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

/* callouts: <div class="callout [info|important|note]"> */
.art-body .callout, .art-body .note, .art-body .info, .art-body .important { margin: 1.9rem 0; padding: .95rem 1.15rem; border: 1px solid var(--art-line); border-left: 3px solid var(--neon-teal); border-radius: 10px; background: rgba(0, 247, 255, 0.05); font-size: 1rem; line-height: 1.65; }
.art-body .callout > :last-child { margin-bottom: 0; }
.art-body .callout.important, .art-body .important { border-left-color: var(--neon-purple); background: rgba(185, 103, 255, 0.07); border-color: rgba(185, 103, 255, 0.28); }
.art-body .callout.note, .art-body .note { border-left-color: #8892b0; background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.12); }

/* sources, author */
.art-sources { margin: 2.6rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--art-line); border-radius: 12px; background: rgba(12, 26, 51, 0.5); }
.art-sources h2 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-primary); }
.art-sources ul { list-style: none; margin: 0; padding: 0; }
.art-sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .35rem 0; font-size: 1rem; }
.art-sources a { color: var(--neon-teal); }
.art-sources li span { font-size: .8rem; color: var(--art-muted); }
.art-author-card { display: flex; align-items: center; gap: 1rem; margin: 0 0 .5rem; padding: 1rem 0 0; border-top: 1px solid var(--art-line); }
.art-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #04101f; background: linear-gradient(135deg, var(--neon-teal), var(--neon-purple)); }
.art-author-card h2 { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--text-primary); }
.art-author-card p { margin: .15rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--art-muted); }

/* sidebar */
.art-side-block h2 { margin: 0 0 .6rem; padding-bottom: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-primary); border-bottom: 1px solid var(--art-line); }
.art-mini { display: flex; gap: .8rem; padding: .65rem 0; text-decoration: none !important; color: inherit !important; }
.art-mini + .art-mini { border-top: 1px solid rgba(0, 247, 255, 0.08); }
.art-mini-thumb { flex: 0 0 84px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #0a1428; }
.art-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-mini-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.art-mini-meta { font-size: .72rem; color: var(--neon-teal); letter-spacing: .03em; }
.art-mini-title { font-size: .94rem; font-weight: 600; line-height: 1.32; color: #e4e8f5; }
.art-mini:hover .art-mini-title { color: var(--neon-teal); }
.art-ad { margin: 2.2rem 0; text-align: center; }
.art-ad .ad-placeholder { min-height: 90px; }

/* related + comments */
.art-related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--art-line); }
.art-h { margin: 0 0 1.3rem; font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.art-h::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: .6rem; vertical-align: -.12em; border-radius: 2px; background: linear-gradient(180deg, var(--neon-teal), var(--neon-purple)); }
.art-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.art-related-grid .mag-card-title { font-size: 1.16rem; font-weight: 700; line-height: 1.3; }
.art-comments-wrap { max-width: var(--art-main); margin-top: 3rem; }
.art-comments { padding-bottom: 3rem; }
.art-comment { padding: 1rem 0; border-bottom: 1px solid rgba(0, 247, 255, 0.1); }
.art-comment strong { color: #e4e8f5; }
.art-comment .when { font-size: .8rem; color: var(--art-muted); margin-left: .6rem; }
.art-comment p { margin: .4rem 0 0; color: var(--art-text); line-height: 1.6; white-space: pre-line; }
.art-comment-form { margin-top: 1.6rem; padding: 1.2rem; border: 1px solid var(--art-line); border-radius: 12px; background: rgba(12, 26, 51, 0.5); }
.art-comment-form label { font-size: .85rem; color: #c3c9de; margin-bottom: .3rem; }
.art-comment-form .form-control { background: #050d1c; color: #e4e8f5; border: 1px solid rgba(0, 247, 255, 0.22); border-radius: 8px; }
.art-comment-form .form-control:focus { border-color: var(--neon-teal); box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.15); }
.art-comment-form .btn-send { padding: .5rem 1.4rem; font-weight: 700; color: #04101f; background: linear-gradient(135deg, var(--neon-teal), var(--neon-purple)); border: 0; border-radius: 999px; cursor: pointer; }
.art-comment-form .btn-send:disabled { opacity: .6; cursor: default; }

/* laptops: the text column flexes, the sidebar stays */
@media (max-width: 1279.98px) { .art { --art-gap: 40px; } .art-layout { grid-template-columns: minmax(0, 1fr) var(--art-side); } .art-comments-wrap { max-width: none; } }
/* tablets and phones: the sidebar goes under the article */
@media (max-width: 991.98px) {
    .art-layout { grid-template-columns: minmax(0, 1fr); }
    .art-side { position: static; margin-top: 2.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
    .art-side .ad-slot, .art-side .ad-placeholder { grid-column: 1 / -1; }
    .art-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .art-related-grid > :nth-child(3) { display: none; }
}
@media (max-width: 575.98px) {
    .art-header { padding-top: 1rem; }
    .art-body { font-size: 1.06rem; line-height: 1.72; }
    .art-body > p:first-of-type { font-size: 1.1rem; }
    .art-body blockquote { font-size: 1.1rem; padding-left: 1rem; }
    .art-cover { border-radius: 10px; margin-bottom: 1.5rem; }
    .art-side { grid-template-columns: minmax(0, 1fr); }
    .art-related-grid { grid-template-columns: minmax(0, 1fr); }
    .art-related-grid > :nth-child(3) { display: block; }
    .art-byline { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .art-share-btn, .art-code-copy { transition: none; } }

/* ---- Article page: final polish (width, sidebar scale, spacing, contrast) ---- */
.art { --art-text: #dbe1f0; --art-muted: #a7b1c9; --art-soft: #8f9ab4; padding-bottom: 5.5rem; }
.art-container { width: 100%; }
.art-header { max-width: 880px; padding-bottom: 1.9rem; }

/* title, deck, byline */
.art-title { line-height: 1.24; }
.art-deck { margin-top: 1.25rem; line-height: 1.62; color: #c4ccdf; }
.art-byline { margin-top: 1.7rem; padding-top: 1.1rem; gap: 1rem 1.75rem; }
.art-meta { font-size: .95rem; gap: .4rem .7rem; color: var(--art-soft); }
.art-author { color: #e9edf7; }
.art-share { gap: .5rem; }
.art-share-btn { width: 37px; height: 37px; font-size: 1.02rem; color: #d3d9ea !important; border-color: rgba(0, 247, 255, 0.34); }
.art-crumbs { font-size: .84rem; }

/* body */
.art-body { line-height: 1.75; }
.art-body p { margin-bottom: 1.65rem; }
.art-body h2 { margin: 3.1rem 0 1.2rem; }
.art-body h3 { margin: 2.3rem 0 .9rem; }
.art-body ul, .art-body ol { margin-bottom: 1.8rem; }
.art-body li { margin-bottom: .65rem; }
.art-body .cc-video-embed { margin: 2.8rem 0 .9rem; }
.art-body .cc-video-credit { margin: 0 0 2.8rem; font-size: .82rem; line-height: 1.5; color: var(--art-soft); }

/* sidebar: compact, not tiny; groups clearly apart */
.art-side { gap: 0; }
.art-side > * + * { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--art-line); }
.art-side-block h2 { font-size: .84rem; margin-bottom: .5rem; }
.art-mini { gap: 1rem; padding: .9rem 0; }
.art-mini-thumb { flex-basis: 108px; border-radius: 9px; }
.art-mini-meta { font-size: .76rem; }
.art-mini-title { font-size: 1.02rem; line-height: 1.35; }
.art-side .ad-placeholder, .art-side .ad-slot { margin: 0; }

/* sources: an editorial list, not a card */
.art-sources { margin: 3rem 0 0; padding: 1.3rem 0 0; border: 0; border-top: 1px solid var(--art-line); border-radius: 0; background: none; }
.art-sources h2 { font-size: .84rem; letter-spacing: .14em; margin-bottom: .55rem; }
.art-sources li { padding: .3rem 0; font-size: 1.02rem; }
.art-sources a { text-decoration: underline; text-decoration-color: rgba(0, 247, 255, 0.4); text-underline-offset: 3px; }
.art-sources a i { font-size: .78em; margin-left: .25rem; }

/* reactions + share: secondary and compact */
.art-main .article-reactions { margin-top: 2rem; padding-top: .75rem; }
.art-main .reaction-btn { padding: .22rem .58rem; font-size: .8rem; }
.art-main > .art-share { margin-top: .9rem; padding: .8rem 0 1.3rem; }
.art-main > .art-share .art-share-btn { width: 34px; height: 34px; }

/* author: editorial byline block */
.art-author-card { gap: 1.2rem; margin: 0; padding: 1.5rem 0 0; }
.art-avatar { width: 60px; height: 60px; font-size: 1.05rem; }
.art-author-card h2 { font-size: 1.1rem; letter-spacing: .01em; }
.art-author-card p { font-size: .95rem; line-height: 1.55; max-width: 46ch; }

/* ads: room on both sides */
.art-ad { margin: 3.2rem 0; }
.art-container > .art-ad { margin: 4rem 0 0; }

/* related */
.art-related { margin-top: 4rem; padding-top: 2.2rem; }
.art-related-grid { gap: 2rem; }
.art-related-grid .mag-card-title { font-size: 1.25rem; line-height: 1.32; }
.art-related-grid .mag-card-body { padding-top: .8rem; }
.art-related-grid .mag-media { aspect-ratio: 16 / 9; }

/* comments: readable on dark */
.art-comments-wrap { margin-top: 4rem; }
.art-comments { padding-bottom: 0; }
.art-comments #comments-list .text-muted { color: var(--art-muted) !important; }
.art-comment-form { padding: 1.5rem; }
.art-comment-form label { font-size: .92rem; font-weight: 600; color: #d3d9ea; margin-bottom: .4rem; }
.art-comment-form .form-control { background: #0a1730; color: #eef1fa; border: 1px solid rgba(0, 247, 255, 0.4); padding: .65rem .85rem; }
.art-comment-form .form-control::placeholder { color: #7f8aa6; opacity: 1; }
.art-comment-form .form-control:focus { background: #0b1a38; border-color: var(--neon-teal); box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.22); }
.art-comment-form .btn-send { margin-top: .5rem; padding: .6rem 1.7rem; }
.art-comment p { color: var(--art-text); }

/* widths: 1240 container = 830 text + 44 gap + 330 sidebar */
.art { --art-main: 830px; --art-side: 330px; --art-gap: 44px; }
@media (max-width: 1259.98px) { .art { --art-side: 300px; --art-gap: 36px; } .art-layout { grid-template-columns: minmax(0, 1fr) var(--art-side); } .art-comments-wrap { max-width: none; } }
@media (max-width: 991.98px) {
    .art-layout { grid-template-columns: minmax(0, 1fr); }
    .art-side { margin-top: 2.6rem; }
    .art-side > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
    .art-side .ad-slot, .art-side .ad-placeholder { grid-column: 1 / -1; }
    .art-side { gap: 1.8rem 2.4rem; }
    .art-related-grid { gap: 1.6rem; }
}
@media (max-width: 575.98px) {
    .art { padding-bottom: 4rem; }
    .art-body p { margin-bottom: 1.45rem; }
    .art-body h2 { margin-top: 2.5rem; }
    .art-mini-thumb { flex-basis: 96px; }
    .art-ad { margin: 2.4rem 0; }
    .art-container > .art-ad { margin-top: 3rem; }
    .art-related { margin-top: 3rem; }
    .art-comments-wrap { margin-top: 3rem; }
}
.art-related a, .art-related a:hover, .art-side a, .art-side a:hover { text-decoration: none; }        /* the cards borrow the homepage's markup, whose no-underline rule lives under .mag */

/* ===== Tech glossary (/glossary) — the term page reuses the article page's .art styles ===== */
.gl { padding-bottom: 3rem; }
.gl-container { max-width: 1240px; }
.gl-head { max-width: 860px; padding: 1.4rem 0 1rem; }
.gl-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--text-primary); }
.gl-sub { margin: .8rem 0 1.4rem; font-size: 1.12rem; line-height: 1.6; color: #b9c2da; max-width: 720px; }
.gl-search { display: flex; align-items: center; gap: .6rem; max-width: 640px; padding: .35rem .4rem .35rem 1rem; border: 1px solid rgba(0, 247, 255, 0.3); border-radius: 999px; background: rgba(12, 26, 51, 0.7); }
.gl-search:focus-within { border-color: var(--neon-teal); box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.12); }
.gl-search .bi { color: var(--neon-teal); }
.gl-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text-primary); font-size: 1rem; padding: .45rem 0; }
.gl-search input::placeholder { color: #7f8aa8; }
.gl-search button { border: 0; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .9rem; color: #021018; background: var(--neon-teal); cursor: pointer; }
.gl-search button:hover { background: #7ffbff; }
.gl-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .4rem; }
.gl-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(0, 247, 255, 0.25); font-size: .86rem; color: #c3c9de !important; text-decoration: none !important; background: rgba(12, 26, 51, 0.5); }
.gl-chip small { color: #7f8aa8; }
.gl-chip:hover { border-color: var(--neon-teal); color: var(--neon-teal) !important; }
.gl-chip.is-active { background: rgba(0, 247, 255, 0.14); border-color: var(--neon-teal); color: var(--neon-teal) !important; }
.gl-az { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1.2rem 0 .2rem; }
.gl-az a { min-width: 2rem; padding: .25rem .5rem; text-align: center; border-radius: 8px; font-weight: 700; font-size: .85rem; color: #c3c9de; border: 1px solid rgba(185, 103, 255, 0.28); text-decoration: none; }
.gl-az a:hover { color: var(--neon-purple); border-color: var(--neon-purple); }
.gl-block { margin-top: 2.2rem; }
.gl-letter { scroll-margin-top: 90px; }
.gl-h2 { margin: 0 0 1rem; font-size: .84rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-primary); padding-bottom: .5rem; border-bottom: 1px solid rgba(0, 247, 255, 0.16); }
.gl-h2--letter { font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--neon-purple); }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gl-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(0, 247, 255, 0.16); background: rgba(12, 26, 51, 0.6); text-decoration: none !important; color: inherit !important; transition: border-color .15s, transform .15s, background .15s; }
.gl-card:hover { border-color: var(--neon-teal); background: rgba(12, 26, 51, 0.9); transform: translateY(-2px); }
.gl-card-cat { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--neon-purple); }
.gl-card-term { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.gl-card:hover .gl-card-term { color: var(--neon-teal); }
.gl-card-gr { font-size: .88rem; color: #98a3bd; }
.gl-card-def { font-size: .92rem; line-height: 1.5; color: #b9c2da; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-result-line { margin: 1.1rem 0 0; color: #98a3bd; }
.gl-result-line a { color: var(--neon-teal); }
.gl-empty { margin-top: 2rem; padding: 1.4rem; border: 1px dashed rgba(0, 247, 255, 0.25); border-radius: 12px; color: #b9c2da; }
.gl-empty a { color: var(--neon-teal); }

/* term page */
.gl-preview { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 8px; background: rgba(255, 193, 7, 0.12); border: 1px solid rgba(255, 193, 7, 0.4); color: #ffd866; font-size: .9rem; }
.gl-also { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: #98a3bd; font-size: 1rem; }
.gl-def { margin: 0 0 1.8rem; padding: 1.2rem 1.4rem; border-radius: 14px; border: 1px solid rgba(0, 247, 255, 0.3); border-left: 4px solid var(--neon-teal); background: linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(185, 103, 255, 0.07)); }
.gl-def-label { display: block; margin-bottom: .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--neon-teal); }
.gl-def p { margin: 0; font-size: 1.28rem; line-height: 1.55; color: #f0f3fb; }
.gl-toc ol, .gl-toc--inline ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.gl-toc li { margin: .3rem 0; }
.gl-toc a { color: #c3c9de; text-decoration: none; font-size: .95rem; }
.gl-toc a:hover { color: var(--neon-teal); }
.gl-toc--inline { display: none; margin: 0 0 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--art-line, rgba(0, 247, 255, 0.16)); border-radius: 12px; background: rgba(12, 26, 51, 0.5); }
.gl-toc--inline strong { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.gl-related { margin-top: 2.6rem; }
.gl-articles .art-mini { padding: .8rem 0; }
.gl-updated { margin: 2rem 0 0; font-size: .86rem; color: #98a3bd; }
.gl-side-list { list-style: none; margin: 0; padding: 0; }
.gl-side-list li + li { margin-top: .5rem; }
.gl-side-list a { color: #e4e8f5; text-decoration: none; }
.gl-side-list a:hover strong { color: var(--neon-teal); }
.gl-side-list span { color: #98a3bd; font-size: .86rem; }
.gl-side-more { margin: .8rem 0 0; font-size: .88rem; }
.gl-side-more a { color: var(--neon-teal); }
@media (max-width: 991.98px) { .gl-toc--inline { display: block; } }
@media (max-width: 575.98px) { .gl-search button { padding: .5rem .8rem; } .gl-grid { grid-template-columns: 1fr; } .gl-def p { font-size: 1.12rem; } }
.art-body a.gl-link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--neon-purple); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.art-body a.gl-link:hover { color: var(--neon-purple); text-decoration-style: solid; }
.gl-card-img { display: block; margin: -1rem -1.1rem .4rem; height: 120px; overflow: hidden; border-radius: 12px 12px 0 0; background: #f4f6fb; }
.gl-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; }
.gl-figure { margin: 0 0 1.6rem; }
.gl-figure img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; background: #f4f6fb; border: 1px solid var(--art-line, rgba(0, 247, 255, 0.16)); padding: .4rem; }
.gl-figure figcaption { margin-top: .5rem; font-size: .78rem; color: #98a3bd; }
.gl-figure figcaption a { color: #b9c2da; text-decoration: underline dotted; }
.gl-wiki { margin: 2rem 0 0; }
.gl-wiki a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(185, 103, 255, 0.4); color: #e4e8f5 !important; text-decoration: none !important; font-size: .92rem; }
.gl-wiki a:hover { border-color: var(--neon-purple); color: var(--neon-purple) !important; }

/* small picture to the left of the title (articles and glossary terms) */
.art-headrow { display: flex; align-items: flex-start; gap: 1.4rem; }
.art-headrow .art-headtext { flex: 1 1 auto; min-width: 0; }
.art-thumb { flex: 0 0 168px; margin: .3rem 0 0; }
.art-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--art-line, rgba(0, 247, 255, 0.16)); background: #0a1428; }
.art-thumb--gl img { object-fit: contain; background: #f4f6fb; padding: 6px; }
.art-thumb figcaption { margin-top: .35rem; font-size: .66rem; line-height: 1.35; color: #98a3bd; }
.art-thumb figcaption a { color: #b9c2da; text-decoration: underline dotted; }
.art-headrow.has-thumb .art-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.art-headrow.has-thumb .art-kickers { margin-top: 0; }
.gl-credit-m { display: none; margin: 1.4rem 0 0; font-size: .8rem; color: #98a3bd; }
.gl-credit-m a { color: #b9c2da; text-decoration: underline dotted; }
@media (max-width: 575.98px) { .art-headrow { gap: .9rem; } .art-thumb { flex-basis: 96px; } .art-thumb figcaption { display: none; } .gl-credit-m { display: block; } .art-headrow.has-thumb .art-title { font-size: 1.35rem; } }

/* ===== /vlog — CodeCraft Video (curated video magazine). Own classes; the older .video-card rules above are not used here. ===== */
.vlog-page { padding: 2.2rem 0 3rem; }
.vlog-head { margin-bottom: 1.6rem; }
.vlog-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 .35rem; color: var(--text-primary); letter-spacing: -.01em; }
.vlog-title span { color: var(--neon-teal); }
.vlog-sub { color: var(--text-secondary); margin: 0; max-width: 46rem; font-size: 1.02rem; }
.vlog-h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 1.1rem; color: var(--text-primary); display: flex; align-items: baseline; gap: .8rem; }
.vlog-h2::before { content: ""; width: 4px; height: 1.1em; background: linear-gradient(var(--neon-teal), var(--neon-purple)); border-radius: 2px; align-self: center; }
.vlog-count { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }

/* picture: always 16:9, cropped to fit, duration badge bottom-right */
.vlog-thumb { position: relative; aspect-ratio: 16 / 9; background: #050c1c; overflow: hidden; flex: none; }
.vlog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vlog-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(2, 8, 20, .88); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1; padding: .28rem .45rem; border-radius: 5px; letter-spacing: .02em; }
.vlog-src { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--neon-purple); background: rgba(185, 103, 255, .14); border: 1px solid rgba(185, 103, 255, .3); border-radius: 12px; padding: .1rem .55rem; }
.vlog-date { font-size: .8rem; color: var(--text-secondary); }

/* featured */
.vlog-featured { margin-bottom: 2.2rem; }
.vlog-hero, .vlog-card, .vlog-mini { display: block; text-decoration: none; color: inherit; background: var(--card-bg); border: 1px solid rgba(0, 247, 255, .18); border-radius: 14px; overflow: hidden; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.vlog-hero { height: 100%; }
.vlog-hero-body { padding: 1.2rem 1.4rem 1.4rem; }
.vlog-kicker { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; flex-wrap: wrap; }
.vlog-flag { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #02101f; background: var(--neon-teal); border-radius: 12px; padding: .12rem .6rem; }
.vlog-hero-title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.25; color: var(--text-primary); margin: 0 0 .6rem; }
.vlog-hero-summary { color: #c4c8dc; margin: 0 0 .8rem; line-height: 1.55; }
.vlog-side { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) { .vlog-side { height: 100%; } .vlog-side .vlog-mini { flex: 1 1 0; } }

/* mini (horizontal) */
.vlog-mini { display: flex; gap: .85rem; align-items: center; padding: .6rem; flex: 0 0 auto; }
.vlog-mini .vlog-thumb { width: 42%; max-width: 190px; border-radius: 9px; align-self: center; }
.vlog-mini-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; justify-content: center; }
.vlog-mini-title { font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--text-primary); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* filters */
.vlog-filters { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.vlog-chips { display: flex; gap: .5rem; overflow-x: auto; flex: 1 1 auto; padding: .2rem 0 .4rem; scrollbar-width: thin; scrollbar-color: rgba(0, 247, 255, .3) transparent; }
.vlog-chip { flex: none; white-space: nowrap; text-decoration: none; color: var(--text-secondary); background: transparent; border: 1px solid rgba(160, 160, 192, .35); border-radius: 18px; padding: .3rem .95rem; font-size: .88rem; font-weight: 600; transition: all .2s ease; cursor: pointer; }
.vlog-chip:hover { color: var(--neon-teal); border-color: rgba(0, 247, 255, .6); }
.vlog-chip.active { color: #02101f; background: var(--neon-teal); border-color: var(--neon-teal); }
.vlog-dur-form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.vlog-select { flex: none; background: var(--card-bg); color: var(--text-primary); border: 1px solid rgba(0, 247, 255, .3); border-radius: 18px; padding: .32rem 2rem .32rem .9rem; font-size: .88rem; }
.vlog-select:focus { outline: none; border-color: var(--neon-teal); }

/* grid: 1 → 2 → 3 → 4 columns */
.vlog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .vlog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .vlog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .vlog-grid { grid-template-columns: repeat(4, 1fr); } }
.vlog-card { display: flex; flex-direction: column; height: 100%; }
.vlog-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
.vlog-card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.32; color: var(--text-primary); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vlog-summary { font-size: .88rem; line-height: 1.5; color: var(--text-secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vlog-body .vlog-date { margin-top: auto; padding-top: .2rem; }
.vlog-body .vlog-src { align-self: flex-start; }

/* category sections */
.vlog-cat { margin-top: 3rem; }
.vlog-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.vlog-cat-head a { color: var(--neon-teal); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; margin-bottom: 1.1rem; }
.vlog-cat-head a:hover { text-decoration: underline; }
.vlog-cat .vlog-card { height: 100%; }

.vlog-pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.vlog-pager a { text-decoration: none; color: var(--text-secondary); border: 1px solid rgba(160, 160, 192, .3); border-radius: 8px; padding: .3rem .75rem; font-size: .9rem; }
.vlog-pager a:hover { color: var(--neon-teal); border-color: rgba(0, 247, 255, .6); }
.vlog-pager a.active { color: #02101f; background: var(--neon-teal); border-color: var(--neon-teal); font-weight: 700; }

.vlog-empty { text-align: center; padding: 4rem 1rem; color: var(--text-secondary); background: var(--card-bg); border: 1px dashed rgba(0, 247, 255, .25); border-radius: 14px; }
.vlog-empty i { font-size: 2.4rem; color: var(--neon-teal); margin-bottom: 1rem; }
.vlog-empty h2 { font-size: 1.3rem; color: var(--text-primary); }
.vlog-empty--small { padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }

/* hover: desktop pointers only — a light lift, the picture zooms 2%, cyan border */
@media (hover: hover) and (pointer: fine) {
    .vlog-hero:hover, .vlog-card:hover, .vlog-mini:hover { transform: translateY(-3px); border-color: rgba(0, 247, 255, .75); box-shadow: 0 10px 28px rgba(0, 247, 255, .16); }
    .vlog-hero:hover .vlog-thumb img, .vlog-card:hover .vlog-thumb img, .vlog-mini:hover .vlog-thumb img { transform: scale(1.02); }
}
@media (max-width: 575.98px) {
    .vlog-page { padding-top: 1.4rem; }
    .vlog-filters { flex-wrap: wrap; gap: .5rem; }
    .vlog-chips { flex-basis: 100%; }
    .vlog-dur-form { justify-content: flex-start; width: 100%; }
    .vlog-select { flex: 1 1 45%; min-width: 0; }
    .vlog-mini .vlog-thumb { width: 44%; }
    .vlog-hero-body { padding: 1rem; }
    .vlog-cat-head { flex-wrap: wrap; }
}

/* ===== /vlog/{slug} (one video) and /vlog/source/{slug} ===== */
.vlog-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .86rem; color: var(--text-secondary); margin-bottom: 1rem; }
.vlog-crumbs a { color: var(--text-secondary); text-decoration: none; }
.vlog-crumbs a:hover { color: var(--neon-teal); }
.vlog-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.vlog-detail { max-width: 1000px; }
.vlog-preview { background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .45); color: #ffd866; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.vlog-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 247, 255, .25); }
.vlog-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlog-player-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.vlog-player-link img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.vlog-player-link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(2, 8, 20, .85); border: 1px solid var(--neon-teal); border-radius: 30px; padding: .6rem 1.3rem; font-weight: 600; }
.vlog-detail-head { margin: 1.4rem 0 1rem; }
.vlog-detail-head .vlog-kicker { margin-bottom: .7rem; }
.vlog-src { text-decoration: none; }
a.vlog-src:hover { border-color: var(--neon-purple); color: #d7a8ff; }
.vlog-src--cat { color: var(--neon-teal); background: rgba(0, 247, 255, .1); border-color: rgba(0, 247, 255, .3); }
a.vlog-src--cat:hover { color: #7ffbff; border-color: var(--neon-teal); }
.vlog-detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; color: var(--text-primary); margin: 0 0 .7rem; }
.vlog-detail-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--text-secondary); font-size: .9rem; }
.vlog-detail-meta i { color: var(--neon-teal); margin-right: .3rem; }
.vlog-why { background: var(--card-bg); border: 1px solid rgba(185, 103, 255, .3); border-left: 3px solid var(--neon-purple); border-radius: 12px; padding: 1rem 1.3rem; margin: 1.2rem 0; }
.vlog-why h2 { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--neon-purple); margin: 0 0 .5rem; }
.vlog-why p { margin: 0; color: #d6d9ea; line-height: 1.65; font-size: 1.03rem; }
.vlog-yt-btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text-primary); border: 1px solid rgba(0, 247, 255, .5); border-radius: 22px; padding: .45rem 1.1rem; font-weight: 600; font-size: .92rem; transition: all .2s ease; }
.vlog-yt-btn i { color: #ff4d4d; }
.vlog-yt-btn:hover { border-color: var(--neon-teal); background: rgba(0, 247, 255, .08); color: #fff; }
.vlog-related { margin-top: 2.6rem; }
@media (min-width: 992px) { .vlog-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .vlog-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .vlog-player { border-radius: 10px; } .vlog-why { padding: .9rem 1rem; } }
/* section tabs (Βίντεο | Documentaries) */
.vlog-tabs { display: flex; gap: .4rem; margin-top: 1.1rem; }
.vlog-tab { text-decoration: none; color: var(--text-secondary); border: 1px solid rgba(160, 160, 192, .35); border-radius: 20px; padding: .35rem 1.1rem; font-size: .92rem; font-weight: 600; transition: all .2s ease; }
.vlog-tab:hover { color: var(--neon-teal); border-color: rgba(0, 247, 255, .6); }
.vlog-tab.active { color: #02101f; background: linear-gradient(90deg, var(--neon-teal), #7ffbff); border-color: var(--neon-teal); }

/* ===== Cookie Consent banner + preferences modal (consent-manager.js / cookie-banner.js) ===== */
.cc-btn { font: inherit; font-size: .9rem; font-weight: 700; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, color .15s; }
.cc-btn:focus-visible { outline: 2px solid var(--neon-teal); outline-offset: 2px; }
.cc-btn-primary { border: 0; color: #04101f; background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); }
.cc-btn-primary:hover { transform: translateY(-1px); }
.cc-btn-secondary { border: 1px solid rgba(160, 160, 192, .5); background: transparent; color: var(--text-primary); }
.cc-btn-secondary:hover { border-color: var(--neon-teal); color: var(--neon-teal); }
.cc-btn-ghost { border: 0; background: none; color: var(--text-secondary); text-decoration: underline; padding: .55rem .4rem; }
.cc-btn-ghost:hover { color: var(--neon-teal); }

.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: rgba(9, 16, 33, .97); backdrop-filter: blur(10px); border-top: 1px solid rgba(0, 247, 255, .25); box-shadow: 0 -8px 30px rgba(0, 0, 0, .35); }
.cc-banner-inner { max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: space-between; }
.cc-banner-text { flex: 1 1 420px; margin: 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.cc-banner-text a { color: var(--neon-teal); text-decoration: underline; }
.cc-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; flex: 0 0 auto; }

.cc-modal-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(2, 6, 16, .72); display: flex; align-items: center; justify-content: center; padding: 1rem; }
body.cc-modal-open { overflow: hidden; }
.cc-modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--card-bg); border: 1px solid rgba(0, 247, 255, .25); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; background: var(--card-bg); z-index: 1; }
.cc-modal-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.cc-modal-close { border: 0; background: none; color: var(--text-secondary); font-size: 1.1rem; padding: .3rem; cursor: pointer; line-height: 1; border-radius: 8px; }
.cc-modal-close:hover { color: var(--neon-teal); }
.cc-modal-close:focus-visible { outline: 2px solid var(--neon-teal); outline-offset: 2px; }
.cc-modal-body { padding: 1rem 1.3rem 1.3rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.cc-modal-links { margin: 1rem 0 0; }
.cc-modal-links a { color: var(--neon-teal); text-decoration: underline; }

.cc-cat { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cc-cat:last-of-type { border-bottom: 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat-title { font-weight: 700; color: var(--text-primary); font-size: .95rem; }
.cc-cat-desc { margin: .35rem 0 0; font-size: .85rem; }

.cc-switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 42px; height: 24px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch-track { position: absolute; inset: 0; background: rgba(160, 160, 192, .35); border-radius: 999px; transition: background .15s; }
.cc-switch-track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.cc-switch input:checked + .cc-switch-track { background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); }
.cc-switch input:checked + .cc-switch-track::before { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-switch-track { outline: 2px solid var(--neon-teal); outline-offset: 2px; }
.cc-switch--locked .cc-switch-track { opacity: .55; }
.cc-switch input:disabled { cursor: default; }

.cc-modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding: 1rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, .08); position: sticky; bottom: 0; background: var(--card-bg); }

@media (max-width: 575.98px) {
    .cc-banner-inner { padding: 1rem; }
    .cc-banner-actions { width: 100%; }
    .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
    .cc-modal-actions { flex-direction: column-reverse; }
    .cc-modal-actions .cc-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cc-btn, .cc-switch-track, .cc-switch-track::before { transition: none; } }

/* Matrix-style code rain across the top of the intro (template/hero.php): a faint canvas of falling code, calmer behind the title */
.cc-rain {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55;
    -webkit-mask-image: radial-gradient(ellipse 34% 75% at 50% 50%, rgba(0, 0, 0, .18), #000 100%); mask-image: radial-gradient(ellipse 34% 75% at 50% 50%, rgba(0, 0, 0, .18), #000 100%);
}

/* Article header: a bigger picture next to the title (was a 168px thumbnail); stacked above the title on tablets and phones */
.art-header { max-width: 1060px; }
.art-thumb { flex: 0 0 360px; }
.art-thumb img { aspect-ratio: 16 / 10; }
.art-headrow { gap: 1.8rem; }
@media (max-width: 991.98px) {
    .art-headrow.has-thumb { flex-direction: column; gap: 1rem; }
    .art-thumb { flex: 0 0 auto; width: 100%; max-width: 560px; }
}
@media (max-width: 575.98px) {
    .art-thumb { max-width: 100%; }
    .art-thumb figcaption { display: block; }
}

/* Category page: a short intro under the H1 and links to the related categories (SEO topic cluster) */
.mag-cat-intro { max-width: 860px; margin: -.2rem 0 1.4rem; }
.mag-cat-intro p { margin: 0 0 .7rem; color: #c3c9de; line-height: 1.6; font-size: .98rem; }
.mag-cat-related { display: flex; flex-wrap: wrap; gap: .5rem; }
.mag-cat-related a { font-size: .82rem; padding: .25rem .7rem; border: 1px solid rgba(0, 247, 255, .3); border-radius: 999px; color: var(--neon-teal, #00f7ff); text-decoration: none; }
.mag-cat-related a:hover { background: rgba(0, 247, 255, .1); }

/* links inside the About cards: the site teal, not the default blue (unreadable on the dark cards) */
.glass-card p a:not(.read-more-btn) { color: var(--neon-teal, #00f7ff); text-decoration: underline; text-underline-offset: 2px; }

/* ==== About page (pages/about/about.php): an editorial layout on the existing cards and colours ============================== */
.about { padding: 1.5rem 0 3.5rem; }
.about .container { max-width: 1080px; }
.about-toc ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.about-toc a { display: inline-block; padding: .3rem .8rem; font-size: .82rem; color: #c3c9de; text-decoration: none; border: 1px solid rgba(0, 247, 255, .2); border-radius: 999px; transition: color .2s, border-color .2s, background .2s; }
.about-toc a:hover, .about-toc a:focus-visible { color: var(--neon-teal); border-color: rgba(0, 247, 255, .6); background: rgba(0, 247, 255, .07); }
.about-section { padding: 2.4rem 0; border-top: 1px solid rgba(0, 247, 255, .12); scroll-margin-top: 84px; }
.about-section:first-of-type { border-top: 0; padding-top: 1.6rem; }
.about-h2 { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.25rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.2; color: var(--text-primary); }
.about-num { flex: 0 0 auto; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--neon-teal); font-variant-numeric: tabular-nums; }
.about-h3 { margin: 0 0 .7rem; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.about-lead { margin: 0 0 1rem; max-width: 68ch; font-size: 1.08rem; line-height: 1.75; color: var(--text-primary); }
.about-intro { max-width: 68ch; margin: -.4rem 0 1.4rem; line-height: 1.7; }
.about .muted { line-height: 1.7; }
.about p a:not(.read-more-btn) { color: var(--neon-teal); text-decoration: underline; text-underline-offset: 2px; }

/* founder / author profile: name and role on top, the story in readable paragraphs */
.about-intro-2 { max-width: 68ch; margin: 0 0 2rem; }
.about-founder { padding: 1.6rem 1.8rem 1.7rem; border-radius: 16px; border: 1px solid rgba(0, 247, 255, .25);
    background: linear-gradient(160deg, rgba(0, 247, 255, .07), rgba(185, 103, 255, .06) 60%, rgba(12, 26, 51, .78)); box-shadow: 0 10px 30px rgba(0, 247, 255, .08); }
.about-founder-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.3rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(0, 247, 255, .15); }
.about-founder-avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em;
    background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); box-shadow: 0 0 0 4px rgba(0, 247, 255, .12), 0 6px 20px rgba(0, 247, 255, .18); }
.about-founder-name { margin: 0 0 .2rem; font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.about-founder-role { margin: 0; font-size: .88rem; font-weight: 600; letter-spacing: .02em; color: var(--neon-teal); }
.about-founder-bio { max-width: 72ch; }
.about-founder-bio p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.8; color: #c3c9de; }
.about-founder-bio strong { color: var(--text-primary); font-weight: 700; }
.about-founder-bio .about-founder-closing { margin-bottom: 0; padding-left: 1rem; border-left: 3px solid var(--neon-teal); color: #dfe4f5; font-style: italic; }
/* topics */
.about-topic { display: block; height: 100%; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.about-topic:hover, .about-topic:focus-visible { transform: translateY(-3px); border-color: rgba(0, 247, 255, .6); }
.about-topic h3 { margin: 0 0 .4rem; font-size: 1.12rem; font-weight: 800; color: var(--text-primary); }
.about-topic p { margin: 0; font-size: .93rem; }

/* how we work */
.about-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.about-steps li { counter-increment: step; position: relative; padding: 1.1rem 1.1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(0, 247, 255, .18); background: rgba(12, 26, 51, .6); }
.about-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: .6rem; border-radius: 50%; font-size: .8rem; font-weight: 800; color: #0a1428; background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); }
.about-steps h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.about-steps p { margin: 0; font-size: .9rem; }

/* sources chips, AI boxes */
.about-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.about-chips li { padding: .25rem .7rem; font-size: .82rem; color: #d6dcf0; border: 1px solid rgba(185, 103, 255, .35); border-radius: 999px; background: rgba(185, 103, 255, .08); }
.about-chips .about-chip-more { color: #98a3bd; border-style: dashed; background: transparent; }
.about-box h3 { margin: 0 0 .8rem; font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.about-box h3 .bi { color: var(--neon-teal); margin-right: .4rem; }
.about-list { margin: 0; padding-left: 1.1rem; color: #c3c9de; line-height: 1.7; font-size: .95rem; }
.about-list li + li { margin-top: .35rem; }
.about-cta { height: auto; }

@media (max-width: 991.98px) { .about-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .about { padding-top: 1rem; }
    .about-section { padding: 1.8rem 0; }
    .about-steps { grid-template-columns: 1fr; }
    .about-founder { padding: 1.2rem 1.1rem 1.3rem; }
    .about-founder-head { gap: .8rem; }
    .about-founder-avatar { width: 56px; height: 56px; font-size: 1.05rem; }
    .about-toc ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
    .about-toc a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .about-topic, .about-toc a { transition: none; } .about-topic:hover { transform: none; } }

/* Article pictures are shown WHOLE (their own proportions), never cropped: the big picture of the home page and the one next to the article title
   (scraped covers are not all 16:9 / 1.91:1, and `cover` was slicing the edges off — "Joomla!" lost its J). Cards and the glossary keep their fixed frames. */
.mag-featured .mag-media { aspect-ratio: auto; background: transparent; }
.mag-featured .mag-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.art-thumb:not(.art-thumb--gl) img { aspect-ratio: auto; height: auto; max-height: 420px; object-fit: contain; }
/* ... and the small cards, the compact list and the "related" thumbnails too: same fixed frame (so the grids stay aligned) but the picture is shown whole */
.mag-media img, .mag-thumb img, .art-mini-thumb img, .art-cover img { object-fit: contain; }
.mag-media.px img, .mag-thumb.px img, .art-mini-thumb.px img { scale: 1; }          /* the scroll-depth zoom (1.12) was cropping them again */

/* second row of the category bar: the sub-categories of the open main category, drawn as a tray joined to the active main pill by a little notch */
.category-filter-bar .category-sub {
    position: relative; margin: 12px auto 0; padding: 6px 10px; gap: 4px; width: fit-content; max-width: 100%;
    background: rgba(0, 247, 255, 0.07); border: 1px solid rgba(0, 247, 255, 0.28); border-radius: 14px;
}
.category-sub::before {                       /* the notch pointing at the active main pill (its position is set by the script in index.php) */
    content: ""; position: absolute; top: -7px; left: var(--notch-x, 50%); width: 12px; height: 12px; margin-left: -6px;
    background: #0b2038; border-top: 1px solid rgba(0, 247, 255, 0.28); border-left: 1px solid rgba(0, 247, 255, 0.28); transform: rotate(45deg);
}
.category-filter-bar .category-sub .cat-sub-pill { font-size: .82rem; padding: .25rem .8rem; background: transparent; border-color: transparent; font-weight: 600; opacity: .85; }
.category-filter-bar .category-sub .cat-sub-pill:hover { background: rgba(0, 247, 255, 0.14); opacity: 1; }
.category-filter-bar .category-sub .cat-sub-pill.active { background: linear-gradient(45deg, var(--neon-teal), var(--neon-purple)); color: var(--midnight-black); opacity: 1; }
@media (max-width: 767.98px) { .category-filter-bar .category-sub { margin-left: 16px; margin-right: 16px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .category-sub::before { display: none; } }
