/* Additional spacing fixes */
.section {
    padding: 5rem 0;  /* Reduced padding between sections */
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 3rem;  /* Reduced space after section headers */
}

/* Experience section specific fixes */
.experience-section {
    padding: 4rem 0;
    margin-bottom: 3rem; /* Reduced bottom margin */
}

.timeline-container {
    padding: 2rem 0;  /* Reduced padding around timeline */
    margin-bottom: 1rem; /* Added bottom margin */
}

.timeline-item {
    margin-bottom: 2.5rem;  /* Reduced space between timeline items */
    position: relative;
}

.timeline-card {
    margin-bottom: 2rem;  /* Reduced spacing between cards */
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--accent-primary);
}

.card-header {
    margin-bottom: 1rem;  /* Reduced space after card headers */
}

.card-body {
    padding: 0.5rem 0;
}

.card-responsibilities {
    padding-left: 1rem;
    margin: 0.75rem 0;
}

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

/* Blog section - reduced gap */
.blog-section {
    padding-top: 3rem;  /* Reduced extra padding to blog section */
    margin-top: 1rem;
}

.blog-card {
    margin-bottom: 3rem;  /* Increased space between blog cards */
}

.section-divider {
    margin-bottom: 3rem;  /* Increased space after section dividers */
}

/* Experience section specific fixes */
.experience-section .timeline-content {
    position: relative;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: -100%;
    width: 2px;
    background: var(--accent-primary);
    opacity: 0.3;
}

/* Blog section improvements */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.blog-image {
    position: relative;
    padding-top: 56.25%;  /* 16:9 Aspect ratio */
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
