:root {
    --primary-color: #1a365d;
    --primary-hover: #0f2744;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER & NAVİGASYON */
.site-header {
    background-color: var(--primary-color);
    color: #ffffff;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}  

  .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .social-links a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .social-links a svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.25s ease;
  }

  .social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .social-links a:hover svg {
    transform: scale(1.1);
  }

  .social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
  }

  .social-links a[aria-label="X"]:hover {
    background: #0f1419;
    border-color: rgba(255, 255, 255, 0.4);
  }

  .social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
  }

  .social-links a[aria-label="YouTube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
  }

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background 0.2s ease;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    display: none;
    background: var(--primary-color);
    padding: 10px 15px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    color: #ffffff;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
}

.header-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #f1c40f);
}

/* SAYFA DÜZENİ (LAYOUT & SIDEBAR) */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.layout-wrapper {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 12px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #ebf4ff;
    color: var(--primary-color);
    font-weight: 600;
}

.content-area {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

/* FORM ELEMANLARI & BUTONLAR */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.form-group .form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius);
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

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

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

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-img {
    height: 50px;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
}

.captcha-refresh {
    font-size: 13px;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
}

/* BİLDİRİM VE UYARI KUTULARI (ALERTS) */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #e8f8f0;
    border: 1px solid #b7ebd0;
    color: #1e7e44;
}

.alert-danger {
    background-color: #fdeeee;
    border: 1px solid #fad2d2;
    color: #b02a1c;
}

.alert-info {
    background-color: #ebf5fb;
    border: 1px solid #cce5f7;
    color: #2980b9;
}

/* MATERYAL VE KART GRIDLERİ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.material-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
}

.material-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.material-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.material-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 10px;
}

/* ANASAYFA BİLEŞENLERİ & HERO */
.hero-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.slider-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dot.active {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
}

a.feature-box {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  a.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10, 37, 64, 0.12);
  }

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
  }

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

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* POPUP MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: #000;
}

/* FOOTER */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.footer-logos img {
    height: 44px;
    width: auto;
    filter: grayscale(20%);
    transition: filter 0.2s, transform 0.2s;
}

.footer-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* RESPONSİVE TASARIM (MOBİL UYUM) */
@media (max-width: 991px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 220px;
    }
    
    .content-area {
        padding: 20px 15px;
    }
    
    .footer-logos {
        gap: 15px;
    }
    
    .footer-logos img {
        height: 35px;
    }
}

/* ==========================================================================
   VİDEO OYNATICI & THUMBNAIL LİSTESİ
   ========================================================================== */
.video-showcase {
    margin-bottom: 25px;
}

.main-video-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-now-playing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #edf2f7;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.video-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.video-thumb-item {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.video-thumb-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-thumb-item.active {
    border-color: var(--accent-color);
    background-color: #fffaf0;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3);
}

.thumb-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a202c;
    overflow: hidden;
}

.thumb-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding-left: 2px;
    transition: background 0.2s;
}

.video-thumb-item:hover .thumb-play-icon {
    background: var(--accent-color);
}

.thumb-title {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    flex: 1;
}

.video-thumb-item.active .thumb-title {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .video-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-thumbnails-grid {
        grid-template-columns: 1fr;
    }
}
