/* ===== DAMAK SERTİFİKALAR - TAMAMEN BAĞIMSIZ CSS ===== */

/* Reset sadece sertifikalar için */
.damak-certificates-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ana Konteyner */
.damak-certificates-section {
    padding: 100px 0 120px;
    background-color: #f8f9fa;
    position: relative;
    overflow: visible;
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
}

.damak-cert-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* Ana Layout */
.damak-cert-main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    position: relative;
    overflow: visible;
}

/* Slider Alanı */
.damak-cert-slider-area {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
    width: 100%;
}

/* Bilgi Alanı */
.damak-cert-info-area {
    flex: 0 0 calc(40% - 50px);
    margin-top: -80px;
    text-align: right;
    position: relative;
    z-index: 5;
}

.damak-cert-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #e20613;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    text-align: right;
    line-height: 1.2;
    font-family: 'Poppins', Arial, sans-serif;
}

.damak-cert-description-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 20px 0;
    text-align: right;
    font-family: 'Poppins', Arial, sans-serif;
}

/* ========== SLIDER SİSTEMİ ========== */

/* Grid Container */
.damak-cert-grid-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Sertifika Kartları */
.damak-cert-single-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
    opacity: 1;
    cursor: pointer;
    /* Desktop: 3 kart */
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    width: calc(33.333% - 14px);
}

.damak-cert-single-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Sertifika Görseli */
.damak-cert-image-area {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    position: relative;
}

.damak-cert-image-area img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.damak-cert-single-card:hover .damak-cert-image-area img {
    transform: scale(1.05);
}

/* Sertifika İçerik */
.damak-cert-content-area {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.damak-cert-content-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

.damak-cert-content-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
    font-family: 'Poppins', Arial, sans-serif;
}

.damak-cert-single-card:hover .damak-cert-content-title {
    color: #e20613;
}

/* ========== NAVİGASYON ========== */

.damak-cert-navigation-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    margin-left: 90px;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.damak-cert-button-area {
    display: flex;
    gap: 15px;
}

/* Nav Butonları */
.damak-cert-prev-btn,
.damak-cert-next-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #e20613 0%, #c50000 100%);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(226, 6, 19, 0.3);
    margin: 10px;
    position: relative;
    outline: none;
}

/* Buton Hover */
.damak-cert-prev-btn:hover,
.damak-cert-next-btn:hover {
    background: linear-gradient(135deg, #c50000 0%, #a00000 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(226, 6, 19, 0.4);
}

/* Pasif Butonlar */
.damak-cert-prev-btn.disabled,
.damak-cert-next-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Göstergeler */
.damak-cert-indicators-area {
    display: flex;
    gap: 12px;
    align-items: center;
}

.damak-cert-single-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 5px;
    outline: none;
}

.damak-cert-single-indicator:hover {
    background-color: #95a5a6;
    transform: scale(1.1);
}

.damak-cert-single-indicator.damak-cert-active {
    background: linear-gradient(135deg, #e20613 0%, #c50000 100%);
    transform: scale(1.3);
    box-shadow: 0 3px 10px rgba(226, 6, 19, 0.4);
}

/* ========== MODAL SİSTEMİ ========== */

.damak-cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.damak-cert-modal.damak-cert-modal-active {
    opacity: 1;
    visibility: visible;
}

.damak-cert-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.damak-cert-modal.damak-cert-modal-active .damak-cert-modal-content {
    transform: scale(1);
}

.damak-cert-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e20613;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.damak-cert-modal-close:hover {
    background: #c50000;
    transform: scale(1.1);
}

.damak-cert-modal-body {
    padding: 30px;
    text-align: center;
}

.damak-cert-modal-body .damak-cert-image-area {
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.damak-cert-modal-body .damak-cert-content-title {
    font-size: 2rem;
    color: #e20613;
    margin-bottom: 15px;
}

.damak-cert-modal-body .damak-cert-content-desc {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* ========== RESPONSIVE TASARIM ========== */

/* Tablet - 2 Sertifika */
@media (max-width: 991px) and (min-width: 769px) {
    .damak-cert-single-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        width: calc(50% - 10px);
    }
}

/* Mobile - 1 Sertifika */
@media (max-width: 768px) {
    /* Container padding düzeltme */
    .damak-cert-container {
        padding: 0 15px !important;
    }
    
    /* Layout değişiklikleri */
    .damak-cert-main-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .damak-cert-slider-area,
    .damak-cert-info-area {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .damak-cert-slider-area {
        overflow: hidden !important;
    }
    
    .damak-cert-info-area {
        order: -1;
        margin-top: 0;
        text-align: center;
    }
    
    .damak-cert-main-title {
        font-size: 36px;
        text-align: center;
    }
    
    .damak-cert-description-text {
        text-align: center;
    }
    
    /* Grid container - mobil için özel */
    .damak-cert-grid-container {
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Kartlar - mobil viewport'a sığacak şekilde */
    .damak-cert-single-card {
        flex: 0 0 calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
        width: calc(100% - 10px) !important;
        min-width: calc(100% - 10px) !important;
        margin: 0 !important;
    }
    
    /* Mobil butonlar */
    .damak-cert-prev-btn,
    .damak-cert-next-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .damak-cert-prev-btn::before,
    .damak-cert-next-btn::before {
        font-size: 24px;
    }
    
    /* Mobil indicators */
    .damak-cert-single-indicator {
        width: 14px;
        height: 14px;
    }
    
    /* Modal responsive */
    .damak-cert-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .damak-cert-modal-body {
        padding: 20px;
    }
    
    .damak-cert-modal-body .damak-cert-image-area {
        height: 250px;
    }
    
    .damak-cert-modal-body .damak-cert-content-title {
        font-size: 1.5rem;
    }
    
    .damak-cert-modal-body .damak-cert-content-desc {
        font-size: 1rem;
    }
}

/* Çok Küçük Mobil */
@media (max-width: 576px) {
    .damak-certificates-section {
        padding: 60px 0 80px;
    }
    
    .damak-cert-container {
        padding: 0 15px;
    }
    
    .damak-cert-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .damak-cert-image-area {
        height: 150px;
        padding: 15px;
    }
    
    .damak-cert-content-area {
        padding: 15px;
    }
    
    .damak-cert-prev-btn,
    .damak-cert-next-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .damak-cert-prev-btn::before,
    .damak-cert-next-btn::before {
        font-size: 22px;
    }
}