/* =========================
   home.css — Observ homepage modern layout
   ========================= */

.home-ui{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* =========================
   HERO
   ========================= */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.75fr) minmax(320px, .95fr);
  gap:18px;
  align-items:start;
}

.hero-story,
.hero-side,
.side-panel,
.news-card{
  min-width:0;
}

.hero-story{
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

.hero-visual{
  position:relative;
  min-height:540px;
  background:
    radial-gradient(1000px 600px at 50% 10%, rgba(122,167,255,.10), transparent 50%),
    linear-gradient(180deg, rgba(12,18,34,.12) 0%, rgba(5,10,20,.72) 72%, rgba(5,10,20,.94) 100%);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(5,10,20,.32) 0%, rgba(5,10,20,.08) 40%, rgba(5,10,20,.36) 100%),
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 28%, rgba(0,0,0,.75) 100%);
}

.hero-content{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  z-index:2;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  margin-bottom:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(91,138,255,.14);
  color:#dbe7ff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;
}

.hero-title{
  margin:0 0 12px;
  max-width:680px;
  font-size:44px;
  line-height:1.04;
  font-weight:800;
  color:#f4f7ff;
  text-shadow:0 10px 30px rgba(0,0,0,.45);
}

.hero-sub{
  margin-bottom:18px;
  color:rgba(234,240,255,.82);
  font-size:16px;
  line-height:1.45;
}

.hero-points{
  margin:0 0 22px;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px 22px;
  max-width:850px;
}

.hero-points li{
  position:relative;
  padding-left:16px;
  color:rgba(239,244,255,.92);
  font-size:15px;
  line-height:1.55;
}

.hero-points li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:#8fb5ff;
  font-size:18px;
  line-height:1;
}

.hero-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(150,188,255,.58);
  background:linear-gradient(180deg, rgba(126,170,255,.98) 0%, rgba(82,129,249,.98) 100%);
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:
    0 12px 24px rgba(0,0,0,.34),
    0 0 18px rgba(122,167,255,.24);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.hero-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:
    0 16px 28px rgba(0,0,0,.42),
    0 0 24px rgba(122,167,255,.34);
}

.hero-social{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.hero-social-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  font-size:12px;
  font-weight:800;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.hero-social-btn:hover{
  transform:translateY(-1px);
  background:rgba(122,167,255,.16);
  border-color:rgba(160,198,255,.42);
}

.hero-social-btn img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
}

/* =========================
   SIDE PANELS
   ========================= */
.hero-side{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.side-panel{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  box-shadow:0 10px 34px rgba(0,0,0,.26);
  padding:18px;
}

.side-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.side-head h3{
  margin:0;
  font-size:16px;
  color:rgba(244,247,255,.96);
}

.side-head a{
  color:rgba(143,181,255,.95);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

/* Trending */
.trend-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.trend-item{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  gap:12px;
  text-decoration:none;
  color:inherit;
  padding:8px;
  border-radius:16px;
  transition:background .15s ease, transform .15s ease;
}

.trend-item:hover{
  background:rgba(255,255,255,.045);
  transform:translateY(-1px);
}

.trend-thumb-wrap{
  width:84px;
  height:84px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.22);
}

.trend-thumb-wrap img,
.trend-thumb{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.trend-thumb--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(234,240,255,.60);
  font-size:12px;
}

.trend-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.trend-title{
  color:rgba(244,247,255,.96);
  font-size:15px;
  line-height:1.35;
  font-weight:700;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.trend-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(234,240,255,.62);
  font-size:12px;
}

/* Shorts */
.shorts-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}

.short-card{
  text-decoration:none;
  color:inherit;
  min-width:0;
}

.short-card-media-wrap{
  position:relative;
  height:180px;
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.2);
  margin-bottom:10px;
}

.short-card-media-wrap img,
.short-card-media{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.short-card-media--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(234,240,255,.60);
  font-size:12px;
}

.short-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(5,10,20,.62);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

.short-card-title{
  color:rgba(244,247,255,.95);
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:36px;
}

.short-card-meta{
  margin-top:6px;
  color:rgba(234,240,255,.58);
  font-size:11.5px;
}

/* Subscribe */
.subscribe-panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.03) 100%),
    radial-gradient(600px 180px at 50% 0%, rgba(122,167,255,.10), transparent 65%);
}

.subscribe-text{
  margin:0 0 14px;
  color:rgba(234,240,255,.76);
  line-height:1.6;
  font-size:14px;
}

.subscribe-form{
  display:flex;
  gap:10px;
  flex-direction:column;
}

.subscribe-form input{
  width:100%;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:#fff;
  outline:none;
}

.subscribe-form input:focus{
  border-color:rgba(122,167,255,.45);
}

.subscribe-form button{
  min-height:46px;
  border:1px solid rgba(150,188,255,.46);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(126,170,255,.98) 0%, rgba(82,129,249,.98) 100%);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

/* =========================
   LATEST GRID
   ========================= */
.latest-wrap{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  box-shadow:0 10px 34px rgba(0,0,0,.26);
  padding:18px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.section-head h3{
  margin:0;
  font-size:17px;
  color:rgba(244,247,255,.96);
}

.section-head a{
  text-decoration:none;
  color:rgba(143,181,255,.95);
  font-size:13px;
  font-weight:700;
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  align-items:start;
}

.news-card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}

.news-card:hover{
  transform:translateY(-2px);
  border-color:rgba(122,167,255,.28);
  background:rgba(255,255,255,.05);
}

.news-card-media{
  display:block;
  text-decoration:none;
  background:rgba(0,0,0,.22);
}

.news-card-img{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
}

.news-card-img--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(234,240,255,.60);
  font-size:13px;
}

.news-card-body{
  padding:14px 14px 16px;
}

.news-card-title{
  display:block;
  text-decoration:none;
  color:rgba(244,247,255,.96);
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  margin-bottom:10px;
}

.news-card-list{
  margin:0 0 14px;
  padding-left:16px;
  color:rgba(234,240,255,.78);
  font-size:13px;
  line-height:1.55;
}

.news-card-list li + li{
  margin-top:6px;
}

.news-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.news-card-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(91,138,255,.16);
  border:1px solid rgba(122,167,255,.18);
  color:#dfe9ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.2px;
}

.news-card-time{
  color:rgba(234,240,255,.56);
  font-size:12px;
}

/* =========================
   FULL WIDTH AD CARD
   after 3 news items
   ========================= */
.news-wide-ad{
  grid-column:1 / -1;
  min-height:140px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%),
    radial-gradient(800px 220px at 50% 0%, rgba(122,167,255,.10), transparent 70%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  overflow:hidden;
}

.news-wide-ad-inner{
  width:100%;
  text-align:center;
}

.news-wide-ad-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 10px;
  margin-bottom:10px;
  border-radius:999px;
  border:1px solid rgba(120,170,255,.22);
  background:rgba(120,170,255,.08);
  color:#b8d0ff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
}

.news-wide-ad-title{
  color:#fff;
  font-size:22px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:8px;
}

.news-wide-ad-text{
  color:rgba(230,238,255,.78);
  font-size:14px;
  line-height:1.5;
  max-width:760px;
  margin:0 auto;
}

/* example for real ad embed */
.news-wide-ad iframe,
.news-wide-ad img,
.news-wide-ad ins{
  max-width:100%;
}

/* =========================
   FALLBACK
   ========================= */
.home-fallback{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  padding:24px;
}

.home-fallback-title{
  font-size:18px;
  font-weight:800;
  color:#fff;
  margin-bottom:8px;
}

.home-fallback-sub{
  color:rgba(234,240,255,.7);
  font-size:14px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1280px){
  .hero-title{
    font-size:46px;
  }

  .news-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 1100px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero-title{
    font-size:40px;
  }

  .hero-visual{
    min-height:500px;
  }
}

@media (max-width: 860px){
  .hero-content{
    left:18px;
    right:18px;
    bottom:18px;
  }

  .hero-visual{
    min-height:420px;
  }

  .hero-title{
    font-size:30px;
  }

  .hero-sub{
    font-size:14px;
  }

  .hero-points{
    grid-template-columns:1fr;
    gap:8px;
  }

  .shorts-row{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .news-grid{
    grid-template-columns:1fr;
  }

  .news-wide-ad{
    min-height:120px;
    padding:18px;
  }

  .news-wide-ad-title{
    font-size:18px;
  }

  .news-wide-ad-text{
    font-size:13px;
  }
}

@media (max-width: 640px){
  .latest-wrap,
  .side-panel{
    padding:14px;
  }

  .hero-visual{
    min-height:380px;
  }

  .hero-title{
    font-size:26px;
    margin-bottom:10px;
  }

  .trend-item{
    grid-template-columns:74px minmax(0,1fr);
    gap:10px;
    padding:6px;
  }

  .trend-thumb-wrap{
    width:74px;
    height:74px;
  }

  .shorts-row{
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
  }

  .short-card-media-wrap{
    height:140px;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .news-card-img{
    height:220px;
  }

  .news-card-body{
    padding:12px 12px 14px;
  }

  .news-card-title{
    font-size:15px;
  }

  .news-wide-ad{
    min-height:110px;
    padding:16px;
    border-radius:14px;
  }

  .news-wide-ad-label{
    margin-bottom:8px;
    font-size:11px;
  }

  .news-wide-ad-title{
    font-size:16px;
    margin-bottom:6px;
  }

  .news-wide-ad-text{
    font-size:12px;
    line-height:1.45;
  }
}

/* =========================
   HOME PAGE LAYOUT OVERRIDE
   remove right ad on homepage
   and let main content use that space
   ========================= */

body.home .grid{
  grid-template-columns:var(--ad-w) minmax(0, 1fr) minmax(0, 1fr);
  align-items:start;
}

body.home .grid > aside.panel.ad.ad-right{
  display:none;
}

body.home .grid > section.panel{
  grid-column:2 / 4;
  min-width:0;
}

/* make homepage panel cleaner */
body.home .panel{
  overflow:visible;
}

body.home .panel-b{
  padding:14px;
}

/* desktop hero balance */
@media (min-width: 1101px){
  body.home .hero-grid{
    grid-template-columns:minmax(0, 1.7fr) minmax(320px, 0.9fr);
  }
}

/* tablet/mobile: no side ads at all on home */
@media (max-width: 1024px){
  body.home .grid{
    grid-template-columns:1fr;
  }

  body.home .grid > aside.panel.ad.ad-left,
  body.home .grid > aside.panel.ad.ad-right{
    display:none !important;
  }

  body.home .grid > section.panel{
    grid-column:auto;
  }
}

/* =========================
   MOBILE HERO LIFT FIX
   raise first hook/article on phones
   ========================= */
@media (max-width: 768px){
  .home-ui{
    gap:14px;
  }

  .hero-grid{
    gap:12px;
  }

  .hero-story{
    border-radius:18px;
  }

  .hero-visual{
    min-height:300px !important;
    background-position:center top;
  }

  .hero-content{
    left:14px;
    right:14px;
    bottom:14px;
  }

  .hero-kicker{
    min-height:26px;
    padding:0 10px;
    margin-bottom:8px;
    font-size:11px;
  }

  .hero-title{
    font-size:22px !important;
    line-height:1.08;
    margin:0 0 8px;
    max-width:100%;
  }

  .hero-sub{
    font-size:13px;
    line-height:1.4;
    margin-bottom:10px;
  }

  .hero-points{
    gap:6px;
    margin:0 0 12px;
  }

  .hero-points li{
    font-size:13px;
    line-height:1.4;
    padding-left:14px;
  }

  .hero-actions{
    gap:10px;
  }

  .hero-btn{
    min-height:40px;
    padding:0 16px;
    font-size:13px;
  }

  .hero-social-btn{
    width:36px;
    height:36px;
  }
}

@media (max-width: 480px) {
  .hero-points {
    display: none;
  }

  .hero-sub {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    max-width: 92%;
    margin-top: 8px;
    color: rgba(255,255,255,.88);
  }

  .hero-actions {
    display: flex;
    margin-top: 12px;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .hero-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 1.08;
    margin: 6px 0 0;
    max-width: 92%;
  }

  .hero-kicker {
    font-size: 11px;
    line-height: 1.2;
  }
}