/* ==========================================================================
   GulfNews18 — homepage and section page styles
   ========================================================================== */

/* --- Breaking ticker --------------------------------------------------- */

.gn-ticker {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin-bottom: 26px;
}

.gn-ticker .label {
  flex: 0 0 auto;
  background: #c8102e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 13px 18px;
  white-space: nowrap;
}

.gn-ticker .track {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 14px;
}

.gn-ticker .track span {
  display: inline-block;
  padding: 13px 0;
  font-size: 0.92rem;
  color: #2b2b2b;
  animation: gn-scroll 48s linear infinite;
}

.gn-ticker .track span b {
  color: var(--primary-navy, #1E3A8A);
  margin: 0 8px 0 22px;
}

@keyframes gn-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Lead story -------------------------------------------------------- */

.gn-lead {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
  display: block;
  text-decoration: none;
}

.gn-lead img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gn-lead:hover img { transform: scale(1.03); }

.gn-lead .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 28px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
}

.gn-lead h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 8px;
  color: #fff;
}

.gn-lead p {
  font-size: 0.95rem;
  color: #e4e4e4;
  margin: 0 0 6px;
  max-width: 44em;
}

.gn-lead .stamp {
  font-size: 0.82rem;
  color: #cfcfcf;
}

@media (max-width: 767px) {
  .gn-lead img { height: 240px; }
  .gn-lead h2 { font-size: 1.25rem; }
  .gn-lead .overlay { padding: 18px 16px 14px; }
  .gn-lead p { display: none; }
}

/* --- Secondary editorial cards ----------------------------------------- */

.gn-sub {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  height: 100%;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gn-sub:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.gn-sub img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.gn-sub .body { padding: 14px 16px 18px; }

.gn-sub h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark-gray, #1F2937);
  margin: 8px 0 6px;
}

.gn-sub p {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.55;
  margin: 0;
}

/* --- Live feed cards ---------------------------------------------------- */

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.news-card-img {
  height: 175px;
  background: #eef2f7;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.news-source {
  display: inline-block;
  align-self: flex-start;
  background: #eef2f9;
  color: var(--primary-navy, #1E3A8A);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.news-card-body h5 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--dark-gray, #1F2937);
  margin: 0 0 7px;
}

.news-card-body p {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.55;
  margin: 0 0 10px;
  flex: 1 1 auto;
}

.news-time {
  font-size: 0.76rem;
  color: #9aa0a6;
}

.feed-empty {
  background: #fff;
  border-radius: 10px;
  padding: 26px;
  text-align: center;
  color: #6c757d;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

/* --- Skeleton loader ---------------------------------------------------- */

.gn-skeleton {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.gn-skeleton .bar,
.gn-skeleton .thumb {
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 400% 100%;
  animation: gn-shimmer 1.3s ease infinite;
}

.gn-skeleton .thumb { height: 175px; }
.gn-skeleton .bar { height: 11px; border-radius: 4px; margin: 12px 16px; }
.gn-skeleton .bar.short { width: 45%; }

@keyframes gn-shimmer {
  from { background-position: 100% 50%; }
  to   { background-position: 0 50%; }
}

/* --- Trending list tweak ------------------------------------------------ */

.trending-item .trending-number {
  display: inline-block;
  width: 22px;
  font-weight: 800;
  color: var(--primary-gold, #d69e00);
}

.trending-item .trending-text {
  font-size: 0.9rem;
  color: var(--dark-gray, #1F2937);
  line-height: 1.45;
}

.trending-item:hover .trending-text { color: var(--primary-navy, #1E3A8A); }

/* --- Weather widget ----------------------------------------------------- */

.gn-weather {
  background: linear-gradient(135deg, var(--primary-navy, #1E3A8A) 0%, #2c5f8d 100%);
  color: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 25px;
  text-align: center;
}

.gn-weather .city { font-size: 0.95rem; opacity: 0.9; }
.gn-weather .temp { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.gn-weather .row-stats { display: flex; justify-content: space-around; margin-top: 12px; font-size: 0.85rem; }
