/* ==========================================
   1. GENEL DEĞİŞKENLER VE TEMEL AYARLAR
   ========================================== */
:root {
    --primary: #0a2540;
    --secondary: #1e3a8a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   2. HEADER & NAVBAR (MANTIKLI FLEX DÜZENİ)
   ========================================== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 1; /* PC'de Logo solda */
}

.logo img {
    height: 45px;
    object-fit: contain;
}

/* Masaüstü Menü Linkleri Ortada */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 0;
    order: 2;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent);
}

/* Sağ Taraf (Sepet & User İkonları) En Sağda Sabit */
.nav-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 12px;
    align-items: center;
    order: 3;
}

.nav-actions .btn,
.nav-actions a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
}

/* ==========================================
   3. SAĞ ÜST KULLANICI AÇILIR MENÜSÜ (DROPDOWN)
   ========================================== */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: var(--white);
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    z-index: 999;
    overflow: hidden;
    text-align: left;
}

.user-dropdown-menu .dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    background: var(--bg-light);
    text-align: center;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.user-dropdown-menu a.logout-link {
    color: #dc2626;
    font-weight: 600;
    border-bottom: none;
}

.user-dropdown-menu a.logout-link:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================
   4. BUTONLAR VE ORTAK BİLEŞENLER
   ========================================== */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}

.btn-whatsapp:hover {
    background-color: #22bf5b;
    color: var(--white);
}

/* ==========================================
   5. KAPSAYICI VE SAYFA DÜZENİ
   ========================================== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* ==========================================
   6. KURS / PROGRAM KARTLARI VE LİSTELERİ
   ========================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-img {
    width: 100%;
    height: 180px;
    background-color: #0f172a;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.course-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.course-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
}

/* ==========================================
   7. KURS DETAY SAYFASI
   ========================================== */
.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-main h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.detail-main p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

.badge-edevlet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #dbeafe;
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.content-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.content-box h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.content-box ul {
    list-style-type: none;
    padding-left: 0;
}

.content-box ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.content-box ul li i {
    color: var(--accent);
}

.purchase-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.price-tag {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-bottom: 20px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.features-list li span:last-child {
    font-weight: 600;
    color: var(--primary);
}

/* ==========================================
   8. FORM ELEMANLARI VE FİLTRELER
   ========================================== */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.filter-container select {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    margin: 15px 0px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.filter-container select:hover {
    border-color: var(--accent);
}

.filter-container select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================
   9. MODAL YAPISI
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalScale 0.3s ease;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 5px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-footer-text {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
}

.modal-footer-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   10. SEPET VE ÖDEME (CHECKOUT) SAYFALARI
   ========================================== */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-summary, 
.order-summary-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

.cart-summary h3, 
.order-summary-box h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.checkout-card h2 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #16a34a;
    margin-top: 15px;
    font-weight: 500;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* ==========================================
   11. AUTH (GİRİŞ / KAYIT) SAYFALARI
   ========================================== */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
}

.auth-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
}

.auth-footer-text {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================
   12. HAKKIMIZDA VE İLETİŞİM SAYFALARI
   ========================================== */
.about-container, 
.contact-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-hero, 
.contact-hero {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h1, 
.contact-hero h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-hero p, 
.contact-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-grid, 
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
}

.about-card, 
.contact-info-card, 
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-card h3, 
.contact-form-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 60px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.stat-box .number {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 5px;
    display: block;
}

.stat-box .label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 20px;
    color: var(--accent);
    margin-top: 3px;
}

.info-item h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 3px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================
   13. HERO ALANI
   ========================================== */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(30, 58, 138, 0.8)), url('images/img/hero-bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-container h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff !important;
}

.hero-container p {
    font-size: 16px;
    color: #e2e8f0 !important;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 16px;
}

/* ==========================================
   14. SERTİFİKA DOĞRULAMA ALANI
   ========================================== */
.cert-verify-section {
    background-color: #f8fafc;
    padding: 60px 20px;
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.cert-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cert-container h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.cert-container > p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.cert-form-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cert-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.cert-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cert-card-box {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    text-align: left;
    border: 1px solid #e2e8f0;
    align-items: stretch;
}

.cert-info-col {
    flex: 1;
    padding: 35px;
}

.cert-info-col h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.cert-info-col p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cert-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cert-features-list li i {
    color: #16a34a;
}

.cert-img-col {
    flex: 1.2;
    padding: 0 !important;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.cert-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
    padding: 10px;
}

/* ==========================================
   15. ÖĞRENCİ GÖRÜŞLERİ (TESTIMONIALS)
   ========================================== */
.testimonials-section {
    margin-top: 70px;
    padding: 50px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.testimonial-user-info h3 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}

.testimonial-course {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}

.star-rating {
    color: #f59e0b;
    font-size: 14px;
}

.testimonial-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================
   16. FOOTER & SOSYAL MEDYA
   ========================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-copy {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================
   17. YARDIMCI SINIFLAR VE BİLEŞENLER
   ========================================== */
.cart-badge-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.alert-error {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 13px;
    background: #fee2e2;
    color: #991b1b;
}

.modal-logged-in-box {
    text-align: center;
    padding: 20px 0;
}

.success-text {
    margin-bottom: 15px;
    font-weight: 500;
    color: #166534;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ==========================================
   18. RESPONSIVE / MOBİL UYUMLULUK KURALLARI
   ========================================== */
@media (max-width: 992px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 12px 20px;
        position: relative;
    }

    /* Sol Grup: İçinde hem Burger hem Logo var, en solda durur */
    .header-left-group {
        display: flex;
        align-items: center;
        gap: 12px;
        order: 1;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary);
        padding: 0;
    }

    .logo img {
        height: 38px;
    }

    /* Sağ Taraf: Sepet ve Profil İkonları En Sağda Sabit */
    .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        order: 2;
        gap: 10px;
        margin-left: auto;
    }

    /* Açılır Mobil Menü (Tam Genişlik Alt Alta) */
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        color: var(--text-dark) !important;
        font-weight: 600;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--bg-light);
        color: var(--accent) !important;
    }

    .navbar.active .nav-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cert-form-group {
        flex-direction: column;
    }
    
    .cert-card-box {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr !important; /* Mobilde alt alta tek sütun olsun */
    }
    
    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    .cart-item > div:last-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 10px;
    }

    .checkout-grid {
        grid-template-columns: 1fr !important; /* Mobilde form ve sipariş özeti alt alta gelsin */
        gap: 20px;
    }
}