/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #0f0f1a;
    --color-primary-light: #1a1a2e;
    --color-accent: #e94560;
    --color-accent-hover: #ff6b81;
    --color-accent-gradient: linear-gradient(135deg, #e94560, #ff6b81);
    --color-bg: #fafbfc;
    --color-bg-alt: #f1f3f5;
    --color-bg-card: #ffffff;
    --color-text: #2d2d3a;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1200px;
    --container-narrow: 780px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

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

/* === READING PROGRESS BAR === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent-gradient);
    z-index: 1000;
    transition: width 0.1s linear;
}

/* === HEADER === */
.site-header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}
.site-header.scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.site-header.scrolled .header-inner { height: 52px; }
.site-header.scrolled .logo-mark { font-size: 1.4rem; }

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 0.75rem;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LOGO === */
.site-logo {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    flex-shrink: 0;
    transition: all var(--transition);
}
.site-logo:hover { color: #fff; }

.logo-mark {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform var(--transition);
}
.site-logo:hover .logo-mark { transform: scale(1.1); }

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
}

/* === NAV === */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.main-nav a.active {
    color: #fff;
    background: rgba(233,69,96,0.15);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* === HEADER ACTIONS (search + menu toggle) === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Search expandable — overlay below header */
.search-expandable {
    display: flex;
    align-items: center;
}
.search-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
    flex-shrink: 0;
}
.search-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,15,26,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}
.search-overlay.open { display: flex; }

.search-overlay-inner {
    width: 90%;
    max-width: 600px;
    position: relative;
}
.search-overlay .search-input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-family: var(--font-main);
    box-sizing: border-box;
    transition: border-color var(--transition);
}
.search-overlay .search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-overlay .search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(233,69,96,0.15);
}
.search-overlay-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition);
}
.search-overlay-close:hover { color: #fff; }
.search-overlay-hint {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* === MOBILE MENU === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

/* === HERO === */
.hero {
    background: var(--color-primary);
    color: #fff;
    padding: 3.5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 25% 50%, rgba(233,69,96,0.07) 0%, transparent 50%),
                radial-gradient(ellipse at 75% 50%, rgba(100,100,255,0.05) 0%, transparent 50%);
    animation: heroPulse 20s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes heroPulse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-1.5%, -1%) scale(1.03); }
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233,69,96,0.25), transparent);
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: 1rem;
    opacity: 0.55;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.hero-stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.4;
}

/* === CATEGORY HEADER === */
.category-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
    padding: 3rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(233,69,96,0.1) 0%, transparent 70%);
}
.category-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.category-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 700px;
    line-height: 1.7;
}
.category-description h2 { font-size: 1.1rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.9); }
.category-count {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(233,69,96,0.1);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
}

/* === TRENDING BAR === */
.trending-bar {
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0;
    overflow: hidden;
}
.trending-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.trending-bar-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    background: rgba(233,69,96,0.12);
    padding: 0.25em 0.65em;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.trending-bar-items {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.trending-bar-items::-webkit-scrollbar { display: none; }
.trending-bar-item {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: color var(--transition);
}
.trending-bar-item:hover { color: #fff; }

/* === PORTAL HERO === */
.portal-hero { padding: 2rem 0 1rem; }
.portal-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    min-height: 380px;
}
.portal-hero-main { position: relative; }
.portal-hero-image {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}
.portal-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portal-hero-main:hover .portal-hero-image img { transform: scale(1.03); }
.portal-hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}
.portal-hero-content { padding: 1rem 0; }
.portal-hero-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.portal-hero-content h2 a { color: var(--color-text); }
.portal-hero-content h2 a:hover { color: var(--color-accent); }
.portal-hero-content p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.portal-hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.portal-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.portal-side-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--transition);
    flex: 1;
}
.portal-side-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}
.portal-side-image {
    width: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.portal-side-image img { width: 100%; height: 100%; object-fit: cover; }
.portal-side-info { flex: 1; min-width: 0; }
.portal-side-info .badge--sm { font-size: 0.55rem; padding: 0.2em 0.5em; margin-bottom: 0.35rem; display: inline-block; }
.portal-side-info h3 { font-size: 0.82rem; font-weight: 700; line-height: 1.35; }
.portal-side-info h3 a { color: var(--color-text); }
.portal-side-info h3 a:hover { color: var(--color-accent); }

/* === PORTAL QUICK NAV === */
.portal-quicknav {
    padding: 1rem 0 2rem;
}
.portal-quicknav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.portal-quicknav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}
.portal-quicknav-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.portal-quicknav-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.6;
}
.portal-quicknav-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
}
.portal-quicknav-item:hover .portal-quicknav-text { color: var(--color-accent); }

/* === POSTS GRID === */
.posts-grid { padding: 2rem 0 3rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* === CARD === */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    animation: cardFadeIn 0.5s ease both;
    display: flex;
    flex-direction: column;
}
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Featured card */
.card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: none;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #16213e 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    min-height: 380px;
}
.card--featured .card-image img { height: 100%; object-fit: cover; }
.card--featured .card-title { font-size: 1.6rem; line-height: 1.3; }
.card--featured .card-title a { color: #fff; }
.card--featured .card-title a:hover { color: var(--color-accent-hover); }
.card--featured .card-excerpt { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.card--featured .card-date { color: rgba(255,255,255,0.5); }
.card--featured .card-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

/* Card image */
.card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #16213e 50%, var(--color-primary) 100%);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-image img.img-error {
    display: none;
}
.card-image--placeholder::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-align: center;
    line-height: 1.35;
    z-index: 2;
}
.card:hover .card-image img:not(.img-error) { transform: scale(1.04); }
.card-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }

.card-meta {
    margin-bottom: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* === BADGES === */
.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all var(--transition);
    background: var(--color-accent);
    color: #fff;
}
.badge:hover {
    filter: brightness(1.15);
    color: #fff;
    transform: translateY(-1px);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.card-title a { color: var(--color-primary); transition: color var(--transition); }
.card-title a:hover { color: var(--color-accent); }

.card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.card-read-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition);
}
.card:hover .card-read-more {
    opacity: 1;
    transform: translateX(0);
}
.card-reading-time {
    font-size: 0.65rem;
    color: var(--color-text-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.card-reading-time::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm0 14A6 6 0 118 2a6 6 0 010 12zm.5-9H7v5l4.3 2.5.7-1.2-3.5-2V5z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* === DUPLICATE IMAGE OVERLAY — visual variety for repeated photos === */
.card--alt-img .card-image img:not(.img-error) { filter: saturate(0.8) brightness(0.95); }

/* === CATEGORY-COLORED PLACEHOLDERS for broken images === */
.card--cat-emprendimiento .card-image { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); }
.card--cat-marketing-digital .card-image { background: linear-gradient(135deg, #2d1854 0%, #7c3aed 100%); }
.card--cat-automatizacion .card-image { background: linear-gradient(135deg, #134e5e 0%, #0891b2 100%); }
.card--cat-casos-de-exito .card-image { background: linear-gradient(135deg, #1a3c34 0%, #059669 100%); }
.card--cat-inteligencia-artificial .card-image { background: linear-gradient(135deg, #44290a 0%, #d97706 100%); }
.card--cat-innovacion-y-marketing .card-image { background: linear-gradient(135deg, #4a1219 0%, #dc2626 100%); }
.card--cat-negocios .card-image { background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%); }

/* Section title accent */
.section-title-accent {
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.5;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.pagination a {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.pagination a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233,69,96,0.25);
}
.pagination-info {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0 0.5rem;
}

/* === SINGLE POST === */
.single-post { padding: 3rem 0; }

/* Post layout with sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.post-main { min-width: 0; }

.post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}
.post-meta {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.post-info span, .post-info time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Post content */
.post-content {
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--color-text);
}
.post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.35rem; }
.post-content ul, .post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.post-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.post-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}
.post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(233,69,96,0.04), rgba(233,69,96,0.02));
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-light);
    position: relative;
}
.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.2;
    font-style: normal;
    line-height: 1;
}
.post-content hr {
    border: none;
    border-top: 2px solid var(--color-bg-alt);
    margin: 2.5rem 0;
}
.post-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(233,69,96,0.3);
    transition: text-decoration-color var(--transition);
}
.post-content a:hover { text-decoration-color: var(--color-accent); }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.post-content th, .post-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}
.post-content th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-color: var(--color-primary);
}
.post-content pre, .post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}
.post-content code {
    background: var(--color-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--color-accent);
}
.post-content pre {
    background: var(--color-primary);
    color: #e0e0e0;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Key takeaway box */
.key-takeaway {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    margin: 2rem 0;
}
.key-takeaway h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.75rem;
}
.key-takeaway table {
    width: 100%;
    border-collapse: collapse;
}
.key-takeaway td {
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid #dcfce7;
    font-size: 0.9rem;
    vertical-align: top;
}
.key-takeaway tr:last-child td { border-bottom: none; }
.key-takeaway td:first-child {
    width: 32px;
    font-size: 1.1rem;
    color: #22c55e;
    text-align: center;
}

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-avatar-letter {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
}
.author-info { flex: 1; }
.author-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.15rem;
}
.author-name {
    font-size: 1rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.4rem;
}
.author-bio {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* === TRENDING VIEWS === */
.trending-views {
    display: block;
    font-size: 0.68rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 0.1rem;
}

.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-bg-alt);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    font-size: 0.8rem;
    color: var(--color-accent);
    background: rgba(233,69,96,0.06);
    padding: 0.3em 0.85em;
    border-radius: 20px;
    border: 1px solid rgba(233,69,96,0.15);
    transition: all var(--transition);
}
.tag:hover {
    background: rgba(233,69,96,0.12);
    border-color: rgba(233,69,96,0.3);
}

/* === TOC (Table of Contents) === */
.toc {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.toc h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 0.35rem; }
.toc a {
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-left: 2px solid transparent;
    margin-left: -0.5rem;
    border-radius: 0 4px 4px 0;
}
.toc a:hover { color: var(--color-accent); background: rgba(233,69,96,0.04); }
.toc a.toc-active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    background: rgba(233,69,96,0.06);
    font-weight: 600;
}
.toc ul ul { padding-left: 1.25rem; margin-top: 0.25rem; }
.toc ul ul a { font-size: 0.85rem; color: var(--color-text-light); }

/* === SHARE BUTTONS === */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-bg-alt);
}
.share-buttons span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: none;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: #fff;
    border-color: transparent;
}
.share-btn--twitter:hover { background: #1da1f2; }
.share-btn--linkedin:hover { background: #0077b5; }
.share-btn--whatsapp:hover { background: #25d366; }
.share-btn--copy:hover { background: var(--color-primary); }

/* === RELATED POSTS === */
.related-posts {
    background: var(--color-bg-alt);
    padding: 4rem 0;
    margin-top: 3rem;
    position: relative;
}
.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

/* === CTA / NEWSLETTER === */
.cta-newsletter {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(233,69,96,0.15) 0%, transparent 60%);
}
.cta-newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}
.cta-newsletter p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    position: relative;
}
.cta-newsletter form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}
.cta-newsletter input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}
.cta-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.cta-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.2);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
}
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.4; }

/* === SECTION: BY CATEGORY === */
.section-by-category {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}
.section-by-category + .section-by-category { padding-top: 0; border-top: none; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.section-header a {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    margin-top: 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent-gradient);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-nav h4, .footer-legal h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer-nav ul, .footer-legal ul { list-style: none; }
.footer-nav li, .footer-legal li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: all var(--transition);
}
.footer-nav a:hover, .footer-legal a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    color: #fff;
    padding: 0.75em 1.75em;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(233,69,96,0.25);
    font-family: var(--font-main);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.35);
    color: #fff;
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 5rem 0;
}
.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}
.error-page p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === SEARCH RESULTS === */
.search-header {
    background: var(--color-bg-alt);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.search-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
}
.search-header p {
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* === ARCHIVE PAGE === */
.archive-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.archive-section ul { list-style: none; }
.archive-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.archive-section a {
    color: var(--color-text);
    font-weight: 500;
}
.archive-section a:hover { color: var(--color-accent); }
.archive-section time {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: 0.5rem;
}

/* === STATIC PAGES === */
.static-page {
    padding: 3rem 0;
}
.static-page h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.static-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}
.static-page p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* === SIDEBAR === */
.post-sidebar {
    position: relative;
}
.sidebar-sticky {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.sidebar-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.sidebar-post-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}
.sidebar-post-link:hover { color: var(--color-accent); }
.sidebar-post-link img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}
.sidebar-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    display: block;
}
.sidebar-post-date {
    font-size: 0.7rem;
    color: var(--color-text-light);
    display: block;
    margin-top: 0.15rem;
}

.sidebar-posts--compact li {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}
.sidebar-posts--compact li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-posts--compact a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--transition);
}
.sidebar-posts--compact a:hover { color: var(--color-accent); }

.sidebar-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
    color: #fff;
    border: none;
}
.sidebar-cta .sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.1);
}
.sidebar-cta p {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-form input {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
}
.sidebar-form input::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-form input:focus { outline: none; border-color: var(--color-accent); }
.sidebar-cta-note {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.5rem;
    text-align: center;
}
.btn--sm {
    padding: 0.55em 1.25em;
    font-size: 0.82rem;
}

.sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sidebar-cat-link {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: all var(--transition);
    text-decoration: none;
}
.sidebar-cat-link:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Grid 4 columns for category blocks */
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card--small .card-body { padding: 1rem; }
.card--small .card-title { font-size: 0.9rem; }
.category-block { margin-bottom: 2.5rem; }
.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.category-block-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
}
.category-block-link {
    font-size: 0.85rem;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .main-nav a { font-size: 0.7rem; padding: 0.3rem 0.4rem; }
    .search-input { width: 110px; }
    .search-input:focus { width: 140px; }
    .logo-text { font-size: 1rem; }
}

@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { order: 2; }
    .sidebar-sticky { position: static; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .card--featured { grid-template-columns: 1fr; min-height: auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .post-title { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .category-header h1 { font-size: 1.75rem; }
    .main-nav { flex: initial; }
    .portal-hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .portal-hero-sidebar { flex-direction: row; overflow-x: auto; gap: 0.75rem; }
    .portal-side-card { min-width: 260px; flex: none; }
    .portal-quicknav-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-hero-content h2 { font-size: 1.25rem; }
}

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

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15,15,26,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        z-index: 99;
        gap: 0;
    }
    .main-nav.active { display: flex; }
    .main-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1.05rem;
        color: rgba(255,255,255,0.8);
    }
    .main-nav a.active {
        color: var(--color-accent);
        background: none;
    }
    .main-nav a.active::after { display: none; }

    .menu-toggle { display: block; }

    .search-toggle { width: 30px; height: 30px; }
    .site-header.scrolled .header-inner { height: 52px; }

    .hero { padding: 2rem 0 1.5rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-stats { gap: 1.25rem; margin-top: 1.25rem; padding-top: 1rem; }
    .hero-stat-number { font-size: 1.15rem; }
    .post-title { font-size: 1.6rem; }
    .post-info { flex-direction: column; gap: 0.25rem; align-items: center; }

    .card--featured .card-body { padding: 1.35rem; }
    .card--featured .card-title { font-size: 1.25rem; }
    .card-read-more { display: none; }

    .cta-newsletter { padding: 2rem 1.5rem; }
    .cta-newsletter form { flex-direction: column; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .grid--4 { grid-template-columns: 1fr; }
    .section-title-accent { display: none; }
    .portal-hero-grid { grid-template-columns: 1fr; }
    .portal-hero-sidebar { flex-direction: column; }
    .portal-side-card { min-width: 0; }
    .portal-quicknav-grid { grid-template-columns: 1fr 1fr; }
    .portal-quicknav-item { padding: 0.7rem; }
    .portal-quicknav-text { font-size: 0.72rem; }
    .trending-bar { display: none; }
}

/* === DIRECTORY === */
.directory-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
    padding: 3rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.directory-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 600px;
    line-height: 1.7;
    margin-top: 0.5rem;
}
.directory-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.directory-filter {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4em 0.85em;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}
.directory-filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.directory-filter.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.badge--sector {
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.6rem;
}

/* === RESOURCES === */
.resource-section {
    margin-bottom: 3rem;
}
.resource-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-alt);
}
.resource-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.resource-section-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}
.resource-section-header p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* === SERVICES === */
.services-section {
    padding: 3rem 0;
}
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.service-card-badge {
    position: absolute;
    top: -0.6rem;
    right: 1.5rem;
    background: var(--color-accent-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3em 0.85em;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.service-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
.service-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.service-card > p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.service-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}
.service-features li:last-child { border-bottom: none; }

/* === SEARCH HIGHLIGHT === */
.search-highlight {
    background: rgba(233,69,96,0.12);
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.05em 0.2em;
    border-radius: 3px;
}
.search-form--large {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 600px;
}
.search-form--large .search-input {
    flex: 1;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color var(--transition);
}
.search-form--large .search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-text-light);
}
.search-count {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* === NATIVE SHARE BUTTON === */
.share-btn--native {
    background: var(--color-accent-gradient);
    color: #fff;
    border: none;
    padding: 0 0.85rem;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-main);
    width: auto;
}
.share-btn--native:hover { color: #fff; }
.share-btn--native svg { flex-shrink: 0; }
.copy-feedback {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}
.share-btn--copy { position: relative; }
.share-btn--copy.copied .copy-feedback { opacity: 1; }

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(233,69,96,0.35);
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
