@font-face {
  font-family: 'Test';
  src: url('mc.ttf') format('truetype'),
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

a {
    color: white; /* Linklerin rengi beyaz olacak */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #001018;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: 001018;
    text-decoration: none;
}

.hero {
    background-image: url('codes.png');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
}

.hero2 {
    background-image: url('foto2.png');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'Test', Arial, sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 550;
}

.hero-text button {
    padding: 0.9rem 1.9rem;
    font-size: 1.2rem;
    background-color: #001018;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}


.hero-text button:hover {
    background-color: #00080d;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #001018;
    color: white;
    margin-top: auto;
}

.blog {
    padding: 2rem 1rem;
}

.blog h1 {
    color: white;
    font-family: 'Test';
    text-align: center;
    margin-bottom: 2rem;
}

.blog-post {
    background: #0a1a2a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Minimum yükseklik garantisi */
}

.blog-content-container {
    flex-grow: 1;
}

.blog-post h2{
    color: white;
    font-family: 'Test';
}

.blog-post p{
    color: white;
}

.blog-post a{
    color: white;
}

.blog-detail {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: 001018;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.blog-detail h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.blog-detail .blog-date {
    text-align: center;
    color: gray;
    margin-bottom: 1rem;
}

.blog-detail .blog-content {
    line-height: 1.6;
    color: white;
}

.blog-content img{
    max-width: 800px;
}

.blog-thumbnail {
    max-width: 200px;
    max-height: 200px;
    margin-left: 20px;
    border-radius: 8px;
}

.normal-blog-thumbnail {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    object-fit: cover;
    border-radius: 8px 8px 0 0 !important; /* Üst köşeleri yuvarlak */
    margin: 0 !important;
    display: block; /* Alt boşluğu önlemek için */
}

@media (max-width: 769px) {
    .blog-post {
        flex-direction: column;
        align-items: flex-start;
    }

    .normal-blog-thumbnail {
        margin-left: 0;
        margin-top: 20px;
        align-self: center;
    }
}

.blog-detail .gallery-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 20px;
}

.blog-detail .blog-images {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.blog-detail .blog-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: none; /* Hide all images initially */
}

.blog-detail .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #001018;
    padding: 8px;
    cursor: pointer;
    user-select: none;
}

.blog-detail .left-arrow {
    left: 10px;
}

.blog-detail .right-arrow {
    right: 10px;
}

.blog-detail pre {
    background-color: #001018;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.blog-detail iframe {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    border: none;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-date-container {
    font-family: 'Test';
    color: white;
    flex-grow: 1;
}

.blog-thumbnail {
    max-width: 200px;
    max-height: 200px;
    margin-left: 20px;
    border-radius: 8px;
}

.read-more {
    display: block;
    margin-top: 1rem;
    color: #007BFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

#search-bar {
  /* Konumlandırma */
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Boyutlandırma */
  width: calc(3 * (330px + 2rem));
  max-width: 90%;
  padding: 15px 25px; /* Optimize edildi */

  margin: 2rem 0; /* Yeni eklenen */
  
  /* Mevcut Stil İyileştirmeleri */
  background: linear-gradient(145deg, #001825, #001018);
  border: 2px solid #1a3a5a;
  border-radius: 35px;
  box-shadow: 0 8px 25px rgba(0, 60, 100, 0.4);
  color: #e3f2fd;
  font-size: 1.2rem;
  transition: all 0.3s ease;

  /* İkonlu Versiyon */
  background-image: url('search-icon.png');
  background-repeat: no-repeat;
  background-position: 97% center;
  background-size: 25px;
  padding-right: 60px;

  @media (max-width: 1000px) {
    width: 80% !important;
  }

  /* Mobil İçin Medya Sorgusu */
  @media (max-width: 768px) {
    width: 70% !important;
    max-width: 80% !important;
    padding: 12px 20px;
    font-size: 1rem;
    background-size: 18px;
    padding-right: 45px;
  }
}


/* Hover & Focus States */
#search-bar:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 80, 120, 0.5);
}

#search-bar:focus {
  transform: translate(-50%, -50%) scale(1.02);
  outline: none;
  border-color: #3a5a7a;
}

/* Placeholder Stili */
#search-bar::placeholder {
  color: #8b9eb0;
  letter-spacing: 0.8px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #001018;
    color: white;
}

.about-page {
    padding: 2rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 550;
}

.about-page h1, .about-page h2 {
    font-family: 'Test';
}

.team {
  padding: 20px;
}

.team h2 {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.team .team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.team .team-member {
  background-color: #1e2a36;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: white;
  width: 150px; /* Adjusted width */
  font-family: 'Test';
}

.team .team-member img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
    .team-member {
        width: calc(33.33% - 2rem);
    }
}

@media (max-width: 768px) {
    .team-member {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 480px) {
    .team-member {
        width: calc(100% - 2rem);
    }
}

/* Yeni Grid Layout */
#blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-rows: 1fr; /* Tüm kartları eşit yükseklikte yapar */
    margin-top: 6rem; /* Yeni eklenen */
    padding-bottom: 3rem; /* Yeni eklenen */
}

/* Yeni Kart Tasarımı */
.blog-post {
    position: relative;
    background: #0a1a2a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%; /* Kartların eşit yükseklikte olması için */
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 oranı (9/16=0.5625) */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.normal-blog-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* İçerik Container */
.blog-content-container {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0rem; /* Elemanlar arası sabit boşluk */
}

.blog-post h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.blog-post h2 a {
    text-decoration: none;
}

.blog-date {
    color: #8b9eb0;
    font-size: 0.9rem;
    margin-bottom: 0rem;
}

.blog-content {
    color: #c3d4e5;
    line-height: 1.6;
    flex-grow: 1; /* İçerik ile buton arasındaki boşluğu doldurur */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimum 3 satır gösterim */
    -webkit-box-orient: vertical;
}

.read-more {
    background: #1a3a5a;
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    margin-top: auto; /* Butonu her zaman alta yapıştırır */
    width: fit-content;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block; /* Buton kaymalarını önler */
}

.read-more:hover {
    background: #2a4a6a;
    border-color: #3a5a7a;
}

@media (max-width: 768px) {
    #blog-posts {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}


/* Detay sayfasında içerik kesilmesin */
.blog-detail .blog-content {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
}