/* =========================================================
   BINDAAS NEWS - Clean CSS + HERO & DAILY UPDATES (added)
   Replace assets/css/style.css with this content
   ========================================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

/* Root variables */
:root{
  --accent:#d1492c;
  --text:#222;
  --muted:#6c757d;
  --border:#e9e6e1;
  --container-width:1200px;
  --gap:14px;
  --section-vertical:18px;
  --card-radius:10px;
}

/* Reset & base */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background:#faf8f6;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none;}
.container{max-width:var(--container-width);margin-left:auto;margin-right:auto;padding-left:12px;padding-right:12px;}

/* Helpers */
.text-muted{color:var(--muted);}
.small{font-size:0.9rem;}
.fw-semibold{font-weight:600;}

/* ---------- Header / Branding ---------- */
.site-header{
  background:#fff;
  border-bottom:1px solid #eee;
  padding-top:10px;
  padding-bottom:6px;
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-left:12px;padding-right:12px;}
.logo{font-weight:900;font-size:28px;letter-spacing:1px;color:#111;text-transform:uppercase;display:flex;align-items:center;gap:6px;}
.logo-bold{color:#111;}
.logo-accent{color:var(--accent);margin-left:6px;}
.socials a{color:#222;font-size:18px;transition:color .15s ease;}
.socials a:hover{color:var(--accent) !important;}
.site-header .btn-dark{background:#111;border:none;padding:8px 14px;}

/* ---------- Navbar ---------- */
.navbar{background:#fff;border-bottom:1px solid #f2f2f2;}
.simple-nav .nav-link{font-weight:700;color:var(--text) !important;padding:0.8rem 0.4rem;transition:color .15s ease;}
.nav-item-custom{color:var(--text) !important;font-weight:700;}
.nav-item-custom:hover, .simple-nav .nav-link:hover{color:var(--accent) !important;}
.mega-toggle{font-size:22px;color:var(--text);border:none;padding:6px 8px;}
.mobile-nav-list li a{display:block;padding:12px 6px;font-weight:600;color:var(--text);}
.mobile-nav-list li + li{border-top:1px solid var(--border);}

/* ---------- Badges & category tiles ---------- */
.badge{
  background:transparent !important;
  color:var(--accent) !important;
  border:none !important;
  padding:0 !important;
  font-weight:700 !important;
  font-size:13px !important;
  text-transform:capitalize;
}

/* ---------- HERO (ADDED) ----------
   This block adds the top big banner and the Daily Updates side cards.
   It is intentionally scoped and responsive so it doesn't affect other parts.
*/
.hero-section { /* wrapper for semantics (can be used in HTML) */ }
.hero-box-wrapper{
  margin-top:20px;
  margin-bottom:18px;
  padding-left:12px;
  padding-right:12px;
}
.hero-row{
  display:flex;
  gap:var(--gap);
  align-items:flex-start;
  align-content:start;
  width:100%;
}
.hero-left{flex:0 0 68%;max-width:68%;}
.hero-right{flex:0 0 32%;max-width:32%;display:flex;flex-direction:column;gap:var(--gap);}

/* big banner */
.hero-large{
  position:relative;
  width:100%;
  min-height:320px;
  max-height:520px;
  border-radius:var(--card-radius);
  overflow:hidden;
  background:#000;
  box-shadow:0 6px 20px rgba(0,0,0,0.05);
  display:block;
}
.hero-large-img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
  display:block;
}
.hero-large:hover .hero-large-img{transform:scale(1.03);}
.hero-overlay{
  position:absolute;left:0;bottom:0;width:100%;padding:20px;
  background:linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.45), rgba(0,0,0,0.85));
}
.hero-title{font-size:28px;font-weight:800;color:#fff;margin:6px 0;line-height:1.15;}
.hero-meta{color:#e8e8e8;font-size:0.95rem;}

/* DAILY UPDATES side cards — styled to match section headers */
.hero-right .section-title-modern{margin-bottom:6px;}
.side-card{
  display:flex;
  gap:12px;
  align-items:center;
  background:#fff;
  border-radius:10px;
  padding:10px;
  box-shadow:0 4px 18px rgba(0,0,0,0.05);
  overflow:hidden;
  box-sizing:border-box;
  width:100%;
}
.side-thumb{
  width:84px;
  height:64px;
  object-fit:cover;
  border-radius:6px;
  flex-shrink:0;
}
.side-title{font-size:14px;font-weight:700;margin:0;}
.side-content{display:block;}
.small-right-header{margin-bottom:-6px;padding:0 6px;}
.small-right-header h4{font-size:16px;}

/* Desktop: keep same row (hero + daily updates) */
@media (min-width:992px){
  .hero-left{flex-basis:68%;max-width:68%;}
  .hero-right{flex-basis:32%;max-width:32%;}
}

/* Mobile / Tablet: stack vertically, ensure no break and consistent spacing */
@media (max-width:991px){
  .hero-row{flex-direction:column;}           /* stack vertically on tablet & mobile */
  .hero-left,.hero-right{flex-basis:100%;max-width:100%;}
  .hero-left{order:1;}
  .hero-right{order:2;}
  .hero-large-img{height:320px;object-fit:cover;}
  .hero-right{flex-direction:column;overflow:visible;padding-left:0;padding-right:0;}
  .side-card{min-width:0;width:100%;flex-direction:row;padding:10px;margin:0;}
  .side-thumb{width:96px;height:72px;}       /* slightly larger thumbs on mobile for readability */
  .hero-box-wrapper{padding-left:8px;padding-right:8px;} /* slightly tighter padding */
  .hero-overlay{padding:14px;}
  .hero-title{font-size:22px;}               /* slightly smaller hero title on smaller screens */

  /* NEW MOBILE FIXES: prevent side cards from overflowing and ensure consistent spacing */
  .hero-right{padding:6px 0 0 0; gap:12px;}
  .side-card .side-content{min-width:0;overflow:hidden;}
  .side-card .side-title{font-size:15px;line-height:1.15;}
  .side-card .side-title a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:normal;max-height:3.6em;}
  .hero-large { /* reduce hero min-height slightly for narrow phones so daily updates appear closer without break */
    min-height:260px;
  }
}

/* Very small phone tweaks */
@media (max-width:479px){
  .side-thumb{width:84px;height:64px;}
  .hero-large-img{height:240px;}
  .hero-title{font-size:20px;}
  .side-card{padding:10px 8px; gap:10px;}
  .side-card .side-title{font-size:14px;}
  .hero-row{gap:12px;}
}

/* ---------- Section titles ---------- */
.section-title-modern{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:calc(var(--section-vertical) - 6px) 0 6px 0;padding-left:6px;padding-right:6px;
}
.section-title-modern h4{margin:0;font-size:18px;font-weight:700;text-transform:capitalize;}
.left-line{width:4px;height:18px;background:var(--accent);border-radius:3px;margin-right:10px;}
.section-title-divider{height:1px;background:var(--border);margin:6px 0 12px 0;}
.view-all{color:var(--accent);font-weight:700;text-decoration:none;}
.view-all:hover{text-decoration:underline;}

/* ---------- Business (grid) ---------- */
.section-health{margin-top:6px;padding-left:6px;padding-right:6px;}
.health-thumb{width:100%;height:160px;object-fit:cover;border-radius:6px;display:block;}
.section-health .card{background:transparent;border:0;padding:0;}
.section-health .card-body{padding:10px 6px 0 6px;}
.section-health .card-title a{font-size:0.95rem;font-weight:600;color:var(--text);}

/* ---------- Feature columns ---------- */
.feature-column{padding:0 6px;}
.science-img,.politics-img{width:100%;height:300px;object-fit:cover;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,0.05);}
@media (min-width:1200px){.science-img,.politics-img{height:320px;}}
.feature-content{padding:10px 6px 0 6px;}
.feature-title{font-size:1.45rem;margin:6px 0;font-weight:700;color:var(--text);}
.feature-meta{font-size:0.95rem;color:var(--muted);}
.feature-excerpt{color:#555;margin-top:10px;line-height:1.6;}

/* ---------- Sports grid ---------- */
.arts-thumb{width:100%;height:200px;object-fit:cover;border-radius:6px;display:block;}

/* ---------- Cards / thumbnails ---------- */
.card img{display:block;width:100%;height:auto;transition:transform .25s ease;border-radius:6px;}
.card:hover img{transform:scale(1.03);}
.category-article{background:#fff;border-radius:8px;padding:12px;display:flex;gap:12px;align-items:flex-start;box-shadow:0 6px 18px rgba(0,0,0,0.03);transition:transform .15s ease,box-shadow .15s ease,background .15s;}
.category-article:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(0,0,0,0.08);background:#fff9f6;}
.category-thumb{width:180px;height:130px;object-fit:cover;border-radius:6px;flex-shrink:0;}

/* Trending box */
.trending-box{background:#fff;border-radius:8px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,0.04);border:1px solid #f0eae8;}
.trend-thumb{width:72px;height:56px;object-fit:cover;border-radius:6px;display:block;}

/* Marquee */
.marquee{overflow:hidden;white-space:nowrap;display:block;transform:translateX(0);}

/* ---------- Footer ---------- */
footer{background:#111 !important;color:#f4f4f4 !important;padding-top:50px;padding-bottom:30px;margin-top:40px;}
footer .container{max-width:var(--container-width);padding-left:12px;padding-right:12px;}
footer a{text-decoration:none;color:inherit;}
footer a:hover{color:#ff4444 !important;transition:color .3s ease;}

/* ---------- Article page styles ---------- */
.article-card{background:#fff;border-radius:10px;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,0.04);}
.article-hero{width:100%;height:420px;object-fit:cover;border-radius:8px;display:block;}
@media (max-width:991px){.article-hero{height:260px;}}
/* Title decreased per request */
.article-title{font-size:26px !important;line-height:1.3;margin:0;font-weight:700;color:#111;}
.article-meta .badge{color:var(--accent) !important;background:transparent !important;font-weight:700;}
.article-body{margin-top:16px;color:#333;line-height:1.75;font-size:1rem;}
.article-body img{max-width:100%;height:auto;border-radius:6px;margin:12px 0;}
.author-avatar{font-size:16px;}
.related-row img{width:100%;height:64px;object-fit:cover;border-radius:6px;}

/* Gallery thumbnails */
.article-gallery{flex-wrap:wrap;display:flex;gap:8px;}
.gallery-thumb{border:0;background:transparent;padding:0;display:inline-block;cursor:pointer;outline:none;border-radius:6px;overflow:hidden;width:72px;height:56px;}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s ease;}
.gallery-thumb.active img{transform:scale(1.05);box-shadow:0 6px 18px rgba(0,0,0,0.08);}

/* Article badges */
.article-card .badge{font-size:13px;text-transform:capitalize;}

/* Sidebar tweaks */
.trending-box .ms-3 a{font-size:0.95rem;}
.related-card .card-body{padding:.5rem !important;}

/* ---------- Contact & forms ---------- */
.form-control{border-radius:6px;}
.btn-danger{background:var(--accent);border:none;}
.btn-outline-primary{border-color:var(--accent);color:var(--accent);}
.btn-outline-primary:hover{background:var(--accent);color:#fff;border-color:var(--accent);}

/* ---------- Utilities ---------- */
.text-center{text-align:center;}
.mb-0{margin-bottom:0;}
.mt-1{margin-top:.25rem;}
.mt-2{margin-top:.5rem;}
.mt-3{margin-top:1rem;}
.mt-4{margin-top:1.5rem;}
.mb-2{margin-bottom:.5rem;}
.mb-3{margin-bottom:1rem;}
.p-2{padding:.5rem;}
.p-3{padding:1rem;}
.p-4{padding:1.5rem;}

/* ---------- Responsive tweaks ---------- */
@media (max-width:1199px){
  .science-img,.politics-img{height:280px;}
}
@media (max-width:991px){
  .science-img,.politics-img{height:220px;}
  .container{padding-left:12px;padding-right:12px;}
}
@media (max-width:767px){
  .health-thumb{height:120px;}
  .arts-thumb{height:150px;}
  .logo{font-size:20px;}
  .mega-toggle i{font-size:20px;}
  .article-title{font-size:20px;}
}

/* ---------- Final polish (alignment + spacing) ---------- */
.section-health,.feature-column,footer .container{padding-left:12px;padding-right:12px;}
main.container > section + section{margin-top:18px;}
