/* ============================================
   MODERN PAGES THEME
   Elegant • Minimalist • Consistent
   ============================================ */

/* Page Container */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    padding: 120px 0 80px 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.page-icon i {
    color: white;
    font-size: 2.5rem;
}

.page-title {
    color: #212529;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Cards */
.content-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Timeline Layout */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    flex: 1;
    max-width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    padding-left: 3rem;
    text-align: left;
}

/* Card Styles */
.item-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-icon i {
    color: white;
    font-size: 1.2rem;
}

.item-title {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.item-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-badge {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
}

.meta-badge.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}

.item-description {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Image Styles */
.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.item-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px dashed #dee2e6;
}

.image-placeholder i {
    color: #adb5bd;
    font-size: 3rem;
}

/* Filter Section */
.filter-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.filter-title {
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-form .form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.filter-form .form-control,
.filter-form .form-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    background: #ffffff;
    color: #212529;
    transition: all 0.2s ease;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.filter-form .form-control::placeholder {
    color: #adb5bd;
}

.filter-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    color: #adb5bd;
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-title {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-text {
    color: #6c757d;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination .page-link {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 6px;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: transparent;
    color: white;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Masonry Layout for Projects/Certificates */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    column-fill: balance;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 2;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 100px 0 60px 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        max-width: 100%;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .masonry-grid {
        column-count: 1;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .item-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .item-card {
        padding: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special Styles for Different Pages */
.biodata-section .page-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.biodata-section .item-card {
    border-left: 4px solid #3b82f6;
}

.activities-section .page-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activities-section .item-card {
    border-left: 4px solid #10b981;
}

.activities-section .item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.education-section .page-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.education-section .item-card {
    border-left: 4px solid #f59e0b;
}

.education-section .item-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.work-section .page-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.work-section .item-card {
    border-left: 4px solid #ef4444;
}

.work-section .item-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.projects-section .page-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.projects-section .item-card {
    border-left: 4px solid #8b5cf6;
}

.projects-section .item-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.certificates-section .page-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.certificates-section .item-card {
    border-left: 4px solid #06b6d4;
}

.certificates-section .item-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.training-section .page-icon {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.training-section .item-card {
    border-left: 4px solid #84cc16;
}

.training-section .item-icon {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.training-section .timeline-dot {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.training-section .timeline-line {
    background: linear-gradient(to bottom, #84cc16, #65a30d);
}