@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Source+Sans+Pro:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background: linear-gradient(to bottom, #f8f6f3, #ffffff);
    color: #2c3e50;
    line-height: 1.8;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Document-style Navigation */
.document-navigation {
    background: rgba(248, 246, 243, 0.95);
    border-bottom: 1px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #34495e;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link:hover::after {
    animation: underlineFlash 0.4s ease;
    background: #e74c3c;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 40px;
        gap: 25px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

.document-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 80px 60px;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    min-height: calc(100vh - 80px);
    position: relative;
}

.document-container::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e74c3c;
    opacity: 0.3;
}

.document-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #34495e;
}

.document-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.document-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
}

.document-section {
    margin: 40px 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '§';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 400;
}

.document-link {
    display: inline-block;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 0;
    margin: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 400;
}

.document-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #34495e;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.document-link:hover {
    color: #e74c3c;
}

.document-link:hover::after {
    animation: underlineFlash 0.4s ease;
    background: #e74c3c;
}

@keyframes underlineFlash {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    25% {
        transform: scaleX(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1.05);
        opacity: 1;
    }
    75% {
        transform: scaleX(0.98);
        opacity: 0.9;
    }
}

.link-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-left: 20px;
    margin-top: 4px;
    line-height: 1.5;
}

.document-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #34495e;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.footer-link {
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid #bdc3c7;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-link:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.footer-link:hover::before {
    left: 100%;
}

.page-transition {
    animation: pageSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-section {
    margin: 30px 0;
    padding: 25px;
    background: #fafafa;
    border-left: 4px solid #e74c3c;
}

.content-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.content-section p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.content-section ul {
    margin-left: 30px;
    margin-top: 15px;
}

.content-section li {
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 8px;
    color: #555;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #e74c3c;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.back-link::before {
    content: '←';
    margin-right: 8px;
    font-size: 1.2rem;
}

.important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    font-family: 'Source Sans Pro', sans-serif;
}

.important-note strong {
    color: #856404;
}

.checklist {
    background: white;
    border: 1px solid #dee2e6;
    padding: 25px;
    margin: 30px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-family: 'Source Sans Pro', sans-serif;
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    transform: scale(1.2);
}

.checklist-item label {
    flex: 1;
    line-height: 1.6;
    color: #555;
}

/* Planning Strategies Page Styles */
.strategy-category {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.strategy-category h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

.strategy-category h4 {
    font-size: 1.05rem;
    color: #34495e;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.strategy-details {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
}

.strategy-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.strategy-details li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-family: 'Source Sans Pro', sans-serif;
}

.strategy-details li strong {
    color: #2c3e50;
    font-weight: 600;
}

.call-to-action {
    background: linear-gradient(135deg, #f8f6f3 0%, #ffffff 100%);
    border: 2px solid #e74c3c;
    margin-top: 40px;
}

.call-to-action h2 {
    color: #e74c3c;
    font-size: 1.4rem;
}

.action-items {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 2px;
}

.action-items h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.action-items ol {
    padding-left: 20px;
}

.action-items li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-family: 'Source Sans Pro', sans-serif;
}

.internal-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: 500;
}

.internal-link:hover {
    color: #e74c3c;
    animation: underlineFlash 0.4s ease;
}

/* Section styling for planning strategies */
.content-section h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #34495e;
}

.content-section h2::before {
    content: "§ ";
    color: #e74c3c;
    font-weight: 700;
}

/* Responsive adjustments for planning strategies */
@media (max-width: 768px) {
    .strategy-category {
        padding: 15px;
        margin: 20px 0;
    }
    
    .strategy-details {
        padding: 12px;
    }
    
    .action-items {
        padding: 15px;
    }
}