/* ====================================
   Document Specific Styles
   ==================================== */

.document-container {
    background-color: white;
    padding: 60px 0;
    min-height: 100vh;
}

.document-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    color: #2c5aa0;
    margin-bottom: 20px;
    line-height: 1.4;
}

.document-date {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 50px;
}

/* ====================================
   Table of Contents
   ==================================== */
.toc {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 3px solid #667eea;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 60px;
}

.toc-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 25px;
    text-align: center;
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin: 12px 0;
}

.toc-list li::before {
    content: counter(toc-counter) ". ";
    font-weight: 700;
    color: #667eea;
    margin-right: 8px;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* ====================================
   Document Sections
   ==================================== */
.doc-section {
    margin-bottom: 70px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.doc-section:last-of-type {
    border-bottom: none;
}

.doc-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.doc-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a7ab8;
    margin-top: 35px;
    margin-bottom: 20px;
}

.doc-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5a8ac6;
    margin-top: 25px;
    margin-bottom: 15px;
}

.doc-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.doc-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.doc-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.doc-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====================================
   Highlight Boxes
   ==================================== */
.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 6px solid #ffa500;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.highlight-box h3 {
    color: #d97700;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.highlight-box p {
    margin-bottom: 15px;
}

.highlight-box strong {
    color: #d97700;
}

.info-box {
    background-color: #e8f4fd;
    border-left: 6px solid #2196F3;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-box h4 {
    color: #1976D2;
    margin-top: 0;
}

.info-box strong {
    color: #1976D2;
}

.result-box {
    background-color: #d4edda;
    border-left: 6px solid #28a745;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-box strong {
    color: #155724;
}

.result-text {
    font-weight: 600;
    color: #155724;
    margin-top: 15px;
}

.request-box {
    background-color: #f8f9fa;
    border: 2px solid #667eea;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.request-box h3 {
    color: #2c5aa0;
    margin-top: 0;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    text-align: center;
}

.cta-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* ====================================
   Comparison Box
   ==================================== */
.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.comparison-item {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.comparison-item:first-child {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.comparison-item:last-child {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.comparison-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comparison-title.warning {
    color: #856404;
}

.comparison-title.success {
    color: #155724;
}

.comparison-item ul {
    list-style: none;
    padding-left: 0;
}

.comparison-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.comparison-item:first-child li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.3rem;
}

.comparison-item:last-child li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
}

.highlight-text {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 15px !important;
}

.success-text {
    color: #155724;
}

/* ====================================
   Blockquote
   ==================================== */
blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

/* ====================================
   Pillar Details
   ==================================== */
.pillar-detail {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pillar-detail h3 {
    font-size: 1.6rem;
    color: #2c5aa0;
    margin-top: 0;
    margin-bottom: 10px;
}

.pillar-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.pillar-content h4 {
    font-size: 1.2rem;
    color: #4a7ab8;
    margin-top: 25px;
    margin-bottom: 15px;
}

.pillar-content ul {
    list-style: none;
    padding-left: 0;
}

.pillar-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.pillar-content li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

/* ====================================
   Month Details
   ==================================== */
.month-detail {
    background-color: #f8f9fa;
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 5px solid #667eea;
}

.month-detail h4 {
    color: #2c5aa0;
    margin-top: 0;
}

.month-detail ul {
    list-style: none;
    padding-left: 0;
}

.month-detail li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.month-detail li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* ====================================
   Table Responsive
   ==================================== */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.doc-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.doc-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

.doc-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.doc-table tbody tr:hover {
    background-color: #f8f9fa;
}

.doc-table tfoot {
    background-color: #f8f9fa;
    font-weight: 700;
}

/* ====================================
   Deliverables Grid
   ==================================== */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.deliverable-category {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.deliverable-category h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.deliverable-category ol {
    padding-left: 20px;
}

.deliverable-category li {
    padding: 5px 0;
    font-size: 0.95rem;
    color: #555;
}

/* ====================================
   Strength Grid
   ==================================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.strength-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #667eea;
}

.strength-card h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.strength-card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ====================================
   Timeline
   ==================================== */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.timeline-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.timeline-content h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

/* ====================================
   Navigation
   ==================================== */
.doc-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .document-title {
        font-size: 1.8rem;
    }

    .doc-heading {
        font-size: 1.6rem;
    }

    .toc {
        padding: 25px;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

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

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

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 0.85rem;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .doc-navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .document-title {
        font-size: 1.5rem;
    }

    .doc-heading {
        font-size: 1.4rem;
    }

    .pillar-detail {
        padding: 20px;
    }

    .highlight-box,
    .info-box,
    .result-box,
    .request-box {
        padding: 20px;
    }
}