﻿/* ========================================
   CSS VARIABLES - RENK PALETİ
   ======================================== */
:root {
    --primary-color: #C84648;
    --secondary-color: #2C5F8D;
    --accent-color: #1B4B7A;
    --light-accent: #E8F1F8;
    --darker-accent: #1A3A5C;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F4F8FB;
    --bg-white: #ffffff;
    --border-light: #D1E3F0;
    --success: #28A745;
    --warning: #F39C12;
    --danger: #C84648;
    --student-color: #3A7BC8;
    --adult-color: #2C5F8D;
}
/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Ana container genişliği artırıldı */
.container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

/* ========================================
   HEADER SECTION
   ======================================== */


.header-section {
    background: linear-gradient(135deg, #2C5F8D 0%, #1B4B7A 100%);
    color: white;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

    .header-section::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        height: 400px;
        background: radial-gradient(circle at center, rgba(58, 123, 200, 0.15) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
        pointer-events: none;
    }

    .header-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at bottom left, rgba(200, 70, 72, 0.6) 0%, rgba(200, 70, 72, 0.4) 15%, rgba(200, 70, 72, 0.2) 25%, transparent 40%), radial-gradient(circle at bottom right, rgba(200, 70, 72, 0.6) 0%, rgba(200, 70, 72, 0.4) 15%, rgba(200, 70, 72, 0.2) 25%, transparent 40%);
        pointer-events: none;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}



/* Belediye Link */
.belediye-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .belediye-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .belediye-link a {
        color: white;
        font-weight: 500;
        text-decoration: none;
        font-size: 0.95rem;
    }

/* Logo Container */
.logo-container {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.urla-logo {
    width: 120px;
    height: 120px;
    background: var(--bg-white);
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

    .urla-logo:hover {
        transform: scale(1.05) rotateY(5deg);
    }

    .urla-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
        display: block;
    }

.site-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    100% {
        text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: var(--bg-white);
    padding: 80px 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    border-radius: 24px 24px 0 0;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(139, 75, 124, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-color), var(--light-accent));
    }

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px rgba(139, 75, 124, 0.15);
    }

.stat-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   COURSE SECTION
   ======================================== */
.course-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: left;
    margin-bottom: 45px;
}

    .section-title h2 {
        font-size: 2.8rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 16px;
        letter-spacing: -1px;
        position: relative;
    }

        .section-title h2::after {
            content: '';
            display: block;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-color), var(--light-accent));
            margin: 24px 0;
            border-radius: 2px;
        }

    .section-title p {
        font-size: 1.2rem;
        color: var(--text-light);
        max-width: 600px;
    }

/* ========================================
   CATEGORY HEADER
   ======================================== */
.category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 32px 40px;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

    .category-header::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
    }

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.category-limit {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.student-category {
    background: linear-gradient(135deg, var(--student-color) 0%, #20c997 100%);
}

.adult-category {
    background: linear-gradient(135deg, var(--student-color) 0%, #20c997 100%)
}

/* ========================================
   COURSE GRID SYSTEM - GENİŞLETİLMİŞ
   ======================================== */

/* Kategori bölümü için genişletilmiş alan */
.mb-5 {
    margin-bottom: 3rem;
    width: 100%;
    max-width: none;
}

.course-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 35px;
    overflow: visible;
    width: 100%;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
    justify-items: center;
    align-items: start;
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
}

    .course-grid:has(.course-item:only-child) {
        justify-content: center;
    }


.course-item {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 380px;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 24px rgba(26, 75, 132, 0.08);
    /* Arka plan açık ton kategori rengi */
    background: linear-gradient(135deg, rgba(var(--category-color-rgb), 0.03) 0%, var(--bg-white) 50%, rgba(var(--category-color-rgb), 0.03) 100%);
}

    /* Çapraz gradient parlama efekti */
    .course-item::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 45deg, transparent 0%, transparent 40%, rgba(var(--category-color-rgb), 0.15) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(var(--category-color-rgb), 0.15) 55%, transparent 60%, transparent 100% );
        opacity: 0;
        transition: all 0.6s ease;
        z-index: 0;
        pointer-events: none;
    }

    .course-item:hover::before {
        opacity: 1;
        transform: translate(50%, 50%) rotate(45deg);
    }

    /* Hover'da border rengi değişsin */
    .course-item:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 50px rgba(var(--category-color-rgb), 0.15);
        border-color: var(--category-color);
        background: linear-gradient(135deg, rgba(var(--category-color-rgb), 0.08) 0%, var(--bg-white) 50%, rgba(var(--category-color-rgb), 0.08) 100%);
    }

    /* Glow border efekti (eski kod) */
    .course-item::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, var(--category-color), var(--category-color-dark), var(--category-color-darker));
        border-radius: 18px;
        z-index: -1;
        opacity: 0;
        transition: all 0.4s ease;
        filter: blur(10px);
    }

    .course-item:hover::after {
        opacity: 0.3;
    }

/* İçerik z-index ayarı */
.course-image,
.course-content {
    position: relative;
    z-index: 1;
}

.course-item:hover .course-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.course-item:hover .course-title {
    color: var(--primary-color);
}

.course-category {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: rgba(64, 160, 184, 0.1);
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-description {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    min-height: 75px;
    transition: color 0.3s ease;
}

.course-item:hover .course-description {
    color: var(--text-dark);
}

.course-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px solid var(--bg-light);
    transition: border-color 0.3s ease;
}

.course-item:hover .course-info {
    border-color: var(--light-accent);
}

.course-date-info {
    background: linear-gradient(135deg, rgba(64, 160, 184, 0.08) 0%, rgba(184, 224, 232, 0.1) 100%);
    border: 1px solid var(--light-accent);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    padding: 12px 14px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .course-date-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

.course-item:hover .course-date-info::before {
    left: 100%;
}

.course-date-info small {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.course-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.course-quota {
    color: var(--text-light);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.course-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    background: rgba(64, 160, 184, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.course-item:hover .course-date {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-apply {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 2;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(26, 75, 132, 0.3);
    transform: translateY(0);
    cursor: pointer;
}

    .btn-apply::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn-apply:hover {
        background-position: 100% 0;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(26, 75, 132, 0.4);
        color: white;
    }

        .btn-apply:hover::before {
            left: 100%;
        }

    .btn-apply:active {
        transform: translateY(-1px);
    }

    .btn-apply.disabled,
    .btn-apply:disabled {
        background: linear-gradient(135deg, #a0aec0, #cbd5e0);
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 8px rgba(160, 174, 192, 0.2);
        pointer-events: none;
        opacity: 0.6;
    }

/* ========================================
   DETAY BUTONU - HOVER BEYAZ
   ======================================== */

.btn-detail {
    background: var(--bg-white);
    color: var(--category-color);
    border: 2px solid var(--category-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

    .btn-detail::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--category-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
        z-index: -1;
    }

    .btn-detail:hover::before {
        transform: scaleX(1);
    }

    .btn-detail:hover {
        color: white !important; /* BEYAZ YAZI */
        border-color: var(--category-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(var(--category-color-rgb), 0.3);
    }

        /* Detay butonu içindeki ikon da beyaz olsun */
        .btn-detail:hover i {
            color: white !important;
        }

/* ========================================
   BADGES & STATUS
   ======================================== */
.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: scale(1);
}

    .badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .badge:hover::before {
        left: 100%;
    }

    .badge:hover {
        transform: scale(1.05);
    }

.bg-success {
    background: #1ba9b2;
    color: white;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger), #e91e63) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning), #ff9800) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 164, 96, 0.3);
}

.bg-secondary {
    background: linear-gradient(135deg, #a0aec0, #cbd5e0) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

/* ========================================
   NO COURSES MESSAGE
   ======================================== */
.no-courses {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

    .no-courses i {
        font-size: 4rem;
        margin-bottom: 24px;
        color: var(--accent-color);
        opacity: 0.5;
        animation: float 3s ease-in-out infinite;
    }

    .no-courses h3 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        color: var(--text-dark);
    }

    .no-courses p {
        font-size: 1.1rem;
        max-width: 400px;
        margin: 0 auto;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2C5F8D 0%, #1B4B7A 100%);
    color: white;
    padding: 80px 0 32px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        height: 400px;
        background: radial-gradient(circle at center, rgba(58, 123, 200, 0.08) 0%, rgba(58, 123, 200, 0.04) 40%, transparent 70%);
        pointer-events: none;
    }

    .footer::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at bottom left, rgba(200, 70, 72, 0.6) 0%, rgba(200, 70, 72, 0.4) 15%, rgba(200, 70, 72, 0.2) 25%, transparent 40%), radial-gradient(circle at bottom right, rgba(200, 70, 72, 0.6) 0%, rgba(200, 70, 72, 0.4) 15%, rgba(200, 70, 72, 0.2) 25%, transparent 40%);
        pointer-events: none;
    }

    .footer .container {
        position: relative;
        z-index: 2;
    }

    .footer h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 16px;
        position: relative;
        z-index: 3;
    }

    .footer a {
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

        .footer a:hover {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: underline;
            transform: translateX(3px);
        }

        .footer a i {
            transition: transform 0.3s ease;
        }

        .footer a:hover i {
            transform: scale(1.2);
        }

    .footer .text-white-50 {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .footer hr {
        border-color: rgba(255,255,255,0.1) !important;
        position: relative;
        z-index: 2;
    }

    .footer ul li {
        transition: transform 0.2s ease;
    }

        .footer ul li:hover {
            transform: translateX(5px);
        }

    .footer .text-white-50 p {
        transition: color 0.3s ease;
    }

        .footer .text-white-50 p:hover {
            color: rgba(255, 255, 255, 0.9) !important;
        }

    .footer h5 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 20px;
        font-size: 1.2rem;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: #C84648;
            border-radius: 2px;
        }

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .social-icon:hover {
        background: #C84648;
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(200, 70, 72, 0.4);
    }

/* Footer Links */
.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .footer-links li a:hover {
        color: #ffffff;
        padding-left: 8px;
    }

    .footer-links li a i {
        font-size: 0.7rem;
        transition: all 0.3s ease;
    }

    .footer-links li a:hover i {
        color: #C84648;
    }

/* Footer Contact */
.footer-contact p {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

    .footer-contact p i {
        color: #C84648;
        margin-top: 3px;
        min-width: 20px;
    }

    .footer-contact p a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-contact p a:hover {
            color: #ffffff;
        }

/* Footer Divider */
.footer-divider {
    margin: 40px 0 25px 0;
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 10px;
}

    .footer-bottom p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
    }

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
        margin-top: 60px;
    }

        .footer h5 {
            margin-top: 30px;
            font-size: 1.1rem;
        }

        .footer .col-md-6:first-child h5 {
            margin-top: 0;
        }

    .social-links {
        margin-bottom: 20px;
    }

    .footer-bottom {
        text-align: center !important;
    }

        .footer-bottom .col-md-4 {
            margin-top: 15px;
        }
}
/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -25px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.modal.show .modal-dialog {
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.course-item[data-new="true"] {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Extra Large screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1500px;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 25px;
        max-width: 1450px;
    }

    .course-item {
        max-width: 420px;
        min-height: 480px;
    }

    .course-image {
        height: 220px;
    }
}

/* Large screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1350px;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
        padding: 22px;
        max-width: 1300px;
    }

    .course-item {
        max-width: 390px;
        min-height: 475px;
    }

    .course-image {
        height: 210px;
    }
}

/* Medium-Large screens (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 18px;
        max-width: 100%;
    }

    .course-item {
        max-width: 340px;
        min-height: 450px;
    }

    .course-image {
        height: 180px;
    }
}

/* Medium screens (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 15px;
    }

    .course-item {
        max-width: 100%;
        min-height: 420px;
    }

    .site-title {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2.4rem;
    }

    .category-title {
        font-size: 1.6rem;
    }
}

/* Small screens (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }

    .course-item {
        max-width: 100%;
        min-height: 380px;
    }

    .course-content {
        padding: 15px;
    }

    .course-image {
        height: 160px;
    }

    .course-title {
        font-size: 1.1rem;
        min-height: 50px;
    }

    .course-description {
        font-size: 0.88rem;
        min-height: 65px;
    }

    .course-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-apply,
    .btn-detail {
        flex: none;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .header-section {
        padding: 70px 0 50px 0;
    }

    .urla-logo {
        width: 150px;
        height: 150px;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .belediye-link {
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 10px 12px;
        text-align: center;
    }

        .belediye-link a {
            font-size: 0.85rem;
            display: block;
        }

    .logo-container {
        margin-top: 25px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-header {
        padding: 24px 20px;
    }

    .category-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Extra small screens (max 575px) */
@media (max-width: 575px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 10px;
    }

    .course-item {
        min-height: 360px;
        max-width: 100%;
    }

    .course-content {
        padding: 15px;
    }

    .course-image {
        height: 200px;
    }

    .course-title {
        font-size: 1rem;
        min-height: 40px;
    }

    .course-description {
        font-size: 0.8rem;
        min-height: 100px;
        -webkit-line-clamp: 2;
    }

    .course-status-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 6px;
    }

    .course-date-info {
        padding: 10px;
        margin-bottom: 10px;
    }

    .course-actions {
        gap: 6px;
    }

    .btn-apply,
    .btn-detail {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .header-section {
        padding: 80px 0 50px 0;
        min-height: 350px;
    }

    .urla-logo {
        width: 120px;
        height: 120px;
    }

    .site-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .site-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .belediye-link {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 10px;
    }

        .belediye-link a {
            font-size: 0.8rem;
        }

    .logo-container {
        margin-top: 30px;
    }

    .stats-section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .course-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .category-header {
        padding: 20px 15px;
        border-radius: 12px 12px 0 0;
    }

    .category-limit {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .footer {
        padding: 40px 0 20px 0;
    }

        .footer h5 {
            font-size: 1.1rem;
            margin-bottom: 12px;
        }

        .footer p,
        .footer li {
            font-size: 0.9rem;
        }
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */
.btn-apply:focus,
.btn-detail:focus {
    outline: 3px solid rgba(64, 160, 184, 0.5);
    outline-offset: 2px;
}

.course-item:focus-within {
    box-shadow: 0 0 0 3px rgba(64, 160, 184, 0.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.d-inline-block {
    display: inline-block;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.p-0 {
    padding: 0;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.fw-normal {
    font-weight: 400;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .course-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }

    .btn-apply,
    .btn-detail {
        display: none;
    }

    .header-section {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .course-image {
        height: 150px;
        filter: grayscale(100%);
    }

    .footer {
        background: white;
        color: black;
        border-top: 2px solid #ccc;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .loading .course-item {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    .course-item {
        border-width: 3px;
        border-color: #000;
    }

    .btn-apply {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }

    .btn-detail {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .course-item:hover {
        transform: none;
    }

    .btn-apply:hover,
    .btn-detail:hover {
        transform: none;
    }
}




/* ========================================
   MENU NAVIGATION
   ======================================== */
.menu-navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-bar {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
}

    .menu-bar::-webkit-scrollbar {
        height: 4px;
    }

    .menu-bar::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.menu-item {
    transition: all 0.3s;
    opacity: 0.85;
    text-decoration: none;
    display: inline-block;
}

    .menu-item:hover {
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .menu-item.active {
        opacity: 1;
        box-shadow: inset 0 -4px 0 rgba(255,255,255,0.5);
    }



/* ========================================
   DİNAMİK KATEGORİ RENKLERİ
   ======================================== */

/* Kategori renk değişkenleri ile çalışan stiller */
.course-item {
    --category-color: var(--accent-color);
    --category-color-dark: var(--darker-accent);
    --category-color-darker: var(--primary-color);
}

    /* Tarih bilgisi border rengi */
    .course-item .course-date-info {
        border-left-color: var(--category-color);
        background: linear-gradient(135deg, rgba(var(--category-color-rgb), 0.08) 0%, rgba(var(--category-color-rgb), 0.1) 100%);
    }

    /* Başvuru butonu gradyanı */
    .course-item .btn-apply {
        background: linear-gradient(135deg, var(--category-color) 0%, var(--category-color-dark) 50%, var(--category-color-darker) 100%);
        box-shadow: 0 6px 20px rgba(var(--category-color-rgb), 0.3);
    }

        .course-item .btn-apply:hover {
            box-shadow: 0 10px 30px rgba(var(--category-color-rgb), 0.4);
        }

    /* Detay butonu border ve hover */
    .course-item .btn-detail {
        border-color: var(--category-color);
        color: var(--category-color);
    }

        .course-item .btn-detail::before {
            background: var(--category-color);
        }

        .course-item .btn-detail:hover {
            background: var(--category-color);
            box-shadow: 0 6px 20px rgba(var(--category-color-rgb), 0.3);
        }

    /* Kurs tarihi badge */
    .course-item .course-date {
        background: rgba(var(--category-color-rgb), 0.1);
        color: var(--category-color);
    }

    .course-item:hover .course-date {
        background: var(--category-color);
        color: white;
    }

    /* Kategori badge */
    .course-item .course-category {
        background: rgba(var(--category-color-rgb), 0.1);
        color: var(--category-color);
    }

    /* Hover efektleri için glow */
    .course-item:hover {
        border-color: var(--category-color);
    }

        .course-item:hover::before {
            background: linear-gradient(45deg, var(--category-color), var(--category-color-dark), var(--category-color-darker));
        }
