/* =========================================
   VOM Lab - Research Page Styles
   ========================================= */

/* =========================================
   1. Research Topic Sections (Zig-Zag)
   ========================================= */
.research-topic {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* First topic in each tab - reduce top padding */
.research-topic:first-child {
    padding-top: 40px;
}

/* Even items: reverse layout (zig-zag effect) */
.research-topic:nth-child(even) {
    flex-direction: row-reverse;
}

.topic-content { 
    flex: 1; 
}

.topic-image { 
    flex: 1; 
    height: 400px; 
    background-color: #f8f9fa; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.topic-image img {
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    transition: transform 0.4s ease;
}

.topic-image:hover img { 
    transform: scale(1.03); 
}

.topic-num {
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--accent-color);
    margin-bottom: 12px; 
    display: block; 
    letter-spacing: 1px;
}

.topic-title { 
    font-size: 1.75rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.topic-desc { 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
    font-weight: 300; 
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

/* =========================================
   2. Pagination
   ========================================= */
.research-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 60px 0 80px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.page-num:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

.page-num.active {
    background: var(--accent-color);
    color: #fff;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 4px;
}

/* =========================================
   3. Responsive
   ========================================= */
@media (max-width: 900px) {
    .research-topic { 
        flex-direction: column !important; 
        gap: 40px; 
        padding: 60px 0; 
    }
    
    .topic-image { 
        width: 100%; 
        height: 300px; 
    }
    
    .topic-title { 
        font-size: 1.7rem; 
    }
    
    .topic-desc {
        font-size: 1rem;
    }
    
    .research-pagination {
        gap: 10px;
        padding: 40px 0 60px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .page-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .research-topic {
        padding: 40px 0;
    }
    
    .topic-image {
        height: 220px;
    }
    
    .topic-title {
        font-size: 1.4rem;
    }
    
    .research-pagination {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .page-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .page-num {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}