/* ═══════════════════════════════════════════════
   ONX Blog Stylesheet — Brand-Matched
   Orange #f26422 · Purple #8c00ff · White #fff
   Fonts: Poppins · Roboto Serif · Shrikhand · Inter
   ═══════════════════════════════════════════════ */

:root {
    --color-orange:  #f26422;
    --color-purple:  #8c00ff;
    --color-white:   #ffffff;
    --color-dark:    #1a1a1a;
    --text-body:     #3a3a3a;
    --text-muted:    #888888;
    --bg-page:       #ffffff;
    --border-light:  rgba(0,0,0,0.07);
    --font-heading:  'Poppins', sans-serif;
    --font-serif:    'Roboto Serif', serif;
    --font-body:     'Inter', sans-serif;
    --font-brand:    'Shrikhand', cursive;
    --ease-smooth:   cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-body);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.blog-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3rem;
    background: rgba(255,255,255,0.88);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1.5px solid rgba(242,100,34,0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.blog-nav.scrolled {
    box-shadow: 0 2px 20px rgba(242,100,34,0.08);
}

.blog-nav-logo {
    font-family: var(--font-brand);
    font-size: 1.7rem;
    color: var(--color-orange);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-nav-logo:hover { transform: scale(1.05); }

.blog-nav-links { display:flex; gap:2.2rem; align-items:center; }

.blog-nav-links a {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
}

.blog-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--color-orange);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-nav-links a:hover { color: var(--color-orange); }
.blog-nav-links a:hover::after { width: 100%; }

.blog-nav-links .nav-cta {
    background: var(--color-orange);
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s !important;
}

.blog-nav-links .nav-cta::after { display: none; }
.blog-nav-links .nav-cta:hover {
    background: #d9561d !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(242,100,34,0.3);
}

/* ══════════════════════════════════════
   BLOG POST HERO
══════════════════════════════════════ */
.blog-hero {
    padding: 9rem 2rem 5rem;
    background: var(--color-orange);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.blog-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -60px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -50px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.blog-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-category-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-orange);
    background: var(--color-white);
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.8rem;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.88;
}

.blog-meta-item { display:inline-flex; align-items:center; gap:0.45rem; }

.blog-meta-divider {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════
   ARTICLE BODY
══════════════════════════════════════ */
.blog-content { padding: 4.5rem 2rem 6rem; }

.blog-article {
    max-width: 740px;
    margin: 0 auto;
}

.blog-article .lead {
    font-size: 1.22rem;
    line-height: 1.8;
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(242,100,34,0.12);
}

.blog-article p { margin-bottom: 1.9rem; color: var(--text-body); }

.blog-article h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 4rem;
    margin-bottom: 1.4rem;
    padding-left: 1.2rem;
    border-left: 4px solid var(--color-orange);
}

.blog-article h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-purple);
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-article ul {
    margin-bottom: 2.2rem;
    padding-left: 0;
    list-style: none;
}

.blog-article ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.85rem;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-body);
}

.blog-article ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.68em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-orange), var(--color-purple));
}

/* ── Figures ── */
.blog-gif {
    margin: 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 32px rgba(242,100,34,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}

.blog-gif img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-gif figcaption {
    padding: 0.9rem 1.4rem;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

/* Pull quote */
.blog-article blockquote {
    border-left: 4px solid var(--color-purple);
    padding: 1rem 1.5rem;
    margin: 2.5rem 0;
    background: rgba(140,0,255,0.04);
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-dark);
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.blog-cta {
    background: var(--color-orange);
    padding: 5.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.blog-cta-inner { max-width: 580px; margin: 0 auto; position:relative; z-index:1; }

.blog-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    font-style: italic;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.blog-cta p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2.2rem;
}

.blog-cta-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-orange);
    background: var(--color-white);
    padding: 1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.blog-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.18);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.blog-footer {
    background: var(--color-dark);
    padding: 2.5rem 2rem;
}

.blog-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-footer-logo {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    color: var(--color-orange);
    text-decoration: none;
}

.blog-footer p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════
   FEED PAGE (blogs.html)
══════════════════════════════════════ */

/* Feed Hero */
.feed-hero {
    min-height: 52vh;
    background: var(--color-orange);
    display: flex;
    align-items: flex-end;
    padding: 10rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.feed-hero::before {
    content: '';
    position: absolute;
    top: -140px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.feed-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.feed-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.feed-hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.feed-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 1.4rem;
}

.feed-hero h1 em {
    font-style: italic;
    color: rgba(255,255,255,0.75);
}

.feed-hero-sub {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    max-width: 480px;
    line-height: 1.55;
}

/* Feed Body */
.feed-body {
    padding: 5rem 2rem 6rem;
    background: #fff;
}

.feed-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section label */
.feed-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-orange);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feed-label::after {
    content: '';
    display: block;
    flex: 1;
    height: 1.5px;
    background: rgba(242,100,34,0.15);
}

/* Feed Grid */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Feed Cards */
.feed-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid rgba(242,100,34,0.14);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    /* Animate in */
    opacity: 0;
    transform: translateY(24px);
    animation: feedCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes feedCardIn {
    to { opacity: 1; transform: translateY(0); }
}

.feed-card:nth-child(1) { animation-delay: 0.1s; }
.feed-card:nth-child(2) { animation-delay: 0.22s; }
.feed-card:nth-child(3) { animation-delay: 0.34s; }
.feed-card:nth-child(4) { animation-delay: 0.46s; }

.feed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(242,100,34,0.13);
    border-color: rgba(242,100,34,0.32);
}

/* Gradient accent strip */
.feed-card-accent {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-purple) 100%);
    opacity: 0.8;
    transition: opacity 0.3s, height 0.3s;
}

.feed-card:hover .feed-card-accent { opacity: 1; }

/* Card body */
.feed-card-body {
    padding: 2rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feed-card-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #fff;
    background: var(--color-purple);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    width: fit-content;
}

.feed-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.feed-card:hover .feed-card-title { color: var(--color-orange); }

.feed-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.65;
    color: #666;
    flex: 1;
    margin-bottom: 1.6rem;
}

.feed-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1.1rem;
}

.feed-card-readmore {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s;
}

.feed-card:hover .feed-card-readmore {
    gap: 0.7rem;
    color: var(--color-purple);
}

/* Empty state (future) */
.feed-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes blogFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.blog-hero-inner {
    animation: blogFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.blog-article {
    animation: blogFadeUp 0.7s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.feed-hero-inner {
    animation: blogFadeUp 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .feed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .blog-nav { padding: 0.85rem 1.2rem; }
    .blog-nav-logo { font-size: 1.35rem; }
    .blog-nav-links { gap: 1.2rem; }
    .blog-nav-links a { font-size: 0.75rem; }
    .blog-nav-links .nav-cta { padding: 0.45rem 1rem; }

    .blog-hero { padding: 7rem 1.4rem 3rem; }
    .blog-hero h1 { font-size: 2rem; }

    .blog-content { padding: 2.5rem 1.2rem 3rem; }
    .blog-article .lead { font-size: 1.05rem; }
    .blog-article h2 { font-size: 1.35rem; margin-top: 3rem; }
    .blog-article h3 { font-size: 1.1rem; }

    .blog-cta { padding: 3.5rem 1.4rem; }
    .blog-cta h2 { font-size: 1.9rem; }

    .blog-footer-inner { flex-direction:column; text-align:center; }

    .feed-hero { padding: 8rem 1.4rem 3rem; min-height: 40vh; }
    .feed-hero h1 { font-size: 3rem; }

    .feed-body { padding: 3rem 1.2rem 4rem; }

    .feed-grid { grid-template-columns: 1fr; gap: 1.4rem; }

    .feed-card-body { padding: 1.5rem 1.3rem 1.3rem; }
    .feed-card-title { font-size: 1.05rem; }
}
