/* --- GENEL AYARLAR --- */
:root {
    --primary-color: #3D672C; /* Kurumsal Yeşil */
    --primary-dark: #2c4d20;
    --secondary-color: #f4f7f3; /* Çok açık yeşil fon */
    --text-color: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.7; /* Okunabilirlik için satır aralığı artırıldı */
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Metin Okunabilirliği ve Yaslama */
p {
    text-align: justify; /* İki yana yaslama */
    margin-bottom: 15px;
    font-size: 16px;
}

/* --- HEADER & RESPONSIVE MENÜ --- */
header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Menü Hover Efekti - Tam Div */
.nav-links li a {
    display: block;
    padding: 10px 20px; /* Geniş tıklama alanı */
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border-radius: 50px; /* Yuvarlak hatlar */
    transition: var(--transition);
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--secondary-color); /* Hoverda arka plan */
    color: var(--primary-color);
    transform: translateY(-2px); /* Hafif yukarı kalkma */
}

.btn-donate {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(61, 103, 44, 0.3);
}

.btn-donate:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 103, 44, 0.4);
}

/* Hamburger Menü İkonu (Mobil için) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

/* --- HERO BÖLÜMÜ --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-attachment: fixed; /* Parallax efekti */
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    animation: fadeInUp 1.5s ease;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    text-align: center; /* Hero'da ortalı daha şık durur */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 45px;
    font-size: 18px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* --- BÖLÜM STİLLERİ --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Başlık Altı Çizgi Efekti */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    text-align: center;
    color: #777;
    font-size: 18px;
}

/* --- KART TASARIMLARI (Efektli) --- */
.projects-bg {
    background-color: var(--secondary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    top: 0;
}

/* Kart Hover: Yukarı Kalkma */
.project-card:hover {
    top: -10px;
    box-shadow: 0 20px 40px rgba(61, 103, 44, 0.15);
}

.card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px;
    text-align: center;
}

.card-header i {
    font-size: 32px;
}

.card-body {
    padding: 30px;
    background-image: url('imgs/kirtasye.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-body h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.card-body p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Specific background for Ramazan Kumanya card */
.project-card:nth-child(2) .card-body {
    background-image: url('imgs/ramazan.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Specific background for Kurban Bağışları card */
.project-card:nth-child(3) .card-body {
    background-image: url('imgs/kurban\ yardim.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Specific background for Sağlık Projeleri card */
.project-card:nth-child(6) .card-body {
    background-image: url('imgs/saglik.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Specific background for Kalıcı Eserler card */
.project-card:nth-child(4) .card-body {
    background-image: url('imgs/su-koyusu-projesi_1122.png');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Specific background for Kalkınma Projeleri card */
.project-card:nth-child(5) .card-body {
    background-image: url('imgs/okul-aile-birlikleri.jpg');  /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}/* --- SSS ve DANIŞMANLIK --- */
.consult-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.consult-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

details {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Üçgeni kaldır */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '\f078'; /* FontAwesome ok */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: 0.3s;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details[open] summary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.faq-content {
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 15px;
}

/* --- İLETİŞİM --- */
.contact-section {
    background: #1a1a1a;
    color: #ddd;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.account-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.account-item:hover {
    background: #333;
    transform: translateX(10px);
}

.account-item span {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
    display: block;
    margin-top: 5px;
}

.copy-icon {
    margin-left: 10px;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s;
}

.copy-icon:hover {
    color: #fff;
}

/* --- FOOTER --- */
footer {
    background: #000;
    color: #ddd;
    padding: 40px 0 20px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section p {
    margin: 8px 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section p.highlight {
    font-weight: bold;
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 6px;
    color: #fff;
}

.footer-section p.highlight strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p i {
    color: var(--primary-color);
    margin-right: 8px;
}

.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.footer-donate-btn:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Footer contact items */
.footer-section .contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.footer-section .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #000;
    background: #fff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.footer-section .contact-icon i { font-size: 16px; }

.footer-section .contact-text { color: #ddd; font-size: 14px; font-weight: 500; }

.footer-section .contact-icon:hover {
    transform: scale(1.1);
}

.footer-section .contact-icon.whatsapp:hover { background: #25D366; color: #fff; }
.footer-section .contact-icon.instagram:hover { background: linear-gradient(45deg,#f58529 0%,#dd2a7b 30%,#8134af 60%,#515bd4 100%); color: #fff; }
.footer-section .contact-icon.email:hover { background: #1A73E8; color: #fff; }

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-contact {
    background: rgba(255,255,255,0.03);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.footer-contact i { font-size: 18px; }

.footer-contact:hover {
    transform: translateY(-3px);
    background: rgba(61,103,44,0.15);
}

/* Brand-specific hover colors */
.footer-contact.whatsapp:hover {
    background: #25D366; /* WhatsApp green */
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,211,102,0.18);
}

.footer-contact.instagram:hover {
    /* Instagram gradient */
    background: linear-gradient(45deg,#f58529 0%,#dd2a7b 30%,#8134af 60%,#515bd4 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(81,91,212,0.18);
}

.footer-contact.email:hover {
    background: #1A73E8; /* Dark blue for email hover */
    color: #fff;
    box-shadow: 0 6px 18px rgba(26,115,232,0.18);
}

.footer-contact { transition: background 160ms ease, transform 160ms ease, color 160ms ease; }

@media screen and (max-width: 680px) {
    .footer-main { flex-direction: column; text-align: center; gap: 10px; }
    .footer-right { gap: 8px; }
}

/* --- Sticky contact widget --- */
.sticky-contact {
    position: fixed;
    left: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.sticky-item {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0,0,0,0.6);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 120ms ease, background 160ms ease;
}

.sticky-item i { font-size: 20px; }

.sticky-item:hover { transform: translateY(-4px); }

.sticky-item.whatsapp { background: #128C7E; }
.sticky-item.whatsapp:hover { background: #25D366; box-shadow: 0 8px 22px rgba(37,211,102,0.18); }

/* WhatsApp two-step hover: quick lighter flash then settle to brand green */
@keyframes whatsapp-seq {
    0% { background: #dffbee; }
    40% { background: #aef7d1; }
    100% { background: #25D366; }
}

/* apply sequence on sticky whatsapp */
.sticky-item.whatsapp:hover {
    animation: whatsapp-seq 0.9s ease forwards;
}

.sticky-item.instagram { background: linear-gradient(45deg,#f58529 0%,#dd2a7b 30%,#8134af 60%,#515bd4 100%); }
.sticky-item.instagram:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(81,91,212,0.18); }

.sticky-item.email { background: #0f446a; }
.sticky-item.email:hover { background: #1A73E8; box-shadow: 0 8px 22px rgba(26,115,232,0.18); }

/* On small screens keep it smaller and centered bottom to avoid overlap with other UI */
@media screen and (max-width: 480px) {
    .sticky-contact { left: 12px; bottom: 12px; gap: 8px; }
    .sticky-item { width: 44px; height: 44px; border-radius: 10px; }
}

/* --- ANİMASYON KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBİL UYUMLULUK (MEDIA QUERIES) --- */
@media screen and (max-width: 960px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Ortala */
        width: 100%; /* Tam genişlik */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
        width: 80%; /* Buton genişliği */
        text-align: center;
    }

    .nav-links li a {
        padding: 15px;
        font-size: 18px;
        border: 1px solid #eee; /* Mobil menüde çizgili ayrım */
        margin-bottom: 10px;
    }

    .hamburger {
        display: block;
    }
    
    /* Menü Açıkken */
    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .about-grid, .contact-grid, .consultancy-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img { margin-bottom: 30px; }
}

/* FAQ Hover Styles */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    background: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 200ms ease;
}

.faq-item:hover .faq-question {
    background: var(--primary-color);
    color: #fff;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    transition: max-height 600ms ease, padding 600ms ease;
    opacity: 0;
    transition: max-height 600ms ease, padding 600ms ease, opacity 400ms ease 100ms;
}

/* Support programmatic/open state for touch devices */
.faq-item.open .faq-content {
    max-height: 500px;
    padding: 16px 20px;
    opacity: 1;
}

.faq-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* --- GENEL AYARLAR (Tüm kutular için) --- */
.consult-box.reveal.active {
    position: relative;  /* Görseli içeri hapsetmek için şart */
    z-index: 1;          /* Yazıyı en öne alır */
    overflow: hidden;    /* Taşan görseli kırpar */
    background: transparent; /* Mevcut beyaz arka planı kaldırır */
    border-radius: 15px; /* Köşeleri yumuşatır (İsteğe bağlı) */
    color: #000;         /* Yazı rengini koyu yapar (resim açıksa) */
}

/* --- ORTAK ARKA PLAN AYARLARI (::before) --- */
.consult-box.reveal.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* ŞEFFAFLIK AYARI: Görseli soluklaştırmak için burayı değiştir (0.1 - 0.3 arası iyidir) */
    opacity: 0.15; 
    
    z-index: -1; /* Görseli yazının arkasına atar */
    transition: transform 0.5s ease; /* Mouse ile üzerine gelince efekt için */
}

/* --- KUTUYA ÖZEL RESİMLER --- */

/* 1. Kutu: Aile Danışmanlığı */
/* HTML yapında ilk sırada bu varsa bunu kullanır */
.consult-box.reveal.active:nth-of-type(1)::before {
    background-image: url('imgs/family.png');
}

/* 2. Kutu: Kariyer Danışmanlığı */
/* HTML yapında ikinci sırada bu varsa bunu kullanır */
.consult-box.reveal.active:nth-of-type(2)::before {
    background-image: url('imgs/carieer.png');
}

/* --- İSTEĞE BAĞLI: HOVER EFEKTİ --- */
/* Mouse ile kutunun üzerine gelince resim hafifçe yakınlaşır */
.consult-box.reveal.active:hover::before {
    transform: scale(1.1);
}