/* -------------------------- Genel Sayfa Ayarları ------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #e6ebfa;
    box-sizing: border-box;
    overflow-x: hidden;
}



/* ------------------------------- Navbar --------------------------------------- */

nav {
    position: absolute;
    top: 40px;
    right: 30px;
    width: 45%;
    background: transparent; /* Transparan arka plan */
    backdrop-filter: blur(10px); /* Blur efekti */
    padding: 15px;
    display: flex;
    justify-content: center;
    border-radius: 25px;
    z-index: 100;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Hafif gölge */
}

/* Menü listesi */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
}

nav ul li {
    display: inline;
}

/* Linkler */
nav ul li a {
    color: black;
    text-shadow: #333;
    font-size: 25px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Efekti: Yazı büyüme ve alt çizgi animasyonu */
nav ul li a:hover {
    transform: scale(1.1); /* Yazıyı büyüt */
    color: #0D98BA; /* Hafif renk değişimi */
}

/* Alt çizgi animasyonu */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%; /* Başlangıçta görünmez */
    height: 3px;
    background: #0daaba; /* Çizgi rengi */
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

/* Hover olunca çizgi ortadan yanlara genişlesin */
nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Aktif link */
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
}

/* Aktif menü stili */
nav ul.menu li a.aktif {
    color: #0B5369;
    font-weight: bold;
  }

/* Mobil uyumlu tasarım */
@media (max-width: 768px) {
    /* Navbar */

    .menu-toggle {
        display: block;
        position: absolute;
        top: 5px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 30px;
        z-index: 101;
        color: #000;
        cursor: pointer;
    }

    nav {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 50%;
        padding: 0px;
    }

    nav ul.menu {
        flex-direction: column;
        display: none; /* Başlangıçta gizli */
        background: rgba(0, 0, 0, 0.8);
        padding: 25px;
        align-items: center;
        border-radius: 10px;
        position: absolute;
        top: 50px;
        right: 10px;
        width: 80%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    nav ul.menu.show {
        display: flex;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px;
        color: white;
    }

    /* Aktif menü stili */
    nav ul.menu li a.aktif {
        color: #0daaba;
        font-weight: bold;
      }
}

/* -------------------------------------- Header --------------------------------- */

.blog-header {
    text-align: left;
    margin: 50px
}
  
.blog-header h1 {
    font-size: 3rem;
    color: #444;
}
  
.blog-header p {
    color: #777;
    font-size: 2rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .blog-header {
        margin: 30px 20px;
        text-align: center;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1.2rem;
    }
}



/* ----------------------------- Blog Sayfası ------------------------------- */
  
  
/* Video Alanı*/

.video-wrapper {
  display: flex;
  justify-content: center; /* Yatayda ortala */
  align-items: center;     /* Dikeyde ortala */
  height: 100vh;           /* Ekran yüksekliği kadar yer kaplasın */
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;  /*16:9 oran için*/
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Medyaları akışkan yap */

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.embed-fluid, .video-container, .short-container {
    overflow: hidden;
}

/* Grid Yapısı */
.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    overflow-x: hidden;
}
  
  /* Ana Blog Alanı */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
  
.blog-post {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
  
.post-image {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}
  
.post-content {
    flex: 1;
}
  
.post-content h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #222;
}
  
.post-content h2 a {
    color: inherit;
    text-decoration: none;
}
  
.post-content p {
    color: #555;
    font-size: 0.95rem;
}
  
.post-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}
  
.read-more {
    color: #e91e63;
    text-decoration: none;
    font-weight: bold;
}
  
.read-more:hover {
    text-decoration: underline;
}
  
  /* Sidebar */
.blog-sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
  
.blog-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}
  
.blog-sidebar ul {
    list-style: none;
    padding: 0;
}
  
.blog-sidebar ul li {
    margin-bottom: 10px;
}
  
.blog-sidebar ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
}
  
.blog-sidebar ul li a:hover {
    color: #e91e63;
}
  
  /* Responsive Tasarım */
@media (max-width: 992px) {
    .container {
      grid-template-columns: 1fr;
    }
  
    .blog-post {
      flex-direction: column;
    }
  
    .post-image {
      width: 100%;
      height: auto;
    }
  
    .post-meta {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }
}

/* Video Blog Kartları */

.blog-video-card {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

.short-container {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #000;
}

.short-container iframe {
  width: 100%;
  /*max-width: 270px; Shorts videolar için ideal */
  aspect-ratio: 9 / 16;
  border: none;
}


.video-text {
  flex: 1 1 50%;
  padding: 20px;
}

.video-text h3 {
  font-size: 1.2rem;
  line-height: 2em;
  margin-bottom: 10px;
  color: #2c3e50;
}

.video-text p {
  font-size: 0.95rem;
  line-height: 1.8em;
  color: #555;
  margin-bottom: 15px;
}

.video-text .read-more {
  display: inline-block;
  color: #e91e63;
  font-weight: bold;
  text-decoration: none;
}

.video-text .read-more:hover {
  text-decoration: underline;
}

/* Responsive 
@media (max-width: 768px) {
  .blog-video-card {
    flex-direction: column;
  }

  .short-container,
  .video-text {
    flex: 1 1 100%;
  }

  .short-container {
    padding: 0;
  }

}*/

@media (max-width: 768px) {
  .blog-video-card {
    display: flex;
    flex-direction: column !important; /* Önceliği artırıyoruz */
    align-items: center;
  }

  .short-container,
  .video-text {
    width: 100%;
    flex: none; /* flex-basis ve büyüme kısıtlaması kaldırıldı */
  }

  .short-container {
    padding: 0;
    display: block; /* içerideki flex etkisini sıfırlar */
  }

  .video-text {
    text-align: center; /* mobilde ortala */
  }
}





/* ----------------------------- Footer alanı ------------------------------- */

.background-footer {
    background-color: #937dd3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 2 sütun: sol logo, sağ ikonlar */
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    width: auto;
}

.footer-logo {  
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-nav ul li {
    display: inline;
}

.footer-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

.social-icons {
    padding-right: 50px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

footer p {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin: 20px 0;
}

@media (max-width: 768px) {
    
    .background-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 10px;
        row-gap: 15px;
    }

    .footer-nav {
        justify-content: center;
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
        padding-right: 0;
    }
}




  
