/* ==========================================================================
   PROJELER ARCHIVE STYLES
   ========================================================================== */

.mepa-proje-archive {
    padding: 60px 0;
}

/* Kategori Filtreleri - 3 Satırlı Yapı */
.mepa-proje-filters-wrapper {
    margin-bottom: 50px;
}

/* Satır 1: Ana Kategoriler */
.mepa-main-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mepa-filter-btn {
    padding: 12px 28px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mepa-filter-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
}

.mepa-filter-btn.active {
    background: var(--mepa-primary-color, #00a8e2);
    border-color: var(--mepa-primary-color, #00a8e2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 168, 226, 0.3);
}

/* Satır 2: Alt Kategoriler */
.mepa-sub-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mepa-sub-filter-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mepa-sub-filter-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #333;
}

.mepa-sub-filter-btn.active {
    background: var(--mepa-primary-color, #00a8e2);
    border-color: var(--mepa-primary-color, #00a8e2);
    color: #fff;
}

/* Satır 3: Sıralama (Sağda) */
.mepa-sorting-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.mepa-proje-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mepa-proje-sorting label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.mepa-sort-dropdown {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.mepa-sort-dropdown:hover {
    border-color: #ccc;
}

.mepa-sort-dropdown:focus {
    outline: none;
    border-color: var(--mepa-primary-color, #00a8e2);
    box-shadow: 0 0 0 3px rgba(0, 168, 226, 0.1);
}

/* 3'lü Proje Grid */
.mepa-proje-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Proje Item */
.mepa-proje-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mepa-proje-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mepa-proje-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mepa-proje-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.mepa-proje-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mepa-proje-item:hover .mepa-proje-image img {
    transform: scale(1.1);
}

.mepa-proje-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mepa-proje-item:hover .mepa-proje-overlay {
    opacity: 1;
}

.mepa-proje-kategori {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--mepa-primary-color, #00a8e2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    z-index: 2;
}

.mepa-proje-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    z-index: 1;
}

/* Placeholder */
.mepa-proje-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* No Project */
.mepa-no-proje {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mepa-no-proje p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   PROJE SINGLE STYLES
   ========================================================================== */

.mepa-proje-single {
    padding: 60px 0;
}

/* Override default container width for single project - REVERTED */
/* .mepa-proje-single .mepa-container {
    max-width: 95%;
    width: 1800px;
    margin: 0 auto;
} */

.mepa-proje-article {
    max-width: 1200px;
    margin: 0 auto;
}

/* Üst Layout: Sol Galeri - Sağ Açıklama */
.mepa-proje-top-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.mepa-proje-gallery-col {
    position: sticky;
    top: 30px;
}

.mepa-proje-description-col {
    padding-top: 0;
}

.mepa-proje-kategori-badge {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mepa-proje-short-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.mepa-proje-short-desc p {
    margin-bottom: 15px;
}

/* Alt Layout: İçerik + Sidebar */
.mepa-proje-bottom-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.mepa-proje-main-content {
    min-width: 0;
}

.mepa-proje-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mepa-primary-color, #00a8e2);
}

/* Proje Sidebar */
.mepa-proje-sidebar {
    position: sticky;
    top: 30px;
}

.mepa-sidebar-widget {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.mepa-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mepa-primary-color, #00a8e2);
}

.mepa-widget-content {
    font-size: 15px;
}

.mepa-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mepa-contact-item i {
    color: var(--mepa-primary-color, #00a8e2);
    font-size: 16px;
    width: 20px;
}

.mepa-contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mepa-contact-item a:hover {
    color: var(--mepa-primary-color, #00a8e2);
}

.mepa-sidebar-btn {
    display: block;
    text-align: center;
    background: var(--mepa-primary-color, #00a8e2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.mepa-sidebar-btn:hover {
    background: #0088c0;
    color: #fff;
}

.mepa-services-list,
.mepa-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mepa-services-list li,
.mepa-categories-list li {
    margin-bottom: 10px;
}

.mepa-services-list li a,
.mepa-categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mepa-services-list li a:hover,
.mepa-categories-list li a:hover {
    background: #fff;
    color: var(--mepa-primary-color, #00a8e2);
}

.mepa-categories-list .count {
    font-size: 13px;
    color: #888;
}

.mepa-sidebar-link {
    display: block;
    text-align: center;
    color: var(--mepa-primary-color, #00a8e2);
    font-weight: 500;
    text-decoration: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.mepa-sidebar-link:hover {
    text-decoration: underline;
}

.mepa-proje-kategori-badge span {
    padding: 6px 16px;
    background: var(--mepa-primary-color, #00a8e2);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

/* Galeri */
.mepa-proje-gallery {
    margin-bottom: 40px;
}

.mepa-gallery-main {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.mepa-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.mepa-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.mepa-thumb-item {
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.mepa-thumb-item:hover,
.mepa-thumb-item.active {
    opacity: 1;
}

.mepa-thumb-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.mepa-proje-featured {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.mepa-proje-featured img {
    width: 100%;
    height: auto;
    display: block;
}

/* Proje Content */
.mepa-proje-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 60px;
}

.mepa-proje-content h2,
.mepa-proje-content h3,
.mepa-proje-content h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.mepa-proje-content p {
    margin-bottom: 20px;
}

/* Diger Projeler */
.mepa-proje-navigation {
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.mepa-proje-navigation h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.mepa-proje-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mepa-proje-nav-item {
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mepa-proje-nav-item:hover {
    transform: translateY(-5px);
}

.mepa-nav-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.mepa-nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mepa-nav-title {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .mepa-proje-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .mepa-proje-top-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mepa-proje-bottom-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mepa-proje-gallery-col,
    .mepa-proje-sidebar {
        position: static;
    }

    .mepa-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .mepa-proje-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Filter Layout Responsive */
    .mepa-sub-category-filters {
        justify-content: center;
    }

    .mepa-sorting-row {
        justify-content: center;
    }

    /* Filter Layout */
    .mepa-sub-filters-row {
        flex-direction: column;
        gap: 15px;
    }

    .mepa-proje-sorting {
        width: 100%;
        justify-content: space-between;
    }

    .mepa-sort-dropdown {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .mepa-proje-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mepa-proje-title {
        font-size: 16px;
        padding: 15px;
    }

    .mepa-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .mepa-proje-nav-grid {
        grid-template-columns: 1fr;
    }

    .mepa-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}


/* ==========================================================================
   PROJE ADIMLARI / SEKMELER
   ========================================================================== */

.mepa-proje-steps-section {
    margin: 0 0 30px 0;
    padding: 0;
    border-top: none;
    border-bottom: none;
}

/* Hizmet sayfasında steps section için özel stil */
.mepa-hizmet-steps-section {
    margin-top: 0;
    padding-top: 0;
}

/* Sekme Basliklari */
.mepa-steps-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mepa-step-tab {
    padding: 12px 28px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.mepa-step-tab:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

.mepa-step-tab.active {
    background: var(--mepa-primary-color, #00a8e2);
    border-color: var(--mepa-primary-color, #00a8e2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 168, 226, 0.3);
}

/* Sekme Icerikleri */
.mepa-steps-content {
    min-height: 200px;
}

.mepa-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mepa-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adim Galerisi */
.mepa-step-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mepa-step-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mepa-step-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mepa-step-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mepa-step-gallery-item:hover img {
    transform: scale(1.1);
}

.mepa-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mepa-step-gallery-item:hover .mepa-gallery-overlay {
    opacity: 1;
}

.mepa-gallery-overlay i {
    color: #fff;
    font-size: 32px;
}

/* Gorsel Yok Mesaji */
.mepa-no-images {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-size: 16px;
}

/* "Tümü" Sekmesi Slider */
.mepa-all-gallery-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.mepa-all-gallery-slider {
    overflow: hidden;
    width: 100%;
}

.mepa-all-gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mepa-all-gallery-item {
    flex-shrink: 0;
    width: 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mepa-all-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mepa-all-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mepa-all-gallery-item:hover img {
    transform: scale(1.1);
}

.mepa-all-slider-prev,
.mepa-all-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--mepa-primary-color, #00a8e2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mepa-all-slider-prev:hover,
.mepa-all-slider-next:hover {
    background: #0088c0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mepa-all-slider-prev {
    left: 0;
}

.mepa-all-slider-next {
    right: 0;
}

.mepa-all-slider-prev:disabled,
.mepa-all-slider-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mepa-all-slider-prev i,
.mepa-all-slider-next i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .mepa-step-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mepa-steps-tabs {
        justify-content: center;
    }

    .mepa-step-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .mepa-step-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mepa-steps-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .mepa-step-tab {
        text-align: center;
        border-radius: 8px;
    }

    .mepa-proje-steps-section {
        margin: 30px 0;
        padding: 30px 0;
    }
}