/* Anasayfa — marsoto.ukus.site benzeri kırmızı / açık gri tema (sadece .portal-home + body.portal-home-page) */

body.portal-home-page .body.flex-grow-1 {
    background-color: #f8fafc;
    min-width: 0; /* flex içinde taşmayı keser */
    overflow-x: clip; /* kalan taşmaları yatay kaydırmaya düşürme */
}

body.portal-home-page .wrapper {
    min-width: 0;
}

body.portal-home-page .footer {
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.portal-home {
    --theme-red: #da291c;
    --theme-dark-red: #590000;
    --portal-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-border: #f1f5f9;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    /* container-fluid px-0 iken .row negatif margin taşır; CoreUI gutter ile aynı hizayı koru */
    padding-left: calc(var(--cui-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--cui-gutter-x, 1.5rem) * 0.5);
    max-width: 100%;
    box-sizing: border-box;
    /* Ayrı .row bölümleri arasında dikey boşluk (tek büyük row’daki sarmal gutter kaybını telafi eder) */
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.portal-home > .row {
    width: 100%;
    max-width: 100%;
}

/* Üst canlı kutular: .row.g-4 + col-lg-4 (eski flex şerit yerine Bootstrap grid) */
.portal-home .portal-home-live-strip {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.portal-home .live-widget {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    border: 1px solid #fff;
    transition: 0.25s ease;
}

.portal-home .live-widget:hover {
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.portal-home .live-widget-weather,
.portal-home .live-widget-prayer {
    align-items: center;
}

.portal-home .prayer-widget-compact {
    font-size: 0.78rem;
    line-height: 1.3;
    min-width: 0;
}

.portal-home .prayer-row-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-home .prayer-slot {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-home .prayer-pipe {
    flex-shrink: 0;
    font-weight: 700;
    opacity: 0.4;
    margin: 0 0.1rem;
}

.portal-home .prayer-row-meta {
    font-size: 0.72rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Başlık + en fazla 2 içerik satırı (toplam 3 satır) */
.portal-home .weather-widget-compact {
    font-size: 0.78rem;
    line-height: 1.3;
    min-width: 0;
}

.portal-home .weather-row {
    min-width: 0;
}

.portal-home .weather-row-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text-muted);
}

.portal-home .weather-temps {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.portal-home .weather-temp-sep {
    font-weight: 400;
    margin: 0 0.15rem;
    color: var(--text-muted);
}

.portal-home .weather-temp-f {
    font-weight: 600;
    color: var(--text-muted);
}

.portal-home .weather-details-inline {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-home .weather-sep {
    margin: 0 0.2rem;
    opacity: 0.65;
}

.portal-home .weather-chip-lbl {
    font-weight: 500;
    color: var(--text-dark);
}

.portal-home .weather-row-meta {
    font-size: 0.72rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-home .live-widget .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.portal-home .portal-widget-fa-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.portal-home .icon-weather {
    background: #f0f9ff;
    color: #0284c7;
}

.portal-home .icon-currency {
    background: #f0fdf4;
    color: #16a34a;
}

.portal-home .icon-prayer {
    background: #fff7ed;
    color: #ea580c;
}

.portal-home .widget-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-home .widget-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.portal-home .tech-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-home .tech-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--theme-dark-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    gap: 0.5rem;
}

.portal-home .tech-card-header .header-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: none;
    font-weight: 500;
    white-space: nowrap;
}

.portal-home .tech-card-header .header-link:hover {
    color: var(--theme-red);
}

.portal-home .tech-card-body {
    padding: 16px;
    flex-grow: 1;
}

.portal-home .tech-card-body.p-compact {
    padding: 10px 13px;
}

.portal-home .tech-card-body.py-4 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
}

.portal-home .tech-card-body.py-5 {
    padding-top: 2.4rem !important;
    padding-bottom: 2.4rem !important;
}

.portal-home .tech-card-body.pb-3 {
    padding-bottom: 0.8rem !important;
}

.portal-home .portal-home-quote-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 10.5rem;
}

.portal-home .portal-home-quote-card__body > * {
    width: 100%;
    max-width: 100%;
}

.portal-home .portal-home-quote-card .portal-home-rich-excerpt {
    max-height: none;
    text-align: center;
}

/* Haber kapak: önerilen kapak oranı (1200:440); görsel alanı tam doldurur (kırpma olabilir) */
.portal-home .news-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 440;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    background: linear-gradient(135deg, #fee2e2 0%, #f8fafc 100%);
}

.portal-home .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portal-home .portal-news-slide__cover-link:focus-visible {
    outline: 2px solid var(--theme-red, #da291c);
    outline-offset: 2px;
    border-radius: 2px;
}

.portal-home .portal-home-news-excerpt-row {
    margin-top: 0.35rem;
}

.portal-home .portal-home-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--theme-dark-red);
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(89, 0, 0, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.portal-home .portal-home-news-read-more__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--theme-red);
}

.portal-home .portal-home-news-read-more:hover {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.35);
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.portal-home .portal-home-news-read-more:hover .portal-home-news-read-more__icon {
    color: #0f172a;
}

.portal-home .portal-home-news-read-more:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

/* Bizden Haberler — slider */
.portal-home .portal-news-slider {
    position: relative;
    container-type: inline-size;
    container-name: portal-news-slider;
}

.portal-home .portal-news-slider__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.portal-home .portal-news-slider__counters {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-home .portal-news-slider__counter-item {
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border: none;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    color: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portal-home .portal-news-slider__counter-item--active {
    background: var(--theme-dark-red, #590000);
    color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.portal-home .portal-news-slider__counter-item:not(.portal-news-slider__counter-item--active):hover {
    background: rgba(255, 255, 255, 0.65);
    color: rgba(15, 23, 42, 0.95);
}

.portal-home .portal-news-slider__track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.portal-home .portal-news-slider__slide {
    flex-shrink: 0;
    min-width: 0;
}

/* Oklar: yalnızca kapak görselinin (aspect 1200:440) dikey ortası; tüm kartın değil */
.portal-home .portal-news-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.portal-home .portal-news-slider__arrow .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.portal-home .portal-news-slider__arrow:hover {
    background: rgba(15, 23, 42, 0.72);
}

.portal-home .portal-news-slider__arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.portal-home .portal-news-slider__arrow--prev {
    left: 10px;
}

.portal-home .portal-news-slider__arrow--next {
    right: 10px;
}

@supports (top: calc(1cqw * 1)) {
    .portal-home .portal-news-slider__arrow {
        top: calc(100cqw * 440 / (2 * 1200));
    }
}

/* Zengin metin (TinyMCE) — anasayfa özetleri */
.portal-home .content-rich-text {
    line-height: 1.45;
    word-break: break-word;
}

.portal-home .content-rich-text p {
    margin-bottom: 0.35rem;
}

.portal-home .content-rich-text p:last-child {
    margin-bottom: 0;
}

.portal-home .content-rich-text ul,
.portal-home .content-rich-text ol {
    padding-left: 1.15rem;
    margin-bottom: 0.35rem;
}

.portal-home .content-rich-text a {
    text-decoration: underline;
    color: inherit;
}

.portal-home .portal-home-rich-excerpt {
    max-height: 7.5rem;
    overflow: hidden;
}

.portal-home .portal-home-rich-excerpt-list {
    max-height: 2.85rem;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.35;
}

.portal-home .list-custom {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-home .list-custom li {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}

.portal-home .list-custom li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portal-home .list-custom a {
    color: inherit;
    text-decoration: none;
}

.portal-home .list-custom a:hover {
    color: var(--theme-red);
}

/* Yemek listesi widget — öğün başlığı + iki sütun */
.portal-home .portal-home-meal-type-block + .portal-home-meal-type-block {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
}

.portal-home .portal-home-meal-type-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--theme-red, #da291c);
    margin-bottom: 0.4rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portal-home .portal-home-meal-name {
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portal-home .portal-home-meal-grid {
    margin-bottom: 0;
}

.portal-home .portal-home-meal-grid .portal-home-meal-cell {
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

/* Bugün — ön planda, sonraki günden net ayrışır */
.portal-home .portal-home-meal-widget-section--today {
    background: linear-gradient(165deg, rgba(218, 41, 28, 0.09) 0%, #ffffff 42%, #f8fafc 100%);
    border: 1px solid rgba(218, 41, 28, 0.18);
    border-radius: 12px;
    padding: 0.75rem 0.7rem;
    box-shadow: 0 2px 8px rgba(218, 41, 28, 0.07);
}

.portal-home .portal-home-meal-widget-today-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--theme-red, #da291c);
    padding: 0.32em 0.7em;
    border-radius: 7px;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(218, 41, 28, 0.35);
}

.portal-home .portal-home-meal-widget-section--today .portal-home-meal-grid .portal-home-meal-cell {
    background: #fff;
    border-color: rgba(218, 41, 28, 0.12);
    box-shadow: 0 1px 0 rgba(218, 41, 28, 0.04);
}

.portal-home .portal-home-meal-widget-section--next {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}

.portal-home .portal-home-meal-widget-heading--next {
    padding-bottom: 0.15rem;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 0.65rem !important;
}

.portal-home .portal-home-meal-widget-next-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.portal-home .portal-home-meal-widget-section--next .portal-home-meal-type-label {
    color: #94a3b8;
    font-weight: 500;
}

.portal-home .portal-home-meal-widget-section--next .portal-home-meal-grid .portal-home-meal-cell {
    background: #fafbfc;
    border-color: #e8ecf1;
    box-shadow: none;
}

.portal-home .portal-home-meal-widget-empty-today {
    opacity: 0.88;
}

.portal-home .portal-home-meal-rate-btn {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    line-height: 1.2;
}

.portal-home .portal-home-meal-rate-btn__emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.meal-rating-option {
    min-width: 3.25rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.meal-rating-option__emoji {
    font-size: 1.75rem;
    line-height: 1;
    display: block;
}

.meal-rating-option--selected,
.meal-rating-option:hover {
    border-color: var(--theme-red, #da291c) !important;
    box-shadow: 0 0 0 2px rgba(218, 41, 28, 0.15);
    transform: translateY(-1px);
}

.meal-rating-option--selected {
    background: rgba(218, 41, 28, 0.08);
}

.meal-rating-dish {
    background: var(--cui-body-bg, #fff);
}

.meal-rating-comment-wrap textarea {
    resize: vertical;
    min-height: 2.5rem;
}

/* Genişlik ≥ lg 6/12: Bugün ve sonraki gün yan yana */
.portal-home .portal-home-meal-widget-split .portal-home-meal-widget-section + .portal-home-meal-widget-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .portal-home .portal-home-meal-widget-split .portal-home-meal-widget-section + .portal-home-meal-widget-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 1px solid #f1f5f9;
        padding-left: 0.75rem;
    }
}

.portal-home .portal-api-bar .btn {
    border-radius: 10px;
}

.portal-home .text-theme-red {
    color: var(--theme-red) !important;
}

.portal-home .bg-theme-red {
    background-color: var(--theme-dark-red) !important;
    border-color: var(--theme-dark-red) !important;
}

.portal-home .mini-thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.portal-home .portal-home-badge {
    background: #f1f5f9;
    color: var(--text-dark);
    border-color: #e2e8f0 !important;
    font-weight: 500;
}

.portal-home .portal-home-badge-muted {
    background: #f8fafc;
    color: var(--text-muted);
    border-color: #e2e8f0 !important;
    font-weight: 500;
}

.portal-home .portal-home-announcement-new {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.2em 0.55em;
    background: rgba(218, 41, 28, 0.12);
    color: var(--theme-red, #da291c);
    border: 1px solid rgba(218, 41, 28, 0.28);
}

.portal-home .portal-home-thumb-placeholder {
    background: #f1f5f9;
}

/* ——— Dark tema: CoreUI [data-coreui-theme=dark] ile uyum ——— */
html[data-coreui-theme='dark'] body.portal-home-page .body.flex-grow-1 {
    background-color: var(--cui-body-bg);
}

html[data-coreui-theme='dark'] body.portal-home-page .footer {
    background: var(--cui-body-bg);
    border-top-color: var(--cui-border-color);
    color: var(--cui-secondary-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home {
    --theme-red: #f87171;
    --theme-dark-red: #fca5a5;
    --portal-bg: var(--cui-body-bg);
    --text-dark: var(--cui-body-color);
    --text-muted: var(--cui-secondary-color);
    --card-border: var(--cui-border-color);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    color: var(--cui-body-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .live-widget {
    background: var(--cui-secondary-bg);
    border-color: var(--cui-border-color);
    box-shadow: var(--card-shadow);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .live-widget:hover {
    border-color: var(--cui-gray-600);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .icon-weather {
    background: rgba(2, 132, 199, 0.2);
    color: #7dd3fc;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .icon-currency {
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .icon-prayer {
    background: rgba(234, 88, 12, 0.2);
    color: #fdba74;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .tech-card {
    background: var(--cui-secondary-bg);
    border-color: var(--cui-border-color);
    box-shadow: var(--card-shadow);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .tech-card-header {
    border-bottom-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .list-custom li {
    border-bottom-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-type-block + .portal-home-meal-type-block {
    border-top-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-section--today {
    background: linear-gradient(165deg, rgba(218, 41, 28, 0.22) 0%, var(--cui-body-bg) 55%, rgba(0, 0, 0, 0.15) 100%);
    border-color: rgba(218, 41, 28, 0.38);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-section--today .portal-home-meal-grid .portal-home-meal-cell {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(218, 41, 28, 0.22);
    box-shadow: none;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-heading--next {
    border-bottom-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-next-label {
    color: rgba(248, 250, 252, 0.65);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-section--next .portal-home-meal-type-label {
    color: rgba(148, 163, 184, 0.9);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-section--next .portal-home-meal-grid .portal-home-meal-cell {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-split .portal-home-meal-widget-section + .portal-home-meal-widget-section {
    border-top-color: var(--cui-border-color);
}

@media (min-width: 768px) {
    html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-widget-split .portal-home-meal-widget-section + .portal-home-meal-widget-section {
        border-left-color: var(--cui-border-color);
    }
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-meal-cell {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--cui-border-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .news-img-wrapper {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, var(--cui-body-bg) 100%);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-news-slider__arrow {
    background: rgba(0, 0, 0, 0.5);
    color: #f8fafc;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-news-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-news-slider__counter-item {
    background: rgba(0, 0, 0, 0.45);
    color: rgba(248, 250, 252, 0.92);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-news-slider__counter-item:not(.portal-news-slider__counter-item--active):hover {
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-news-slider__counter-item--active {
    background: var(--theme-red, #f87171);
    color: #1a1a1a;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-badge {
    background: var(--cui-tertiary-bg);
    color: var(--cui-body-color);
    border-color: var(--cui-border-color) !important;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-badge-muted {
    background: var(--cui-tertiary-bg);
    color: var(--cui-secondary-color);
    border-color: var(--cui-border-color) !important;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-announcement-new {
    background: rgba(248, 113, 113, 0.18);
    color: var(--theme-red, #f87171);
    border-color: rgba(248, 113, 113, 0.35);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-thumb-placeholder {
    background: var(--cui-tertiary-bg);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .text-muted {
    color: var(--cui-secondary-color) !important;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-news-read-more {
    color: #fecaca;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.55) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-color: var(--cui-border-color);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-news-read-more__icon {
    color: var(--theme-red, #f87171);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-news-read-more:hover {
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.35);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-news-read-more:hover .portal-home-news-read-more__icon {
    color: #f8fafc;
}

/* Ana sayfa — Hızlı Erişim kutusu */
.portal-home .portal-home-quick-access__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--card-border, #f1f5f9);
    background: #fff;
    box-shadow: var(--card-shadow, 0 4px 15px rgba(0, 0, 0, 0.04));
    color: var(--text-dark, #1e293b);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.portal-home .portal-home-quick-access__tile:hover {
    border-color: color-mix(in srgb, var(--theme-red, #da291c) 28%, var(--card-border, #f1f5f9));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
    color: var(--text-dark, #1e293b);
}

.portal-home .portal-home-quick-access__tile--disabled {
    cursor: default;
    opacity: 0.85;
}

.portal-home .portal-home-quick-access__tile--disabled:hover {
    transform: none;
    border-color: var(--card-border, #f1f5f9);
    box-shadow: var(--card-shadow, 0 4px 15px rgba(0, 0, 0, 0.04));
}

.portal-home .portal-home-quick-access__tile--ip {
    cursor: default;
}

.portal-home .portal-home-quick-access__tile--ip:hover {
    transform: none;
    border-color: var(--card-border, #f1f5f9);
    box-shadow: var(--card-shadow, 0 4px 15px rgba(0, 0, 0, 0.04));
}

.portal-home .portal-home-quick-access__ip {
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-all;
    color: var(--text-muted, #64748b);
}

.portal-home .portal-home-quick-access__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--theme-red, #da291c) 10%, transparent);
    color: var(--theme-red, #da291c);
}

.portal-home .portal-home-quick-access__icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.portal-home .portal-home-quick-access__label {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.portal-home .portal-home-quick-access__hint {
    font-size: 0.7rem;
    line-height: 1.3;
}

/* col-lg-3 içinde: dört link dikey, satır içi ikon + etiket */
.portal-home .portal-home-quick-access__tile--stacked {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    min-height: 0;
    padding: 0.5rem 0.6rem;
}

.portal-home .portal-home-quick-access__tile--stacked .portal-home-quick-access__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.portal-home .portal-home-quick-access__tile--stacked .portal-home-quick-access__icon .icon {
    width: 1.05rem;
    height: 1.05rem;
}

.portal-home .portal-home-quick-access__tile--stacked .portal-home-quick-access__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
}

.portal-home .portal-home-quick-access__tile--stacked .portal-home-quick-access__ip {
    flex: 0 0 100%;
    margin: 0;
    padding-left: calc(2rem + 0.65rem);
    font-size: 0.78rem;
}

.portal-home .portal-home-quick-access__tile--stacked .portal-home-quick-access__hint {
    flex: 0 0 100%;
    margin: 0;
    padding-left: calc(2rem + 0.65rem);
}

/* Hızlı Erişim — lg kolon genişliğine göre (widgetColsLg: 3 / 6 / 9–12) */
.portal-home .portal-home-quick-access--layout-grid2 .row {
    margin-left: 0;
    margin-right: 0;
}

.portal-home .portal-home-quick-access--layout-grid2 .row > [class*='col-'] {
    padding-left: calc(var(--bs-gutter-x, 0.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 0.5rem) * 0.5);
}

.portal-home .portal-home-quick-access__tile--grid-cell {
    min-height: 0;
    padding: 0.45rem 0.5rem;
}

.portal-home .portal-home-quick-access__tile--grid-cell .portal-home-quick-access__label {
    font-size: 0.75rem;
}

.portal-home .portal-home-quick-access--layout-row {
    width: 100%;
}

.portal-home .portal-home-quick-access--layout-row > a.portal-home-quick-access__tile--row,
.portal-home .portal-home-quick-access--layout-row > .portal-home-quick-access__tile--row {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 6.5rem;
}

@media (min-width: 992px) {
    .portal-home .portal-home-quick-access--layout-row {
        flex-wrap: nowrap;
    }

    .portal-home .portal-home-quick-access--layout-row > a.portal-home-quick-access__tile--row,
    .portal-home .portal-home-quick-access--layout-row > .portal-home-quick-access__tile--row {
        flex: 1 1 0;
        min-width: 0;
    }
}

.portal-home .portal-home-quick-access__tile--row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    min-height: 4.75rem;
    padding: 0.65rem 0.45rem;
}

.portal-home .portal-home-quick-access__tile--row .portal-home-quick-access__icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
}

.portal-home .portal-home-quick-access__tile--row .portal-home-quick-access__icon .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.portal-home .portal-home-quick-access__tile--row .portal-home-quick-access__label {
    font-size: 0.78rem;
    line-height: 1.25;
}

.portal-home .portal-home-quick-access__tile--row .portal-home-quick-access__hint {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 0.62rem;
    line-height: 1.2;
    max-width: 100%;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-quick-access__tile {
    background: var(--cui-body-bg);
    border-color: var(--cui-border-color);
    color: var(--cui-body-color);
    box-shadow: none;
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-quick-access__tile:hover {
    border-color: color-mix(in srgb, var(--theme-red, #f87171) 35%, var(--cui-border-color));
    color: var(--cui-body-color);
}

html[data-coreui-theme='dark'] body.portal-home-page .portal-home .portal-home-quick-access__icon {
    background: rgba(248, 113, 113, 0.12);
    color: var(--theme-red, #f87171);
}
