/* ----------------------------------------------------
   Missig Editorial Styles (Added for blog-details.html)
---------------------------------------------------- */
.editorial-hero {
    position: relative;
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 60px;
}

.editorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 23, 0.7);
    /* Deep overlay */
    z-index: 1;
}

.editorial-hero-overlay {
    position: relative;
    z-index: 2;
}

.editorial-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.editorial-meta {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.editorial-meta span {
    margin-right: 20px;
    display: inline-block;
}

.editorial-meta i {
    color: var(--main-color-one);
    margin-right: 5px;
}

.editorial-content-wrapper {
    background: #1a1a20;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.editorial-content-wrapper h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.editorial-content-wrapper p {
    color: #a0a0ba;
    line-height: 1.8;
    margin-bottom: 20px;
}

.editorial-quote {
    background: rgba(68, 245, 128, 0.05);
    border-left: 4px solid #44f580;
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
}

/* ----------------------------------------------------
   Responsive Adjustments
---------------------------------------------------- */
@media (max-width: 991px) {
    .editorial-hero {
        padding: 120px 0 60px;
    }

    .editorial-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .editorial-hero {
        padding: 100px 0 50px;
    }

    .editorial-title {
        font-size: 1.8rem;
        /* Much smaller on mobile */
        margin-bottom: 15px;
    }

    .editorial-meta {
        font-size: 0.8rem;
    }

    .editorial-meta span {
        margin-right: 15px;
        margin-bottom: 5px;
        display: inline-block;
    }

    .editorial-content-wrapper {
        padding: 25px;
    }
}


/* =========================================
   MAGAZINE LAYOUT (Phase 5 - Final Form)
   "Asymmetric & Trusted"
   ========================================= */

/* Deep Void Background Animation */
.editorial-body {
    background: #050505;
    /* Deeper black */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(68, 245, 128, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(68, 100, 245, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Main Magazine Container */
.magazine-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 1. The Cover Story (Hero) */
.magazine-cover-story {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 4px;
    /* Sharper, more editorial */
    overflow: hidden;
    margin-bottom: 60px;
    text-decoration: none;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.magazine-cover-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.magazine-cover-story:hover img {
    transform: scale(1.05);
}

.magazine-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.magazine-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--main-color-one);
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.magazine-title-lg {
    font-family: 'Science Gothic', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.magazine-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    display: inline-block;
}

/* 2. The Magazine Grid (2-Column) */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

.magazine-card {
    position: relative;
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.4s ease;
}

.magazine-card:hover {
    border-color: rgba(68, 245, 128, 0.3);
}

.magazine-card-thumb {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.magazine-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.magazine-card:hover .magazine-card-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.magazine-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.magazine-title-sm {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.magazine-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.magazine-read-btn {
    margin-top: auto;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
}

.magazine-read-btn i {
    margin-left: 10px;
    color: var(--main-color-one);
    transition: transform 0.3s ease;
}

.magazine-card:hover .magazine-read-btn i {
    transform: translateX(5px);
}


/* Mobile Adjustments */
@media (max-width: 991px) {
    .magazine-grid {
        gap: 30px;
    }

    .magazine-title-lg {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .magazine-layout {
        padding: 0 15px;
    }

    .magazine-cover-story {
        height: 450px;
    }

    .magazine-cover-overlay {
        padding: 30px;
    }

    .magazine-title-lg {
        font-size: 1.8rem;
    }

    /* Collapse grid to 1 column */
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .magazine-card-thumb {
        height: 250px;
    }
}


/* =========================================
   CINEMATIC NAVIGATION (Phase 3 & 4)
   "Glass Navbar & Restored Hero"
   ========================================= */

/* Transparent Glass Overrides for Blog Page Navbar */
.editorial-body .navbar-area {
    background: #090d12 !important;
    backdrop-filter: blur(0px);
    /* Clearer header for hero */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* "Signal Uplink" Pagination (The Pulse Button) */
.signal-uplink-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding-bottom: 100px;
    /* Space for footer flow */
}

.signal-uplink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.signal-uplink::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--main-color-one);
    border-radius: 50%;
    border: 1px solid var(--main-color-one);
    left: 20px;
    box-shadow: 0 0 10px var(--main-color-one);
    animation: signal-pulse 2s infinite;
}

@keyframes signal-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.signal-uplink:hover {
    border-color: var(--main-color-one);
    color: #fff;
    background: rgba(68, 245, 128, 0.05);
    letter-spacing: 4px;
    /* Cinematic expansion */
}


.signal-uplink:active {
    transform: scale(0.98);
}

/* --- Blog Hero Overlay Fix --- */
.breadcrumb-area.blog-hero-overlay {
    position: relative;
    z-index: 1;
}

.breadcrumb-area.blog-hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* 65% Black Overlay */
    z-index: -1;
}

/* --- Internal SEO Links --- */
.editorial-link {
    color: var(--main-color-one);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.editorial-link:hover {
    color: #fff;
    background: rgba(68, 245, 128, 0.1);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
}

/* --- Related Posts Grid --- */
.related-posts-area {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-title {
    font-family: 'Science Gothic', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color-one);
}

.related-thumb {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
    background: #0f0f15;
}

.related-content h5 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-meta {
    font-size: 0.85rem;
    color: var(--main-color-one);
    font-family: 'Inter', sans-serif;
}

@media (max-width: 767px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}