/* Genel Sayfa Yapısı */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CONTAINER STİLLERİ */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px; /* Sayfanın genelini daha da genişletmek için yeni maksimum genişlik */
    text-align: center;
    margin: 20px auto;
    flex-grow: 1;
    box-sizing: border-box;
}

/* index.php'deki form gibi dar görünüm isteyen genel bölümler için özel sınıf */
.container.narrow {
    max-width: 550px; /* Formlar veya dar içerikler için özel dar genişlik */
}

/* Form ve Başlık Stilleri (index.php, blog.php, vb.) */
h1 {
    color: #333;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f9f9f9;
}

.start-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.start-button:hover {
    background-color: #0056b3;
}

/* Kategori Listesi Stilleri */
.category-list {
    margin-top: 30px;
    text-align: left;
}

.category-list h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.category-list ul {
    list-style: none;
    padding: 0;
}

.category-list li {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    color: #495057;
}


/* --- GENEL MENÜ STİLLERİ (header.php) --- */
.header-nav {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-nav .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-nav .logo a:hover {
    color: #007bff;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.header-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.05em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}

.header-nav ul li a:hover {
    background-color: #0056b3;
    color: white;
}

.user-info {
    color: #f0f0f0;
    margin-left: 20px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.user-info a {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Blog Header için özel stil (blog_header.php) */
.blog-header-nav {
    background-color: #5cb85c; /* Bloga özel yeşilimsi bir renk */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.blog-header-nav .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}
.blog-header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.blog-header-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.blog-header-nav ul li a:hover {
    color: #337ab7;
}


/* Ek genel buton stilleri */
.go-home-btn, .retry-test-btn, .save-test-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.go-home-btn:hover, .retry-test-btn:hover, .save-test-btn:hover { background-color: #0056b3; }
.retry-test-btn { background-color: #28a745; }
.retry-test-btn:hover { background-color: #218838; }
.save-test-btn { background-color: #ffc107; color: #343a40; }
.save-test-btn:hover { background-color: #e0a800; }

/* Footer stilleri */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    width: 100%;
}

/* TEST SAYFASI STİLLERİ */

/* Soru görseli */
.question-image-display {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Cevap Seçenekleri Bölümü */
.answer_bd.round {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background-color 0.1s;
    text-align: left;
}
.answer_bd.round:hover {
    background-color: #e9e9e9;
}
.answer_bd.round input[type="radio"] {
    display: none;
}
.option-selection-area {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    position: relative;
}
.option-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}
.option-icon img {
    max-width: 30px;
    max-height: 30px;
}
.option-content-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0 5px;
    flex-wrap: wrap;
}
.answer_option_character {
    font-weight: bold;
    margin-right: 8px;
    min-width: 25px;
    text-align: left;
    flex-shrink: 0;
}
.option-text-display {
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.option-image-display { /* Şık görseli için boyut */
    max-width: 100px;
    max-height: 75px;
    height: auto;
    border: 1px solid #eee;
    margin-left: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}
.option-content-area .option-text-display + .option-image-display {
    margin-left: 15px;
}
.question-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.question-nav button { background-color: #6c757d; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.9em; }
.question-nav button:hover { background-color: #5a6268; }
.question-nav button:disabled { background-color: #ccc; cursor: not-allowed; }
.question-nav span { font-weight: bold; font-size: 1.1em; color: #333; }

.question-block { margin-bottom: 25px; border: 1px solid #eee; padding: 20px; border-radius: 8px; }
.question-block p.q-text { font-size: 1.3em; font-weight: bold; margin-bottom: 15px; color: #333; }

.feedback-area { margin-top: 20px; padding: 15px; border-radius: 5px; display: none; }
.feedback-correct { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.feedback-incorrect { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.explanation { margin-top: 15px; padding: 12px; background-color: #e0f7fa; border-left: 5px solid #00bcd4; font-size: 0.95em; line-height: 1.5; display: none; }

.test-end-message { text-align: center; font-size: 1.5em; color: #28a745; font-weight: bold; margin-top: 30px; }
.test-end-summary { margin-top: 20px; padding: 20px; border: 1px solid #007bff; background-color: #e7f3ff; border-radius: 8px; }
.test-end-summary p { font-size: 1.1em; margin-bottom: 10px; }
.test-end-summary .score { font-size: 1.5em; font-weight: bold; color: #28a745; }

/* user_panel.php stilleri */
.welcome-message { font-size: 1.2em; margin-bottom: 20px; color: #555; }
.saved-tests-list { margin-top: 30px; text-align: left; }
.saved-tests-list h2 { color: #333; margin-bottom: 15px; font-size: 1.3em; }
.saved-tests-list ul { list-style: none; padding: 0; }
.saved-tests-list li { background-color: #e9ecef; border: 1px solid #dee2e6; padding: 15px; margin-bottom: 10px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
.saved-tests-list li span { flex-grow: 1; }
.saved-tests-list li .actions a, .saved-tests-list li .actions button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}
.saved-tests-list li .actions a:hover, .saved-tests-list li .actions button:hover {
    background-color: #0056b3;
}
.saved-tests-list li .actions .delete-btn { background-color: #dc3545; }
.saved-tests-list li .actions .delete-btn:hover { background-color: #c82333; }
.no-saved-tests { color: #6c757d; font-style: italic; }

/* Homepage Genel Bölüm Stilleri */
.main-homepage-content {
    /* Genel .container stilini kullanacak */
}

.homepage-section {
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.homepage-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.homepage-section h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #ccc;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 40px auto;
    width: 80%;
}

/* Test Seçim Bölümü (homepage-section içine alındı) */
.test-selection-section {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* .test-selection-section içindeki elemanları da kapsayıcıya sığdır */
.test-selection-section .form-group,
.test-selection-section .start-button,
.test-selection-section .category-list {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}


/* Blog Bölümü (homepage-section içine alındı) */
.blog-section {
    /* Genel blog stillerini kullanacak */
}

/* blog-post-list ve blog-post-card stilleri */
.blog-post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
    align-items: stretch;
}
.homepage-blog-list.blog-post-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.post-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-card h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.blog-post-card h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: #007bff;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.blog-post-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more-btn:hover {
    background-color: #0056b3;
}

.no-posts-found {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: 50px;
}

/* Tekil Blog Yazısı Sayfası Stilleri (blog_single.php) */
.blog-single-content {
    text-align: left;
}

.blog-single-content h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
}

.single-post-image-container {
    text-align: center;
    margin: 20px 0;
}

.single-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-full-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-top: 20px;
}

.post-full-content p {
    margin-bottom: 1em;
}

.back-to-blog-btn {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.back-to-blog-btn:hover {
    background-color: #5a6268;
}


/* Responsive Ayarlar - Blog için */
@media (max-width: 992px) {
    .blog-post-list,
    .homepage-blog-list.blog-post-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-post-list,
    .homepage-blog-list.blog-post-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .blog-post-card {
        margin-bottom: 0;
    }
    .blog-single-content h1 {
        font-size: 1.8em;
    }
}


/* Blog Header için özel stil (blog_header.php) */
.blog-header-nav {
    background-color: #5cb85c; /* Bloga özel yeşilimsi bir renk */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.blog-header-nav .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}
.blog-header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.blog-header-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.blog-header-nav ul li a:hover {
    color: #337ab7;
}
/* user-info stilleri blog header'da da benzer kalabilir */
/* Eğer user-info için genel bir .user-info sınıfı style.css'te varsa, burada tekrar tanımlamaya gerek kalmaz. */


/* Responsive ayarlar (blog header için de geçerli olabilir) */
@media (max-width: 768px) {
    .blog-header-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .blog-header-nav .logo {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    .blog-header-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        margin-top: 10px;
    }
    .blog-header-nav ul li {
        width: 100%;
        text-align: center;
    }
    .blog-header-nav ul li a { /* Eklenen: Mobil menü linkleri için padding ve border-bottom */
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .blog-header-nav ul li:last-child a { /* Eklenen: Son menü linkinde border-bottom olmasın */
        border-bottom: none;
    }
}
/* Menü Öğeleri Kapsayıcısı */
.main-nav-links {
    display: flex; /* Masaüstünde yan yana hizala */
    align-items: center;
    gap: 15px; /* Menü öğeleri arası boşluk */
}
/* User info ve ul'yi ayırmak için (eğer user-info sağda kalacaksa) */
.main-nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Yatay menü için */
    gap: 15px; /* Menü öğeleri arasında boşluk */
}
.main-nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.05em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}
.main-nav-links ul li a:hover {
    background-color: #0056b3;
    color: white;
}
/* User Info (eğer main-nav-links içinde ise) */
.main-nav-links .user-info {
    color: #f0f0f0;
    margin-left: 20px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}
.main-nav-links .user-info a {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.main-nav-links .user-info a:hover {
    text-decoration: underline;
}


/* Hamburger Butonu Stilleri (Varsayılan olarak gizli) */
.menu-toggle {
    display: none; /* Masaüstünde gizle */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Menünün üstünde olması için */
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

/* Hamburger butonu açıldığında animasyon */
.menu-toggle.is-active .hamburger {
    background-color: transparent; /* Orta çizgiyi gizle */
}

.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ... (Mevcut responsive ayarlar) ... */

/* Responsive Ayarlar - Telefonlar ve küçük tabletler için */
@media (max-width: 768px) {
    /* Hamburger butonunu göster */
    .menu-toggle {
        display: block;
    }

    /* Menü öğeleri kapsayıcısı (varsayılan olarak gizli) */
    .main-nav-links {
        display: none; /* Varsayılan olarak gizle */
        flex-direction: column; /* Alt alta sırala */
        width: 100%; /* Tam genişlik */
        position: absolute; /* Menüyü sayfa dışına taşı */
        top: 60px; /* Header yüksekliğine göre ayarla */
        left: 0;
        background-color: #333; /* Header'ın arka plan rengi */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        overflow-y: auto; /* Çok fazla menü öğesi olursa kaydırılabilir yap */
        max-height: calc(100vh - 60px); /* Ekran yüksekliğine göre maksimum yükseklik */
        padding-bottom: 20px; /* Alttan boşluk */
        
        /* Açılma/kapanma animasyonu için */
        transform: translateX(-100%); /* Başlangıçta ekran dışına taşı */
        transition: transform 0.3s ease-in-out;
    }

    /* Menü aktif olduğunda görünür yap */
    .main-nav-links.is-active {
        display: flex; /* Gerekirse flex yapısı */
        transform: translateX(0); /* Ekran içine getir */
    }

    /* Menü öğeleri */
    .main-nav-links ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 10px;
    }

    .main-nav-links ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 0; /* Her li arasında boşluk olmasın, a'ya padding verdik */
    }

    .main-nav-links ul li a {
        padding: 15px 20px; /* Daha fazla dokunma alanı */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1em;
    }

    .main-nav-links ul li:last-child a {
        border-bottom: none;
    }

    /* Kullanıcı bilgisi menünün altında */
    .main-nav-links .user-info {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
    }
}

/* login.php ve register.php form stilleri için */
/* .container zaten genel sayfa kapsayıcınız. Şimdi formu onun içine ortalayacağız. */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* Header ve Footer yüksekliğini düşerek ekranı kapla */
    padding: 20px;
    box-sizing: border-box;
    /* Eğer login/register sayfalarında header/footer yoksa veya sabit değilse bu min-height ayarı bozulabilir. */
    /* Bu durumda, body üzerinde display:flex ve flex-direction:column kullanarak ayarlama yapılabilir. */
}

.login-form, .register-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px; /* Formun maksimum genişliği */
    text-align: center;
    box-sizing: border-box;
}

.login-form h1, .register-form h1 { /* h2 yerine h1 kullanıldı */
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"], /* email inputu eklendi */
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] { /* email inputu eklendi */
    width: calc(100% - 22px); /* Padding ve border'ı hesaba kat */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1em;
    box-sizing: border-box;
}

.login-form button, .register-form button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Butonu tam genişlik yap */
    box-sizing: border-box;
}
.login-form button:hover, .register-form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

.login-form p, .register-form p {
    margin-top: 25px;
    font-size: 1em;
    color: #666;
}
.login-form p a, .register-form p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.login-form p a:hover, .register-form p a:hover {
    text-decoration: underline;
}

/* Mesaj stilleri */
.message { margin-bottom: 15px; padding: 10px; border-radius: 5px; text-align: center; }
.message p { margin: 0; }
.message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
/* Mobil cihazlar için genel düzenleme (responsive design) */
@media (max-width: 768px) { /* Tablet ve daha küçük ekranlar için */
    .main-homepage-content {
        padding-left: 15px;  /* Sol kenardan biraz boşluk */
        padding-right: 15px; /* Sağ kenardan biraz boşluk */
        /* max-width: none;  Eğer varsa max-width'i kaldırın */
    }

    .homepage-section {
        width: 100%;       /* Bölümün tam genişliği kaplamasını sağlar */
        max-width: 100%;   /* Eğer üst sınıflardan geliyorsa bu değeri ezin */
        padding-left: 0;   /* Bölümün kendi sol iç boşluğunu kaldırın */
        padding-right: 0;  /* Bölümün kendi sağ iç boşluğunu kaldırın */
        box-sizing: border-box; /* Padding'in genişliğe dahil olmasını sağlar */
    }

    /* Özellikle karşılama mesajı için */
    .welcome-message {
        width: 100%;      /* Tam genişlik */
        max-width: 100%;  /* Maksimum genişliği kaldırın */
        padding: 20px 15px; /* Üst/alt 20px, yanlar 15px boşluk */
        box-sizing: border-box; /* Padding'in genişliğe dahil olmasını sağlar */
    }

    .welcome-message h2 {
        font-size: 1.5em; /* Mobil için başlık boyutunu ayarla */
        text-align: center; /* Başlığı ortalayabiliriz */
    }

    .welcome-message p {
        font-size: 1em;   /* Paragraf font boyutunu ayarla */
        line-height: 1.6; /* Satır yüksekliği okunabilirliği artırır */
        text-align: justify; /* Metni yaslayabiliriz */
    }
}

/* Genel stil (tüm ekranlar için, gerektiğinde medya sorgularıyla ezilebilir) */
.welcome-message {
    margin-bottom: 30px; /* Diğer içerikle arasında boşluk bırakır */
}

/* Genel Stil Düzenlemeleri */
/* Bu kısımlar önceki versiyondan aynıdır, lütfen mevcut CSS dosyanızda olduğundan emin olun */
/* Genel Stil Düzenlemeleri */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

.test-end-message {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #e9f5ff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.test-end-summary {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Yeni eklenen bu kısım, her bir özet satırını düzenler */
.summary-line {
    display: flex;
    justify-content: space-between; /* Etiket ve değeri iki yana yasla */
    align-items: center; /* Dikeyde ortala */
    font-size: 1.2em;
    color: #444;
    padding-bottom: 10px; /* Her satır arasına boşluk */
    margin-bottom: 15px; /* Altındaki select box'tan biraz boşluk */
    border-bottom: 1px dashed #eee; /* İnce bir çizgi */
}

/* En alttaki summary-line için çizgiyi kaldır */
.test-end-summary .summary-line:last-of-type {
    border-bottom: none;
}

.summary-line .label {
    flex-grow: 1; /* Metnin yer kaplamasını sağla */
}

.summary-line .value {
    font-weight: bold;
    font-size: 1.3em;
    min-width: 30px; /* Sayıların sabit genişliği */
    text-align: right; /* Sayıyı sağa hizala */
}

/* Renklendirme için özel sınıflar */
.value.correct-score {
    color: #28a745; /* Yeşil ton */
}

.value.wrong-score {
    color: #dc3545; /* Kırmızı ton */
}

.value.unanswered-score {
    color: #ffc107; /* Turuncu/Sarı ton */
}


/* Kategori bloğu (Doğru, Yanlış, Cevaplanmamış) */
.result-category-block {
    margin-bottom: 25px; /* Her kategori bloğu arasına boşluk */
    padding-bottom: 15px;
    /* border-bottom: 1px solid #f0f0f0; */ /* Artık summary-line'da olduğu için burada kaldırılabilir */
}
.result-category-block:last-of-type {
    border-bottom: none;
}

/* Select Box ve Buton Grupları İçin Wrapper Stili */
.result-select-box-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px; /* Select box'ı etiketten ayır */
    flex-wrap: wrap;
    justify-content: center;
}

.result-select-box-wrapper select {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    height: 40px;
    background-color: #fcfcfc;
    color: #333;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
}

.result-select-box-wrapper select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Küçük buton stili */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    height: 40px;
}

.btn-sm:hover {
    background-color: #0056b3;
}

/* Diğer mevcut buton stilleriniz (retry-test-btn, go-home-btn, btn-primary) */
.retry-test-btn, .go-home-btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.retry-test-btn {
    background-color: #28a745;
    color: white;
}

.retry-test-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.go-home-btn {
    background-color: #6c757d;
    color: white;
}

.go-home-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn.btn-primary {
    background-color: #ffc107;
    color: #343a40;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

/* Eğer genel soru navigasyon butonlarınız için bir stil yoksa */
.question-nav button {
    padding: 10px 20px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.question-nav button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.question-nav button:hover:not(:disabled) {
    background-color: #138496;
}

/* Metin ve diğer mevcut stiller */
.q-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.options .answer_bd {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.options .answer_bd:hover {
    background-color: #e2e6ea;
    border-color: #c6d0da;
}

.option-selection-area, .option-content-area {
    display: flex;
    align-items: flex-start;
}

.answer_option_character {
    font-weight: bold;
    margin-right: 10px;
    color: #007bff;
}

.option-text-display {
    flex-grow: 1;
}

.question-image-display, .option-image-display {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}

/* Yeni eklenen CSS kuralı */
.btn-report-question {
    background-color: #dc3545; /* Kırmızı ton */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-report-question:hover {
    background-color: #c82333; /* Koyu kırmızı */
    transform: translateY(-1px);
}

.report-question-section {
    margin-top: 20px;
    margin-bottom: 20px; /* Alttaki butonlardan biraz boşluk */
    padding-top: 15px;
    border-top: 1px dashed #eee; /* Üstünde ince bir çizgi */
    text-align: center;
}
/* Modal Genel Stilleri */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; /* Sabit pozisyon */
    z-index: 1000; /* Diğer her şeyin üzerinde */
    left: 0;
    top: 0;
    width: 100%; /* Tam genişlik */
    height: 100%; /* Tam yükseklik */
    overflow: auto; /* Gerekirse kaydırma çubukları */
    background-color: rgba(0,0,0,0.6); /* Hafif karartılmış arka plan */
    display: flex; /* İçeriği ortalamak için */
    align-items: center; /* Dikeyde ortala */
    justify-content: center; /* Yatayda ortala */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Flexbox ile ortalamak için */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Genişlik */
    max-width: 500px; /* Maksimum genişlik */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Modal açılış animasyonu */
@keyframes animatetop {
    from {top: -300px; opacity: 0} 
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Padding'in genişliğe dahil olmasını sağlar */
}

.form-group textarea {
    resize: vertical; /* Sadece dikeyde yeniden boyutlandırmaya izin ver */
}

.modal-content .btn-primary {
    display: block; /* Butonu tam genişlikte yap */
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    font-size: 1.1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content .btn-primary:hover {
    background-color: #0056b3;
}
/* Mevcut .btn-danger veya .btn-report-question stillerinin altına ekleyin */
.btn-report-question.reported-disabled {
    background-color: #6c757d; /* Gri ton */
    cursor: not-allowed;
    pointer-events: none; /* Mouse olaylarını tamamen engeller */
    opacity: 0.7;
}
.btn-report-question.reported-disabled:hover {
    background-color: #6c757d; /* Hover'da da aynı kalsın */
    transform: none; /* Hover animasyonunu iptal et */
}