/* სიახლეების განყოფილებები: ტაბები, სპორტი, კულტურა, ამინდი (news.php, weather.php, mobile) */

.ps-news    { --ps: #b40000; }
.ps-sport   { --ps: #0e9f6e; }
.ps-culture { --ps: #7c3aed; }
.ps-weather { --ps: #1d72d8; }

/* ---------- ტაბები ---------- */
.portal-tabs { background: #fff; border-bottom: 1px solid #e3e8ef; box-shadow: 0 3px 10px rgba(20, 40, 75, .05); }
.portal-tabs__row { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.portal-tabs__row::-webkit-scrollbar { display: none; }
.portal-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 22px; border-radius: 40px; border: 1px solid #dde3ec; background: #fff; color: #33415c; font-family: 'BPG Nino Mtavruli', 'FiraGO', 'Noto Sans Georgian', sans-serif; font-size: 1.02rem; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.portal-tab i { color: var(--ps); font-size: .95rem; }
.portal-tab:hover { border-color: var(--ps); color: var(--ps); }
.portal-tab.is-active { background: var(--ps); border-color: var(--ps); color: #fff; }
.portal-tab.is-active i { color: #fff; }

/* ---------- სათაურები ---------- */
.portal-block { margin: 8px 0 34px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid #e3e8ef; position: relative; }
.portal-head::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 120px; height: 3px; background: var(--ps); }
.portal-head h2 { margin: 0; font-family: 'BPG Nino Mtavruli', 'Noto Serif Georgian', serif; font-size: 1.4rem; font-weight: 700; color: #15223a; }
.portal-head h2 i { color: var(--ps); margin-right: 8px; font-size: 1.15rem; }
.portal-head a { color: var(--ps); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.portal-head a:hover { text-decoration: underline; }

.portal-title { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.portal-title__icon { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 16px; background: var(--ps); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.portal-title h1 { margin: 0; font-family: 'BPG Nino Mtavruli', 'Noto Serif Georgian', serif; font-weight: 700; font-size: 2rem; color: #15223a; }
.portal-title p { margin: 2px 0 0; color: #6b778f; font-size: .9rem; }

.portal-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.portal-pill { background: #fff; border: 1px solid #dde3ec; border-radius: 30px; padding: 7px 15px; font-size: .83rem; color: #33415c; text-decoration: none; white-space: nowrap; }
.portal-pill:hover { border-color: var(--ps); color: var(--ps); }
.portal-pill.is-active { background: var(--ps); border-color: var(--ps); color: #fff; font-weight: 700; }

/* ---------- Hero ---------- */
.portal-hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; margin-bottom: 28px; }
.portal-hero--solo { grid-template-columns: 1fr; }
.portal-big { position: relative; display: block; min-height: 380px; border-radius: 16px; overflow: hidden; background: #1c2942; color: #fff; }
.portal-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portal-big:hover img { transform: scale(1.04); }
.portal-big__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 9px; padding: 22px; background: linear-gradient(transparent 30%, rgba(8, 14, 28, .92)); }
.portal-badge { background: var(--ps); color: #fff; font-size: .74rem; font-weight: 700; border-radius: 20px; padding: 4px 12px; }
.portal-big__title { font-family: 'BPG Nino Mtavruli', 'Noto Serif Georgian', serif; font-size: 1.5rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portal-big__date { font-size: .8rem; opacity: .82; }
.portal-side { display: flex; flex-direction: column; gap: 12px; }
.portal-row { flex: 1; display: flex; gap: 14px; min-height: 112px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(20, 40, 75, .06); text-decoration: none; color: #15223a; }
.portal-row img { flex: 0 0 132px; width: 132px; height: auto; align-self: stretch; object-fit: cover; }
.portal-row__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 12px 10px 0; min-width: 0; }
.portal-row__title { font-size: .87rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portal-row:hover .portal-row__title { color: var(--ps); }
.portal-row__date { color: #8591a7; font-size: .75rem; }

/* ---------- ბარათები ---------- */
.portal-cards { display: grid; gap: 16px; margin-bottom: 6px; }
.portal-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; border-top: 3px solid var(--ps); box-shadow: 0 4px 14px rgba(20, 40, 75, .07); text-decoration: none; color: #15223a; transition: transform .25s, box-shadow .25s; }
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20, 40, 75, .12); color: #15223a; }
.portal-card img { width: 100%; height: 160px; object-fit: cover; }
.portal-card__body { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px 14px; flex: 1; }
.portal-card__title { font-size: .92rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portal-card:hover .portal-card__title { color: var(--ps); }
.portal-card__date { margin-top: auto; color: #8591a7; font-size: .75rem; }

/* ---------- ამინდი ---------- */
.portal-meteo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.portal-meteo--solo { grid-template-columns: 1fr; }
.portal-meteo .portal-big { min-height: 250px; }
.portal-meteo .portal-big__title { font-size: 1.2rem; }
.portal-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-city { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 100px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #1d72d8, #4fa3f0); color: #fff; text-decoration: none; }
.portal-city:hover { color: #fff; filter: brightness(1.06); }
.portal-city__name { display: block; font-family: 'BPG Nino Mtavruli', 'FiraGO', sans-serif; font-size: 1rem; }
.portal-city b { display: block; font-size: 1.8rem; line-height: 1.2; }
.portal-city > i { font-size: 1.8rem; opacity: .95; }

.portal-empty { text-align: center; padding: 60px 20px; color: #6b778f; }
.portal-empty i { font-size: 2.4rem; color: var(--ps); margin-bottom: 14px; display: block; }

@media (max-width: 991.98px) {
    .portal-hero, .portal-meteo { grid-template-columns: 1fr; }
    .portal-cards--4, .portal-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ამინდის გვერდი: ტაბები ფიქსირებული navbar-ის ქვეშ ---------- */
.weather-tabs-wrap { padding-top: 62px; }
@media (min-width: 992px) { .weather-tabs-wrap { padding-top: 8px; } } /* body-ს აქ უკვე 56px აქვს */
.weather-tabs-wrap + .container .meteo-header-container { margin-top: 0; }

/* ---------- მობილური შაბლონი ---------- */
.m-portal .portal-tabs__row { padding: 10px var(--m-gutter, 16px); gap: 8px; }
.m-portal .portal-tab { padding: 8px 15px; font-size: .9rem; gap: 7px; }
.m-portal-pad { padding: 0 var(--m-gutter, 16px); }
.m-portal-pad .portal-title { margin-top: 16px; }
.m-portal-pad .portal-title__icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 13px; font-size: 1.25rem; }
.m-portal-pad .portal-title h1 { font-size: 1.35rem; }
.m-portal-pad .portal-big { min-height: 210px; }
.m-portal-pad .portal-big__title { font-size: 1.05rem; }
.m-portal-pad .portal-big__body { padding: 15px; }
.m-portal-pad .portal-block { margin: 22px 0 0; }
.m-portal-pad .portal-head h2 { font-size: 1rem; }
.m-portal-pad .portal-head h2 i { font-size: .95rem; margin-right: 6px; }
.m-portal-pad .portal-head a { font-size: .74rem; }
.m-portal-pad .portal-cities { gap: 8px; }
.m-portal-pad .portal-city { min-height: 78px; padding: 11px 13px; }
.m-portal-pad .portal-city b { font-size: 1.35rem; }
.m-portal-pad .portal-city > i { font-size: 1.35rem; }
.m-portal-pad .portal-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.m-portal-pad .portal-cards::-webkit-scrollbar { display: none; }
.m-portal-pad .portal-card { flex: 0 0 72%; scroll-snap-align: start; }
.m-portal-pad .portal-card img { height: 130px; }
.m-portal-home { padding-top: 16px; padding-bottom: 4px; }
.m-portal-home .portal-hero { margin-bottom: 6px; gap: 10px; }
.m-portal-home .portal-side { gap: 8px; }
.m-portal-home .portal-row { min-height: 88px; }
.m-portal-home .portal-row img { flex-basis: 104px; width: 104px; }
/* mobile.css-ის ბმულის ფერი ბარათებზე არ გადავიდეს */
.m-view a.portal-big, .m-view a.portal-city { color: #fff; }
.m-view a.portal-row, .m-view a.portal-card { color: #15223a; }
.m-view a.portal-tab { color: #33415c; }
.m-view a.portal-tab.is-active { color: #fff; }
.m-view .portal-head a { color: var(--ps); }
.m-view .portal-title p { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; }
.m-view .m-chips.m-chips--sports a.active { background: #0e9f6e; color: #fff; }

/* ---------- ტელეფონი: ოთხივე განყოფილება ერთ ეკრანზე ---------- */
@media (max-width: 575.98px) {
    .portal-tabs .portal-tabs__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 9px 10px; overflow: visible; }
    .portal-tabs .portal-tab { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; border-radius: 12px; font-size: .72rem; line-height: 1.25; white-space: normal; text-align: center; }
    .portal-tabs .portal-tab i { font-size: 1.05rem; }
}
