/* =========================================================
   Akın Öğretmen - ek stiller (logo, anasayfa karşılama, arama)
   ========================================================= */
:root {
    --ak-orange: #ef6c00;
    --ak-orange-dark: #d65f00;
    --ak-blue: #245bc4;
    --ak-dark: #202b3c;
    --ak-muted: #687386;
    --ak-soft: #fff6ee;
}

/* ---------- Üst menü / logo ---------- */
.osahan-nav {
    min-height: 64px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    text-decoration: none !important;
}

.site-brand-img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 2px solid var(--ak-orange);
    background: #fff;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--ak-dark);
}

.site-brand-name span {
    color: var(--ak-orange);
}

.site-brand-text small {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--ak-muted);
    text-transform: uppercase;
}

.btn-hizli-okuma {
    color: #fff !important;
    background: var(--ak-orange);
    border: 1px solid var(--ak-orange);
    border-radius: 6px;
    white-space: nowrap;
}

.btn-hizli-okuma:hover {
    background: var(--ak-orange-dark);
    border-color: var(--ak-orange-dark);
}

@media (max-width: 575.98px) {
    .site-brand-text small {
        display: none;
    }

    .site-brand-name {
        font-size: 16px;
    }

    .site-brand-img {
        width: 32px;
        height: 48px;
    }

    .btn-hizli-okuma strong {
        display: none;
    }
}

/* ---------- Arama ---------- */
.site-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0 auto; /* logo ile sağ menü arasında ortala */
}

/* Orta boy ekranlar: logo ve sağ menüyle arasında boşluk, daha kompakt öğeler */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-search {
        margin: 0 16px;
    }

    .site-search-kbd {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .site-brand-text small,
    .btn-hizli-okuma strong {
        display: none;
    }

    .site-search-submit {
        padding: 0 12px;
    }
}

/* Geniş ekranda tam sayfa ortasına sabitle */
@media (min-width: 1200px) {
    /* Arama akıştan çıktığı için sağ menüyü sağa yasla */
    .osahan-nav .osahan-right-navbar {
        margin-left: auto !important;
    }

    .site-search {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 560px;
        max-width: calc(100% - 640px);
        transform: translate(-50%, -50%);
    }
}

.site-search-box {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 6px 0 14px;
    background: #f1f3f6;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.site-search-box:hover {
    background: #eceff3;
}

.site-search.is-focused .site-search-box {
    background: #fff;
    border-color: #f5c59a;
    box-shadow: 0 0 0 4px rgba(239, 108, 0, .12);
}

.site-search-icon {
    flex-shrink: 0;
    color: #98a2b3;
    font-size: 14px;
}

.site-search.is-focused .site-search-icon {
    color: var(--ak-orange);
}

.site-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ak-dark);
    font-size: 14px;
}

.site-search-input::placeholder {
    color: #98a2b3;
}

.site-search-spinner,
.site-search-clear,
.site-search-back {
    display: none;
}

.site-search.is-loading .site-search-spinner {
    display: inline-block;
    margin-right: 6px;
    color: var(--ak-orange);
    font-size: 14px;
}

.site-search-clear {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
}

.site-search-clear:hover {
    background: #e4e7ec;
    color: var(--ak-dark);
}

.site-search.has-value .site-search-clear {
    display: inline-flex;
}

.site-search.is-loading .site-search-clear {
    display: none;
}

.site-search-kbd {
    flex-shrink: 0;
    margin-right: 6px;
    padding: 1px 7px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    background: #fff;
    color: #98a2b3;
    font-size: 11px;
    font-family: inherit;
    box-shadow: none;
}

.site-search.is-focused .site-search-kbd,
.site-search.has-value .site-search-kbd {
    display: none;
}

.site-search-submit {
    flex-shrink: 0;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ak-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.site-search-submit:hover {
    background: var(--ak-orange-dark);
}

/* Sonuç kutusu */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(32, 43, 60, .16);
    text-align: left;
}

.search-results.is-open {
    display: block;
    animation: searchFade .12s ease-out;
}

@keyframes searchFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.search-results-group + .search-results-group {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f0f2f5;
}

.search-results-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #98a2b3;
    text-transform: uppercase;
}

.search-results-count {
    padding: 0 7px;
    border-radius: 999px;
    background: var(--ak-soft);
    color: var(--ak-orange);
    font-size: 11px;
    letter-spacing: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ak-dark) !important;
    font-size: 14px;
    text-decoration: none !important;
    scroll-margin: 6px;
}

.search-result-item:hover,
.search-result-item.is-active {
    background: var(--ak-soft);
}

.search-result-thumb {
    width: 56px;
    height: 38px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f3f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c4cad3'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

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

.search-result-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.search-result-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.search-result-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #98a2b3;
}

.search-result-arrow {
    flex-shrink: 0;
    font-size: 11px;
    color: #c4cad3;
    opacity: 0;
    transition: opacity .1s ease;
}

.search-result-item.is-active .search-result-arrow,
.search-result-item:hover .search-result-arrow {
    opacity: 1;
    color: var(--ak-orange);
}

.search-results mark,
.search-page mark {
    padding: 0;
    background: transparent;
    color: var(--ak-orange);
    font-weight: 700;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 6px 6px;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border: 1px solid #f3dcc6;
    border-radius: 999px !important;
    background: #fff;
    color: var(--ak-dark) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.search-chip i {
    color: var(--ak-orange);
    font-size: 12px;
}

.search-chip:hover,
.search-chip.is-active {
    background: var(--ak-soft) !important;
    border-color: var(--ak-orange);
}

.search-see-all {
    justify-content: center;
    margin-top: 6px;
    border-top: 1px solid #f0f2f5;
    border-radius: 0 0 10px 10px;
    color: var(--ak-blue) !important;
    font-size: 13px;
}

.search-see-all i {
    color: var(--ak-blue);
}

.search-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 14px;
    color: var(--ak-muted);
    font-size: 14px;
}

.search-empty > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #98a2b3;
}

.search-empty small {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
}

.search-results-error {
    padding: 14px;
    color: #b42318;
    font-size: 14px;
}

/* Tüm sonuçlar sayfası */
.search-page-form {
    display: flex;
    align-items: center;
    max-width: 680px;
    height: 52px;
    padding: 0 6px 0 18px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(32, 43, 60, .06);
}

.search-page-form:focus-within {
    border-color: #f5c59a;
    box-shadow: 0 0 0 4px rgba(239, 108, 0, .12);
}

.search-page-form > i {
    color: var(--ak-orange);
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.search-page-form .btn {
    height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--ak-orange);
    color: #fff;
    font-weight: 600;
}

.search-page-summary {
    margin: 14px 0 0 6px;
    color: var(--ak-muted);
    font-size: 14px;
}

.search-page .search-chips {
    padding: 0;
}

.search-empty-page {
    max-width: 680px;
    padding: 24px;
    border: 1px dashed #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

/* Mobil: menüdeki büyüteç ile açılan tam genişlik arama */
@media (max-width: 767.98px) {
    .site-search {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1060;
        max-width: none;
        margin: 0;
        padding: 10px 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    }

    .site-search.is-mobile-open {
        display: block;
    }

    .site-search-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        margin: 0 4px 0 -8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--ak-dark);
    }

    .site-search-icon,
    .site-search-kbd,
    .site-search-submit {
        display: none;
    }

    .site-search-input {
        font-size: 16px; /* iOS yakınlaştırmasını engeller */
    }

    .search-results {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        bottom: auto;
        max-height: calc(100vh - 62px);
        border-radius: 0 0 14px 14px;
        border-left: 0;
        border-right: 0;
    }

    .site-search-toggle {
        color: var(--ak-dark) !important;
        font-size: 17px;
        padding: 6px 10px;
    }

    .search-page-form {
        height: 48px;
    }
}

body.search-mobile-open {
    overflow: hidden;
}

/* ---------- Anasayfa karşılama ---------- */
.home-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff6ee 0%, #ffffff 55%, #eef3ff 100%);
    border: 1px solid #f3e3d3;
    border-radius: 16px;
}

.home-hero-text {
    flex: 1;
    min-width: 0;
    padding-bottom: 28px;
}

.home-hero-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f5d6b8;
    color: var(--ak-orange);
    font-size: 12px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ak-dark);
}

.home-hero h1 span {
    color: var(--ak-orange);
}

.home-hero p {
    max-width: 560px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ak-muted);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-hero-primary {
    color: #fff !important;
    background: var(--ak-orange);
    border: 1px solid var(--ak-orange);
}

.btn-hero-primary:hover {
    background: var(--ak-orange-dark);
}

.btn-hero-secondary {
    color: var(--ak-blue) !important;
    background: #fff;
    border: 1px solid #cfdcf7;
}

.btn-hero-secondary:hover {
    background: #f4f7ff;
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero-tags li {
    padding: 5px 11px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 12.5px;
    font-weight: 600;
}

.home-hero-tags i {
    margin-right: 4px;
    color: var(--ak-orange);
}

.home-hero-image {
    flex: 0 0 280px;
    align-self: flex-end;
}

.home-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 24px rgba(32, 43, 60, .10);
}

@media (max-width: 991.98px) {
    .home-hero-image {
        flex-basis: 220px;
    }

    .home-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        flex-direction: column-reverse;
        padding: 20px 18px 0;
        text-align: center;
    }

    .home-hero-image {
        flex-basis: auto;
        width: 170px;
        align-self: center;
    }

    .home-hero-image img {
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(32, 43, 60, .12);
    }

    .home-hero {
        padding-bottom: 4px;
    }

    .home-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions,
    .home-hero-tags {
        justify-content: center;
    }

    .membership-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Alt bilgi ---------- */
.footer-payment {
    max-height: 32px;
    width: auto;
}

.footer-links a {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    footer.sticky-footer .text-right {
        text-align: center !important;
        margin-top: 8px;
    }

    footer.sticky-footer p {
        text-align: center;
    }

    .footer-payment {
        margin: 8px 0;
    }
}

/* ---------- Detay açıklaması ---------- */
.event-detail-description {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.event-detail-description img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   MOBİL (≤ 767px): çekmece menü, başlık, içerik
   ========================================================= */
.sidebar-overlay {
    display: none;
}

@media (max-width: 767.98px) {
    /* --- Üst menü --- */
    .osahan-nav {
        min-height: 60px;
        padding: 0 6px !important;
        flex-wrap: nowrap;
    }

    #sidebarToggle {
        order: -1 !important;
        margin: 0 2px 0 0 !important;
        padding: 8px 10px;
        color: var(--ak-dark) !important;
        font-size: 18px;
    }

    .site-brand {
        min-width: 0;
        margin-right: auto !important;
    }

    .site-brand-img {
        width: 30px;
        height: 44px;
        border-radius: 6px;
    }

    .site-brand-name {
        font-size: 15px;
        white-space: nowrap;
    }

    .osahan-right-navbar {
        align-items: center;
        flex-shrink: 0;
    }

    .osahan-right-navbar .btn-hizli-okuma {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .osahan-right-navbar .site-search-toggle {
        width: 38px;
        height: 38px;
        padding: 0 !important;
    }

    .osahan-right-navbar-user .nav-link {
        padding: 10px 4px 10px 8px !important;
    }

    .osahan-right-navbar-user .nav-link img {
        width: 34px;
        height: 34px;
        margin: 0;
    }

    /* --- Çekmece menü --- */
    #wrapper .sidebar,
    #wrapper .sidebar.toggled {
        position: fixed !important;
        top: 60px;
        bottom: 0;
        left: 0;
        z-index: 1045;
        width: 280px !important;
        max-width: 85vw;
        height: auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 8px 0 24px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
    }

    #wrapper .sidebar.toggled {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(0, 0, 0, .25);
    }

    .sidebar-overlay {
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        display: block;
        background: rgba(16, 24, 40, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.sidebar-toggled .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-toggled {
        overflow: hidden;
    }

    #wrapper .sidebar .nav-item .nav-link {
        display: flex !important;
        align-items: center;
        gap: 12px;
        width: 100% !important;
        padding: 12px 18px !important;
        text-align: left !important;
        font-size: 14px;
    }

    #wrapper .sidebar .nav-item .nav-link i {
        width: 18px;
        text-align: center;
    }

    #wrapper .sidebar .nav-item .nav-link span {
        display: inline !important;
        margin: 0 !important;
        font-size: 14px !important;
        white-space: normal;
        line-height: 1.3;
    }

    #wrapper .sidebar .nav-item.dropdown .dropdown-toggle::after {
        display: block !important;
        margin-left: auto;
    }

    #wrapper .sidebar .nav-item .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin: 0 12px 8px 48px !important;
        padding: 4px 0;
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        transform: none !important;
    }

    #wrapper .sidebar .dropdown-item {
        padding: 9px 14px;
        font-size: 13.5px;
        white-space: normal;
    }

    #wrapper .sidebar .channel-sidebar-list {
        padding: 14px 18px !important;
        text-align: left !important;
    }

    #wrapper .sidebar .channel-sidebar-list h6 {
        font-size: 12px !important;
    }

    #wrapper .sidebar .channel-sidebar-list li img {
        display: inline-block !important;
        margin: 0 8px 0 0 !important;
    }

    #wrapper .sidebar .channel-sidebar-list li a {
        font-size: 13px !important;
    }

    /* --- İçerik tam genişlik --- */
    #wrapper #content-wrapper .container-fluid,
    .sidebar-toggled #wrapper #content-wrapper .container-fluid {
        padding: 14px 12px 12px !important;
    }

    footer.sticky-footer,
    .sidebar-toggled footer.sticky-footer,
    body.sidebar-toggled footer.sticky-footer {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* --- Anasayfa karşılama --- */
    .home-hero {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px !important;
        text-align: left;
    }

    .home-hero-image {
        order: 0;
        flex: 0 0 96px !important;
        width: 96px !important;
        align-self: flex-start;
    }

    .home-hero-image img {
        border-radius: 12px !important;
    }

    /* Metin kapsayıcısını çöz: başlık görselin yanına, gerisi alta */
    .home-hero-text {
        display: contents;
    }

    .home-hero-badge {
        margin-bottom: 8px;
        padding: 4px 9px;
        font-size: 11px;
    }

    .home-hero h1 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .home-hero p {
        flex: 1 1 100%;
        order: 2;
        margin: 0 0 14px;
        font-size: 14px;
        line-height: 1.6;
    }

    .home-hero-head {
        flex: 1 1 150px;
        order: 1;
        align-self: center;
    }

    .home-hero-actions {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .home-hero-actions .btn {
        flex: 1 1 0;
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .home-hero-tags {
        order: 4;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px 2px;
        scrollbar-width: none;
    }

    .home-hero-tags::-webkit-scrollbar {
        display: none;
    }

    .home-hero-tags li {
        flex-shrink: 0;
    }

    /* --- Kartlar: telefonda 2 sütun --- */
    #yeni-etkinlikler > .row,
    .search-page > .row,
    .video-block > .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    #yeni-etkinlikler > .row > [class*="col-"],
    .search-page > .row > [class*="col-"],
    .video-block > .row > [class*="col-sm-6"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px !important;
    }

    .video-card-body,
    .event-card-body {
        padding: 10px !important;
    }

    .video-title,
    .event-card-body .video-title {
        margin-bottom: 6px !important;
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .event-description {
        display: none !important;
    }

    .video-card .btn,
    .event-card-footer .btn {
        padding: 7px 6px !important;
        font-size: 12px;
    }

    .event-card-footer {
        padding-top: 8px;
    }

    .event-card-footer .text-success {
        display: none !important;
    }

    .video-card .mt-auto.pt-3 {
        padding-top: 6px !important;
    }

    .video-card-image .time {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Bölüm başlıkları */
    .video-block h4,
    .event-heading-content h2 {
        font-size: 19px;
    }

    .event-page-heading {
        margin-bottom: 14px !important;
    }

    .event-heading-content p {
        font-size: 13px;
        margin-bottom: 0;
    }

    /* Sayfalama */
    .event-pagination .pagination,
    .event-pagination .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Detay sayfası */
    .single-video-left .single-video iframe {
        height: 210px;
    }

    .single-video-title h2 {
        font-size: 19px;
        line-height: 1.35;
    }

    .single-video-author .float-right .btn {
        width: 100%;
        margin-bottom: 6px;
    }

    .event-detail-description iframe,
    .event-detail-description table {
        max-width: 100%;
    }

    .event-detail-description table {
        display: block;
        overflow-x: auto;
    }

    /* Alt bilgi */
    footer.sticky-footer {
        padding: 18px 12px !important;
    }

    footer.sticky-footer .footer-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        text-align: center !important;
    }

    footer.sticky-footer .footer-links .app {
        font-size: 0;
    }

    footer.sticky-footer .footer-links a {
        display: block;
        padding: 4px 0;
        font-size: 13px;
    }

    /* Tıklama alanları */
    .scroll-to-top {
        right: 12px;
        bottom: 12px;
    }
}

/* Küçük telefonlar */
@media (max-width: 359.98px) {
    .site-brand-name {
        font-size: 13px;
    }

    .home-hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    #wrapper .sidebar .nav-item .dropdown-menu {
        background: rgba(255, 255, 255, .06);
    }

    #wrapper .sidebar .dropdown-menu .dropdown-item,
    #wrapper .sidebar .dropdown-menu .dropdown-header a {
        color: rgba(255, 255, 255, .85) !important;
        background: transparent !important;
    }

    #wrapper .sidebar .dropdown-menu .dropdown-item:hover,
    #wrapper .sidebar .dropdown-menu .dropdown-item:active {
        background: rgba(239, 108, 0, .25) !important;
        color: #fff !important;
    }

    #wrapper .sidebar .dropdown-menu .dropdown-item:first-child {
        color: #ff9a3d !important;
    }

    #wrapper .sidebar .dropdown-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, .1);
    }
}
/* Detay: indirme butonu */
.single-video-author .float-right {
    display: flex;
    gap: 8px;
}

.single-video-author .btn-danger {
    background: #ef6c00 !important;
    border-color: #ef6c00 !important;
    color: #fff !important;
    border-radius: 8px;
}

.single-video-author .btn-danger:hover {
    background: #d65f00 !important;
}

.single-video-author .btn-outline-danger {
    border-radius: 8px;
}

/* Kısa sayfalarda alt bilgi en altta kalsın */
#wrapper #content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
}

#wrapper #content-wrapper > .container-fluid {
    flex: 1 0 auto;
}

@media (max-width: 767.98px) {
    #wrapper #content-wrapper {
        min-height: calc(100vh - 60px);
    }

    .single-video-author .float-right {
        width: 100%;
    }

    .single-video-author .float-right .btn {
        width: auto !important;
        margin-bottom: 0 !important;
    }

    .single-video-author .float-right .btn-danger {
        flex: 1;
        padding: 12px;
        font-size: 15px;
    }

    .single-video-author .float-right .btn-outline-danger {
        flex: 0 0 48px;
    }
}
/* Arama sonuçları sayfası: mobilde kategori etiketleri yana kaydırılsın */
@media (max-width: 767.98px) {
    .search-page .search-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -12px 16px !important;
        padding: 0 12px 4px;
        scrollbar-width: none;
    }

    .search-page .search-chips::-webkit-scrollbar {
        display: none;
    }

    .search-page .search-chip {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .search-page-form .btn {
        padding: 0 16px;
    }

    .search-page-summary {
        margin-top: 10px;
        font-size: 13px;
    }
}
/* Tablet: karşılama görselini küçült, metne yer aç */
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-hero {
        padding: 22px 22px 0;
    }

    .home-hero-image {
        flex-basis: 170px !important;
    }

    .home-hero h1 {
        font-size: 26px;
    }
}
/* =========================================================
   Uygulamayı ana ekrana ekle
   ========================================================= */
.sidebar-app-item {
    padding: 6px 10px 10px;
}

.sidebar-app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef6c00, #ff9a3d);
    color: #fff;
    text-align: left;
    box-shadow: 0 6px 16px rgba(239, 108, 0, .35);
    cursor: pointer;
}

.sidebar-app-btn img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    border: 2px solid rgba(255, 255, 255, .85);
}

.sidebar-app-btn span {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    line-height: 1.2;
}

.sidebar-app-btn strong {
    font-size: 14px;
}

.sidebar-app-btn small {
    margin-top: 2px;
    font-size: 11.5px;
    opacity: .9;
}

.sidebar-app-btn > i {
    font-size: 15px;
}

/* Alt banner */
.app-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    background: #fff;
    border: 1px solid #f3dcc6;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(32, 43, 60, .22);
    transform: translateY(140%);
    transition: transform .3s ease;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.app-banner.is-visible {
    transform: translateY(0);
}

.app-banner-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
}

.app-banner-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.app-banner-text strong {
    color: #202b3c;
    font-size: 14px;
}

.app-banner-text span {
    margin-top: 2px;
    color: #687386;
    font-size: 12px;
}

.app-banner-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #ef6c00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.app-banner-btn:active {
    background: #d65f00;
}

.app-banner-close {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    font-size: 13px;
    cursor: pointer;
}

/* Banner açıkken yukarı çık butonu üstte kalsın */
.app-banner.is-visible ~ .scroll-to-top {
    bottom: 96px;
}

@media (min-width: 768px) {
    .app-banner {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 380px;
    }
}

/* Yükleme yönergesi penceresi */
.app-ios-modal {
    border: 0;
    border-radius: 18px;
    text-align: center;
}

.app-ios-modal .modal-body {
    position: relative;
    padding: 28px 22px 22px;
}

.app-ios-modal .close {
    position: absolute;
    top: 10px;
    right: 14px;
}

.app-ios-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(239, 108, 0, .25);
}

.app-ios-modal h5 {
    margin-bottom: 12px;
    font-weight: 800;
}

.app-ios-modal p {
    color: #687386;
    font-size: 14px;
}

.app-ios-steps {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.app-ios-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff6ee;
    color: #202b3c;
    font-size: 14px;
}

.app-ios-steps li + li {
    margin-top: 8px;
}

.app-ios-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ef6c00;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.app-ios-steps i {
    margin-left: 4px;
    color: #0a84ff;
}

.app-ios-share {
    transform: rotate(-90deg);
}
