/*
 * News theme mobile refinements.
 * Loaded after site custom CSS so the mobile layout stays predictable.
 */
@media (max-width: 991.98px) {
    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
        background: #fff;
        font-size: 15px;
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
    }

    img,
    iframe,
    video {
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    section {
        padding: 24px 0;
    }

    .navigation-wrap {
        position: sticky;
        top: 0;
        z-index: 1030;
        border-bottom: 1px solid #ececef;
        box-shadow: 0 4px 18px rgba(15, 17, 22, .07);
    }

    .navbar {
        min-height: 68px;
        padding: 10px 0;
    }

    .navbar > .container {
        position: relative;
        min-height: 48px;
        justify-content: center;
    }

    .navbar .offcanvas-header {
        position: absolute;
        left: 20px;
        top: 50%;
        display: flex;
        align-items: center;
        transform: translateY(-50%);
    }

    .navbar .offcanvas-header .btn-md {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #f8f8f9;
        cursor: pointer;
    }

    .navbar .navbar-toggler-icon {
        width: 22px;
        height: 22px;
        background-size: 22px 22px;
    }

    .navbar figure {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: calc(100% - 120px);
    }

    .navbar .logo {
        display: block;
        width: auto;
        max-width: 190px;
        max-height: 38px;
    }

    .modal-dialog-aside {
        width: min(88vw, 360px);
        max-width: 360px;
    }

    #modal_aside_right .modal-content {
        border: 0;
        background: #fff;
    }

    #modal_aside_right .modal-header {
        gap: 12px;
        padding: 18px;
        border-bottom: 1px solid #ececef;
    }

    #modal_aside_right .widget__form-search-bar {
        width: calc(100% - 38px);
    }

    #modal_aside_right .form-inline,
    #modal_aside_right .input-group {
        width: 100%;
    }

    #modal_aside_right .modal-body {
        padding: 10px 20px 24px;
    }

    #modal_aside_right .modal-body nav li {
        border-bottom: 1px solid #f0f0f2;
    }

    #modal_aside_right .modal-body nav a {
        display: block;
        padding: 14px 2px;
        color: #202126;
        font-size: .92rem;
        font-weight: 700;
    }

    .wrapp__list__article-responsive {
        padding: 12px 0;
    }

    .wrapp__list__article-responsive .card__post-list {
        min-height: 86px;
    }

    .popular__news-header {
        padding-top: 18px;
    }

    .popular__news-header > .container > .row {
        overflow: hidden;
        border-radius: 16px;
        background: #111319;
        box-shadow: 0 12px 32px rgba(20, 20, 26, .14);
    }

    .popular__news-header .card__post,
    .popular__news-header .card__post__body {
        margin: 0;
    }

    .popular__news-header .col-md-8 .card__post__body,
    .popular__news-header .col-md-8 .card__post__body > a,
    .popular__news-header .col-md-8 .card__post__body > a img {
        height: 390px;
    }

    .popular__news-header .card__post__body > a {
        display: block;
    }

    .popular__news-header .card__post__body img {
        width: 100%;
        object-fit: cover;
    }

    .popular__news-header .bg__post-cover {
        padding: 72px 22px 22px;
        background: linear-gradient(180deg, transparent 18%, rgba(7, 8, 12, .92) 100%);
    }

    .popular__news-header .card__post__title h2 {
        margin-bottom: 8px;
        font-size: clamp(1.45rem, 5vw, 2rem);
        line-height: 1.22;
    }

    .popular__news-header .card__post__author-info {
        font-size: .72rem;
    }

    .popular__news-right {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1px;
        background: rgba(255, 255, 255, .18);
    }

    .popular__news-right .card__post__body,
    .popular__news-right .card__post__body > a,
    .popular__news-right .card__post__body > a img {
        height: 220px;
    }

    .popular__news-right .bg__post-cover {
        padding: 52px 18px 16px;
    }

    .popular__news-right .card__post__category {
        margin-bottom: 6px;
        font-size: .68rem;
    }

    .popular__news-right .card__post__title h5 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        font-size: 1rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .popular__news-right .card__post__author-info {
        display: none;
    }

    .home-tools {
        margin-top: 20px;
        padding: 24px 0 !important;
    }

    .home-tools__head {
        margin-bottom: 14px;
    }

    .home-tools__head h2 {
        max-width: 520px;
        font-size: 1.2rem;
    }

    .home-tools__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .home-tool-card {
        min-height: 76px !important;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .popular__news-header-carousel {
        padding: 20px 0;
    }

    .border_section {
        margin-bottom: 20px;
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .wrapper__list__article {
        margin-bottom: 28px;
    }

    /* Yazı kartları: mobilde tek kolon, %100 genişlik */
    .wrapper__list__article > .row > [class*="col-"],
    .wrapper__list__article .col-md-6,
    .popular__section-news .col-md-6,
    .col-md-8 .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .article__entry {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 26px;
        overflow: hidden;
        border: 1px solid #ececef;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(20, 20, 25, .055);
        box-sizing: border-box;
    }

    .article__entry .article__image {
        margin: 0;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        background: #f1f2f4;
    }

    .article__entry .article__image a,
    .article__entry .article__image img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .article__entry .article__image img {
        object-fit: cover;
    }

    .article__entry .article__content {
        padding: 16px;
    }

    .article__entry .article__content h5 {
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .article__entry .article__content p {
        display: -webkit-box;
        overflow: hidden;
        font-size: .88rem;
        line-height: 1.65;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .article__entry .btn {
        margin-bottom: 0 !important;
        padding: 9px 14px;
    }

    .card__post-list {
        display: flex;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .card__post-list .image-sm {
        width: 108px;
        min-width: 108px;
        height: 86px;
        margin: 0;
        overflow: hidden;
        border-radius: 11px;
        background: #f1f2f4;
    }

    .card__post-list .image-sm a,
    .card__post-list .image-sm img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .card__post-list .image-sm img {
        object-fit: cover;
    }

    .card__post-list .card__post__body {
        display: flex;
        min-width: 0;
        flex: 1;
        align-items: center;
    }

    .card__post-list .card__post__title h6 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        font-size: .82rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .card__post-list .card__post__author-info {
        margin-bottom: 5px !important;
        font-size: .62rem;
        line-height: 1.3;
    }

    .popular__section-news .card__post__list {
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid #ececef;
    }

    .sidebar-sticky,
    .sticky-top {
        position: static !important;
        top: auto !important;
    }

    .sidebar-sticky {
        margin-top: 12px;
        padding-top: 26px;
        border-top: 1px solid #e6e6e9;
    }

    .widget__form-subscribe {
        padding: 22px;
        border-radius: 15px;
    }

    .wrap__article-detail-title h1 {
        overflow-wrap: anywhere;
        font-size: clamp(1.7rem, 6vw, 2.35rem);
        line-height: 1.22;
        letter-spacing: -.025em;
    }

    .wrap__article-detail-title h3 {
        font-size: 1rem;
        line-height: 1.65;
    }

    .wrap__article-detail-image {
        overflow: hidden;
        border-radius: 15px;
    }

    .wrap__article-detail-image img {
        width: 100%;
    }

    .content-prose,
    .article-body {
        overflow-wrap: anywhere;
        font-size: 1rem;
        line-height: 1.8;
    }

    .content-prose h2,
    .article-body h2 {
        margin-top: 1.8em;
        font-size: 1.45rem;
        line-height: 1.35;
    }

    .content-prose h3,
    .article-body h3 {
        margin-top: 1.6em;
        font-size: 1.22rem;
        line-height: 1.4;
    }

    .content-prose table,
    .article-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-prose pre,
    .article-body pre {
        max-width: 100%;
        overflow-x: auto;
    }

    .wrap__article-detail-info .list-inline {
        gap: 8px 12px !important;
    }

    .single_navigation-prev strong,
    .single_navigation-next strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: .78rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .related-article {
        margin-top: 2rem;
    }

    .news-page-report {
        margin-bottom: 2.25rem;
    }

    .wrapper__footer {
        padding-top: 30px;
    }

    .widget__footer {
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .widget__footer .footer-title {
        margin: 0;
        padding: 15px 0;
        font-size: .95rem;
    }

    .wrapper__footer .image-logo {
        margin: 20px 0;
        text-align: center;
    }

    .wrapper__footer .social__media {
        justify-content: center;
        margin-bottom: 22px;
        text-align: center;
    }

    .bg__footer-bottom-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 20px 0;
        text-align: center;
    }

    .bg__footer-bottom-section .link-column {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        justify-content: center;
    }

    .bg__footer-bottom-section .list-inline-item {
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    section {
        padding: 20px 0;
    }

    .navbar .offcanvas-header {
        left: 16px;
    }

    .navbar .logo {
        max-width: 160px;
        max-height: 34px;
    }

    .popular__news-header {
        padding-top: 14px;
    }

    .popular__news-header > .container > .row {
        border-radius: 14px;
    }

    .popular__news-header .col-md-8 .card__post__body,
    .popular__news-header .col-md-8 .card__post__body > a,
    .popular__news-header .col-md-8 .card__post__body > a img {
        height: 330px;
    }

    .popular__news-header .bg__post-cover {
        padding: 64px 18px 18px;
    }

    .popular__news-right .card__post__body,
    .popular__news-right .card__post__body > a,
    .popular__news-right .card__post__body > a img {
        height: 200px;
    }

    .popular__news-right .card__post__title h5 {
        font-size: .95rem;
    }

    .home-tools__head h2 {
        font-size: 1.08rem !important;
    }

    .home-tool-card {
        flex-wrap: wrap;
        align-content: center;
        gap: 7px !important;
        min-height: 104px !important;
    }

    .home-tool-card__icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .home-tool-card__title {
        flex-basis: calc(100% - 46px);
        font-size: .76rem !important;
    }

    .home-tool-card__arrow {
        display: none;
    }

    .article__entry .article__content {
        padding: 15px;
    }

    .card__post-list .image-sm {
        width: 96px;
        min-width: 96px;
        height: 80px;
    }

    .wrap__article-detail-info .image-profile {
        width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
    }

    .news-report-modal,
    .home-seo-modal {
        align-items: flex-end;
        padding: 0 !important;
    }

    .news-report-modal__panel,
    .home-seo-modal__panel {
        max-height: 92dvh !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .news-report-modal__panel {
        padding: 20px 16px 16px;
    }

    .related-article__grid {
        gap: 12px;
    }

    #return-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 359.98px) {
    .home-tools__grid {
        grid-template-columns: 1fr !important;
    }

    .home-tool-card {
        min-height: 72px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
