/* --- Genel Ayarlar ve Değişkenler --- */

:root {
    --primary-color: #14213d;
    /* Lacivert */
    --secondary-color: #fca311;
    /* Vurgulu Sarı */
    --light-gray-color: #e5e5e5;
    --white-color: #ffffff;
    --dark-text-color: #333;
    --light-text-color: #f8f9fa;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}


/* --- Temel Sıfırlama ve Body --- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-text-color);
    background-color: var(--white-color);
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}


/* --- Yardımcı Sınıflar --- */

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.text-center {
    text-align: center;
}

.card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e8920a;
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Animasyonlar --- */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Header & Navigasyon --- */

.main-header {
    background: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    height: 50px;
    width: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}


/* --- Ana Sayfa --- */

.hero-section {
    background: linear-gradient(rgba(20, 33, 61, 0.8), rgba(20, 33, 61, 0.8)), url('https://scontent.fyei1-1.fna.fbcdn.net/v/t1.6435-9/87864317_3174553029230919_4829844780533940224_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=833d8c&_nc_ohc=aU0XOifcZrMQ7kNvwEKIXRD&_nc_oc=AdlNz6CWmTBCQIHB-BK1h0nE45-up2X09UfkgAubm3dj-vhSOyCoXGRU6Ra1a8Jo4mY&_nc_zt=23&_nc_ht=scontent.fyei1-1.fna&_nc_gid=bftsAnPFFdqMG82OYCVJeQ&oh=00_AfVjEqQpukBppjwSbF7hPgrNkX4emhYEcuZt-IU7zfPgsw&oe=68B97C89') no-repeat center center/cover;
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    color: var(--white-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-gray-color);
}

.slider-section {
    padding: 40px 0;
    background: var(--primary-color);
}

.slider-image {
    display: block;
    margin: 0 auto;
    max-height: 120px;
    width: auto;
}

.mission-vision-section h2 {
    margin-bottom: 20px;
}

.messages-section .message-item {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.messages-section .message-item.reverse {
    flex-direction: row-reverse;
}

.message-author {
    margin-top: 20px;
}

.message-author strong {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quick-link-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    color: var(--dark-text-color);
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    background-color: var(--white-color);
}

.quick-link-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.quick-link-item h3 {
    margin-bottom: 10px;
}


/* --- Genel Sayfa Başlığı --- */

.page-header-section {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}

.page-header-section h1 {
    font-size: 3rem;
    color: var(--white-color);
}

.page-header-section p {
    font-size: 1.2rem;
    color: var(--light-gray-color);
}


/* --- Hakkımızda Sayfası --- */

.about-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.about-content ul li {
    margin-bottom: 0.5rem;
}

.content-subtitle {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


/* --- Yönerge Sayfası --- */

.directive-download {
    margin-bottom: 40px;
}

.directive-seal {
    max-height: 150px;
    width: auto;
    margin-bottom: 20px;
}

.directive-summary ul {
    list-style: none;
}

.directive-summary li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.directive-summary li::before {
    content: '✔';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 20px;
}


/* --- Komisyonlar Sayfası --- */

.commission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.commission-card h3 {
    margin-bottom: 15px;
}

.commission-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commission-footer span {
    font-size: 0.9rem;
}

.btn.disabled {
    background-color: var(--light-gray-color);
    border-color: var(--light-gray-color);
    color: #999;
    cursor: not-allowed;
}


/* --- Projeler Sayfası --- */

.project-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
    overflow: hidden;
}

.project-image {
    flex: 0 0 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.project-content {
    padding: 30px;
}

.project-status {
    margin-top: 20px;
}

.project-status .status-active {
    color: var(--success-color);
    font-weight: bold;
}

.project-status .status-planning {
    color: var(--secondary-color);
    font-weight: bold;
}

.project-status .status-completed {
    color: var(--primary-color);
    font-weight: bold;
}


/* --- Başvuru ve İletişim Formları --- */

.form-container,
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.2);
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    text-align: center;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    text-align: center;
}


/* --- Yönetim Kadrosu Sayfası --- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 4px solid var(--secondary-color);
}

.team-card h4 {
    margin-bottom: 5px;
}

.team-title {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.advisor-section {
    margin-top: 80px;
}

.advisor-card {
    max-width: 300px;
    margin: 20px auto 0 auto;
}


/* --- İletişim Sayfası --- */

.contact-info .info-item {
    margin-bottom: 20px;
}

.contact-info .info-item strong {
    color: var(--primary-color);
}

.school-logo-container {
    margin-top: 40px;
    text-align: center;
}

.school-logo-container img {
    max-height: 120px;
}


/* --- Footer --- */

.main-footer {
    background: var(--primary-color);
    color: var(--light-gray-color);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.creator-credit {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
    margin-bottom: 0;
}


/* --- Admin Giriş Sayfası --- */

.admin-login-page {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.admin-login-box {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.admin-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.admin-login-box h2 {
    margin-bottom: 10px;
}

.admin-login-box p {
    margin-bottom: 30px;
    color: #666;
}

.admin-login-box .form-group {
    text-align: left;
}

.btn.full-width {
    width: 100%;
}

.back-to-site {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
}

#admin-dashboard {
    text-align: center;
}

#admin-dashboard h2 {
    color: var(--success-color);
}


/* --- Mobil Uyumluluk --- */

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .project-card {
        flex-direction: column;
    }
    .project-image {
        flex: auto;
        max-height: 250px;
    }
    .messages-section .message-item,
    .messages-section .message-item.reverse {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 20px;
        text-align: center;
    }
    .mobile-nav-toggle {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
    }
    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        position: absolute;
        transition: all 0.35s ease-in-out;
    }
    .mobile-nav-toggle span:nth-child(1) {
        top: 0;
    }
    .mobile-nav-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .mobile-nav-toggle span:nth-child(3) {
        bottom: 0;
    }
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 50%;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .page-header-section h1 {
        font-size: 2.2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}