@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/*--------------------------------------------------
 * Genel Stiller
 *--------------------------------------------------*/
body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #004d99;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/*--------------------------------------------------
 * Header ve Navigasyon
 *--------------------------------------------------*/
header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 3px solid #004d99;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #004d99;
    margin-right: 20px;
}

.site-title-wrapper h1 {
    margin: 0;
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
}

.lang-switcher-wrapper.desktop-lang-switcher {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 10;
}

.lang-switcher-wrapper .lang-link {
    text-decoration: none;
    color: #004d99;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.lang-switcher-wrapper .lang-link:hover { background-color: #f0f0f0; }
.lang-switcher-wrapper .lang-link.active { background-color: #004d99; color: #fff; }
.lang-switcher-wrapper .fi { font-size: 1.5rem; vertical-align: middle; }

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-lang-switcher { display: none; }

.main-nav {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.main-nav ul { margin: 0; padding: 0; list-style: none; display: inline-block; }
.main-nav li { display: inline-block; margin: 0 15px; position: relative; }
.main-nav a { color: #495057; text-decoration: none; font-weight: 500; font-size: 1.1rem; padding-bottom: 5px; transition: color 0.3s, border-bottom 0.3s; }
.main-nav a:hover, .main-nav a.active { color: #004d99; border-bottom: 2px solid #ffc107; }
.dropdown > a::after { content: '▼'; font-size: 0.6em; margin-left: 5px; display: inline-block; }
.dropdown .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; margin: 0; min-width: 200px; z-index: 1000; }
.dropdown:hover .dropdown-menu { display: block; }

/*--------------------------------------------------
 * ANA İÇERİK BİLEŞENLERİ
 *--------------------------------------------------*/
.new-hero-section {
    background-image: linear-gradient(140deg, #102a63 0%, #081534 100%);
    color: #fff;
    padding: 80px 0;
}
.new-hero-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}
.new-hero-text {
    flex-basis: 60%;
}
.new-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}
.new-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ced4da;
    max-width: 500px;
}
.new-hero-meta {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #8892b0;
}
.new-hero-image-wrapper {
    flex-basis: 40%;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    border: 3px solid #8892b0;
    margin-left: auto;
}
.new-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.new-hero-image-wrapper:hover .new-hero-image {
    filter: grayscale(0%);
}
.timeline-tab-container, .latest-publications, .publications-list, .page-content, .latest-blog-posts, .timeline-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.tab-button {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
    font-weight: 500;
}
.tab-button:hover {
    background-color: #ced4da;
}
.tab-button.active {
    background-color: #004d99;
    color: #fff;
}
.tab-content-item {
    display: none;
}
.tab-content-item.active {
    display: block;
}
h3 {
    color: #004d99;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.publication-item, .project-item, .course-item, .talk-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.publication-item:last-child, .project-item:last-child, .course-item:last-child, .talk-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.meta {
    font-style: italic;
    color: #6c757d;
    margin: 0;
}

/*--------------------------------------------------
 * Blog Sayfası Stilleri
 *--------------------------------------------------*/
.featured-blog-post { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.1); margin-bottom: 40px; align-items: stretch; }
.featured-blog-post .featured-image { width: 50%; object-fit: cover; }
.featured-blog-post .featured-content { width: 50%; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.featured-blog-post .featured-content h2 { margin-top: 0; font-size: 2.2rem; }
.featured-blog-post .featured-content .meta { font-size: 0.9rem; color: #6c757d; margin-bottom: 15px; }
.featured-blog-post .featured-content .excerpt { font-size: 1rem; line-height: 1.7; margin-bottom: 25px; }
.featured-blog-post .featured-content .btn-read-more { display: inline-block; align-self: flex-start; background-color: #004d99; color: #fff; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: background-color 0.3s; }
.featured-blog-post .featured-content .btn-read-more:hover { background-color: #003666; }
.blog-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.blog-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.blog-card-image-wrapper { position: relative; width: 100%; padding-top: 75%; overflow: hidden; }
.blog-card-image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blog-card-content { padding: 15px; }
.blog-card-content h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: #004d99; }
.blog-card-content p { font-size: 0.9rem; color: #6c757d; margin-bottom: 10px; }

/*--------------------------------------------------
 * Medya Sayfası Stilleri
 *--------------------------------------------------*/
.page-title { text-align: center; margin-top: 40px; margin-bottom: 40px; }
.video-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.video-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; cursor: pointer; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.video-card .image-wrapper { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
.video-card .image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 30px; background: rgba(0,0,0,0.5); border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s; opacity: 0.8; }
.video-card:hover .play-icon { opacity: 1; }
.video-card .card-content { padding: 15px; flex-grow: 1; }
.video-card .card-content h3 { margin: 0; font-size: 1.2rem; color: #004d99; }

/*--------------------------------------------------
 * İletişim Sayfası Stilleri
 *--------------------------------------------------*/
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 5px; box-sizing: border-box; font-size: 1rem; background-color: #f8f9fa; }
.contact-form textarea { resize: vertical; }
.btn-primary { display: inline-block; background-color: #004d99; color: #fff; padding: 12px 25px; border-radius: 5px; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.3s, transform 0.2s; }
.btn-primary:hover { background-color: #003666; transform: translateY(-2px); }
.success-message { color: #155724; background-color: #d4edda; border-color: #c3e6cb; padding: 15px; margin-bottom: 20px; border-radius: 5px; }

/*--------------------------------------------------
 * Footer
 *--------------------------------------------------*/
footer {
    background: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}
footer p { margin: 0; }
.powered-by { margin-top: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; color: #ced4da; font-size: 0.9em; }
.powered-by img { height: 25px; }

/*--------------------------------------------------
 * Video Pop-up (Modal)
 *--------------------------------------------------*/
.video-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); display: none; justify-content: center;
    align-items: center; z-index: 99999; padding: 20px; box-sizing: border-box;
}
.video-modal.active { display: flex; }
.video-modal-content { position: relative; width: 100%; max-width: 960px; padding-top: 56.25%; background: black; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.video-modal iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.close-modal { position: absolute; top: -45px; right: -10px; font-size: 45px; font-weight: 300; color: white; cursor: pointer; line-height: 1; }

/* ==================================================
 * MOBİL VE TABLET GÖRÜNÜMÜ
 * ================================================== */
@media(max-width: 768px) {
    header { padding: 0.5rem 0; }
    .header-container { min-height: 60px; flex-direction: row; justify-content: space-between; align-items: center; }
    .header-top { margin-bottom: 0; justify-content: flex-start; flex-grow: 1; }
    .site-logo { display: block; width: 45px; height: 45px; margin-right: 10px; border-width: 2px; }
    .site-title-wrapper h1 { font-size: 1.2rem; max-width: calc(100vw - 180px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
    .desktop-lang-switcher { display: none; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; order: 3; }
    .hamburger-menu .bar { height: 3px; width: 100%; background-color: #004d99; border-radius: 2px; transition: all 0.3s ease-in-out; }
    
    .main-nav { position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh; background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease; z-index: 1000; display: flex; flex-direction: column; }
    .main-nav.active { right: 0; }
    .main-nav ul { display: block; padding: 20px; flex-grow: 1; overflow-y: auto; }
    .main-nav li { display: block; margin: 15px 0; }
    .main-nav a { padding: 10px 0; display: block; border-bottom: none !important; }

    .dropdown > a::after { float: right; }
    .dropdown.active > a::after { content: '▲'; }
    .dropdown .dropdown-menu { position: static; box-shadow: none; padding: 0; margin-top: 5px; margin-left: 15px; display: none; width: auto; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    
    .mobile-lang-switcher { display: flex; justify-content: center; gap: 15px; padding: 30px; border-top: 1px solid #eee; }
    .mobile-lang-switcher .lang-link { display: flex; align-items: center; gap: 8px; font-size: 1.1em; padding: 8px 15px; border: 1px solid #ddd; border-radius: 20px; }
    
    .hamburger-menu.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger-menu.open .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Ana İçerik Mobil Stilleri */
    .container { padding: 0 10px; }
    .new-hero-section { padding: 40px 0; }
    .new-hero-content { flex-direction: column; text-align: center; gap: 30px; }
    .new-hero-text { order: 2; text-align: center; padding-right: 0; }
    .new-hero-image-wrapper { order: 1; width: 80%; margin: 0 auto; }
    .new-hero-title { font-size: 2.5rem; }
    .latest-publications, .publications-list, .page-content, .latest-blog-posts, .timeline-section { padding: 20px; }
    .timeline-tab-container { padding: 20px; }
    .timeline-tabs { flex-direction: column; align-items: center; }
    .tab-button { width: 100%; }
    
    .featured-blog-post { flex-direction: column; }
    .featured-blog-post .featured-image, .featured-blog-post .featured-content { width: 100%; }
    .featured-blog-post .featured-content { padding: 25px; }
    .featured-blog-post .featured-content h2 { font-size: 1.8rem; }
}

/* Kitaplar Sayfası Stilleri */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.book-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.book-card .book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.book-card .book-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.book-card .book-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.book-card .book-info .book-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 15px;
}
.book-card .book-info .book-description {
    flex-grow: 1;
}
.book-card .book-info .btn-primary {
    margin-top: auto; /* Butonu en alta yaslar */
    text-align: center;
}
.latest-books {
    padding: 40px 0;
}