/* -------------------------------
   FSKBD ANA STİL DOSYASI (GÜNCELLENMİŞ)
   Rönesans dokunuşları + mevcut tüm yapılar korundu
------------------------------- */

/* RESET & DEĞİŞKENLER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A2A44;      /* Rönesans Mavisi */
    --primary-light: #2C3E66;
    --accent: #C5A059;       /* Altın Yaldız */
    --accent-dark: #8B5E3C;  /* Sepya / Mürekkep */
    --text: #3D2B1F;         /* Koyu Kahve Mürekkep */
    --text-light: #5D4D42;
    --bg-light: #F4F1EA;     /* Eskitilmiş Parşömen Kağıdı */
    --white: #ffffff;
    --footer-bg: #1A2A44;
    --footer-text: #D1D5DB;
    --footer-link: #C5A028;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tüm sayfaya hafif bir kağıt dokusu */
body {
    background-color: var(--bg-light);
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TİPOGRAFİ - CODEX DOKUNUŞU */
h1, h2, h3, h4, .logo-text, .nav-menu a {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}
h2 {
    font-size: 2rem;
    border-left: 4px solid var(--accent);
    background: linear-gradient(to right, rgba(197, 160, 89, 0.1), transparent);
    padding: 0.5rem 1rem;
    margin: 2rem 0 1.5rem;
}
h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: var(--primary);
}
p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
a {
    text-decoration: none;
    transition: var(--transition);
}

/* HEADER & NAVIGATION (dropdown dahil) */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
/* Logo alanı - flex ile yan yana dizilim */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Mobilde taşarsa alt satıra geçsin */
}

.logo img {
    height: 70px;  /* İstediğiniz yükseklik, orijinal 100px'di */
    width: auto;
    display: block;
}

.logo-item {
    flex-shrink: 0;
}

.logo-item img {
    height: 60px;  /* İkinci logo için uygun yükseklik */
    width: auto;
}

.logo-text {
    /* Metinlerin otomatik hizalanması için flex'ten çıkarıp normal akışa bırakıyoruz */
    margin-left: 0;
    text-align: left;
}

.logo-text .tagline {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
    white-space: nowrap; /* Metnin kırılmaması için, gerekirse medya sorgusuyla değiştir */
}

/* Responsive: küçük ekranlarda logolar alt alta geçebilir */
@media (max-width: 768px) {
    .logo {
        gap: 0.75rem;
    }
    .logo img {
        height: 50px;
    }
    .logo-item img {
        height: 40px;
    }
    .logo-text .tagline {
        white-space: normal;
        font-size: 0.65rem;
    }
}
/* Ana menü - PERGEL NAVİGASYON */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
/* Pergel alt çizgi efekti */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.4s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
    left: 0;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--accent);
}

/* Dropdown okları */
.has-submenu > a::after {
    content: "▼";
    font-size: 0.7rem;
    transition: var(--transition);
}
.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown menü */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10;
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid var(--accent);
}
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}
.sub-menu li {
    padding: 0;
}
.sub-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--text);
    font-size: 0.9rem;
}
.sub-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}
.sub-menu .menu-item-has-children .sub-menu {
    top: 0;
    left: 100%;
}

/* Mobil menü */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
}
@media (max-width: 992px) {
    .nav-menu { gap: 1.2rem; }
    .logo img { height: 70px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        background: var(--white);
    }
    .nav-menu.show { display: flex; }
    .nav-menu > li { border-bottom: 1px solid #eee; }
    .nav-menu > li > a { padding: 12px 0; justify-content: space-between; }
    .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        display: none;
        border-top: none;
    }
    .menu-item-has-children.open .sub-menu { display: block; }
    .sub-menu .menu-item-has-children .sub-menu { left: 0; padding-left: 20px; }
    .has-submenu > a::after { content: "▶"; font-size: 0.7rem; }
    .menu-item-has-children.open > a::after { transform: rotate(90deg); }
}

/* HERO BÖLÜMÜ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}
.hero h1 {
    color: white;
    margin-bottom: 0.5rem;
    border: none;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* İÇERİK */
.content-section {
    padding: 40px 0;
}
.feature-image {
    text-align: center;
    margin: 2rem 0;
}
.feature-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* BUTTONLAR - MEKANİK DİŞLİ EFEFKTİ (@mevcut buton sınıflarına eklendi) */
.btn, .btn-evet, .event-btn, .btn-info, .btn-exhibition, .btn-event {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent);
    background: var(--accent-dark);
    color: var(--white) !important;
    transition: var(--transition);
    z-index: 1;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}
.btn::before, .btn-evet::before, .event-btn::before {
    content: '⚙';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.btn:hover, .btn-evet:hover, .event-btn:hover {
    padding-right: 50px;
    background: var(--primary) !important;
    transform: translateY(-3px) scale(1.02);
}
.btn:hover::before, .btn-evet:hover::before, .event-btn:hover::before {
    right: 15px;
    opacity: 0.3;
    transform: translateY(-50%) rotate(360deg);
}
/* buton alternatifleri (varsayılan) */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: white;
}
.text-center {
    text-align: center;
}

/* SFUMATO (YUMUŞAK GEÇİŞ) - Görsellere tarihsel ton */
.feature-image img, .about-image img, .timeline-content,
.team-card img, .event-card img, .exhibition-card img,
.gallery-item img, .partner-item img {
    filter: sepia(30%) contrast(105%);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 30px rgba(61, 43, 31, 0.1);
    transition: var(--transition);
}
.feature-image img:hover, .about-image img:hover, .timeline-content:hover {
    filter: sepia(0%) contrast(110%);
    box-shadow: 0 20px 40px rgba(61, 43, 31, 0.2);
}

/* FOOTER - Görseldeki gibi (mevcut yapı korundu) */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.footer h4 {
    color: var(--footer-link);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: var(--footer-text);
}
.footer a {
    color: var(--footer-link);
}
.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}
.newsletter-form {
    margin-top: 1rem;
}
.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}
.newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}
.newsletter-form button:hover {
    background: var(--accent-dark);
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* RESPONSIVE (footer ve diğer) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .container {
        padding: 0 20px;
    }
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.team-card {
    text-align: center;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.team-card p {
    color: var(--accent);
    font-size: 0.85rem;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}
.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

/* LOGO GRID */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin: 2rem 0;
}
.logo-grid a {
    display: block;
    transition: var(--transition);
}
.logo-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(0%);
    transition: var(--transition);
}
.logo-grid a:hover {
    transform: scale(1.05);
}
.logo-grid a:hover img {
    filter: grayscale(0%);
}
@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

/* EVENTS GRID */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.event-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.event-content {
    padding: 1.5rem;
    text-align: center;
}
.event-content h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.event-content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
/* buton event zaten yukarıda tanımlandı */

/* EXHIBITIONS GRID */
.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.exhibition-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.exhibition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.exhibition-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}
.exhibition-content {
    padding: 1.5rem;
    text-align: center;
}
.exhibition-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.exhibition-content p {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

/* TWO COLUMNS */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.two-columns h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* PARTNER ROW */
.partner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}
.partner-item {
    flex: 1 1 auto;
    text-align: center;
}
.partner-item img {
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}
.partner-item img:hover {
    filter: grayscale(100%);
}
.partners-6col .partner-item {
    flex: 1 1 calc(16.666% - 2rem);
    min-width: 120px;
}

/* TRIPS GRID (geziler) */
.trips-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.trip-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.trip-card:hover {
    transform: translateY(-5px);
}
.trip-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.trip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}
.trip-content {
    padding: 1.5rem;
    text-align: center;
}
.trip-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.trip-date {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}
.btn-info {
    display: inline-block;
    background: #2c3e66;
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn-info:hover {
    background: #1a2a4a;
}
.footnote {
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    text-align: center;
    border-radius: 8px;
}

/* COUNTRY FLAG vb. */
.country-flag {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}
.council-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}
.council-info a {
    color: #0055a4;
    text-decoration: none;
    word-break: break-all;
}
.council-info a:hover {
    text-decoration: underline;
}
.amboise-section {
    text-align: center;
    margin: 2rem 0;
}
.amboise-section h2 {
    margin-bottom: 1rem;
}
.leonardo-content {
    line-height: 1.7;
}
.leonardo-content strong {
    color: #2c3e66;
}

/* ETKİNLİKLER SAYFASI (MEVCUT) */
.hero-image {
    margin: 1rem 0;
}
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.intro-text {
    margin: 2rem 0;
    line-height: 1.7;
    font-size: 1.1rem;
}
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.event-btn {
    display: block;
    text-align: center;
    background: #2c3e66;
    color: #fff;
    padding: 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.event-btn:hover {
    background: #1a2a4a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .buttons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* İKİ SÜTUN (DÜŞÜNME SANATI) */
.image-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.image-col {
    flex: 1;
    min-width: 250px;
}
.image-col img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e66;
    font-weight: 500;
}
.callout {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
}
.button-container {
    text-align: center;
    margin: 2rem 0;
}
.italic-text {
    background: #f9f9f9;
    padding: 2rem;
    border-left: 4px solid #2c3e66;
    font-style: italic;
    line-height: 1.7;
}
/* gallery-grid zaten yukarıda mevcut (üzerine yazılmadı) */

/* TIMELINE SAYFASI (MEVCUT TÜM YAPI KORUNDU) */
.timeline-page {
    padding: 2rem 0;
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #2c3e66, #a0aec0, #2c3e66);
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    z-index: 2;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 3rem;
}
.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: #2c3e66;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #2c3e66;
    z-index: 3;
    transition: all 0.3s ease;
}
.timeline-item.left .timeline-dot {
    right: -10px;
}
.timeline-item.right .timeline-dot {
    left: -10px;
}
.timeline-date {
    font-weight: bold;
    color: #2c3e66;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.timeline-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #1a2a4a;
}
.timeline-content p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}
.timeline-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.8rem;
}
.timeline-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #2c3e66;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.timeline-link:hover {
    color: #a90707;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: -10px !important;
        right: auto !important;
    }
}

/* EKSTRA: MEVCUT DİĞER SINIFLAR (mobile menü, vs) kaldı, hiçbiri silinmedi */