/**
 * YourPropFirm Design - tradingsoft.ai
 * Dark purple/blue SaaS theme inspired by yourpropfirm.com
 */

/* ============================================================
   GOOGLE FONTS - Inter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   BASE OVERRIDES
   ============================================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000000;
    color: #cccccc;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: #7984ff;
}

a:hover {
    color: #bab8ff;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #222222;
    height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    width: 36px;
    height: 36px;
}

.header-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cccccc;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111111;
    border: 1px solid #333333;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #cccccc;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: rgba(83, 94, 224, 0.15);
    color: #ffffff;
}

.nav-dropdown-link small {
    font-size: 0.75rem;
    color: #666666;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: #535ee0;
    border: 1px solid #d2d1ff;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cta:hover {
    background: #6470f0;
    box-shadow: 0 0 20px rgba(83, 94, 224, 0.4);
    color: #ffffff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: calc(var(--z-fixed) - 1);
}

.mobile-overlay.active {
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    border-top: 1px solid #222222;
    z-index: var(--z-fixed);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #222222;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #ffffff;
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
}

.mobile-nav-links {
    padding: 1rem;
}

.mobile-nav-item {
    border-bottom: 1px solid #1a1a1a;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #cccccc;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
}

.mobile-nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.mobile-nav-item.open .mobile-nav-link svg {
    transform: rotate(180deg);
}

.mobile-nav-dropdown {
    display: none;
    padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-nav-item.open .mobile-nav-dropdown {
    display: block;
}

.mobile-nav-dropdown a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #888888;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-nav-dropdown a:hover,
.mobile-nav-dropdown a.active {
    color: #ffffff;
}

.mobile-nav-all {
    font-weight: 600;
    color: #7984ff !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.ypf-hero {
    background: #000000;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: min(calc(100vh - var(--header-height)), 820px);
    display: flex;
    align-items: center;
}

.ypf-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(83, 94, 224, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ypf-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(121, 132, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ypf-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ypf-hero-content {
    max-width: 560px;
}

.ypf-hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(83, 94, 224, 0.15);
    border: 1px solid rgba(83, 94, 224, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #7984ff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ypf-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.ypf-hero-title .ypf-gradient-text {
    background: linear-gradient(155deg, #bab8ff 33.12%, #7984ff 64.09%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ypf-hero-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ypf-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.ypf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #535ee0;
    border: 1px solid #d2d1ff;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.ypf-btn-primary:hover {
    background: #6470f0;
    box-shadow: 0 0 30px rgba(83, 94, 224, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.ypf-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid #474747;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.ypf-btn-outline:hover {
    border-color: #7984ff;
    color: #7984ff;
    transform: translateY(-1px);
}

.ypf-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.ypf-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ypf-hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ypf-hero-stat-label {
    font-size: 0.8rem;
    color: #666666;
}

.ypf-hero-image {
    position: relative;
}

.ypf-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid #333333;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(83, 94, 224, 0.2);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.ypf-stats {
    background: #000000;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 50px 0;
}

.ypf-stats-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ypf-stat-item {
    text-align: center;
    padding: 1.5rem;
}

.ypf-stat-num {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(155deg, #bab8ff 33%, #7984ff 64%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    display: block;
}

.ypf-stat-label {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 4px;
}

/* ============================================================
   AWARD BANNER
   ============================================================ */
.ypf-award {
    background: #080808;
    border: 1px solid #333333;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: var(--container-max);
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.06);
}

.ypf-award-content {
    flex: 1;
}

.ypf-award-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.ypf-award-desc {
    font-size: 0.9rem;
    color: #888888;
    margin: 0;
}

.ypf-award-badge {
    flex-shrink: 0;
}

.ypf-award-badge img {
    height: 80px;
    width: auto;
    border-radius: var(--radius-sm);
}

/* ============================================================
   SECTION LABELS (colored headings)
   ============================================================ */
.ypf-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7984ff;
    margin-bottom: 0.75rem;
}

.ypf-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.ypf-section-desc {
    font-size: 1rem;
    color: #888888;
    line-height: 1.7;
    max-width: 600px;
}

/* ============================================================
   FEATURES / SERVICES SECTION
   ============================================================ */
.ypf-features {
    padding: 80px 0;
    background: #000000;
}

.ypf-features-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.ypf-features-header {
    text-align: center;
    margin-bottom: 60px;
}

.ypf-features-header .ypf-section-desc {
    margin: 0 auto;
}

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

.ypf-feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid #333333;
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-base);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.05);
    text-decoration: none;
    display: block;
}

.ypf-feature-card:hover {
    border-color: rgba(83, 94, 224, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.12), 0 0 30px rgba(83,94,224,0.1);
}

.ypf-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(83, 94, 224, 0.15);
    border-radius: var(--radius-md);
    color: #7984ff;
}

.ypf-feature-icon svg {
    width: 24px;
    height: 24px;
}

.ypf-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.ypf-feature-desc {
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.ypf-categories {
    padding: 80px 0;
    background: #060606;
}

.ypf-categories-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.ypf-categories-header {
    margin-bottom: 50px;
}

.ypf-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ypf-cat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid #333333;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.04);
}

.ypf-cat-card:hover {
    border-color: rgba(83, 94, 224, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.1);
}

.ypf-cat-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(83, 94, 224, 0.12);
    border-radius: var(--radius-md);
    color: #7984ff;
    flex-shrink: 0;
}

.ypf-cat-card-icon svg {
    width: 22px;
    height: 22px;
}

.ypf-cat-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.ypf-cat-card-count {
    font-size: 0.8rem;
    color: #555555;
    margin: 0;
}

/* ============================================================
   TOPICS / ARTICLES SECTION
   ============================================================ */
.ypf-topics {
    padding: 80px 0;
    background: #000000;
}

.ypf-topics-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.ypf-topics-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 1rem;
}

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

.ypf-topic-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid #333333;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all var(--transition-base);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.04);
}

.ypf-topic-card:hover {
    border-color: rgba(83, 94, 224, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.12);
}

.ypf-topic-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ypf-topic-card-body {
    padding: 20px;
}

.ypf-topic-card-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7984ff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.ypf-topic-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ============================================================
   TAGS SECTION
   ============================================================ */
.ypf-tags-section {
    padding: 60px 0;
    background: #060606;
    border-top: 1px solid #1a1a1a;
}

.ypf-tags-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.ypf-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ypf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #cccccc;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ypf-tag:hover {
    border-color: #7984ff;
    color: #7984ff;
    background: rgba(83, 94, 224, 0.08);
}

.ypf-tag-count {
    font-size: 0.75rem;
    color: #555555;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.ypf-cta-section {
    padding: 80px 0;
    background: #000000;
    border-top: 1px solid #1a1a1a;
}

.ypf-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.ypf-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.ypf-cta-desc {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================================
   SEO CONTENT
   ============================================================ */
.ypf-seo-section {
    padding: 60px 0;
    background: #060606;
    border-top: 1px solid #1a1a1a;
}

.ypf-seo-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.ypf-seo-content {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.8;
}

.ypf-seo-content p {
    margin-bottom: 1rem;
}

/* ============================================================
   CAROUSEL (keywords)
   ============================================================ */
.ypf-carousel-section {
    padding: 40px 0;
    background: #000000;
    border-top: 1px solid #1a1a1a;
    overflow: hidden;
}

.ypf-carousel-section .section-header {
    padding: 0 var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto 24px;
}

.ypf-carousel-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #888888;
    text-align: left;
}

/* Inherit carousel styles from components.css */
.kw-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #888888;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.kw-pill:hover {
    border-color: #7984ff;
    color: #7984ff;
    background: rgba(83, 94, 224, 0.08);
}

/* ============================================================
   PAGE HERO (Internal pages banner)
   ============================================================ */
.ypf-page-hero {
    background: linear-gradient(135deg, #000000 0%, #0a0a14 100%);
    border-bottom: 1px solid #1a1a1a;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.ypf-page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(83, 94, 224, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ypf-page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.ypf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.ypf-breadcrumb a {
    color: #555555;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ypf-breadcrumb a:hover {
    color: #7984ff;
}

.ypf-breadcrumb span {
    color: #333333;
}

.ypf-breadcrumb-current {
    color: #888888;
}

.ypf-page-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.ypf-page-hero-desc {
    font-size: 1rem;
    color: #888888;
    line-height: 1.6;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.ypf-article-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.ypf-article-body {
    min-width: 0;
}

.ypf-article-body h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.ypf-article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;
    letter-spacing: -0.02em;
}

.ypf-article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem;
}

.ypf-article-body p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.ypf-article-body ul,
.ypf-article-body ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

.ypf-article-body li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.ypf-article-body ol li {
    list-style: decimal;
}

.ypf-article-body a {
    color: #7984ff;
    text-decoration: underline;
    text-decoration-color: rgba(121, 132, 255, 0.4);
}

.ypf-article-body a:hover {
    color: #bab8ff;
}

.ypf-article-body img {
    border-radius: var(--radius-md);
    border: 1px solid #333333;
    max-width: 100%;
}

.ypf-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap;
}

.ypf-article-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(83, 94, 224, 0.15);
    border: 1px solid rgba(83, 94, 224, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: #7984ff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.ypf-article-cat-badge:hover {
    background: rgba(83, 94, 224, 0.25);
    color: #bab8ff;
}

/* Sidebar */
.ypf-article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.ypf-sidebar-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.ypf-sidebar-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555555;
    margin-bottom: 1rem;
}

.ypf-sidebar-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #cccccc;
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.ypf-sidebar-link:last-child {
    border-bottom: none;
}

.ypf-sidebar-link:hover {
    color: #7984ff;
}

/* ============================================================
   CATEGORY / SUBCATEGORY PAGES
   ============================================================ */
.ypf-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ypf-article-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid #333333;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all var(--transition-base);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.04);
}

.ypf-article-card:hover {
    border-color: rgba(83, 94, 224, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 40px 50px -30px rgba(255,255,255,0.12);
}

.ypf-article-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #111111;
}

.ypf-article-card-body {
    padding: 20px;
}

.ypf-article-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Subcategory chips */
.ypf-subcat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.ypf-subcat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #888888;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ypf-subcat-chip:hover,
.ypf-subcat-chip.active {
    border-color: #7984ff;
    color: #7984ff;
    background: rgba(83, 94, 224, 0.08);
}

/* Pagination */
.ypf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.ypf-pagination a,
.ypf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: #cccccc;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ypf-pagination a:hover {
    border-color: #7984ff;
    color: #7984ff;
    background: rgba(83, 94, 224, 0.08);
}

.ypf-pagination .current {
    background: #535ee0;
    border-color: #535ee0;
    color: #ffffff;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.ypf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 50px var(--container-padding);
}

.ypf-contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.ypf-contact-info p {
    color: #888888;
    line-height: 1.7;
    font-size: 0.95rem;
}

.ypf-contact-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-xl);
    padding: 40px;
}

.ypf-form-group {
    margin-bottom: 20px;
}

.ypf-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 8px;
}

.ypf-form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333333;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    outline: none;
}

.ypf-form-input:focus {
    border-color: #535ee0;
    box-shadow: 0 0 0 3px rgba(83, 94, 224, 0.15);
}

.ypf-form-input::placeholder {
    color: #555555;
}

textarea.ypf-form-input {
    min-height: 140px;
    resize: vertical;
}

.ypf-form-submit {
    width: 100%;
    padding: 14px;
    background: #535ee0;
    border: 1px solid #d2d1ff;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-base);
}

.ypf-form-submit:hover {
    background: #6470f0;
    box-shadow: 0 0 30px rgba(83, 94, 224, 0.4);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.ypf-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px var(--container-padding);
}

.ypf-404-inner {
    max-width: 500px;
}

.ypf-404-code {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 800;
    background: linear-gradient(155deg, #bab8ff 33%, #7984ff 64%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.ypf-404-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.ypf-404-desc {
    color: #888888;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #000000;
    border-top: 1px solid #1a1a1a;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1a1a1a;
}

.footer-brand .header-logo {
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #7984ff;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
    color: #333333;
    font-size: 0.8rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #444444;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* ============================================================
   MAIN content spacing (non-homepage)
   ============================================================ */
.main {
    padding-top: 25px;
    padding-bottom: 25px;
}

.main-content {
    padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ypf-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ypf-hero-content {
        max-width: 100%;
    }

    .ypf-hero-buttons {
        justify-content: center;
    }

    .ypf-hero-stats {
        justify-content: center;
    }

    .ypf-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

    .ypf-contact-grid {
        grid-template-columns: 1fr;
    }

    .ypf-article-layout {
        grid-template-columns: 1fr;
    }

    .ypf-article-sidebar {
        position: static;
    }

    .nav-main {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .ypf-hero {
        padding: 50px 0 40px;
        min-height: auto;
    }

    .ypf-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .ypf-features-grid {
        grid-template-columns: 1fr;
    }

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

    .ypf-topics-grid {
        grid-template-columns: 1fr;
    }

    .ypf-articles-grid {
        grid-template-columns: 1fr;
    }

    .ypf-award {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }

    .ypf-topics-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .ypf-cat-grid {
        grid-template-columns: 1fr;
    }

    .ypf-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .ypf-hero {
        padding: 40px 0 30px;
    }

    .ypf-hero-inner {
        padding: 0 1rem;
    }

    .ypf-hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        word-break: break-word;
    }

    .ypf-hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ypf-btn-primary,
    .ypf-btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .ypf-hero-stat-num {
        font-size: 1.25rem;
    }

    .ypf-hero-stats {
        gap: 1.5rem;
    }
}
