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

@font-face {
    font-family: 'DynaPuff';
    src: url('../fonts/DynaPuff.ttf');
}
:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --secondary: #1565c0;
    --accent: #00b0ff;
    --success: #00c853;
    --warning: #ff9100;
    --danger: #d50000;
    --light: #f5f7ff;
    --gray: #78909c;
    --dark: #263238;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

/* Body styling */
body.main-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    text-align: right;
    direction: rtl;
}

/* Background image slider */
.main-body .background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Individual slides */
.main-body .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Active slide */
.main-body .slide.active {
    opacity: 1;
}

/* Dark overlay for better text visibility */
.main-body .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Vertical text on the left side */
.main-body .vertical-text {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'DynaPuff';
    white-space: nowrap;
}

/* Main content area */
.main-body .content {
    min-height: 100vh;
    padding: 80px 100px 80px 150px;
    position: relative;
    z-index: 1;
}

/* Main title styling */
.main-body .main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Content box with glass effect */
.main-body .content-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    position: relative;
}
.main-body .content-box .btn-prev {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 25px;
    color: #fff;
    transition: all 0.5s ease-in-out;
}
.main-body .content-box .btn-prev:hover {
    color: #eee;
}

/* Content box headings */
.main-body .content-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

/* Content box paragraphs */
.main-body .content-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Content box lists */
.main-body .content-box ul {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Content box list items */
.main-body .content-box li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Call to action button */
.main-body .cta-button {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.main-body .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
}

.projects-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Media query for tablets */
@media (max-width: 1440px) {
    .projects-box img {
        height: 350px;
    }      
}
@media (max-width: 992px) {
    .main-body .vertical-text {
        font-size: 3.5rem;
        left: 15px;
    }
    
    .main-body .content {
        padding: 60px 30px 60px 80px;
    }
    
    .main-body .main-title {
        font-size: 2.8rem;
    }
    
    .main-body .content-box h2 {
        font-size: 1.2rem;
    }
}

/* Media query for small tablets and large phones */
@media (max-width: 768px) {
    .main-body .vertical-text {
        font-size: 2.8rem;
        left: 10px;
        letter-spacing: 5px;
    }
    
    .main-body .content {
        padding: 50px 20px 50px 60px;
    }
    
    .main-body .main-title {
        font-size: 2.2rem;
    }
    
    .main-body .content-box {
        padding: 1.8rem;
    }
}

/* Media query for mobile phones */
@media (max-width: 576px) {
    .main-body .vertical-text {
        display: none;
    }
    
    .main-body .content {
        padding: 40px 20px;
    }
    
    .main-body .main-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 450px) {
    .projects-box img {
        height: 275px;
    }      
}

/* Main tree area - Contains the entire organizational chart */
.tree-area {
    padding: 20px 15px;
    position: relative;
    overflow: auto;
}

/* Tree container - Wrapper for the tree structure */
.tree-container {
    position: relative;
    margin: 0 auto;
    width: fit-content;
    min-width: 100%;
    padding: 20px 0;
}

/* ============================================ */
/* TREE BOX CHILD: Tree levels - Organizational hierarchy levels */
/* ============================================ */
.tree-box .tree-level {
    gap: 15px;
    position: relative;
    padding: 0 10px;
    text-align: center;
}
.tree-box .tree-level:not(:last-child) {
    margin-bottom: 40px;
}

/* Remove margin from last level */
.tree-box .tree-level:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* TREE BOX CHILD: Tree node - Individual person/department node */
/* ============================================ */
.tree-box .tree-node {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* ============================================ */
/* TREE BOX CHILD: Node card - Main card design for each node */
/* ============================================ */
.tree-box .node-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 200px;
    position: relative;
    overflow: hidden;
}

/* Top border gradient */
.tree-box .node-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

/* Hover effect for node card */
.tree-box .node-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* Active state for selected node */
.tree-box .node-card.active {
    border-color: var(--success);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1), 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* TREE BOX CHILD: Node header - Top section of node card */
/* ============================================ */
.tree-box .node-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ============================================ */
/* TREE BOX CHILD: Node badge - Circular badge with initials/icon */
/* ============================================ */
.tree-box .node-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.tree-box .node-badge img {
    object-fit: cover;
}

/* Badge scale effect on node hover */
.tree-box .tree-node:hover .node-badge {
    transform: scale(1.05);
}

/* ============================================ */
/* TREE BOX CHILD: Level-specific badge colors */
/* ============================================ */
.tree-box .level-0 .node-badge {
    background: linear-gradient(135deg, #061510, #1a382c);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.tree-box .level-1 .node-badge {
    background: linear-gradient(135deg, #fceadc, #eeddc9);
    color: #1a382c;
}

.tree-box .level-2 .node-badge {
    background: linear-gradient(135deg, #061510, #1a382c);
}

.tree-box .level-3 .node-badge {
    background: linear-gradient(135deg, #fceadc, #eeddc9);
    color: #1a382c;
}

/* ============================================ */
/* TREE BOX CHILD: Node info - Name and title section */
/* ============================================ */
.tree-box .node-info {
    text-align: right;
    min-width: 0;
}

/* Employee/department name */
.tree-box .node-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.3;
    text-overflow: ellipsis;
}

/* Additional metadata (position/department) */
.tree-box .node-meta {
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================ */
/* TREE BOX CHILD: Node body - Main content area of node */
/* ============================================ */
.tree-box .node-body {
    padding: 10px 0;
}

.tree-box .node-body .manager-box {
    text-align: center;
    padding: 5px 10px;
    border-radius: 10px;
    background: #1a382c;
}
.tree-box .node-body .manager-box small {
    color: #aaa;
}

/* ============================================ */
/* TREE BOX CHILD: Node stats - Statistics section */
/* ============================================ */
.tree-box .node-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* Individual statistic item */
.tree-box .node-stat {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Stat hover effect */
.tree-box .node-stat:hover {
    transform: translateY(-2px);
}

/* Tasks statistics style */
.tree-box .node-stat.tasks {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #ff6f00;
    border: 1px solid #ffd54f;
}

/* Employees statistics style */
.tree-box .node-stat.employees {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border: 1px solid #81c784;
}

/* Stat icon styling */
.tree-box .stat-icon {
    font-size: 0.9rem;
}

/* Stat value (number) styling */
.tree-box .stat-value {
    font-size: 1rem;
    font-weight: 800;
}

/* ============================================ */
/* TREE BOX CHILD: Node location - Office/location info */
/* ============================================ */
.tree-box .node-location {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    background: #f8f9ff;
    border-radius: 5px;
    border: 1px solid #e8eaff;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    height: 100%;
}

.employee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.employee-card:hover .card-img-top {
    transform: scale(1.05);
}

.employee-card .card-body {
    padding: 1.5rem;
}

.employee-name {
    color: #000;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.employee-title {
    color: var(--primary) !important;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.employee-department {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary) !important;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.employee-info {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.employee-info i {
    color: var(--primary) !important;
    width: 20px;
    margin-left: 8px;
}

/* ============================================ */
/* Side Panel */
/* ============================================ */

.details-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.details-panel .panel-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
}

.details-panel .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-panel .close-btn:hover {
    background: #f3f4f6;
    color: #ef4444;
}

.details-panel .detail-section {
    margin-bottom: 24px;
}

.details-panel .detail-section h4 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-panel .detail-section h4 i {
    color: #3b82f6;
}

.details-panel .section-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: var(--radius);
    border-right: 4px solid #3b82f6;
    max-width: 300px;
    margin: 0 auto 20px;
}

.details-panel .section-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.details-panel .section-icon img {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
}

.details-panel .section-details h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 5px;
}

.details-panel .section-meta {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.details-panel .tasks-list, .details-panel .employees-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.details-panel .task-item {
    color: #000;
}
.details-panel .tasks-box {
    color: #000 !important;
}
.details-panel .tasks-box.main-box {
    color: #fff !important;
    margin: 20px 0;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #061510, #1a382c);
}
.details-panel .tasks-box i {
    color: #d50000 !important;
}
.details-panel .tasks-box ul {
    margin-top: 10px;
    list-style-type: square;
    margin-bottom: 0;
}
.details-panel .tasks-box ul li {
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 0;
    font-size: 16px;
}
.details-panel .tasks-box.main-box ul li {
    color: #f7f7f7;
} 
.details-panel .tasks-box.custom-box {
    padding: 10px;
    background: #fceadc;
}
.details-panel .employee-item .tasks-box {
    margin-top: 15px;
}
.details-panel .employee-item .tasks-box ul {
    padding: 0;
    padding-right: 30px;
    margin-bottom: 0;
    background: transparent !important;
}
.details-panel .task-item, .details-panel .employee-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.details-panel .task-item:hover, .details-panel .employee-item:hover {
    transform: translateX(-5px);
    background: #f3f4f6;
}

.details-panel .task-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.details-panel .task-item.manager,
.details-panel .employee-item.manager {
    border-color: #065f46;
}
.details-panel .employee-item.manager {
    background: #d1fae5 !important;
}
.details-panel .status-manager {
    background: #065f46 !important;
    color: #d1fae5 !important;
}

.details-panel .task-item.assistant,
.details-panel .employee-item.assistant {
    border-color: #92400e;
}
.details-panel .employee-item.assistant {
    background: #fef3c7 !important;
}
.details-panel .status-assistant {
    background: #92400e !important;
    color: #fef3c7 !important;
}

.details-panel .task-item.employee,
.details-panel .employee-item.employee {
    border-color: #6b7280;
}
.details-panel .employee-item.employee {
    background: #f3f4f6 !important;
}
.details-panel .status-employee {
    background: #6b7280 !important;
    color: #f3f4f6 !important;
}

.details-panel .task-item.supervisor,
.details-panel .employee-item.supervisor {
    border-color: #1a237e;
}
.details-panel .employee-item.supervisor {
    background: #a0b7e5 !important;
}
.details-panel .status-supervisor {
    background: #1a237e !important;
    color: #a0b7e5 !important;
}

.details-panel .employee-profile .employee-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.details-panel .employee-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.details-panel .employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.details-panel .employee-info h5 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 3px;
}

.details-panel .employee-info p {
    font-size: 0.85rem;
    color: #4b5563;
}

.details-panel .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.details-panel .stat-card {
    padding: 15px;
    background: #f9fafb;
    border-radius: var(--radius);
    text-align: center;
    border-top: 3px solid #3b82f6;
}

.details-panel .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 5px;
}

.details-panel .stat-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.details-panel .demo-hint {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #f9fafb;
    border-radius: var(--radius);
    color: #4b5563;
    font-size: 0.9rem;
}

.details-panel .employee-info,
.details-panel .employee-info p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    
    .details-panel.active {
        right: 10px;
    }
}

@media (max-width: 480px) {
    
    .details-panel .stats-grid {
        grid-template-columns: 1fr;
    }
}
.emp-details-info .info-box label {
    color: #eee;
}
.emp-details-info .info-box label i {
    color: #ffd54f;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-box .timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #4a6491;
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 10px;
}

.timeline-box .timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.timeline-box .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-box .timeline-item:nth-child(even) {
    flex-direction: row;
}

.timeline-box .timeline-content {
    width: 45%;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-box .timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-box .timeline-date {
    width: 10%;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
    padding: 10px;
}

.timeline-box .event-icon {
    width: 60px;
    height: 60px;
    background-color: #4a6491;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.timeline-box .timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.timeline-box .timeline-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.timeline-box .event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.timeline-box .tag {
    background-color: #eef5ff;
    color: #4a6491;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-box .important .timeline-content {
    border-right: 5px solid #e74c3c;
}

.timeline-box .important .event-icon {
    background-color: #e74c3c;
}

.timeline-box .timeline-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.timeline-box .control-btn {
    padding: 12px 25px;
    background-color: #4a6491;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-box .control-btn:hover {
    background-color: #2c3e50;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .timeline-box .timeline::before {
        right: 30px;
        transform: none;
    }
    
    .timeline-box .timeline-item, 
    .timeline-box .timeline-item:nth-child(odd), 
    .timeline-box .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .timeline-box .timeline-date {
        width: 20%;
        text-align: right;
        padding-right: 40px;
    }
    
    .timeline-box .timeline-content {
        width: 70%;
        margin-right: 60px;
    }
    
    .timeline-box .timeline-item::after {
        right: 30px;
        transform: translateX(50%) translateY(-50%);
    }
    
    .timeline-box .timeline-item:hover::after {
        transform: translateX(50%) translateY(-50%) scale(1.2);
    }
}

@media (max-width: 768px) {
    .timeline-box .timeline-date {
        width: 100%;
        text-align: center;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .timeline-box .timeline-content {
        width: 90%;
        margin: 0 auto;
    }
    
    .timeline-box .timeline-item {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .timeline-box .timeline-item::after {
        top: 0;
        right: 50%;
        transform: translateX(50%) translateY(-50%);
    }
    
    .timeline-box .timeline-item:hover::after {
        transform: translateX(50%) translateY(-50%) scale(1.2);
    }
}