/* =========================================
   1. Reset & Base Styles (Variables are in common.css)
   ========================================= */
body {
    font-family: 'Microsoft JhengHei', 'Segoe UI', Roboto, sans-serif;
    margin: 20px;
    background: var(--primary-gradient);
    color: var(--text-main);
    min-height: 100vh;
}

/* =========================================
   2. Layout & Typography
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 800;
}

h2 {
    color: var(--text-secondary);
    border-bottom: 3px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 700;
}

h3 {
    color: var(--text-muted);
    margin-top: 20px;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.important {
    color: var(--accent-red);
    font-weight: bold;
}

/* =========================================
   3. Components: Tables & Schedule
   ========================================= */
.week-schedule {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
}

th,
td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: center;
    font-size: 15px;
}

th {
    background-color: var(--accent-blue);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover td {
    background-color: #f1f2f6;
}

/* Subject Colors */
.subject-computer {
    background-color: var(--subj-computer);
}

.subject-programming {
    background-color: var(--subj-programming);
}

.subject-network {
    background-color: var(--subj-network);
}

.subject-management {
    background-color: var(--subj-management);
}

.subject-english {
    background-color: var(--subj-english);
}

.subject-review {
    background-color: var(--subj-review);
}

.subject-rest {
    background-color: var(--subj-rest);
}

.subject-gym {
    background-color: var(--subj-gym);
}

.subject-law {
    background-color: var(--subj-law);
}

/* Special Practice Styles */
.subject-essay {
    background-color: var(--task-essay-bg);
    border-left: 4px solid var(--task-essay-border);
}

.subject-practice {
    background-color: var(--task-practice-bg);
    border-left: 4px solid var(--task-practice-border);
}

.subject-notion {
    background-color: var(--task-notion-bg);
    border-left: 4px solid var(--task-notion-border);
}

/* Progress Table Specifics */
.progress-table {
    margin: 20px 0;
}

.progress-table th {
    background-color: var(--accent-green);
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =========================================
   4. Components: Cards & Dashboard
   ========================================= */

/* Current Activity Card */
.current-activity-container {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 30px;
}

.current-activity {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-glow);
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    backdrop-filter: blur(10px);
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
}

.date-display {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weekday {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.date-number {
    display: block;
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1;
    margin: 5px 0;
}

.month-year {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
}

.current-time {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.now-activity,
.next-activity {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.icon {
    font-size: 24px;
}

.label {
    font-size: 14px;
    opacity: 0.9;
    min-width: 80px;
}

.activity-name {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.time-until {
    font-size: 14px;
    opacity: 0.9;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Stat Cards */
.overall-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Monitor Card */
.monitor-card-container {
    margin: 40px 0 20px;
}

.monitor-card {
    background: var(--primary-gradient);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.monitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.monitor-card h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.monitor-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-size: 1.2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.monitor-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1em;
    transition: var(--transition-normal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.monitor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.monitor-tags {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.monitor-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   5. Components: Navigation & Tabs
   ========================================= */
.timeline-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.month-tab-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-normal);
    color: #666;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.month-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.month-tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px) scale(1.05);
}

.month-tab-btn.active::after {
    content: '✓';
    margin-left: 8px;
    font-size: 12px;
}

/* Standard Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 12px 25px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    transition: var(--transition-fast);
    color: #666;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: var(--accent-blue);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* =========================================
   6. Components: Month Cards & Tasks
   ========================================= */
.month-card-container {
    position: relative;
    min-height: 400px;
    padding: 10px 0;
}

.month-card {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: white;
    background-clip: padding-box;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.month-card.active {
    display: block;
}

.month-card h3 {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 25px;
    margin: 0;
    border-radius: 13px 13px 0 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.month-icon {
    font-size: 1.5em;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.month-date {
    font-size: 0.75em;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.month-card .tips-content {
    max-height: none !important;
    overflow: visible !important;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 15px 15px;
    padding: 25px;
}

/* Task Categories */
.task-category {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 3px 10px rgba(245, 87, 108, 0.3);
}

.category-icon {
    font-size: 1.3em;
}

/* Task Grid */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.task-card:hover::before {
    opacity: 1;
}

/* Task Card States */
.task-card.completed {
    background: var(--status-completed-bg);
    border-color: var(--status-completed-border);
}

.task-card.completed::before {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    opacity: 1;
}

.task-card.in-progress {
    background: var(--status-progress-bg);
    border-color: var(--status-progress-border);
}

.task-card.in-progress::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
    opacity: 1;
}

.task-card.pending {
    background: var(--status-pending-bg);
}

.task-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.task-text {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

.task-text small {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    color: #666;
    margin-top: 8px;
}

/* =========================================
   7. Components: Milestones & Progress
   ========================================= */
.milestone-list {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.milestone-list::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

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

.milestone-marker {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 0 4px white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.milestone-item.completed {
    background: linear-gradient(to right, #f0f9f0, white);
    border: 1px solid #e8f5e9;
}

.milestone-item.completed .milestone-marker {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

/* Progress Bars */
.progress-bar-mini {
    width: 150px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-fill-mini::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* =========================================
   8. Components: Subject Details (Collapsible)
   ========================================= */
.gaokao-subject-card {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.collapse-btn {
    width: 100%;
    padding: 18px 25px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.collapse-btn:hover {
    background: #e9ecef;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-badge[data-rate="low"] {
    background: var(--rate-low-bg);
}

.progress-badge[data-rate="medium"] {
    background: var(--rate-medium-bg);
}

.progress-badge[data-rate="high"] {
    background: var(--header-gradient);
}

.progress-badge[data-rate="complete"] {
    background: var(--rate-complete-bg);
}

.progress-percent {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

.collapse-arrow {
    transition: transform 0.3s ease;
}

.collapse-arrow.rotated {
    transform: rotate(180deg);
}

.collapse-content {
    padding: 25px;
    background: white;
    border-top: 1px solid #eee;
    display: none;
}

.collapse-content.active {
    display: block;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.lesson-item:hover {
    background: #f8f9fa;
}

.lesson-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.lesson-item label {
    cursor: pointer;
    user-select: none;
}

.lesson-item input[type="checkbox"]:checked+label {
    text-decoration: line-through;
    color: #aaa;
}

/* =========================================
   9. Utilities & Animations
   ========================================= */
.note {
    background-color: #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #fdcb6e;
}

.stage-description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-blue);
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#backToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =========================================
   10. Media Queries (Consolidated)
   ========================================= */
@media (max-width: 768px) {
    body {
        margin: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
        margin-top: 30px;
    }

    /* Current Activity */
    .current-activity {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .time-info {
        min-width: auto;
    }

    .date-display {
        display: inline-block;
        padding: 10px 20px;
    }

    .date-number {
        font-size: 2.2em;
    }

    .activity-info {
        align-items: center;
    }

    .now-activity,
    .next-activity {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .time-until {
        margin-left: 0;
        margin-top: 5px;
    }

    /* Tabs & Buttons */
    .timeline-tabs {
        gap: 8px;
    }

    .month-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Cards */
    .month-card h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .month-date {
        align-self: flex-start;
    }

    /* Monitor Card */
    .monitor-card {
        padding: 25px;
    }

    .monitor-card h3 {
        font-size: 1.5em;
    }

    .monitor-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }

    /* Tables & Grids */
    .pdca-flow {
        grid-template-columns: 1fr;
    }

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

    /* Misc */
    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-badge {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media print {
    body {
        margin-bottom: 20px;
        border-left: 4px solid var(--accent-blue);
    }

    #backToTopBtn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 99;
        font-size: 20px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 16px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }

    #backToTopBtn.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #backToTopBtn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }
}

/* =========================================
   10. Media Queries (Consolidated)
   ========================================= */
@media (max-width: 768px) {
    body {
        margin: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
        margin-top: 30px;
    }

    /* Current Activity */
    .current-activity {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .time-info {
        min-width: auto;
    }

    .date-display {
        display: inline-block;
        padding: 10px 20px;
    }

    .date-number {
        font-size: 2.2em;
    }

    .activity-info {
        align-items: center;
    }

    .now-activity,
    .next-activity {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .time-until {
        margin-left: 0;
        margin-top: 5px;
    }

    /* Tabs & Buttons */
    .timeline-tabs {
        gap: 8px;
    }

    .month-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Cards */
    .month-card h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .month-date {
        align-self: flex-start;
    }

    /* Monitor Card */
    .monitor-card {
        padding: 25px;
    }

    .monitor-card h3 {
        font-size: 1.5em;
    }

    .monitor-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }

    /* Tables & Grids */
    .pdca-flow {
        grid-template-columns: 1fr;
    }

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

    /* Misc */
    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-badge {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media print {
    body {
        margin: 0;
        background: white;
    }

    .container {
        box-shadow: none;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .current-activity-container,
    #backToTopBtn,
    .timeline-tabs {
        display: none;
    }
}

/* Strategic Timeline Styles */
.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
}

.timeline-phase {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.95));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.timeline-phase.phase-2 .phase-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timeline-phase.phase-3 .phase-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.phase-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-title h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.phase-title span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.timeline-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 230, 230, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 1.25rem;
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section p {
    margin: 0;
    color: #212529;
}

.card-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.card-section li {
    margin-bottom: 0.25rem;
}

.highlight {
    body {
        margin: 0;
        background: white;
    }

    .container {
        box-shadow: none;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .current-activity-container,
    #backToTopBtn,
    .timeline-tabs {
        display: none;
    }
}

/* Strategic Timeline Styles */
.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
}

.timeline-phase {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.95));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.timeline-phase.phase-2 .phase-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timeline-phase.phase-3 .phase-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.phase-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-title h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.phase-title span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.timeline-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 230, 230, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 1.25rem;
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section p {
    margin: 0;
    color: #212529;
}

.card-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.card-section li {
    margin-bottom: 0.25rem;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
    background: linear-gradient(120deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Strategic Timeline Container */
.strategic-timeline-container {
    position: relative;
    min-height: 400px;
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.timeline-phase.phase-2 .phase-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timeline-phase.phase-3 .phase-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.phase-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-title h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.phase-title span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.timeline-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 230, 230, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 1.25rem;
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section p {
    margin: 0;
    color: #212529;
}

.card-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.card-section li {
    margin-bottom: 0.25rem;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
    background: linear-gradient(120deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Strategic Timeline Container */
.strategic-timeline-container {
    position: relative;
    min-height: 400px;
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
}

/* Timeline Phase Toggle */
.timeline-phase {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.timeline-phase.phase-2 .phase-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timeline-phase.phase-3 .phase-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.phase-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-title h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.phase-title span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.timeline-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 230, 230, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 1.25rem;
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section p {
    margin: 0;
    color: #212529;
}

.card-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.card-section li {
    margin-bottom: 0.25rem;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
    background: linear-gradient(120deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Strategic Timeline Container */
.strategic-timeline-container {
    position: relative;
    min-height: 400px;
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
}

/* Timeline Phase Toggle */
.timeline-phase {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.timeline-phase.phase-2 .phase-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timeline-phase.phase-3 .phase-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.phase-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phase-title h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.phase-title span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.timeline-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(230, 230, 230, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 1.25rem;
}

.card-section {
    margin-bottom: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section p {
    margin: 0;
    color: #212529;
}

.card-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.card-section li {
    margin-bottom: 0.25rem;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
    background: linear-gradient(120deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Strategic Timeline Container */
.strategic-timeline-container {
    position: relative;
    min-height: 400px;
}

.strategic-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
    position: relative;
}

/* Timeline Phase Toggle */
.timeline-phase.active {
    display: block;
}

.milestone-item {
    color: var(--text-main);
}