/* ===== MOBİL MENÜ DÜZELTMELERİ ===== */
@media (max-width: 991.98px) {
    /* Navbar collapse - yüksekliği artır */
    .navbar-collapse {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    
    /* ÖNEMLİ: Dropdown menü varsayılan olarak KAPALI */
    .navbar-nav .dropdown-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-top: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Sadece .show class'ı varsa AÇIK */
    .navbar-nav .dropdown.show > .dropdown-menu,
    .navbar-nav .nav-item.dropdown.show > .dropdown-menu {
        display: block !important;
    }
    
    /* Dropdown item stili */
    .navbar-nav .dropdown-item {
        padding: 12px 15px 12px 30px !important;
        border-bottom: 1px solid #eee !important;
        color: #333 !important;
        background: transparent !important;
    }
    
    /* Submenu container */
    .navbar-nav .dropdown-submenu {
        position: relative !important;
    }
    
    /* Submenu varsayılan KAPALI */
    .navbar-nav .dropdown-submenu > .dropdown-menu {
        display: none !important;
        background: #eaeaea !important;
    }
    
    /* Submenu açıkken göster */
    .navbar-nav .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
    }
    
    /* Submenu itemları daha içeride */
    .navbar-nav .dropdown-submenu > .dropdown-menu .dropdown-item {
        padding-left: 50px !important;
        background: #eaeaea !important;
    }
    
    /* Submenu toggle butonu */
    .submenu-toggle-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        line-height: 26px;
        text-align: center;
        background: #1cb5a3;
        color: #fff;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        border: none;
    }
    
    .dropdown-submenu.show .submenu-toggle-btn {
        background: #e74c3c;
    }
    
    /* Link içinde toggle için padding */
    .dropdown-submenu > .dropdown-item {
        padding-right: 55px !important;
    }
    
    /* Desktop submenu arrow gizle */
    .navbar .nav-item .dropdown-submenu a::after {
        display: none !important;
    }
}

/* ===== DESKTOP STİLLERİ ===== */
@media (min-width: 992px) {
    /* Dropdown menü genişlik ve scroll */
    .navbar-nav .dropdown-menu {
        min-width: 250px !important;
        max-width: 350px !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
        white-space: normal !important;
    }
    
    /* Dropdown item text wrap */
    .navbar-nav .dropdown-item {
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px !important;
        line-height: 1.5 !important;
    }
    
    /* Desktop'ta orijinal submenu'yü gizle - fixed kullanacağız */
    .navbar-nav .dropdown-submenu > .dropdown-menu {
        display: none !important;
    }
    
    /* Fixed submenu stili */
    .submenu-fixed {
        position: fixed !important;
        z-index: 99999 !important;
        min-width: 250px !important;
        max-width: 350px !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        background: #ffffff;
        border-top: 4px solid var(--theme-color2, #FDA31B);
        border-radius: 0;
        box-shadow: 0 6px 12px rgba(0,0,0,.175);
        padding: 0;
        display: block;
    }
    
    .submenu-fixed a {
        display: block;
        padding: 10px 25px !important;
        color: #000000 !important
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s;
    }
    
    .submenu-fixed a:last-child {
        border-bottom: none;
    }
    
    .submenu-fixed a:hover {
        background: transparent;
        color: var(--theme-color2, #FDA31B) !important;
        padding-left: 32px !important;
    }
    
    /* Desktop'ta toggle butonunu gizle */
    .submenu-toggle-btn {
        display: none !important;
    }
    
    /* Scrollbar */
    .navbar-nav .dropdown-menu::-webkit-scrollbar,
    .submenu-fixed::-webkit-scrollbar {
        width: 6px;
    }
    .navbar-nav .dropdown-menu::-webkit-scrollbar-thumb,
    .submenu-fixed::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }
}

.blog-single-img {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-single-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Video Stilleri */
.blog-single-text video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.blog-single-text figure {
    margin: 20px 0;
}

.blog-single-text figure video {
    width: 100%;
    margin-bottom: 10px;
}

.blog-single-text figure figcaption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 14px;
}

/* Blog Galeri Stilleri */
.blog-gallery {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.gallery-main-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-main-image img:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery-thumb.active {
    border: 3px solid #007bff;
}

.gallery-main-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main-image:hover::after {
    opacity: 1;
}

/* Lightbox özelleştirme */
.mfp-title {
    padding: 10px 15px;
    background: rgba(0,0,0,0.8);
    color: white;
}

.mfp-counter {
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: white;
}

.action-buttons {
            text-align: center;
            margin: 30px 0;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .action-buttons .btn {
            margin: 5px;
        }
        
        .social-share {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            transition: transform 0.3s ease;
        }
        
        .social-btn:hover {
            transform: scale(1.1);
        }
        
        .social-btn.facebook { background: #3b5998; }
        .social-btn.instagram { background: #f21d7e; }
        .social-btn.twitter { background: #1da1f2; }
        .social-btn.whatsapp { background: #25d366; }
        .social-btn.email { background: #ea4335; }

/* Responsive */
@media (max-width: 768px) {
    .blog-single-img {
        max-height: 300px;
    }
    
    .blog-single-img img {
        height: 300px;
    }
    
    .gallery-main-image img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-single-img {
        max-height: 250px;
    }
    
    .blog-single-img img {
        height: 250px;
    }
    
    .gallery-main-image img {
        height: 250px;
    }
}

/* Blog içerik tabloları */
.blog-single-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.blog-single-text table th,
.blog-single-text table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.blog-single-text table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.blog-single-text table tr:nth-child(even) {
    background: #fafafa;
}

.blog-single-text table tr:hover {
    background: #f5f5f5;
}

/* Responsive tablo */
@media (max-width: 768px) {
    .blog-single-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .blog-single-text table th,
    .blog-single-text table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
}

.hero-single {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* YouTube Video Wrapper */
.hero-youtube-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-youtube-facade {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;        /* 16:9 oran */
    min-height: 100vh;
    min-width: 177.78vh;    /* 16:9 oran */
    transform: translate(-50%, -50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Sunucu Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Resim */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* YouTube veya video varsa resmi gizle */
.hero-single:has(.hero-youtube-wrapper) .hero-image-fallback,
.hero-single:has(.hero-video) .hero-image-fallback {
    display: none;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 10;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.hero-sub-title,
.hero-title,
.hero-content p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-sub-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin: 15px 0 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 30;
}

.hero-progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    transition: none;
}

/* Owl Carousel Controls */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 20;
}

.hero-slider .owl-nav button {
    position: absolute;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
}

.hero-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.hero-slider .owl-nav .owl-prev {
    left: 20px;
}

.hero-slider .owl-nav .owl-next {
    right: 20px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.hero-slider .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active {
    background: #fff !important;
    width: 30px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-single {
        min-height: 600px;
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-single {
        min-height: 500px;
    }
    .hero-title {
        font-size: 32px;
        margin: 10px 0 15px;
    }
    .hero-sub-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .hero-content {
        padding: 15px;
    }
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    .hero-slider .owl-nav {
        top: 100%;
        transform: translateY(-50%);
    }
    .hero-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px !important;
    }
    .hero-slider .owl-nav .owl-prev {
        left: 10px;
    }
    .hero-slider .owl-nav .owl-next {
        right: 10px;
    }
    .hero-slider .owl-dots {
        bottom: 30px;
    }
    .hero-progress {
        height: 2px;
    }
    
    /* Mobilde YouTube boyutu */
    .hero-youtube-wrapper {
        width: 300%;
        height: 100%;
    }
    .hero-youtube {
        width: 300%;
        min-width: 300%;
    }
}

@media (max-width: 575px) {
    .hero-single {
        min-height: 450px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 13px;
    }
    .theme-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Ortak başlık şeridi */
.home-content-title {
    display: flex;
    align-items: end;
    gap: 0px;
    margin-bottom: 24px;
}

.home-content-title-left,
.home-content-title-right {
    flex: 1;
    height: 2px;
    background: #fda31b;
}

.home-content-title-center {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* Eğitim kartları */
.home-edu-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.home-edu-content {
    flex: 1 1 0;
    min-width: 220px;
    
}

.home-edu-content a {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.home-edu-content img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.home-edu-content a span {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,.4);
}

.home-edu-content a:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.home-edu-content a:hover img {
    transform: scale(1.05);
}

/* Hızlı erişim kutuları */
.home-fast-access ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-fast-access li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s;
    color: #1b3b5a;
}

.home-fast-access li a .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fda31b;
    color: #fff;
    font-size: 20px;
}

.home-fast-access li a span {
    font-size: 14px;
    font-weight: 500;
}

.home-fast-access li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.14);
    background: #f7fbff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-edufast .home-edu,
    .home-edufast .fast-access {
        margin-bottom: 32px;
    }
}

@media (max-width: 575.98px) {
    .home-edu-list {
        flex-direction: column;
    }
    .home-fast-access ul {
        grid-template-columns: 1fr 1fr;
    }
}

/* Wave arka plan için alt başlık */
.home-edu-content a span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

/* Wave (arka plan şekli) */
.home-edu-content a::after {
    content: "";
    position: absolute;
    left: -224px;
    bottom: 0;
    width: 195%;
    height: 145px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgb(253, 163, 27) 100%
    );
    clip-path: ellipse(70% 50% at 50% 100%) !important;
    z-index: 1;
    transition: .3s ease;
}


/* Hover efekt: wave biraz yukarı çıksın */
.home-edu-content a:hover::after {
    height: 110px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.65) 100%);
}

.home-edu-content:nth-child(1) a::after {
    background: #ff6a0061;
}
.home-edu-content:nth-child(2) a::after {
    background: #2db64d7a;
}
.home-edu-content:nth-child(3) a::after {
    background: #006dd670;
}

    /* Kartları eşitle ve kırpmaları düzenle */
.blog-item { display:flex; flex-direction:column; height:96%; }
.blog-item-info { display:flex; flex-direction:column; gap:10px; flex:1; }

/* Görsel oranını sabitle */
.blog-item-img { aspect-ratio: 16/9; overflow:hidden; }
.blog-item-img img { width:100%; height:100%; object-fit:cover; display:block; }

/* Başlık ve özet satır-kıskaçları */
.blog-title a {
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35;
}
.clamp-2 { -webkit-line-clamp:2; min-height:calc(1.35em * 2); }
.blog-excerpt {
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5;
}
.clamp-3 { -webkit-line-clamp:3; min-height:calc(1.5em * 3); }

/* Buton en alta yapışsın */
.blog-item .theme-btn { margin-top:auto; }

/* Küçük estetik dokunuşlar (opsiyonel) */
.blog-item { box-shadow:0 8px 24px rgba(0,0,0,.06); border-radius:14px; }
.blog-item-info { padding-bottom:18px; }

