﻿:root{
  --brand:#0ea5e9;
  --brand2:#0284c7;
  --ink:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 14px 30px rgba(2,6,23,.10);
  --radius:18px;
}

/* section */
.media-section{ padding: 42px 0; }

/* card shell */
.media-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 12px 26px rgba(2,6,23,.07);
  overflow: hidden;
}

.media-card-head{
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(14,165,233,.06), transparent);
}

.media-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  color: var(--ink);
}
.media-title i{ color: var(--brand2); }

.media-more{
  font-weight: 900;
  color: var(--brand2);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.18);
}
.media-more:hover{
  background: rgba(14,165,233,.16);
}

.media-card-body{ padding: 12px; }

/* ===== Gallery modern ===== */
.gallery-modern{
  display: grid;
  gap: 10px;
}

.gallery-main{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #f3f6fb;
}

.gallery-main-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.20));
  pointer-events: none;
}

.gallery-thumbs{
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}

.gthumb{
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  width: 74px;
  height: 56px;
  cursor: pointer;
  transition: .15s ease;
}
.gthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gthumb:hover{
  transform: translateY(-1px);
  border-color: rgba(14,165,233,.35);
}
.gthumb.is-active{
  border-color: rgba(14,165,233,.75);
  box-shadow: 0 10px 18px rgba(14,165,233,.12);
}

/* ===== News modern ===== */
.news-list{
  display: grid;
  gap: 10px;
}

.news-item{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  transition: .15s ease;
}
.news-item:hover{
  transform: translateY(-1px);
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.05);
}

.news-thumb{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.news-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-body{
  min-width: 0;
  padding-top: 2px;
}

.news-title{
  font-weight: 950;
  line-height: 1.25;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.news-meta{
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* responsive */
@media (max-width: 575.98px){
  .news-item{ grid-template-columns: 1fr; }
  .news-thumb{ height: 160px; }
  .gthumb{ width: 68px; height: 52px; }
}


.gallery-main{ min-height: 260px; }
.gallery-main-img{ display:block !important; }
