:root{
  --primary:#e63946;
  --primary-dark:#b92330;
  --navy:#101828;
  --text:#1d2939;
  --muted:#667085;
  --light:#f6f7f9;
  --border:#e5e7eb;
  --white:#fff;
  --gold:#f59e0b;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#f4f5f7;
  line-height:1.5;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block;height:auto;}
.container{width:min(1200px,94%);margin:auto}

/* TOP BAR */
.topbar{
  background:var(--navy);
  color:#d0d5dd;
  font-size:12px;
}
.topbar-inner{
  height:34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.top-links{display:flex;gap:18px}
.social{display:flex;gap:13px}
.social a{cursor:pointer;color:inherit;}
.social a:hover{color:#fff;}

/* HEADER */
.header{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-mark{
  width:45px;height:45px;
  background:var(--primary);
  color:#fff;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:900;
  transform:skew(-8deg);
}
.logo-text{
  font-size:29px;
  font-weight:900;
  letter-spacing:-1.5px;
  color:var(--navy);
}
.tagline{
  font-size:10px;
  color:#98a2b3;
  letter-spacing:1.3px;
  margin-top:-3px;
  text-transform:uppercase;
}
.search{
  display:flex;
  width:300px;
  height:40px;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
}
.search input{
  border:0;outline:0;padding:0 13px;flex:1;font-size:13px;
}
.search button{
  width:45px;border:0;background:var(--primary);color:#fff;cursor:pointer;
}

/* NAV */
.navbar{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:0;
  overflow-x:auto;
}
.nav-inner a{
  padding:13px 15px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.nav-inner a:hover,.nav-inner a.active{
  color:var(--primary);
  background:#fff5f5;
}
.more{
  margin-left:auto;
  background:var(--primary)!important;
  color:#fff!important;
}
.menu-btn{display:none; font-size:24px; cursor:pointer;}

/* BREAKING */
.breaking{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.breaking-inner{
  display:flex;
  align-items:center;
  height:42px;
  overflow:hidden;
}
.breaking-label{
  background:var(--primary);
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:7px 12px;
  border-radius:4px;
  margin-right:14px;
  white-space:nowrap;
}
.breaking-news{
  font-size:12px;
  color:#475467;
  white-space:nowrap;
  flex:1;
  overflow:hidden;
}

/* HERO */
.hero{padding:20px 0}
.hero-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:18px;
}
.featured{
  min-height:370px;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.03)),
    linear-gradient(135deg,#314b6b,#e7b08a);
  background-size: cover;
  background-position: center;
  color:#fff;
  display:flex;
  align-items:flex-end;
}
.featured-content{padding:28px;max-width:720px; z-index:2;}
.category{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  padding:5px 9px;
  border-radius:4px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:10px;
}
.featured h1{
  font-size:34px;
  line-height:1.15;
  margin-bottom:9px;
}
.meta{font-size:11px;color:#d0d5dd}

.side-news{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:18px;
}
.side-card{
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  padding:20px;
  position:relative;
  min-height:176px;
  background-size:cover;
  background-position:center;
}
.side-card.no-bg{
    background:linear-gradient(135deg,#fff1f2,#fff);
}
.side-card.no-bg:nth-child(2){
    background:linear-gradient(135deg,#eff8ff,#fff);
}
.side-card-inner{
    position:relative;
    z-index:2;
}
.side-card.has-bg::after {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(0deg,rgba(0,0,0,0.8),rgba(0,0,0,0.2));
    z-index:1;
}
.side-card.has-bg { color:#fff; }
.side-card.has-bg p { color:#e5e7eb; }
.side-card h3{font-size:18px;line-height:1.25;margin:8px 0}
.side-card p{font-size:12px;color:var(--muted)}
.side-card .category{margin-bottom:0}

/* LAYOUT */
.main-layout{
  display:grid;
  grid-template-columns:minmax(0,2fr) 340px;
  gap:20px;
}
.section{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:20px;
  overflow:hidden;
}
.section-head{
  padding:15px 18px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.section-head h2{
  font-size:20px;
  position:relative;
  padding-left:12px;
}
.section-head h2:before{
  content:"";
  position:absolute;
  left:0;top:3px;bottom:3px;
  width:4px;
  background:var(--primary);
  border-radius:3px;
}
.view-all{
  color:var(--primary);
  font-size:11px;
  font-weight:800;
}

/* NEWS LIST */
.news-list{padding:0 18px}
.news-item{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:17px;
  padding:16px 0;
  border-bottom:1px solid #edf0f3;
}
.news-item:last-child{border-bottom:0}
.news-image{
  height:115px;
  border-radius:7px;
  background:linear-gradient(135deg,#dbeafe,#fbcfe8);
  background-size:cover;
  background-position:center;
}
.news-item h3{font-size:17px;line-height:1.25;margin:5px 0}
.news-item p{font-size:12px;color:var(--muted)}
.news-meta{font-size:10px;color:#98a2b3;margin-top:8px}

/* CATEGORY GRID */
.category-grid{
  padding:18px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;
}
.category-card{
  min-height:145px;
  border-radius:9px;
  padding:18px;
  position:relative;
  overflow:hidden;
}
.category-card h3{font-size:20px;margin-bottom:5px}
.category-card p{font-size:11px;color:var(--muted);max-width:230px}
.category-card a{
  display:inline-block;
  margin-top:14px;
  font-size:11px;
  font-weight:800;
  color:var(--primary);
}

/* SIDEBAR */
.sidebar .section{margin-bottom:18px}
.trending-list{padding:0 16px}
.trending{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #edf0f3;
}
.trending:last-child{border:0}
.number{
  width:32px;height:32px;border-radius:50%;
  background:#fef0f1;color:var(--primary);
  display:grid;place-items:center;
  font-weight:900;font-size:13px;
}
.trending h4{font-size:13px;line-height:1.3}
.trending small{font-size:9px;color:#98a2b3}

/* JOBS */
.job-list{padding:5px 16px}
.job{
  padding:12px 0;
  border-bottom:1px solid #edf0f3;
}
.job:last-child{border:0}
.job h4{font-size:13px}
.job p{font-size:10px;color:var(--muted);margin:2px 0}
.job span{
  display:inline-block;
  font-size:9px;
  color:var(--primary);
  background:#fff0f1;
  padding:3px 6px;
  border-radius:3px;
}

/* NEWSLETTER */
.newsletter{
  background:var(--navy);
  color:#fff;
  padding:22px;
  border-radius:10px;
}
.newsletter h3{font-size:20px}
.newsletter p{font-size:11px;color:#aab7ca;margin:7px 0 15px}
.newsletter input{
  width:100%;height:38px;
  border:0;border-radius:5px;
  padding:0 10px;margin-bottom:8px;
}
.newsletter button{
  width:100%;height:38px;border:0;
  border-radius:5px;
  background:var(--primary);color:#fff;
  font-weight:800;cursor:pointer;
}
#newsletter-msg { font-size:11px; margin-top:5px; display:block; }

/* AD */
.ad{
  min-height:120px;
  background:#f9fafb;
  border:1px dashed #cfd5dc;
  display:grid;place-items:center;
  color:#98a2b3;font-size:11px;
  border-radius:10px;
  margin-bottom:18px;
  overflow:hidden;
}

/* FOOTER */
footer{
  background:#0b1220;
  color:#98a2b3;
  margin-top:20px;
}
.footer-grid{
  padding:42px 0;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:35px;
}
.footer-logo{color:#fff;font-size:25px;font-weight:900}
footer h3{color:#fff;font-size:14px;margin-bottom:12px}
footer p,footer a{font-size:11px;margin:7px 0;display:block}
footer a:hover{color:#fff}
.copyright{
  border-top:1px solid #ffffff12;
  padding:15px 0;
  font-size:10px;
  display:flex;
  justify-content:space-between;
}

/* SINGLE ARTICLE */
.article-header { padding: 20px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.article-header h1 { font-size: 32px; line-height: 1.2; margin: 15px 0; }
.article-meta { display:flex; gap:15px; font-size:12px; color:var(--muted); }
.article-featured-img { width:100%; max-height:500px; object-fit:cover; border-radius:10px; margin-bottom:20px; background:#ddd;}
.article-content { font-size: 16px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 { margin: 30px 0 15px; }

/* PAGINATION */
.pagination { display:flex; gap:5px; padding:20px; justify-content:center; }
.pagination a, .pagination span { padding:8px 12px; border:1px solid var(--border); border-radius:4px; font-size:13px; }
.pagination .active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* JOBS FILTERS */
.jobs-filters { padding:15px; border-bottom:1px solid var(--border); display:flex; gap:10px; }
.jobs-filters a { padding:6px 12px; border-radius:4px; font-size:12px; background:var(--light); color:var(--text); font-weight:bold; }
.jobs-filters a.active { background:var(--primary); color:#fff; }

/* RESPONSIVE */
@media(max-width:900px){
  .search{width:220px}
  .main-layout{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:1fr 1fr;gap:18px}
  .newsletter{grid-column:1/-1}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .top-links{display:none}
  .header-inner{min-height:68px}
  .search{display:none}
  .menu-btn{display:block}
  .navbar{display:none;}
  .navbar.active{display:block; position:absolute; top:112px; left:0; width:100%; z-index:100; box-shadow:0 4px 6px rgba(0,0,0,0.1);}
  .nav-inner{flex-direction:column; align-items:flex-start;}
  .nav-inner a{width:100%; border-bottom:1px solid var(--border);}
  .hero-grid{grid-template-columns:1fr}
  .featured{min-height:320px}
  .featured h1{font-size:27px}
  .side-news{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .side-card{min-height:170px}
  .sidebar{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr}
  .article-header h1 { font-size:24px; }
}
@media(max-width:480px){
  .container{width:94%}
  .topbar{display:none}
  .featured{min-height:290px}
  .featured-content{padding:20px}
  .featured h1{font-size:23px}
  .side-news{grid-template-columns:1fr}
  .side-card{min-height:145px}
  .news-item{grid-template-columns:105px 1fr;gap:11px}
  .news-image{height:80px}
  .news-item h3{font-size:14px}
  .news-item p{display:none}
  .footer-grid{grid-template-columns:1fr}
  .copyright{display:block}
  .copyright span{display:block;margin:4px 0}
}
