@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --terra-red: #1E40AF;
    --terra-red-dark: #1E3A8A;
    --terra-red-light: rgba(30, 64, 175, 0.1);
    --terra-red-border: rgba(30, 64, 175, 0.2);
    --terra-orange: #3B82F6;
    --terra-orange-dark: #2563EB;
    --terra-yellow: #93C5FD;
    --terra-yellow-dark: #60A5FA;
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

.post-header {
    background: linear-gradient(135deg, var(--terra-red) 0%, var(--terra-orange) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%, rgba(30, 64, 175, 0.06) 100%);
    opacity: 0.3;
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    justify-content: center;
    flex-wrap: wrap;
}

.post-category,
.post-date {
    background: var(--terra-red-light);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 600;
    border: 1px solid var(--terra-red-border);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
}

.post-category:hover,
.post-date:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-1px);
}

.post-title {
    font-family: var(--font-main);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
    line-height: 1.25;
    position: relative;
    z-index: 2;
    letter-spacing: -0.025em;
}

.post-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
    color: white;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-main);
}

.post-content {
    padding: 0;
    background: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.main-content-area {
    background: var(--background-color);
}

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-family: var(--font-main);
    color: var(--text-color);
    margin-bottom: 48px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-intro .lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.625;
    color: var(--text-color);
    margin-bottom: 24px;
}

.section-intro p {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--text-color);
    margin-bottom: 20px;
}

.section-intro p:last-child {
    margin-bottom: 0;
}

.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    padding: 0;
    margin: 64px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 64px 0;
    width: 45%;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 48px;
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
    padding-left: 48px;
    animation-delay: 0.2s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--terra-red);
    border: 4px solid var(--background-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--terra-red);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-item:nth-child(odd)::before {
    right: -56px;
}

.timeline-item:nth-child(even)::before {
    left: -56px;
}

.timeline-date {
    font-weight: 700;
    color: var(--terra-red);
    margin-bottom: 12px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-main);
}

.timeline-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    margin: 0 0 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.timeline-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.625;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 64px 0;
}

.content-grid-cards.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.content-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.content-card h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
}

.content-card h4 {
    color: var(--text-color);
    margin-bottom: 16px;
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.content-card p {
    color: var(--text-color);
    line-height: 1.625;
    margin-bottom: 20px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card .card-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.content-card li {
    padding: 12px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
    line-height: 1.625;
    border-bottom: 1px solid var(--border-color);
}

.content-card li:last-child {
    border-bottom: none;
}

.content-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--terra-red);
    font-weight: bold;
}

.content-card strong {
    color: var(--terra-red);
    font-weight: 600;
}

.enhanced-intro {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 16px;
    margin: 48px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.enhanced-intro .lead-paragraph {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.625;
    color: var(--text-color);
    margin-bottom: 32px;
    text-align: center;
}

.enhanced-intro p {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--text-color);
    margin-bottom: 24px;
    text-align: left;
}

.enhanced-intro p:last-child {
    margin-bottom: 0;
}

.enhanced-intro strong {
    color: var(--terra-red);
    font-weight: 600;
}

.enhanced-intro em {
    color: var(--terra-red);
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .post-header {
        padding: 80px 0 60px;
    }
    .post-title {
        font-size: 2.5rem;
    }
    .post-subtitle {
        font-size: 1.125rem;
    }
    .content-section {
        padding: 60px 0;
    }
    .content-section h2 {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    .section-intro {
        margin-bottom: 48px;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 60px;
        padding-right: 20px;
    }
    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }
    .content-grid-cards {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 48px 0;
    }
    .content-grid-cards.two-columns {
        grid-template-columns: 1fr;
    }
    .content-card {
        padding: 32px 24px;
    }
    .enhanced-intro {
        padding: 32px 24px;
        margin: 32px 0;
    }
    .enhanced-intro .lead-paragraph {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }
    .enhanced-intro p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 60px 0 40px;
    }
    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .content-card {
        padding: 24px 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-content {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.content-card:focus-within,
.timeline-item:focus-within {
    outline: 2px solid var(--terra-red);
    outline-offset: 2px;
}

.related-section {
    background: var(--background-color);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.related-blocks-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.related-block {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.related-block { max-width: 700px; }

.related-block h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 32px;
    font-weight: 600;
    font-family: var(--font-main);
    text-align: center;
}

.modern-links-grid {
    display: grid;
    gap: 16px;
}

.modern-link-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-link-item:hover {
    transform: translateX(4px);
    background: var(--card-bg);
    border-color: var(--terra-red);
}

.modern-link-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.modern-link-item:hover a {
    color: var(--terra-red);
}

.internal-link-item {
    background: var(--background-color);
}

.internal-link-item:hover {
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .related-section {
        padding: 60px 0;
    }
    .related-blocks-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .related-block {
        padding: 32px 24px;
    }
    .related-block h2 {
        font-size: 1.375rem;
        margin-bottom: 24px;
    }
}