/* front-page.css - Patrika-like layout (child theme) */
body {  }
/*
Theme Name: News25 Child (Patrika-style)
Template: news-25
Author: Your Name
Description: Patrika-like homepage styles (hero slider, ticker, 3-col layout, category blocks, dark mode)
Version: 1.0
*/

/* -------- Variables -------- */
:root{
  --bg: #ffffff;
  --text: #222;
  --muted: #666;
  --accent: #c21f2b; /* Patrika-ish red */
  --card-bg: #f8f8f8;
  --container-w: 1180px;
}

body.dark-mode{
  --bg: #0f1113;
  --text: #e6e6e6;
  --muted: #a9a9a9;
  --card-bg: #121416;
}

/* -------- Base Reset -------- */
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  font-family: "Noto Sans", "Roboto", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}

/* -------- Container -------- */
.container{
  width: calc(100% - 40px);
  max-width: var(--container-w);
  margin: 0 auto;
}

/* -------- BREAKING TICKER -------- */
.brk-ticker{
  background:var(--accent);
  color:#fff;
  padding:8px 0;
  font-weight:600;
  overflow:hidden;
}
.brk-ticker .container{display:flex;align-items:center;gap:15px}
.brk-title{margin-right:8px; font-weight:700; font-size:15px}
.brk-list{
  display:flex;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
  white-space:nowrap;
  animation: ticker-scroll 18s linear infinite;
}
.brk-list li a{color:#fff; text-decoration:none;}
.brk-list:hover{animation-play-state:paused}

/* ticker keyframes - continuous scroll */
@keyframes ticker-scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

/* -------- HERO SLIDER -------- */
.hero-slider{
  margin:20px auto;
  position:relative;
  overflow:hidden;
  border-radius:6px;
}
.slider-wrapper{
  display:flex;
  transition:transform 0.6s ease;
  will-change:transform;
}
.slide-item{
  min-width:100%;
  position:relative;
}
.slide-item img, .slide-item .slide-thumb{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}
.slide-title{
  position:absolute;
  left:24px;
  bottom:22px;
  background:rgba(0,0,0,0.55);
  color:#fff;
  padding:12px 16px;
  border-radius:4px;
  max-width:80%;
  font-size:20px;
}

/* slider nav (small bullets) */
.slider-dots{
  position:absolute;
  right:18px;
  top:18px;
  display:flex;
  gap:8px;
}
.slider-dot{
  width:10px;height:10px;border-radius:50%;
  background:rgba(255,255,255,0.6);cursor:pointer;
}
.slider-dot.active{background:#fff;box-shadow:0 0 6px rgba(0,0,0,0.4)}

/* -------- MAIN 3-COLUMN LAYOUT -------- */
.home-main{
  display:grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap:18px;
  margin:22px auto;
  align-items:start;
}

/* LEFT */
.left-col .sec-title, .center-col .sec-title, .right-col .sec-title{
  font-size:18px;
  margin:0 0 12px 0;
  color:var(--text);
  border-bottom:3px solid var(--accent);
  display:inline-block;
  padding-bottom:6px;
}
.left-news-item{padding:10px 0;border-bottom:1px dashed rgba(0,0,0,0.06)}
.left-news-item a{text-decoration:none;color:var(--text)}
.left-news-item h3{margin:0;font-size:15px; font-weight:600}

/* CENTER */
.main-lead{
  background:var(--card-bg);
  border-radius:6px;
  overflow:hidden;
  padding:0;
  margin-bottom:16px;
}
.main-lead img{width:100%;height:380px;object-fit:cover;display:block}
.main-lead h1{font-size:22px;margin:12px 16px;color:var(--text)}
.main-lead p{margin:0 16px 16px 16px;color:var(--muted)}

/* SUB CARDS */
.sub-cards{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.sub-card{
  width: calc(33.333% - 8px);
  background:transparent;
}
.sub-card img{width:100%;height:120px;object-fit:cover;border-radius:4px}
.sub-card h3{font-size:14px;margin:6px 0;color:var(--text)}

/* RIGHT */
.right-news-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:8px 0;
  border-bottom:1px dashed rgba(0,0,0,0.06)
}
.right-news-item img{width:72px;height:56px;object-fit:cover;border-radius:4px}
.right-news-item h4{margin:0;font-size:14px}

/* -------- CATEGORY BLOCKS -------- */
.cat-block{
  margin:24px auto;
  padding:14px 0;
  border-top:1px solid rgba(0,0,0,0.04);
}
.cat-title{font-size:20px;margin:6px 0;color:var(--text)}
.cat-row{
  display:flex;
  gap:14px;
  margin-top:10px;
  flex-wrap:wrap;
}
.cat-card{flex: 1 1 calc(20% - 10px); background:transparent}
.cat-card img{width:100%;height:140px;object-fit:cover;border-radius:4px}
.cat-card h3{font-size:14px;margin:8px 0}

/* -------- Utilities & Responsive -------- */
img{display:block;max-width:100%}
a{color:var(--text)}
button{cursor:pointer}

/* Responsive */
@media (max-width: 1024px){
  .home-main{grid-template-columns:1fr 1fr; gap:14px}
  .right-col{order:3}
  .sub-card{width:calc(50% - 6px)}
  .slider-item img{height:300px}
}
@media (max-width: 768px){
  .home-main{grid-template-columns:1fr; padding:0 6px}
  .sub-card{width:100%}
  .cat-card{flex: 1 1 calc(50% - 8px)}
  .slide-item img{height:220px}
  .slide-title{font-size:16px;padding:8px 10px}
}

/* small screens - ticker compact */
@media (max-width:480px){
  .brk-title{display:none}
  .brk-list{gap:14px; font-size:13px}
}

/* Dark-mode toggle button (floating) */
.theme-toggle{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  background:var(--accent);
  color:#fff;
  border:none;
  padding:10px 12px;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
  font-size:16px;
}
