:root {
    --borsa-red: #c8102e;
    --borsa-red-dark: #a00d25;
    --borsa-black: #111111;
    --borsa-gray: #f0f0f0;
    --borsa-text: #222;
    --borsa-muted: #666;
    /* Yan boşluk: mobilde ~8–12px, geniş ekranda en fazla 50px */
    --container-side-gap: clamp(8px, 3vw, 50px);
    /* Header, içerik, footer — aynı sol/sağ hiza (viewport’a göre ~%80) */
    --site-content-max: min(80vw, 1400px);
}

body.public-site {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--borsa-text);
    background: #fff;
    overflow-x: hidden;
}

/* Bootstrap yüklenene kadar üst bar düzeni (mobil LCP / CLS) */
.public-site .d-flex { display: flex !important; }
.public-site .flex-wrap { flex-wrap: wrap !important; }
.public-site .align-items-center { align-items: center !important; }
.public-site .justify-content-between { justify-content: space-between !important; }
.public-site .ms-auto { margin-inline-start: auto !important; }
.public-site .gap-2 { gap: 0.5rem !important; }
.public-site .d-none { display: none !important; }
@media (min-width: 768px) {
    .public-site .d-md-inline { display: inline !important; }
}

@media (min-width: 992px) {
    .public-site .d-lg-inline { display: inline !important; }
}

.public-site .flex-wrap { flex-wrap: wrap !important; }
.public-site .justify-content-center { justify-content: center !important; }
.public-site .opacity-75 { opacity: 0.75; }
.public-site .small { font-size: 0.875em; }
.public-site .public-list-unstyled { list-style: none; padding: 0; margin: 0; }
.public-site .public-mb-3 { margin-bottom: 1rem; }

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .site-footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.site-footer-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.hero-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #6c757d;
    color: #fff;
}

.public-notice {
    padding: 0.75rem 1rem;
    background: #e7f3ff;
    border: 1px solid #b6daff;
    border-radius: 4px;
    color: #084298;
}

.public-site .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.public-site .mb-0 { margin-bottom: 0 !important; }

/* Tek site sütunu: header + main + footer aynı genişlikte */
.site-shell {
    width: 100%;
    max-width: var(--site-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-side-gap);
    padding-right: var(--container-side-gap);
    box-sizing: border-box;
}

.site-shell-inner {
    width: 100%;
}

.public-container {
    width: 100%;
    max-width: var(--site-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-side-gap);
    padding-right: var(--container-side-gap);
    box-sizing: border-box;
}

/* site-shell içinde çift padding / farklı max-width olmasın */
.site-shell .public-container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.site-shell > .site-footer {
    width: 100%;
}

.public-page {
    width: 100%;
}

.public-header {
    padding-top: 0;
}

/* ── Top bar ── */
.top-bar {
    background: var(--borsa-black);
    color: #fff;
    font-size: .68rem;
    padding: 2px 8px;
    line-height: 1.2;
    border-radius: 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: .75rem;
}

.top-bar a:hover { color: #f5c518; }

.top-bar-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-logo-img {
    height: 22px;
    max-width: 120px;
    object-fit: contain;
}

.top-bar-util {
    font-size: .68rem;
}

.top-bar-util-link {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.top-bar-util-link:hover {
    color: #f5c518;
}

.top-bar-doviz {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    color: #fff;
}

.top-bar-doviz span b {
    color: #f5c518;
    margin-right: .15rem;
}

.top-bar-social {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: .35rem;
    padding-left: .55rem;
    border-left: 1px solid rgba(255, 255, 255, .28);
    vertical-align: middle;
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
    opacity: 1;
    font-size: .82rem;
    line-height: 1;
    transition: background .15s, color .15s;
}

.top-bar-social a:hover {
    background: var(--borsa-red);
    color: #fff !important;
}

.top-bar-social a .bi {
    font-size: .9rem;
    line-height: 1;
}

.top-bar-auth-links a {
    margin-left: .75rem;
}

.top-bar-logos .logo-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518, var(--borsa-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .65rem;
    color: #111;
}

/* ── Ticker + search ── */
.ticker-bar {
    background: #e8e8e8;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: stretch;
    min-height: 28px;
    width: 100%;
}

.ticker-label {
    background: var(--borsa-red);
    color: #fff;
    font-weight: 700;
    font-size: .68rem;
    padding: 0 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    letter-spacing: .04em;
}

.ticker-scroll-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.ticker-scroll {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-scroll:hover { animation-play-state: paused; }

.ticker-scroll a {
    color: var(--borsa-text);
    text-decoration: none;
    font-size: .72rem;
}

.ticker-scroll a:hover { color: var(--borsa-red); }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-search {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #ddd;
}

.ticker-search input {
    border: 1px solid #ccc;
    padding: 2px 6px;
    font-size: .72rem;
    width: 130px;
    outline: none;
    height: 24px;
}

.ticker-search button {
    background: var(--borsa-red);
    border: none;
    color: #fff;
    padding: 2px 8px;
    cursor: pointer;
    height: 24px;
}

/* ── Marka modülü (HTML) ── */
.site-brand-module {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: var(--site-brand-area-max-height, 0);
    max-height: var(--site-brand-area-max-height, none);
    padding: 10px 8px 8px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.site-brand-custom {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-brand-custom p {
    margin: 0;
    width: 100%;
    text-align: center;
}

.site-brand-custom table {
    max-width: 100% !important;
    width: 100% !important;
}

.site-brand-default .site-brand-title {
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.15;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.site-brand-default .site-brand-tagline {
    color: var(--borsa-red);
    font-size: .82rem;
    font-weight: 600;
    margin-top: 4px;
}

.site-brand-custom img {
    display: block;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: var(--site-brand-logo-max-height, 140px) !important;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center center;
}

.site-brand-custom.cms-html img {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-height: var(--site-brand-logo-max-height, 140px) !important;
    object-fit: contain;
}

.site-brand-module .site-brand-custom table,
.site-brand-module .site-brand-custom td,
.site-brand-module .site-brand-custom tr {
    height: auto !important;
    max-height: 100%;
}

/* ── Footer (zengin) ── */
.site-footer-rich {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.site-footer-rich-overlay {
    background: rgba(0, 0, 0, .72);
    padding: 48px 0 40px;
}

.site-footer-columns {
    font-size: .88rem;
}

.footer-logo img {
    max-height: 72px;
    width: auto;
}

.footer-address {
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: .92;
}

.footer-contact-list li {
    margin-bottom: .45rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.footer-contact-list i {
    margin-top: .15rem;
    opacity: .85;
}

.footer-contact-list span {
    font-weight: 600;
    margin-right: .15rem;
}

.footer-contact-list a {
    color: #fff;
    text-decoration: underline;
}

.footer-col-title {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: .4rem;
}

.footer-link-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 5px;
    height: 5px;
    background: #fff;
}

.footer-link-list a {
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
}

.footer-link-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links-select {
    background: #fff;
    border: none;
    padding: 4px 8px;
    font-size: .82rem;
    border-radius: 2px;
    min-width: 180px;
}

/* ── Menü header ── */
.site-header {
    border-top: 2px solid var(--borsa-red);
    border-bottom: 2px solid var(--borsa-red);
    width: 100%;
    margin-bottom: 10px;
}

/* ── Main nav (mega / flyout) ── */
.main-nav {
    background: #fff;
    border-bottom: none;
    box-shadow: none;
    border-top: none;
}

.main-nav .nav-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
    min-height: 36px;
}

.nav-hamburger {
    background: var(--borsa-red);
    color: #fff;
    border: none;
    width: 36px;
    min-height: 36px;
    flex-shrink: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.nav-hamburger:hover {
    background: var(--borsa-red-dark);
}

.main-nav ul#mainNavList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    align-items: stretch;
}

.main-nav .nav-inner--center ul#mainNavList {
    justify-content: center;
}

.main-nav .nav-inner--right ul#mainNavList {
    justify-content: flex-end;
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-item > a,
.main-nav .nav-item > .nav-parent-link {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 6px 10px;
    color: #333;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.main-nav .nav-item > a:hover,
.main-nav .nav-item > a.active,
.main-nav .nav-item.has-children:hover > .nav-parent-link {
    color: var(--borsa-red);
    border-bottom-color: var(--borsa-red);
}

.main-nav .nav-caret {
    font-size: .6rem;
    opacity: .7;
}

/* Dropdown panel */
.main-nav .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 270px;
    z-index: 1050;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.main-nav .nav-item.has-children:hover > .nav-dropdown,
.main-nav .nav-item.has-children.open > .nav-dropdown {
    display: block;
}

.main-nav .nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-dropdown > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.35;
}

.main-nav .nav-dropdown > ul > li > a:hover,
.main-nav .nav-dropdown > ul > li:hover > a {
    color: var(--borsa-red);
}

.main-nav .flyout-caret {
    font-size: .65rem;
    opacity: .75;
    flex-shrink: 0;
}

/* Flyout (3. seviye) */
.main-nav .has-flyout {
    position: relative;
}

.main-nav .nav-flyout {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #111;
    min-width: 290px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    list-style: none;
    margin: 0;
}

.main-nav .has-flyout:hover > .nav-flyout,
.main-nav .has-flyout.flyout-open > .nav-flyout {
    display: block;
}

.main-nav .nav-flyout a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.35;
}

.main-nav .nav-flyout a:hover {
    color: var(--borsa-red);
}

/* Mega panel (çok öğeli menüler) */
.main-nav .nav-dropdown.mega-panel {
    min-width: min(680px, 92vw);
    padding: 10px 0;
}

.main-nav .nav-dropdown.mega-panel > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-nav .nav-dropdown.mega-panel .has-flyout:hover > .nav-flyout {
    left: auto;
    right: 100%;
}

@media (max-width: 991px) {
    .main-nav .nav-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .main-nav ul#mainNavList {
        order: 2;
    }

    .main-nav ul#mainNavList {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #eee;
    }

    .main-nav ul#mainNavList.show {
        display: flex;
    }

    .main-nav .nav-item {
        position: static;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .main-nav .nav-item > a,
    .main-nav .nav-item > .nav-parent-link {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Masaüstü :hover ile açılan paneller mobilde üst üste binmesin */
    .main-nav .nav-item.has-children:hover > .nav-dropdown {
        display: none;
    }

    .main-nav .has-flyout:hover > .nav-flyout {
        display: none;
    }

    .main-nav .has-flyout {
        position: static;
        display: block;
        width: 100%;
    }

    .main-nav .nav-dropdown,
    .main-nav .nav-flyout {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        display: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        background: #1a1a1a;
        z-index: auto;
    }

    .main-nav .nav-item.has-children.open > .nav-dropdown {
        display: block;
    }

    .main-nav .has-flyout.flyout-open > .nav-flyout {
        display: block;
        padding-left: 0;
        background: #222;
    }

    .main-nav .nav-dropdown.mega-panel > ul {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }

    .main-nav .nav-dropdown > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .main-nav .nav-dropdown > ul > li > a,
    .main-nav .nav-flyout a {
        white-space: normal;
        word-break: break-word;
    }

    .main-nav .nav-flyout a {
        padding-left: 28px;
    }
}

/* Header script alanı (kısa tut) */
.public-header-scripts {
    width: 100%;
    margin: 4px 0 0;
    padding: 0 0 4px;
    overflow: hidden;
}

.public-header-scripts img {
    max-height: 52px;
    width: auto;
    height: auto;
}

.public-header-scripts a {
    display: inline-block;
    margin: 2px 4px 2px 0;
}

main {
    padding-top: 0;
}

/* ── Hero banner ── */
.hero-banner,
.module-hero-banner {
    max-width: var(--hero-max-width, 100%);
    width: 100%;
    margin: 0 auto 12px;
    padding: 0;
    box-sizing: border-box;
}

.hero-banner-header {
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 3px solid #111;
    padding-bottom: 8px;
    margin: 4px 0 12px;
    position: relative;
    z-index: 1;
}

.hero-banner-empty {
    border: 1px dashed #ddd;
    padding: 16px;
    text-align: center;
    background: #fafafa;
}

.hero-banner-inner {
    display: grid;
    grid-template-columns: minmax(240px, var(--hero-list-width, 516px)) 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    border: 1px solid #ddd;
    min-height: var(--hero-min-height, 480px);
    height: var(--hero-height, clamp(440px, 48vw, 560px));
}

.hero-news-list {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    background: #fafafa;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
}

.hero-news-item {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.hero-news-item:last-child {
    border-bottom: none;
}

.hero-news-item:hover,
.hero-news-item.active {
    background: #fff;
}

.hero-news-item:hover .thumb,
.hero-news-item.active .thumb {
    box-shadow: inset 3px 0 0 var(--borsa-red);
}

.hero-news-item .thumb {
    flex: 0 0 28%;
    width: 28%;
    max-width: 118px;
    min-width: 84px;
    align-self: center;
    aspect-ratio: 16 / 10;
    max-height: calc(100% - 12px);
    background: #ddd;
    overflow: hidden;
}

.hero-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-news-item .title {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    font-size: var(--hero-list-font-size, .88rem);
    font-weight: 600;
    line-height: 1.38;
    color: var(--hero-list-color, inherit);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news-item.active .title,
.hero-news-item:hover .title {
    color: var(--hero-list-hover-color, #0066cc);
}

.hero-featured {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.hero-featured-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.hero-featured-media {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    overflow: hidden;
}

.hero-featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: opacity .3s;
    background: #1a1a1a;
}

.hero-featured-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 32px 20px 18px;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    pointer-events: none;
}

.hero-featured-caption h2 {
    font-size: var(--hero-caption-title-size, 1.05rem);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.35;
    color: var(--hero-caption-color, #fff);
}

.hero-featured-caption .date {
    font-size: var(--hero-caption-date-size, .78rem);
    color: var(--hero-caption-color, rgba(255, 255, 255, .92));
}

.hero-banner-footer {
    text-align: right;
    padding: 8px 0;
}

.hero-banner-footer a {
    color: var(--borsa-red);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
}

.hero-banner-footer a:hover { text-decoration: underline; }

/* ── News grid ── */
.news-grid-section {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.news-grid-aux {
    margin-bottom: 24px;
    align-items: start;
}

.news-grid-paired {
    align-items: stretch;
}

.news-grid-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.news-grid-col-paired {
    height: 100%;
}

.news-grid-paired .module-announcements,
.news-grid-paired .module-reports-slider,
.news-grid-paired .reports-module {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.module-announcements {
    display: flex;
    flex-direction: column;
}

.module-announcements .news-column-body {
    flex: 1 1 auto;
}

.module-announcements .news-column-footer {
    margin-top: auto;
}

.reports-module {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.reports-module .reports-slider-main {
    flex: 0 0 auto;
    position: relative;
    height: 320px;
    overflow: hidden;
}

.reports-module .reports-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.reports-module .reports-slider-main img,
.reports-module .reports-slide-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 0;
}

.reports-module .reports-thumbs {
    flex-shrink: 0;
}

.news-column {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.news-column-header {
    padding: 12px 16px 10px;
    border-bottom: 3px solid #111;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.news-column-body {
    padding: 16px;
}

.news-column-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-column-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: .88rem;
}

.news-column-list li:last-child { border-bottom: none; }

.news-column-list a {
    color: var(--borsa-text);
    text-decoration: none;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.news-column-list a::before {
    content: "▸";
    color: var(--borsa-red);
    flex-shrink: 0;
    font-size: .75rem;
    margin-top: 2px;
}

.announcements-list a::before {
    content: "::";
    color: #999;
    font-weight: 700;
    letter-spacing: -.05em;
}

.announcements-list li {
    border-bottom: 1px solid #eee;
}

.announcements-list a {
    display: block;
    padding: 6px 0;
}

.announcements-list a:hover {
    color: #0066cc;
}

.news-column-list a:hover { color: var(--borsa-red); }

.news-column-list .date {
    display: block;
    font-size: .75rem;
    color: var(--borsa-muted);
    margin-top: 2px;
}

.news-feature-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}

.news-feature-card .feature-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
    display: block;
}

.news-feature-card .feature-title {
    font-weight: 700;
    font-size: .9rem;
    margin-top: 8px;
    line-height: 1.35;
}

.news-column-footer {
    text-align: right;
    padding: 8px 16px 12px;
}

.news-column-footer a {
    color: var(--borsa-red);
    font-weight: 600;
    font-size: .82rem;
    text-decoration: none;
}

/* ── Reports slider module ── */
.reports-slider-main {
    position: relative;
    background: #222;
    overflow: hidden;
    height: 320px;
}

.reports-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.reports-slider-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity .2s ease;
}

.reports-slide-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #444, #666);
}

.reports-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .72);
    padding: 16px 18px 14px;
}

.reports-slide-overlay h3 {
    font-size: .92rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.35;
}

.reports-slide-overlay p {
    font-size: .82rem;
    margin: 0 0 8px;
    opacity: .92;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reports-slide-overlay .read-more {
    color: var(--borsa-red);
    font-weight: 700;
    font-size: .82rem;
    float: right;
    margin-top: 4px;
}

.reports-thumbs {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}

.reports-thumb {
    flex: 1;
    border: none;
    border-top: 3px solid transparent;
    padding: 0;
    background: transparent;
    cursor: pointer;
    min-width: 0;
    transition: border-color .15s ease;
}

.reports-thumb:hover,
.reports-thumb.active {
    border-top-color: var(--borsa-red);
}

.reports-thumb img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    display: block;
    opacity: .7;
    transition: opacity .15s ease;
}

.reports-thumb:hover img,
.reports-thumb.active img { opacity: 1; }

.reports-thumb .thumb-placeholder {
    height: 56px;
    font-size: 1rem;
}

.reports-more-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #111;
    color: #f5f5f5;
    font-weight: 700;
    font-size: .78rem;
    text-decoration: none;
    min-width: 72px;
}

.reports-more-link:hover {
    color: #fff;
    background: var(--borsa-red);
}

.thumb-grid-footer {
    text-align: right;
    padding-top: 10px;
}

.thumb-grid-footer a {
    color: var(--borsa-red);
    font-weight: 600;
    font-size: .82rem;
    text-decoration: none;
}

/* ── CME / Chicago quotes (chiagofiyat.php) ── */
.cme-quotes-module,
.cme-quotes-table-wrap {
    background: #fff;
    text-align: center;
}

.cme-quotes-title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
}

.cme-quotes-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.portal-row--2col-equal .cme-quotes-table {
    font-size: 11px;
}

.portal-row--2col-equal .cme-quotes-table th,
.portal-row--2col-equal .cme-quotes-table td {
    padding: 6px 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cme-quotes-table th,
.cme-quotes-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.cme-quotes-table th {
    background: #f4f4f4;
    font-weight: 700;
}

.cme-quotes-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.cme-quotes-table tbody tr:nth-child(odd) {
    background: #fff;
}

.cme-quotes-table td:first-child {
    text-align: left;
    line-height: 1.35;
}

.cme-quotes-table td:nth-child(2),
.cme-quotes-table td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

.cme-quotes-error {
    color: #666;
    font-size: .85rem;
    padding: 12px 8px;
}

.module-cme-quotes {
    margin-bottom: 16px;
    max-height: 320px;
    overflow: auto;
    border: 1px solid #e0e0e0;
    padding: 10px 8px 8px;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    .cme-quotes-table {
        font-size: 10px;
    }
}

/* ── Generic card grid module ── */
.module-grid-section {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0;
}

.module-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.module-card {
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow .15s;
}

.module-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.module-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.module-card-body {
    padding: 12px;
}

.module-card-body h3 {
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.35;
}

.module-card-body .date {
    font-size: .75rem;
    color: var(--borsa-muted);
}

/* ── Thumbnail grid ── */
.thumb-grid-section {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0;
}

.thumb-grid-header {
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 3px solid #111;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-grid-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow .15s;
}

.thumb-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.thumb-grid-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.thumb-grid-item .caption {
    padding: 6px 8px;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-placeholder {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #444, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.5rem;
}

/* Haber grid — hover başlık modu (ShowItemTitles kapalı) */
.thumb-grid-hover-mode .thumb-grid-item {
    position: relative;
    aspect-ratio: 4 / 3;
}

.thumb-grid-hover-mode .thumb-grid-item img,
.thumb-grid-hover-mode .thumb-placeholder {
    width: 100%;
    height: 100%;
}

.thumb-grid-hover-mode .thumb-placeholder {
    height: 100%;
}

.thumb-grid-hover-mode .thumb-grid-item img {
    transition: transform .2s ease;
}

.thumb-grid-hover-mode .thumb-grid-item:hover img {
    transform: scale(1.04);
}

.thumb-grid-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, .82));
    opacity: 0;
    transition: opacity .2s ease;
    color: #fff;
}

.thumb-grid-hover-mode .thumb-grid-item:hover .thumb-grid-overlay,
.thumb-grid-hover-mode .thumb-grid-item:focus-visible .thumb-grid-overlay {
    opacity: 1;
}

.thumb-grid-overlay-title {
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer ── */
.site-footer {
    margin-top: 40px;
    font-size: .85rem;
    background: transparent;
    padding: 0;
}

.site-footer-bar {
    background: var(--borsa-red);
    color: #fff;
    padding: 14px 15px;
}

.site-footer a { color: #fff; }

.site-footer select {
    background: #fff;
    border: none;
    padding: 4px 8px;
    font-size: .82rem;
    border-radius: 2px;
}

/* ── Site duyuru popup ── */
.site-announcement-modal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.site-announcement-modal .modal-header {
    background: var(--borsa-red);
    color: #fff;
    border-bottom: 0;
}

.site-announcement-modal .modal-header .modal-title {
    color: #fff;
    font-weight: 700;
}

.site-announcement-modal .modal-header .btn-close {
    filter: invert(1);
}

.site-announcement-body {
    background: #fff;
    color: inherit;
    line-height: 1.65;
    padding: 1.25rem;
}

.site-announcement-body img {
    max-width: 100%;
    height: auto;
}

.site-announcement-body table {
    max-width: 100%;
}

.site-announcement-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* ── İletişim sayfası ── */
.contact-page .contact-panel {
    background: #fff;
}

.contact-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--borsa-black);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--borsa-black);
}

.contact-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--borsa-text);
}

.contact-input,
.contact-textarea {
    border-radius: 0;
    border-color: #ccc;
    font-size: .9rem;
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
}

.btn-borsa {
    background: var(--borsa-red);
    border-color: var(--borsa-red);
    color: #fff;
    border-radius: 0;
    padding: .5rem 1.25rem;
    font-weight: 600;
}

.btn-borsa:hover {
    background: var(--borsa-red-dark);
    border-color: var(--borsa-red-dark);
    color: #fff;
}

.contact-info-list li {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    line-height: 1.5;
}

.contact-info-list li i {
    color: var(--borsa-red);
    font-size: 1.1rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

.contact-info-list a {
    color: var(--borsa-text);
    text-decoration: none;
}

.contact-info-list a:hover {
    color: var(--borsa-red);
    text-decoration: underline;
}

.contact-map {
    position: relative;
    border: 1px solid #ddd;
    background: #f5f5f5;
    overflow: hidden;
}

.contact-map iframe {
    border: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-map-directions {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 70%);
    transition: background 0.2s ease;
}

.contact-map-directions:hover,
.contact-map-directions:focus-visible {
    color: #fff;
    background: linear-gradient(to top, rgba(160, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 75%);
    outline: none;
}

.contact-map-directions-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.contact-list-table-wrap {
    border: 1px solid #ddd;
    background: #fff;
}

.public-page .page-content-body .contact-list-table-wrap,
.public-page .page-content-body .table-responsive {
    margin-top: .5rem;
}

.contact-list-table,
.public-page .page-content-body table {
    font-size: .88rem;
    margin-bottom: 0;
}

.contact-list-table thead th,
.public-page .page-content-body table thead th {
    background: var(--borsa-black);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    vertical-align: middle;
}

.contact-list-table tbody td,
.public-page .page-content-body table tbody td {
    vertical-align: middle;
}

.contact-list-table a,
.public-page .page-content-body table a {
    color: var(--borsa-text);
    text-decoration: none;
    word-break: break-all;
}

.contact-list-table a:hover,
.public-page .page-content-body table a:hover {
    color: var(--borsa-red);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .portal-page .portal-row--2col-equal,
    .portal-page .portal-row--3col,
    .portal-page .portal-row--3col-equal,
    .portal-page .portal-row--4col {
        grid-template-columns: 1fr;
    }

    .hero-banner-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 0;
    }

    .hero-featured {
        grid-column: 1;
        grid-row: 1;
        height: min(58vw, 420px);
        min-height: 260px;
    }

    .hero-featured-media img,
    .hero-featured-media picture img {
        object-fit: cover;
    }

    .hero-news-list {
        grid-column: 1;
        grid-row: 2;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid #ddd;
        max-height: min(52vh, 320px);
        height: min(52vh, 320px);
        flex: none;
    }

    .news-grid { grid-template-columns: 1fr; }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .module-card-grid { grid-template-columns: repeat(2, 1fr); }

    .top-bar-util {
        font-size: .72rem;
    }

    .top-bar-doviz {
        display: none;
    }

    .main-nav .nav-dropdown.mega-panel {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --container-side-gap: clamp(8px, 2.5vw, 16px);
        --site-content-max: 100%;
    }

    .ticker-bar {
        flex-wrap: wrap;
    }

    .ticker-scroll-wrap {
        order: 2;
        width: 100%;
        flex: 1 1 100%;
        min-height: 28px;
    }

    .ticker-search {
        order: 1;
        margin-left: auto;
        border-left: none;
    }

    .ticker-search input {
        width: min(110px, 28vw);
    }

    .site-brand-module {
        padding: 8px 0;
        text-align: center;
    }

    .site-brand-custom {
        text-align: center;
    }

    .site-brand-module {
        min-height: var(--site-brand-area-max-height, 0);
        max-height: var(--site-brand-area-max-height, none);
    }

    .site-brand-custom img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: var(--site-brand-logo-max-height-mobile, var(--site-brand-logo-max-height, none)) !important;
        margin-left: auto;
        margin-right: auto;
        object-position: center center;
    }

    .site-brand-custom.cms-html img {
        max-height: var(--site-brand-logo-max-height-mobile, var(--site-brand-logo-max-height, none)) !important;
    }

    .site-brand-default .site-brand-title {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
    }

    .module-custom-html-body img {
        width: 100% !important;
    }

    .thumb-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-banner {
        margin-top: 4px;
        margin-bottom: 12px;
    }

    .hero-news-item .thumb {
        flex: 0 0 88px;
        width: 88px;
        max-width: none;
        min-width: 0;
        min-height: 48px;
    }

    .hero-news-item .title {
        font-size: .85rem;
    }

    .module-cme-quotes {
        max-height: none;
    }

    .cme-quotes-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-links-select {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar-auth-links a:not(:first-child) {
        display: none;
    }

    .thumb-grid { grid-template-columns: 1fr; }
    .module-card-grid { grid-template-columns: 1fr; }

    .hero-featured {
        height: min(62vw, 300px);
        min-height: 200px;
    }
}

.module-resimli-link {
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.module-resimli-link-title {
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.module-resimli-link-grid {
    display: grid;
    gap: .75rem 1rem;
    width: 100%;
    align-items: stretch;
}

.module-resimli-link-grid--cols-1 { grid-template-columns: 1fr; }
.module-resimli-link-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-resimli-link-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-resimli-link-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.module-resimli-link-item {
    display: block;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.module-resimli-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.module-resimli-link-item img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .module-resimli-link-grid--cols-3,
    .module-resimli-link-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .module-resimli-link-grid--cols-2,
    .module-resimli-link-grid--cols-3,
    .module-resimli-link-grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

.module-custom-html {
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.module-custom-html-body {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.module-custom-html-body table {
    max-width: 100% !important;
    width: 100% !important;
}

.module-custom-html-title {
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.module-custom-html-body img,
.cms-html img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.module-custom-html-body iframe,
.module-custom-html-body video,
.cms-html iframe,
.cms-html video {
    max-width: 100%;
    height: auto;
}

/* ── KVKK / çerez bildirim şeridi ── */
body.public-site.kvkk-banner-visible {
    padding-bottom: var(--kvkk-banner-height, 72px);
}

.kvkk-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: var(--borsa-red);
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
    font-size: .82rem;
    line-height: 1.45;
}

.kvkk-consent-banner[hidden] {
    display: none !important;
}

.kvkk-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 15px;
}

.kvkk-consent-text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.kvkk-consent-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kvkk-consent-text a:hover {
    color: #ffe0e6;
}

.kvkk-consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kvkk-consent-accept {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: 6px 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.kvkk-consent-accept:hover {
    background: #fff;
    color: var(--borsa-red);
}

.kvkk-consent-close {
    border: none;
    background: transparent;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .85;
    padding: 0;
}

.kvkk-consent-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .kvkk-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .kvkk-consent-actions {
        justify-content: flex-end;
    }

    .kvkk-consent-accept {
        flex: 1 1 auto;
    }
}

/* ── Yukarı çık ── */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--borsa-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--borsa-red-dark);
    color: #fff;
}

.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 14px;
        bottom: 72px;
        width: 44px;
        height: 44px;
    }

    body.kvkk-banner-visible .back-to-top {
        bottom: 120px;
    }
}
