/* --- TEMEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 1020px Sınırlayıcı */
.container {
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* --- NAVIGASYON (HEADER) --- */
.navbar {
    background-color: #1a1a7a;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a span {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Hamburger Menü (Mobilde çıkar) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* --- ANASAYFA HERO --- */
.hero-section {
    background-color: #4bc5f2;
    background-image: url('../img/halkalar-bg.png');
    background-repeat: no-repeat;
    background-position: start;
    background-size: cover;
    padding: 50px 0 110px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ALT SAYFALAR BAŞLIK */
.sayfalar-section {
    background-color: #fcb300;
    background-image: url('../img/halkalar-bg.png');
    background-repeat: no-repeat;
    background-position: start;
    background-size: cover;
    padding: 40px 0 90px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sayfalar-section h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sayfalar-section p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Beyaz Butonlar (Yazı koyu olmayacak) */
.btn-pill {
    background: white;
    color: #444 !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Mobilde başlığın taşmaması için */
@media screen and (max-width: 768px) {
    .hero-section h1 { font-size: 3rem; }
    .hero-section { padding: 80px 0 120px 0; }

    .sayfalar-section h1 { font-size: 3rem; }
    .sayfalar-section { padding: 80px 0 120px 0; }
}

/* --- EĞİTİM MATERYAL LİSTESİ STİLİ --- */
.material-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.material-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
}

.material-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -13px;
    font-size: 1.8rem;
    color: #000;
}

/* Mobilde liste hizası */
@media screen and (max-width: 768px) {
    .content-section { text-align: center; }
    .material-list {
        display: inline-block;
        text-align: left;
        width: 90%;
    }
}

/* --- SET SATIRLARI (TEK, TUTARLI TANIM) --- */
.set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;

    /* Satır arası çizgi */
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

.set-row:last-of-type {
    border-bottom: none;
}

/* Görsel sütunu */
.set-image { 
    flex: 1; 
    text-align: center; 
}
.set-image img {
    max-width: 450px;
    width: 100%;
    height: auto;
}

/* Metin sütunu (varsa) */
.set-info { flex: 1; }
.set-info h2 { font-family: 'Nunito', sans-serif; font-size: 1.8rem; margin-bottom: 15px; }
.set-info p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}

/* Set action butonları */
.btn-action {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-action:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-maya { background-color: #ffcc29; }
.btn-blue { background-color: #38b6ff; }
.btn-fun  { background-color: #ff3131; }
.btn-ornek{ background-color: #294de8; }

/* --- ALT GRADYAN KUTU --- */
.why-touch-section {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 100%);
    padding: 40px;
    border-radius: 30px;
    color: white;
    margin-bottom: 50px;
}

/* --- DROPDOWN (AÇILIR MENÜ) AYARLARI --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a7a;
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-top: 2px solid #4bc5f2;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: #2a2a9a;
    color: #4bc5f2;
}

/* --- MOBIL VE DAR EKRAN UYUMU --- */
@media screen and (max-width: 992px) {
    body { font-size: 16px; }

    .hamburger {
        display: flex !important;
        padding: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1a1a7a;
        padding: 20px 0;
        z-index: 1000;
        text-align: left;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li { width: 100%; padding: 0; }
    .nav-links a {
        font-size: 18px !important;
        padding: 18px 25px !important;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #151566;
        box-shadow: none;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .set-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
        padding-bottom: 40px;
    }

    .set-image img { max-width: 330px; }

    .btn-action {
        width: 80%;
        margin: 30px auto !important;
        display: block;
    }

    /* Mobilde buton boşluklarını azalt */
    .set-action .btn-action {
        margin: 10px auto !important;
        width: 85%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .set-action {
        gap: 0px !important;
        margin-top: 20px;
    }
}

/* --- DALGA VE DİĞER EFEKTLER --- */
.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 55px;
}

.wave-container .shape-fill {
    fill: #ffffff !important;
}

/* --- SET İÇERİK --- */
.set-icerik {
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.set-icerik:last-of-type {
    border-bottom: none;
}

.set-icerik {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

/* --- FOOTER TASARIMI --- */
.site-footer {
    background-color: #1a1a7a;
    color: #ffffff;
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.site-footer p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

@media screen and (max-width: 992px) {
    .site-footer {
        padding: 20px 10px;
    }
    .site-footer p {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* --- SAYFA (HAKKIMIZDA VB.)  STİLLERİ --- */
.page-content {
    padding: 40px 20px;
    min-height: 60vh;
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    flex: 1;
    font-family: 'Nunito', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-top: 10px;
    margin-bottom: 15px;
    margin-left: 10px;
    margin-right: 10px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.about-text p {
    font-size: 0.85rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 15px;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 400;
}

.mission-text {
    font-weight: 600 !important;
    color: #1a1a7a !important;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
        text-align: center;
    }
    .about-text p {
        font-size: 1.05rem;
        text-align: justify;
    }
}

/* --- İLETİŞİM SAYFASI --- */
.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-top: 30px;
}

.contact-details { flex: 1; }

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-visual {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.map-frame {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    height: 350px;
}

.map-frame iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.map-btn-container {
    text-align: center;
}

.info-item a {
    color: inherit;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--accent-cyan);
}

.contact-icon {
    display: inline-block;
    width: 30px;
    margin-right: 20px;
    color: #444;
    text-align: center;
}

.contact-icon-white {
    display: inline-block;
    width: 10px;
    margin-right: 20px;
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 992px) {
    .contact-layout {
        flex-direction: column;
        text-align: center;
    }

    .contact-details {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact-visual { width: 100%; }

    .map-btn-container {
        text-align: center;
        margin-top: 10px;
    }

    .btn-cyan { width: 70%; }
}

/* --- RESPONSIVE GALERİ (KIRPILMAYAN YAPI) --- */


/* --- GENEL GALERİ (Varsayılan: Yatay Dizilim) --- */
.gallery-grid {
    display: grid;
    /* 130px: Bir görselin minimum genişliğidir. Bu değer küçüldükçe yan yana daha fazla görsel sığar */
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    gap: 20px;
    padding: 20px;
}

/* --- DİKEY / DAR DİZİLİM İÇİN ÖZEL SINIF --- */
/* Eğer görsellerin dev gibi ve dikey (alt alta) durmasını istiyorsanız bu sınıfı ekleyin */
.gallery-vertical {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; 
    max-width: 400px; /* Görsellerin çok yayılmasını engellemek için */
    margin: 0 auto;
}

/* --- YATAY / ÇOKLU DİZİLİM İÇİN ÖZEL SINIF --- */
/* Eğer görsellerin küçük ve çok sayıda yan yana durmasını istiyorsanız */
.gallery-horizontal {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 30px;
}

.gallery-grid a {
    display: block;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-grid a:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* --- SET DETAYLARI LAYOUT (set-content / set-action) --- */
.set-content {
    flex: 0 0 70%;
    text-align: left;
}

.set-action {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* --- MOBİL UYUMLULUK (set-content & set-action) --- */
@media screen and (max-width: 992px) {
    .set-icerik {
        flex-direction: column;
        text-align: center;
    }

    .set-content, .set-action {
        flex: 0 0 100%;
        width: 100%;
    }

    .set-content { order: 1; }
    .set-action {
        order: 2;
        margin-top: 5px;
    }
}

/* SAYFA GALERİSİ */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
}

.gallery-inner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-inner-grid img {
    width: 100%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.pagination-footer {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 14px;
    color: #888;
}

.page-num { margin: 0 5px; cursor: pointer; }
.page-num.active { font-weight: bold; color: #333; }

.close-gallery {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px; cursor: pointer;
}

/* --- LIGHTBOX KESİN ÇÖZÜM PAKETİ --- */
.lb-outerContainer, .lb-dataContainer {
    overflow: visible !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-image: none !important;
    opacity: 1 !important;
    display: block !important;
    text-decoration: none !important;
}

.lb-nav a.lb-prev::before,
.lb-nav a.lb-next::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    z-index: 10001;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
}

.lb-nav a.lb-prev::before {
    content: '❮';
    left: -100px;
}

.lb-nav a.lb-next::before {
    content: '❯';
    right: -100px;
}

.lightboxOverlay { z-index: 99999 !important; }
.lightbox { z-index: 100000 !important; }

@media screen and (max-width: 1200px) {
    .lb-nav a.lb-prev::before { left: -60px; }
    .lb-nav a.lb-next::before { right: -60px; }
}

@media screen and (max-width: 768px) {
    .lb-nav a.lb-prev::before {
        left: 10px;
        font-size: 40px;
    }
    .lb-nav a.lb-next::before {
        right: 10px;
        font-size: 40px;
    }
}

/* --- AÇIKLAMA KUTULARI --- */
.digital-content-section {
    padding: 60px 20px;
    background-color: #fff;
}

.digital-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.digital-box, .digital-box-ful {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 280px;

    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.digital-box:last-of-type,
.digital-box-ful:last-of-type {
    margin-bottom: 0;
}

@media screen and (min-width: 1025px) {
    .digital-box:nth-last-child(-n+3) {
        border-bottom: none;
        margin-bottom: 0;
    }
}

.digital-title {
    font-family: 'Nunito', sans-serif;
    color: #3e64ae;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.digital-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-container {
    margin-top: auto;
    text-align: center;
    padding-top: 10px;
    width: 100%;
}

/* Hem btn-digital-ornek hem btn-digital-orange çalışsın */
.btn-digital-ornek,
.btn-digital-orange {
    display: inline-block;
    background-color: #3e64ae;
    color: #fff !important;
    padding: 8px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.btn-digital-ornek:hover,
.btn-digital-orange:hover {
    background-color: #3e64ae;
    transform: translateY(-2px);
}

/* --- TABLET VE MOBİL UYUMLULUK (HATA DÜZELTİLDİ: PARANTEZLER TAM) --- */
@media screen and (max-width: 1024px) {
    .digital-box, .digital-box-ful {
        flex: 0 0 calc(50% - 15px);
    }

    .digital-box:nth-last-child(-n+2) {
        border-bottom: none;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    .digital-box, .digital-box-ful {
        flex: 0 0 100%;
        border-bottom: 1px solid #dfdfdf;
        padding-bottom: 25px;
        margin-bottom: 25px;
        text-align: center;
    }

    .digital-box:last-child,
    .digital-box-ful:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .digital-title {
        text-align: center;
        min-height: 1em;
    }

    .digital-text {
        text-align: left;
    }

    .btn-container {
        text-align: center;
    }
}

/* --- GÖRSEL RESİM AYARLARI --- */
.image-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.centered-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- MEDYA ELEMANLARI (VİDEO & SES) --- */
.digital-media {
    margin-bottom: 20px;
    width: 100%;
}

.custom-video {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #000;
}

.audio-player-bg {
    background-color: #90cce4;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.audio-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

.custom-audio {
    width: 100%;
    height: 35px;
}

@media screen and (max-width: 768px) {
    .audio-player-bg {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}