/* style.css */

/* Genel Stil Ayarları */
:root {
    --primary-color: #007bff; /* Mavi */
    --secondary-color: #6c757d; /* Gri */
    --success-color: #28a745; /* Yeşil */
    --danger-color: #dc3545; /* Kırmızı */
    --light-bg: #f8f9fa; /* Açık Gri */
    --dark-bg: #343a40; /* Koyu Gri */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--dark-bg);
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* Başlıklar */
h1, h2, h3 {
    color: var(--dark-bg);
}

/* Header ve Navigasyon */
header {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
header h1 {
    margin: 0;
    color: #fff;
}
header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
header ul li {
    margin-left: 20px;
}
header ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
header ul li a:hover {
    color: var(--primary-color);
}


/* Hero Section Stilleri */
.hero-section {
    position: relative;
    height: 80vh;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}
.hero-content h2 {
    font-size: 3.5rem;
    margin: 0 0 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.hero-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}


/* Duyuru Stilleri */
.announcements-section {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.announcements-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
}
.announcements-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}
.announcement-card {
    background-color: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    min-width: 300px;
}
.announcement-card h3 {
    color: var(--dark-bg);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}
.announcement-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.announcements-section .slider-controls {
    text-align: center;
    margin-top: 20px;
}
.announcements-section .slider-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    margin: 0 10px;
    outline: none;
}


/* Özellik Kartları Stilleri */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    background-color: #fff;
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
.feature-card .icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 3rem;
}
.feature-card .icon-circle i {
    color: #fff;
}
.feature-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.feature-card p {
    margin: 0;
    color: var(--secondary-color);
}


/* İstatistik Kartları */
.stats-overview {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: #fff;
}
.stats-overview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
}
.stats-overview .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.stats-overview .stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}
.stats-overview .stat-card:hover {
    transform: translateY(-5px);
}
.stats-overview .stat-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    color: var(--dark-bg);
    opacity: 0.9;
    font-weight: 500;
}
.stats-overview .stat-card p {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 10px 0 0 0;
    color: var(--primary-color);
}


/* Kurs Kartları */
.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.course-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}
.course-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.course-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin-top: auto;
}


/* Genel Buton Stilleri */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}
.btn-success {
    background-color: var(--success-color);
}
.btn-success:hover {
    background-color: #218838;
}
.purchase-btn {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
}
.purchase-btn:hover {
    background-color: #0056b3;
}


/* Footer Stilleri */
.main-footer {
    background-color: var(--dark-bg);
    color: #adb5bd;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 40px;
}
.main-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #495057;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-col h3, .footer-col h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}
.footer-col p {
    margin-top: 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col ul a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    color: #6c757d;
}


/* Mobil Uyumlu Tasarım */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    header nav {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav ul li {
        margin: 5px 10px;
    }
    .hero-section {
        height: 50vh;
        background-position: left;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .announcements-container {
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .announcement-card {
        min-width: 100%;
    }
    .announcements-section .slider-controls {
        display: none; /* Mobil'de kaydırma butonlarını gizle */
    }
    .features-section, .stats-cards, .courses-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-columns {
        flex-direction: column;
        text-align: center;
    }
}