/* =========================================================================
   AVA NEWS NETWORK — PUBLIC PORTAL & REPORTERS ONBOARDING ENGINE
   Clean Modern Styling · Full-Bleed Immersive Hero · Seamless Logo Blending
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. GLOBAL PUBLIC LAYOUT & CONTAINERS
   ------------------------------------------------------------------------- */
.arh-public-body {
    background-color: #080d19;
    color: #f1f5f9;
    font-family: var(--arh-font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.arh-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   2. PUBLIC TOP HEADER & NAVIGATION
   ------------------------------------------------------------------------- */
.arh-public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 13, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    transition: var(--arh-transition);
}

.arh-public-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.arh-public-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.arh-public-brand img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.arh-public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arh-public-nav__link {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: var(--arh-radius-sm);
    text-decoration: none;
    transition: var(--arh-transition);
}

.arh-public-nav__link:hover,
.arh-public-nav__link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.arh-public-auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arh-public-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #f1f5f9;
    cursor: pointer;
    padding: 6px;
}

/* Off-Canvas Mobile Drawer */
.arh-public-mobile-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #0d1527;
    z-index: 1000;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow-y: auto;
}

.arh-public-mobile-drawer.open,
.arh-public-mobile-drawer.active {
    right: 0;
}

.arh-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arh-drawer-backdrop.open,
.arh-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.arh-public-mobile-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arh-public-mobile-drawer__close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #f1f5f9;
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--arh-transition);
}

.arh-public-mobile-drawer__close:hover {
    background: rgba(229, 38, 41, 0.2);
    color: #ff8080;
}

.arh-public-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.arh-public-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--arh-radius-sm);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--arh-transition);
}

.arh-public-mobile-nav__link:hover,
.arh-public-mobile-nav__link.active {
    background: rgba(229, 38, 41, 0.18);
    color: #ffffff;
    border-left: 3px solid #e52629;
}

.arh-public-mobile-drawer__auth {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* -------------------------------------------------------------------------
   3. HERO MASTER CANVAS (ARTWORK PRESERVED & IN-ARTWORK BUTTONS)
   ------------------------------------------------------------------------- */
.arh-hero-section {
    width: 100%;
    background: #080d19;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.arh-hero-canvas {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    line-height: 0;
}

.arh-hero-canvas picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.arh-hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Desktop In-Artwork Buttons (Positioned directly underneath "Real News. Real People. Real Impact.") */
.arh-hero-desktop-buttons {
    position: absolute;
    top: 74%;
    left: 8.2%;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.arh-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e52629;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: var(--arh-radius-md);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(229, 38, 41, 0.6);
    transition: var(--arh-transition);
    line-height: 1.2;
    border: none;
}

.arh-hero-btn-primary:hover {
    background: #cc1f22;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 38, 41, 0.8);
}

.arh-hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 24px;
    border-radius: var(--arh-radius-md);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--arh-transition);
    line-height: 1.2;
}

.arh-hero-btn-ghost:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile In-Artwork Buttons (Positioned with generous space directly underneath "Real News. Real People. Real Impact.") */
.arh-hero-mobile-buttons {
    display: none;
}

@media (max-width: 768px) {
    .arh-hero-desktop-buttons {
        display: none;
    }

    .arh-hero-mobile-buttons {
        position: absolute;
        top: 41.5%;
        left: 6%;
        right: 6%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 10;
    }

    .arh-hero-btn-primary,
    .arh-hero-btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.95rem;
        border-radius: var(--arh-radius-md);
    }
}

/* -------------------------------------------------------------------------
   4. PUBLIC SECTIONS, ARTICLE CONTAINERS & CONTENT PROSE
   ------------------------------------------------------------------------- */
.arh-public-section {
    padding: 70px 0;
    position: relative;
}

.arh-public-section--alt {
    background: #0b1122;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.arh-public-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.arh-public-section-header h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.arh-public-section-header p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
}

.arh-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ff8080;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

/* Article Container (About, How It Works, Terms, Privacy) */
.arh-article-container {
    max-width: 1040px;
    margin: 40px auto 80px;
    padding: 0 28px;
    width: 100%;
    box-sizing: border-box;
}

.arh-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.arh-article-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--arh-transition);
}

.arh-article-breadcrumb a:hover {
    color: #ff8080;
}

.arh-article-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arh-article-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
}

.arh-prose-block {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--arh-radius-lg);
    padding: 36px 32px;
    margin-bottom: 32px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.02rem;
}

.arh-prose-block h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 16px;
}

.arh-prose-block h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.arh-prose-block p {
    margin-bottom: 16px;
}

.arh-prose-block p:last-child {
    margin-bottom: 0;
}

.arh-prose-block ul,
.arh-prose-block ol {
    margin: 12px 0 20px 24px;
    padding: 0;
}

.arh-prose-block li {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.arh-prose-block strong {
    color: #ffffff;
}

.arh-prose-block code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ff8080;
    font-size: 0.9em;
}

/* Feature Grid */
.arh-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.arh-feature-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--arh-radius-lg);
    padding: 32px 28px;
    transition: var(--arh-transition);
}

.arh-feature-card:hover {
    border-color: rgba(229, 38, 41, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.arh-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(229, 38, 41, 0.12);
    border: 1px solid rgba(229, 38, 41, 0.3);
    color: #ff8080;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.arh-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.arh-feature-card p {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   5. PUBLIC FOOTER
   ------------------------------------------------------------------------- */
.arh-public-footer {
    background: #050811;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 30px;
}

.arh-public-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.arh-public-footer__col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.arh-public-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arh-public-footer__col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--arh-transition);
}

.arh-public-footer__col a:hover {
    color: #ffffff;
}

.arh-public-footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: #64748b;
}

/* -------------------------------------------------------------------------
   6. RESPONSIVE MEDIA QUERIES (MOBILE / TABLET ADAPTATION)
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .arh-public-nav,
    .arh-public-auth-actions {
        display: none;
    }

    .arh-public-mobile-toggle {
        display: block;
    }

    .arh-public-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 860px) {
    .arh-hero {
        min-height: auto;
        padding: 30px 0 40px;
        background: #080d19;
        display: block;
    }

    .arh-hero::after {
        display: none;
    }

    .arh-hero-mobile-visual {
        display: block;
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 24px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    }

    .arh-hero-mobile-banner {
        width: 100%;
        height: auto;
        display: block;
    }

    .arh-hero-blank-area-content {
        max-width: 100%;
        padding-bottom: 0;
    }

    .arh-hero-ctas-block {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .arh-hero-ctas-block .arh-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .arh-public-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    
    .arh-feature-grid {
        grid-template-columns: 1fr;
    }
}