/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-content a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 80vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    max-width: 800px;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #374151;
}

.content-list {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.5rem 0 1.5rem 2rem;
    color: #374151;
}

.content-list li {
    margin-bottom: 0.5rem;
}

/* Highlight Boxes */
.highlight-box {
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 5px solid;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);
    border-left-color: #ef4444;
}

.highlight-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Risk Cards Grid */
.risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.risk-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.risk-card.high-risk {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #ef4444;
}

.risk-card.medium-risk {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-left: 5px solid #f59e0b;
}

.risk-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.risk-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Cost Breakdown */
.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cost-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #ef4444;
}

.cost-card h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.cost-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.cost-details p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.cost-note {
    font-style: italic;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Exception Scenarios */
.exception-scenarios {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.scenario-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scenario-card.urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #dc2626;
}

.scenario-card.serious {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-left: 5px solid #d97706;
}

.scenario-card.caution {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #2563eb;
}

.scenario-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.scenario-card ul {
    margin: 1rem 0 1rem 1.5rem;
}

.scenario-note {
    font-weight: 500;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

/* Important Note */
.important-note {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #0288d1;
    margin: 2rem 0;
}

.important-note h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #10b981;
    transition: transform 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
}

.strategy-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.strategy-card ul {
    margin-left: 1.5rem;
}

.strategy-card li {
    margin-bottom: 0.5rem;
}

/* Alternatives Grid */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.alternative-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.alternative-card:hover {
    transform: translateY(-5px);
}

.alternative-card.recommended {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
}

.alternative-card.moderate {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid #f59e0b;
}

.alternative-card.caution {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
}

.alternative-card.last-resort {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left: 5px solid #8b5cf6;
}

.alternative-note {
    font-style: italic;
    color: #6b7280;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.story-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.story-card.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
}

.story-card.warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #ef4444;
}

.story-card.balanced {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
}

.story-details ul {
    margin: 1rem 0 1rem 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #10b981);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #3b82f6;
}

.timeline-content h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.timeline-content ul {
    margin-left: 1.5rem;
}

/* Recovery Steps */
.recovery-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recovery-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #10b981;
    text-align: center;
}

.recovery-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Buttons and CTAs */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Calculation CTA */
.calculation-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    border-left: 5px solid #0ea5e9;
}

.calculation-cta h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Tools CTA */
.tools-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tool-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 3px solid #10b981;
}

.tool-card:hover {
    transform: translateY(-3px);
}

.tool-card h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* FAQ Styles */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Final Section */
.final-section {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    border-left: 5px solid #8b5cf6;
}

.final-advice {
    max-width: 700px;
    margin: 0 auto;
}

.action-cta {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #3b82f6;
}

.sidebar-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tool-links, .article-links {
    list-style: none;
}

.tool-links li, .article-links li {
    margin-bottom: 0.75rem;
}

.tool-links a, .article-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tool-links a:hover, .article-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        z-index: 999;
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 1rem;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .risks-grid,
    .cost-breakdown,
    .strategy-grid,
    .alternatives-grid,
    .recovery-steps {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -1.75rem;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-card,
    .risk-card,
    .cost-card,
    .strategy-card,
    .alternative-card {
        padding: 1.5rem;
    }
}