
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #222;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* TOP BAR */
.top-bar {
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-left i {
  font-style: normal;
  font-weight: bold;
  color: #ff3b3b;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* HEADER */
header {
  background: #ffffff;
  padding: 25px 15px;
  border-bottom: 1px solid #ddd;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo h1 {
  font-size: 32px;
  color: #e74c3c;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.site-logo span {
  font-size: 14px;
  color: #666;
}
.header-ads {
  width: 468px;
  height: 60px;
  background: #fff8c9;
  border: 1px dashed #f0cf5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #b59b28;
}

/* NAVIGATION */
nav {
  background: #e74c3c;
  color: #fff;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
}
.nav-menu li {
  padding: 12px 18px;
  border-right: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  text-transform: uppercase;
}
.nav-menu li:hover {
  background: #c0392b;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
}

/* BREAKING NEWS */
.breaking-wrapper {
  background: #ffffff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.breaking {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  padding: 10px 15px;
  max-width: 1180px;
  margin: 0 auto;
}
.breaking-label {
  background: #e74c3c;
  color: #fff;
  padding: 4px 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
}
.breaking-text {
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MAIN LAYOUT */
main {
  padding: 20px 15px 40px;
}

/* TOP FEATURE GRID */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 15px;
}

/* FEATURED POST */
.post-card {
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
}
.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.post-card:hover img { transform: scale(1.03); opacity: 1; }
.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.05));
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.post-category {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  background: #2ecc71;
  padding: 4px 8px;
  margin-bottom: 6px;
}
.post-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.2;
}
.post-meta {
  font-size: 12px;
  color: #ddd;
}

/* RIGHT GRID SMALL POSTS */
.right-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}
.post-card-small {
  background: #000;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 150px;
}
.post-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.post-card-small:hover img { transform: scale(1.03); opacity: 1; }
.post-overlay-small {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.0));
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.post-title-small {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
  line-height: 1.2;
}
.post-meta-small {
  font-size: 11px;
  color: #ddd;
}

/* BOTTOM SECTION: LIST + SIDEBAR */
.bottom-layout {
  display: flex;
  gap: 20px;
  margin-top: 35px;
}
.post-list {
  flex: 0 0 68%;
}
.sidebar {
  flex: 0 0 32%;
}

.section-title {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 6px;
  text-transform: uppercase;
}

/* LIST POSTS */
.list-post {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 18px;
  display: flex;
  gap: 15px;
  padding: 12px;
}
.list-thumb {
  flex: 0 0 140px;
  height: 90px;
  overflow: hidden;
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.list-post:hover .list-thumb img {
  transform: scale(1.04);
}
.list-content {
  flex: 1;
}
.list-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.list-title {
  font-size: 16px;
  margin-bottom: 6px;
  color: #333;
}
.list-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  font-size: 13px;
}
.pagination span,
.pagination a {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ddd;
  background: #fff;
}
.pagination .current {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* SIDEBAR WIDGETS */
.widget {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 18px;
  padding: 12px 14px 14px;
  font-size: 13px;
}
.widget-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  text-transform: uppercase;
}
.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget .tag-cloud a {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 4px 8px;
  border: 1px solid #ddd;
  font-size: 12px;
}
.newsletter-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
  font-size: 13px;
}
.newsletter-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
}

/* HERO TITLE FOR CATEGORY */
.page-hero {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 15px 10px;
  margin-bottom: 20px;
}
.page-hero h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.page-hero p {
  font-size: 13px;
  color: #666;
}

/* FOOTER */
footer {
  background: #111;
  color: #aaa;
  font-size: 13px;
  padding: 15px;
  margin-top: 25px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .header-ads { display: none; }
  .bottom-layout {
    flex-direction: column;
  }
  .post-list, .sidebar {
    flex: 1 0 100%;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu li {
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-toggle { display: block; }
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .list-post {
    flex-direction: column;
  }
  .list-thumb {
    width: 100%;
    height: 160px;
  }
}
