:root {
    --dark-navy: #0a2540;
    --blue: #0056b3;
    --light-gray: #f8f9fa;
    --text-on-dark: #ffffff;
    --yellow: #ffc107;
    --stroke: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-navy);
    margin: 0;
    padding: 0;
    color: var(--text-on-dark);
}

.baslik {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--dark-navy);
    color: var(--text-on-dark);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.baslik h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--yellow);
}

.cont {
    max-width: 3600px;
    margin: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kart yanyana */
    gap: 1.5rem;
    background: var(--dark-navy);
}

.card {
    background: #0f2d50; /* Kartları biraz daha açık yaptık */
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card h2 {
    color: var(--yellow);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-on-dark);
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    background: var(--blue);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.card a:hover {
    background: var(--yellow);
    color: var(--dark-navy);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    border-color: var(--blue);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0f2d50; /* Dark navy ile uyumlu */
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.4s ease;
}

.modal-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--stroke);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-baslik h2 {
    color: var(--text-on-dark);
}

.modal-baslik .close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--blue);
    transition: color 0.3s;
}

.modal-baslik .close:hover {
    color: var(--yellow);
}

.modal-body h3 {
    color: var(--blue);
    margin-top: 1.2rem;
}

.modal-body p, 
.modal-body ul, 
.modal-body li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-on-dark);
}

ul li strong {
    color: var(--text-on-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===================================== */
/*              RESPONSIVE               */
/* ===================================== */

/* 1200px ve altı (Büyük ekran -> Orta ekran geçişi) */
@media (max-width: 1200px) {
    .baslik h1 {
        font-size: 2.2rem;
    }
    .cont {
        grid-template-columns: repeat(2, 1fr); /* 3 yerine 2 kart */
    }
}

/* 768px ve altı (Tablet boyutu) */
@media (max-width: 768px) {
    .baslik {
        padding: 2rem 1rem;
    }

    .baslik h1 {
        font-size: 2rem;
    }

    .cont {
        grid-template-columns: 1fr; /* Tek sütun */
        padding: 1.5rem;
    }

    .card {
        padding: 1.2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* 576px ve altı (Mobil) */
@media (max-width: 576px) {
    .baslik h1 {
        font-size: 1.7rem;
    }

    .card h2 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .modal-content {
        padding: 1rem;
    }
}

/* 400px ve altı (Küçük telefonlar) */
@media (max-width: 400px) {
    .baslik h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }
}
