/* ====================================================
   YAPALI - SATRANÇ BÖLÜMÜ (ÖZEL RENKLER & 4-3 DİZİLİM)
   ==================================================== */

/* Kendi Renk Kodlarımız Tanımlanıyor */
:root {
    --chess-light-blue: #0cacf0;
    --chess-dark-blue: #002378;
}

.yapali-chess-section {
    /* Yukarıdaki içerikle yapışmasını engellemek için üstten bol boşluk verdik */
    margin-top: 60px;
    padding: 120px 0;
    background-color: #f8f9fa; /* Gönderdiğin örnekteki gibi aydınlık zemin */
    position: relative;
    overflow: hidden;
}

/* Noktalı arka plan dokusu (Opsiyonel, tasarıma derinlik katar) */
.yapali-chess-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0, 35, 120, 0.03) 2px, transparent 2px);
    background-size: 30px 30px; z-index: 1; pointer-events: none;
}

.sc-container {
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px;
    display: grid; 
    grid-template-columns: 1fr 1.2fr; /* Sağ taraf galeri olduğu için biraz daha geniş */
    gap: 60px; 
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ====================================================
   SOL: İÇERİK VE İKON
   ==================================================== */
   
/* Satranç İkonu Animasyonu */
.sc-chess-icon {
    width: 55px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    /* Başlangıçta yukarıda durur */
    transform: translateY(-50px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); /* Yaylanma (bounce) efekti */
}

/* İçerik ekrana girince ikon yukarıdan düşer */
.reveal-left.active .sc-chess-icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* Metinlerden hemen sonra düşsün */
}

.sc-badge { 
    display: inline-block; font-size: 11px; font-weight: 800; color: #ffffff; 
    letter-spacing: 2px; margin-bottom: 25px; padding: 6px 16px;
    background: var(--chess-dark-blue); border-radius: 4px;
}

.sc-title { font-size: 3rem; font-weight: 900; color: #596275; line-height: 1.15; margin-bottom: 15px; letter-spacing: -1px; }
.sc-title .text-dark { color: var(--chess-dark-blue); }

.sc-lead { font-size: 1.3rem; font-weight: 800; color: var(--chess-light-blue); margin-bottom: 30px; }

.sc-desc { font-size: 1.05rem; line-height: 1.7; color: #4a5568; margin-bottom: 15px; }

/* En alttaki vurgulu metin (Sol tarafında açık mavi çizgi var) */
.sc-desc.font-bold { 
    font-weight: 700; 
    color: var(--chess-dark-blue); 
    margin-top: 30px; 
    border-left: 4px solid var(--chess-light-blue); 
    padding-left: 20px; 
}


/* ====================================================
   SAĞ: 7'Lİ DİZİLİM (ÜSTTE 4, ALTTA 3 ORTALI)
   ==================================================== */
.sc-flex-gallery {
    display: flex;
    flex-wrap: wrap; /* Sığmayanları alt satıra atar */
    justify-content: center; /* Alt satıra inen 3 resmi tam ortaya hizalar */
    gap: 20px; /* Resimler arası boşluk */
    width: 100%;
}

.sc-gallery-item {
    /* 100% genişlikten 3 adet boşluğu (3*20=60px) çıkarıp 4'e bölüyoruz. 
       Böylece tam olarak yan yana 4 resim sığar. */
    width: calc((100% - 60px) / 4);
    aspect-ratio: 3 / 4; /* Dik portre boyutu */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* Örnekteki gibi kartların altındaki kalın koyu mavi bant */
    border-bottom: 6px solid var(--chess-dark-blue);
    box-shadow: 0 10px 20px rgba(0, 35, 120, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.sc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover (Fareyle Üzerine Gelme) Efektleri */
.sc-gallery-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 35, 120, 0.15); 
    border-color: var(--chess-light-blue); /* Alttaki bant açık maviye döner */
}
.sc-gallery-item:hover img { 
    transform: scale(1.08); 
}

/* --- SCROLL ANİMASYONLARI --- */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left.active, .reveal-right.active { opacity: 1; transform: translateX(0); }


/* ====================================================
   MOBİL UYUM (≤1024px, ≤768px)
   ==================================================== */
@media (max-width: 1200px) {
    /* Orta boy ekranlarda 3'lü dizilim yapalım ki resimler çok küçülmesin */
    .sc-gallery-item { width: calc((100% - 40px) / 3); }
}

@media (max-width: 992px) {
    .sc-container { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .yapali-chess-section { padding: 80px 0; margin-top: 40px; }
    .sc-container { padding: 0 20px; }
    
    .sc-chess-icon { width: 45px; }
    .sc-title { font-size: 2.2rem; }
    .sc-lead { font-size: 1.15rem; }
    
    /* Mobilde resimler küçük kalmasın diye 2'li dizilim (yan yana 2 resim) */
    .sc-gallery-item { width: calc((100% - 20px) / 2); }
}

@media (max-width: 480px) {
    .sc-gallery-item { width: calc((100% - 10px) / 2); }
    .sc-flex-gallery { gap: 10px; }
}