/* ---------------------------------------
   Genel Ayarlar ve Temel Stiller
---------------------------------------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Bootstrap Carousel içindeki img boyutu (geniş kullanım) */
.carousel-inner img {
    width: 100%;
    object-fit: cover;
}

/* Margin-top: 40px veren basit yardımcı sınıf */
.mt-40 {
    margin-top: 40px;
}

/* Koyu Arka Planlı Kutu - "dark-background" sınıfı */
.dark-background {
    background-color: #2f3f56;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center; 
    margin-top: 20px; 
}

/* Resmin responsive olması için */
.responsive-img {
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------
   Slider (üst kısım) örnek
---------------------------------------- */
.slider {
    background-color: #004080;
    color: #fff;
    text-align: center;
}
.slider .slider-title {
    font-size: 2em;
    margin-bottom: 10px;
}

/* ---------------------------------------
   .container (genişlik sınırlaması)
---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------------------------------
   Content Header (Duyurular & Etkinlikler)
---------------------------------------- */
.content-header {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}
.content-header .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}
.content-header .section-title button {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.content-header .section-title button:hover {
    background-color: #0056b3;
}

.content-area {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}
.content-column {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* ---------------------------------------
   Kartlar (inner-card vb.)
---------------------------------------- */
.content-column .inner-content {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}
.content-column .inner-card {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%; /* Yan yana iki kart */
}
.inner-card .image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #9d8e80; /* Kahverengi */
    margin-bottom: 10px;
}
.inner-card h4 {
    font-size: 1.2em;
    margin: 0;
}
.inner-card p {
    font-size: 1em;
    color: #555;
}

/* ---------------------------------------
   Button Stilleri (Örnek)
---------------------------------------- */
.btn-primary {
    color: #000000 !important;
    background-color: #f9f9f9 !important;
    border-color: #9d8d81;
    box-shadow: 0 10px 20px -10px #9c8c80;
}
.btn-secondary {
    color: #000000 !important;
    background-color: #f9f9f9;
    border-color: #9d8e80;
    box-shadow: 0 10px 20px -10px #9d8d81;
}
.btn-info {
    color: #fff !important;
    background-color: #002f55;
    border-color: #9d8e80;
    box-shadow: 0 10px 20px -10px #9d8e80;
}


/* ---------------------------------------
   Açılır Menü (Submenu)
---------------------------------------- */
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
}
.submenu.show {
    display: block;
}

/* ---------------------------------------
   Yarı Saydam Arka Plan (Overlay)
---------------------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Menü Açıkken Sağdan Görünür */
.side-menu.open {
    right: 0;
}

/* ---------------------------------------
   Video Container (16:9 oran)
---------------------------------------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    flex-grow: 1;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------------------------------------
   Mobilde Eşit Yükseklik Ayarı
---------------------------------------- */
@media (max-width: 768px) {
    .equal-height {
        margin-bottom: 20px;
    }
}
.equal-height {
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------
   Custom Section
---------------------------------------- */
.custom-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
.custom-section-header {
    /* İsteğe göre düzenlenebilir */
}
.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
}
.custom-slider-controls .btn-light i {
    font-size: 16px;
}

/* ---------------------------------------
   .custom-card (Farklı bloklarda geçenler birleştirildi)
---------------------------------------- */
.custom-card {
    border: 1px solid #ddd;
    border-radius: 10px; /* 8 yerine 10 verildi */
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 20px;
}
.custom-card-body {
    padding: 15px;
}
.custom-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.custom-card-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ---------------------------------------
   Başlıklar
---------------------------------------- */
.custom-heading {
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #333;
    margin-bottom: 0.5rem; /* ekledik */
}
.custom-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

/* ---------------------------------------
   Kart İç Yapısı
---------------------------------------- */
.card-text-block {
    flex: 1;
    min-width: 220px;
}
.card-img-block {
    /* Resmin sağda konumlanması için boş */
}
.custom-img {
    width: 35%; 
    max-width: 200px;
    object-fit: contain;
    border-radius: 4px;
}

/* Mobilde resim bloğunu gizle */
@media (max-width: 576px) {
    .card-img-block {
        display: none;
    }
    .custom-heading {
        font-size: 1.1rem;
    }
}

/* ---------------------------------------
   Fotoğraf Galerisi (Infinite Slider)
---------------------------------------- */
.infinite-slider-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
    max-width: 1000px;
}
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
}
.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}
.left-btn { left: 0; }
.right-btn { right: 0; }

.slider-viewport {
    overflow: hidden; 
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 5px;
    position: relative;
}
.slider-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s ease;
}
/* Masaüstü: 5 fotoğraf yan yana */
@media (min-width: 768px) {
    .photo-card {
        width: calc((100% - 40px) / 5);
        aspect-ratio: 4/3;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.3s;
    }
    .slider-viewport {
        height: auto;
    }
}
/* Mobil: 1 fotoğraf */
@media (max-width: 767px) {
    .photo-card {
        width: 100%;
        aspect-ratio: 4/3;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.3s;
    }
}
.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    position: relative;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.modal-content img {
    width: 100%;
    border-radius: 10px;
}
.close {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
.close:hover { 
    color: #f00; 
}
