/* ========================================
   Guide Article Page Styles
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.brand-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.brand-badge {
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.nav-brand:hover .brand-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a svg {
    width: 18px;
    height: 18px;
}

.nav-badge {
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    margin-left: 0.25rem;
}

.nav-link-cta {
    background: var(--gradient) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.nav-link-cta::after {
    display: none;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 60%;
}

/* ========================================
   Article Hero Section
   ======================================== */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.breadcrumb a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.5);
}

.breadcrumb span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.article-category-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.article-category-badge svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.difficulty-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.difficulty-badge.beginner {
    background: rgba(16, 185, 129, 0.2);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.4);
}

.article-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.title-decoration {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 3px;
}

.article-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 800px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.subtitle-icon {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    margin-top: 4px;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.meta-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meta-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    align-self: center;
}

.article-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.action-btn.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ========================================
   Article Content Layout
   ======================================== */
.article-content {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.toc-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    position: relative;
}

.toc-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.toc-list a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    padding-left: 1.2rem;
}

.toc-list a:hover::before {
    height: 100%;
}

.related-tools {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.related-tools h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
    border: 1px solid transparent;
}

.tool-link:last-child {
    margin-bottom: 0;
}

.tool-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.tool-link:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    max-width: 800px;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

.content-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 1.5rem 0 0.8rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-section strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* ========================================
   Content Components
   ======================================== */

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
}

.highlight-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.highlight-box h4 {
    margin: 0 0 0.8rem 0;
    color: var(--primary-color);
}

.highlight-box p {
    margin: 0;
}

/* Formula Box */
.formula-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.formula {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
}

.formula-explanation {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Styled List */
.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 28px;
    height: 28px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Steps Box */
.steps-box {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0 0 0.8rem 0;
}

.step-content .example {
    background: rgba(99, 102, 241, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0;
}

/* Example Box */
.example-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-left: 4px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.example-box h4 {
    color: var(--success-color);
    margin: 0 0 1rem 0;
}

.example-box p {
    margin-bottom: 1rem;
}

.example-box ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.example-box li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.example-text {
    background: rgba(99, 102, 241, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.benefit-card svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
}

.benefit-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Box */
.cta-box {
    background: var(--gradient);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.cta-box h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.02);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}

/* ========================================
   Related Articles
   ======================================== */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

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

.related-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.8rem 0;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4rem;
}

.footer-top {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.footer-main {
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-col h4 svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    width: 16px;
    height: 16px;
    fill: #ec4899;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.3rem;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .article-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .article-badges {
        gap: 0.8rem;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .subtitle-icon {
        width: 20px;
        height: 20px;
    }

    .article-meta {
        gap: 1rem;
    }

    .meta-item {
        padding: 0.8rem 1.2rem;
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .meta-divider {
        display: none;
    }

    .article-actions {
        gap: 0.8rem;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .highlight-box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .step {
        flex-direction: column;
        padding: 1.2rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

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

    .footer-cta-content h2 {
        font-size: 1.6rem;
    }

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

    .footer-brand {
        grid-column: 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.4rem;
    }

    .article-hero {
        padding: 2rem 0 3rem;
    }

    .breadcrumb {
        gap: 0.5rem;
    }

    .breadcrumb a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .breadcrumb a svg {
        width: 14px;
        height: 14px;
    }

    .breadcrumb-separator {
        width: 14px;
        height: 14px;
    }

    .breadcrumb span {
        font-size: 0.8rem;
    }

    .article-category-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .article-category-badge svg {
        width: 16px;
        height: 16px;
    }

    .difficulty-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .difficulty-badge svg {
        width: 14px;
        height: 14px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .title-decoration {
        width: 60px;
        height: 4px;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .subtitle-icon {
        width: 18px;
        height: 18px;
    }

    .meta-item {
        min-width: 100%;
        padding: 0.7rem 1rem;
    }

    .meta-icon {
        width: 36px;
        height: 36px;
    }

    .meta-icon svg {
        width: 18px;
        height: 18px;
    }

    .meta-label {
        font-size: 0.7rem;
    }

    .meta-value {
        font-size: 0.85rem;
    }

    .action-btn {
        width: 100%;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .formula {
        font-size: 1.2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .footer-cta-content h2 {
        font-size: 1.4rem;
    }

    .footer-cta-content p {
        font-size: 0.95rem;
    }
}