/* GENEL STİLLER VE DEĞİŞKENLER */

:root {
    --primary-red: #c90000;
    --dark-red: #a30000;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #444444;
    --font-family: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


/* BUTONLAR */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-light:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

.btn-primary-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

.btn-primary-dark:hover {
    background-color: #555;
    color: var(--white);
}


/* HEADER */

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 10px 5px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}


/* Dropdown Menu */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-gray);
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

.dropdown-menu a::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}


/* HERO BÖLÜMÜ */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('GuNBjzyX0AA9VVl.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ANASAYFA BÖLÜMLERİ */

.about-us-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.principle-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.principle-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.cta {
    background-color: var(--primary-red);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 15px;
}


/* FOOTER */

.footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--light-gray);
}

.footer-col a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-bottom a {
    font-weight: 600;
}


/* SAYFA BAŞLIĞI */

.page-header {
    padding: 60px 0;
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
}


/* KURUMSAL SAYFASI */

.corporate-identity .grid-2 {
    gap: 60px;
}

.corporate-identity h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.color-palette {
    display: flex;
    gap: 20px;
}

.color-box {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.template-card {
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}

.template-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.template-card p {
    padding: 15px;
    font-weight: 600;
    margin: 0;
}


/* YÖNETİM SAYFASI */

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.management-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.management-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.management-card.president {
    grid-column: 1 / -1;
    background-color: var(--primary-red);
    color: var(--white);
    cursor: pointer;
}

.management-card.president h3,
.management-card.president p {
    color: var(--white);
}

.management-card h3 {
    margin-bottom: 5px;
}

.management-card p {
    margin: 0;
    font-size: 1rem;
    font-style: italic;
}

.management-card .contact-info {
    margin-top: 15px;
    font-size: 0.9rem;
    font-style: normal;
}


/* PROJELER SAYFASI */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h3 {
    margin-bottom: 10px;
}

.project-card-content .date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.project-card-content p {
    flex-grow: 1;
}


/* ARŞİV SAYFASI */

.archive-list {
    max-width: 900px;
    margin: 0 auto;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    transition: background-color 0.3s ease;
}

.archive-item:hover {
    background-color: var(--light-gray);
}

.archive-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--primary-red);
}

.archive-info h3 {
    font-size: 1.2rem;
}

.archive-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}


/* İLETİŞİM & KATIL FORMU */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-section {
    margin-top: 60px;
}

.map-container {
    margin-top: 40px;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* GÜNDEM SAYFASI */

#gundem-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-content h3 {
    margin-bottom: 10px;
}

.news-card-content .date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}


/* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: var(--border-radius);
    position: relative;
    animation: slideIn 0.4s;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.modal-content .social-links {
    margin-top: 20px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* RESPONSIVE TASARIM */

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .about-us-image {
        order: -1;
        margin-bottom: 30px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .section {
        padding: 60px 0;
    }
    .nav {
        position: fixed;
        top: 80px;
        /* header yüksekliği */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
    }
    .nav.active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-list li {
        margin: 20px 0;
    }
    .nav-toggle {
        display: block;
    }
    .btn-join {
        display: none;
    }
    /* Mobil menü açıkken dropdown menülerin görünür olması için */
    .nav.active .dropdown-menu {
        display: block;
        /* Varsayılan gizlemeyi geçersiz kılar */
        position: static;
        /* Akış içinde kalmasını sağlar */
        box-shadow: none;
        /* Gölgeyi kaldırır */
        transform: translateY(0);
        /* Animasyonu kaldırır */
        opacity: 1;
        /* Görünür yapar */
        background-color: transparent;
        /* Arka planı şeffaf yapar */
        padding: 0;
    }
    .nav.active .dropdown-menu li {
        margin: 0;
        /* Mobil menüdeki marginleri sıfırlar */
    }
    .nav.active .dropdown-menu a {
        padding: 10px 30px;
        /* Mobil menüdeki link paddingini ayarlar */
        color: var(--dark-gray);
        /* Link rengini ayarlar */
    }
    .nav.active .dropdown-menu a:hover {
        background-color: var(--light-gray);
    }
    .nav.active .dropdown>a .fas.fa-chevron-down {
        transform: rotate(180deg);
        /* Açıkken oku döndür */
        transition: transform 0.3s ease;
    }
}