
/* --- Base --- */
.ellaya-sec-title{font-weight:700;margin:18px 0 10px;font-size:26px}
.ellaya-sec-title span{background:#cc1e1e;color:#fff;padding:6px 12px;border-radius:6px}
.ellaya-card{display:grid;grid-template-columns:320px 1fr;gap:18px;margin:26px 0;padding-bottom:10px;border-bottom:1px solid #eee}
.ellaya-card .thumb img{width:100%;height:260px;object-fit:cover;border-radius:10px}
.ellaya-card .meta-top{display:flex;gap:10px;align-items:center;color:#7a7a7a;font-size:14px;margin-bottom:6px}
.ellaya-card .cat{background:#222;color:#fff;padding:2px 8px;border-radius:999px;text-decoration:none;font-size:12px}
.ellaya-card .title{font-size:22px;line-height:1.3;margin:6px 0}
.ellaya-card .excerpt{color:#444;margin:8px 0}
.ellaya-card .meta-bottom{display:flex;gap:12px;align-items:center}
.ellaya-card .btn-more{margin-left:auto;background:#cc1e1e;color:#fff;padding:6px 10px;border-radius:8px;text-decoration:none}

/* --- Hero --- */
.ellaya-hero .ellaya-hero-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}
.ellaya-hero .hero-item .thumb{position:relative;display:block}
.ellaya-hero .hero-item .thumb img{width:100%;object-fit:cover;border-radius:12px;display:block}
.ellaya-hero .hero-item.big .thumb img{height:380px}
.ellaya-hero .hero-item.small .thumb img{height:180px}
.ellaya-hero .hero-overlay-title{position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,.65);color:#fff;padding:8px 12px;border-radius:8px;font-weight:600;max-width:85%}
.ellaya-hero .hero-item .meta{margin-top:8px}
.ellaya-hero .hero-item .title{font-size:18px;margin:4px 0}

/* ==== Ellaya Ticker — force single row on all screens ==== */
.ellaya-ticker{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center;
  gap:10px;
  background:#fff; border:1px solid #eee; border-radius:12px;
  padding:6px 10px; margin:14px 0; overflow:hidden;
}
.ellaya-ticker > .ticker-label{
  display:inline-flex !important;
  flex:0 0 auto; margin:0 !important;
  background:#ef4444; color:#fff; border-radius:8px;
  padding:6px 12px; font-weight:700; white-space:nowrap;
}
.ellaya-ticker > .ticker-track{
  display:block !important;
  flex:1 1 auto; min-width:0 !important;  /* allow shrink, avoid wrap */
  overflow:hidden;
  position:relative;
}

/* list + its JS clone (.ticker-dup) stay in one line */
.ellaya-ticker .ticker-list,
.ellaya-ticker .ticker-dup{
  display:inline-flex !important;
  align-items:center; gap:20px;
  list-style:none; margin:0; padding:0;
  white-space:nowrap; will-change:transform;
}
.ellaya-ticker .ticker-list li{ display:inline-flex; align-items:center; white-space:nowrap; }
.ellaya-ticker .ticker-list li::after{ content:"•"; opacity:.35; margin-left:20px; }
.ellaya-ticker .ticker-list li:last-child::after{ content:""; margin:0; }
.ellaya-ticker .ticker-list a{ text-decoration:none; display:inline-block; white-space:nowrap; }

/* Phones: keep the lane height to exactly one line */
@media (max-width:768px){
  .ellaya-ticker{ padding:6px 8px; gap:8px; }
  .ellaya-ticker > .ticker-label{ padding:4px 8px; font-size:12px; }
  .ellaya-ticker > .ticker-track{ height:1.6em; line-height:1.6em; }
  .ellaya-ticker .ticker-list,
  .ellaya-ticker .ticker-dup{ position:absolute; top:0; left:0; gap:16px; }
}


/* --- Latest small (sidebar box) --- */
.ellaya-latest-small .box-title{background:#8b5a00;color:#fff;padding:8px 12px;border-radius:6px;margin:0 0 8px;font-size:18px}
.ellaya-latest-small .ls-list{list-style:none;margin:0;padding:0}
.ellaya-latest-small .ls-list li{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #eee}
.ellaya-latest-small .thumb img{width:92px;height:62px;object-fit:cover;border-radius:8px}
.ellaya-latest-small .title{font-size:15px;line-height:1.3;text-decoration:none;display:block}
.ellaya-latest-small .date{font-size:12px;color:#777}

/* --- Trending list (sidebar numbers) --- */
.ellaya-trending .tr-title{font-weight:700;margin:0 0 8px}
.ellaya-trending .tr-list{margin:0;padding-left:22px}
.ellaya-trending .tr-list li{margin:6px 0}
.ellaya-trending .tr-list .views{float:right;color:#999}

/* --- Pagination --- */
.ellaya-pagination ul{display:flex;gap:8px;list-style:none;padding:0;margin:10px 0}
.ellaya-pagination li a,.ellaya-pagination li span{display:inline-block;padding:6px 10px;border:1px solid #ddd;border-radius:6px;text-decoration:none}
.ellaya-pagination li span.current{background:#cc1e1e;color:#fff;border-color:#cc1e1e}

/* --- Category badges for single --- */
.ellaya-cats-badges{display:flex;gap:8px;margin:10px 0 6px}
.ellaya-cats-badges .badge{background:#0b62b7;color:#fff;padding:6px 10px;border-radius:6px;text-decoration:none;font-size:13px}

/* --- Reactions --- */
.ellaya-reactions{margin:22px 0;padding:10px 12px;border-radius:10px;background:#fafafa;border:1px solid #eee}
.ellaya-reactions .react-title{font-weight:700;margin-bottom:10px;text-align:center;font-size:20px}
.ellaya-reactions .react-bar{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.ellaya-reactions .react{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:1px solid #eee;border-radius:12px;padding:8px 10px;cursor:pointer;min-width:58px}
.ellaya-reactions .react .emoji{font-size:26px;line-height:1}
.ellaya-reactions .react .count{font-size:12px;color:#666}

/* --- Ads --- */
.ellaya-ad-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:14px 0}
.ellaya-ad{text-align:center}
.ellaya-ad img{max-width:100%;height:auto;border-radius:10px}

/* --- Responsive --- */
@media (max-width: 1024px){
  .ellaya-card{grid-template-columns:1fr}
  .ellaya-card .thumb img{height:220px}
  .ellaya-hero .ellaya-hero-grid{grid-template-columns:1fr 1fr}
  .ellaya-hero .hero-item.big .thumb img{height:300px}
}
@media (max-width: 640px){
  .ellaya-hero .ellaya-hero-grid{grid-template-columns:1fr}
  .ellaya-hero .hero-item.small .thumb img{height:220px}
}
