/* ==================================================
   ORIAL ARTICLE — Isolated Stylesheet
   ALL rules scoped under .orial-page
   Zero impact on global styles or other templates
================================================== */

/* ── RESET (scoped) ──────────────────────────────── */
.orial-page *,
.orial-page *::before,
.orial-page *::after {
    box-sizing: border-box;
}

/* ── PAGE WRAPPER ────────────────────────────────── */
.orial-page {
    background: #0A0A0C;
    color: #E5E7EB;
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    min-height: 100vh;
}

#orial-wrapper {
    width: 100%;
}


/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */

.orial-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #05080C;
}

.orial-hero-image {
    position: absolute;
    inset: 0;
}

.orial-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.orial-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 12, 0.10) 0%,
        rgba(10, 10, 12, 0.55) 50%,
        rgba(10, 10, 12, 0.92) 100%
    );
}

.orial-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

/* Advertorial badge */
.orial-badge {
    display: inline-block;
    background: rgba(6, 215, 246, 0.15);
    border: 1px solid rgba(6, 215, 246, 0.5);
    color: #06D7F6;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.orial-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.orial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #9CA3AF;
}

.orial-date {
    color: #9CA3AF;
}

.orial-cat-link {
    background: rgba(6, 215, 246, 0.12);
    color: #06D7F6;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.orial-cat-link:hover {
    background: rgba(6, 215, 246, 0.25);
    color: #06D7F6;
}


/* ══════════════════════════════════════════════════
   BODY WRAPPER
══════════════════════════════════════════════════ */

.orial-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}


/* ══════════════════════════════════════════════════
   ARTICLE CONTENT TYPOGRAPHY
══════════════════════════════════════════════════ */

.orial-content {
    font-size: 17px;
    line-height: 1.85;
    color: #E5E7EB;
    margin-bottom: 56px;
}

.orial-content h2,
.orial-content h3,
.orial-content h4 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.orial-content h2 { font-size: 26px; }
.orial-content h3 { font-size: 22px; }
.orial-content h4 { font-size: 18px; }

.orial-content p {
    margin-bottom: 20px;
}

.orial-content a {
    color: #06D7F6;
    text-decoration: underline;
    text-decoration-color: rgba(6, 215, 246, 0.4);
    transition: color 0.2s ease;
}

.orial-content a:hover {
    color: #00FF9C;
    text-decoration-color: rgba(0, 255, 156, 0.6);
}

.orial-content ul,
.orial-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.orial-content li {
    margin-bottom: 8px;
}

.orial-content blockquote {
    border-left: 3px solid #06D7F6;
    margin: 28px 0;
    padding: 16px 24px;
    background: rgba(6, 215, 246, 0.05);
    border-radius: 0 8px 8px 0;
    color: #9CA3AF;
    font-style: italic;
}

.orial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 24px auto;
}

.orial-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

.orial-content code {
    background: #14151A;
    color: #06D7F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.orial-content pre {
    background: #14151A;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}


/* ══════════════════════════════════════════════════
   SECTION TITLES (shared)
══════════════════════════════════════════════════ */

.orial-section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(6, 215, 246, 0.25);
    position: relative;
}

.orial-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #06D7F6;
    border-radius: 999px;
}


/* ══════════════════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════════════════ */

.orial-video-section {
    margin-bottom: 56px;
}

.orial-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #05080C;
}

.orial-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ══════════════════════════════════════════════════
   CARD GRID (shared by Related + Also Like)
══════════════════════════════════════════════════ */

.orial-related,
.orial-also-like {
    margin-bottom: 56px;
}

.orial-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.orial-card {
    display: flex;
    flex-direction: column;
    background: #14151A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.orial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 215, 246, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(6, 215, 246, 0.1);
    text-decoration: none;
}

.orial-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.orial-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.orial-card:hover .orial-card-image img {
    transform: scale(1.04);
}

.orial-card-body {
    padding: 14px 16px 18px;
    flex: 1;
}

.orial-card-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #E5E7EB;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.orial-card:hover .orial-card-title {
    color: #06D7F6;
}


/* ══════════════════════════════════════════════════
   POPULAR ARTICLES
══════════════════════════════════════════════════ */

.orial-popular {
    margin-bottom: 56px;
}

.orial-popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Override sidebar card styles inside orial-popular-list */
.orial-popular-list .sb-post-card,
.orial-popular-list .sidebar-post-item {
    background: #14151A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.orial-popular-list .sb-post-card:hover,
.orial-popular-list .sidebar-post-item:hover {
    border-color: rgba(6, 215, 246, 0.3);
}


/* ══════════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════════ */

.orial-comments {
    margin-top: 16px;
}

/* Inherit the global comments styling — only adjust container */
.orial-comments .comment-list,
.orial-comments #respond {
    max-width: 100%;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .orial-hero {
        min-height: 380px;
    }

    .orial-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .orial-hero {
        min-height: 300px;
    }

    .orial-hero-content {
        padding: 24px 16px 32px;
    }

    .orial-body {
        padding: 32px 16px 60px;
    }

    .orial-cards-grid {
        grid-template-columns: 1fr;
    }

    .orial-content {
        font-size: 16px;
    }
}
