/*
Theme Name: News Portal Theme
Theme URI: https://example.com
Author: Arlind
Author URI: https://example.com
Description: Portal lajmesh i ndërtuar nga zero me layout klasik news magazine.
Version: 1.0
Text Domain: news-portal-theme
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f3f3;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 1180px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  font-size: 32px;
  font-weight: 700;
  color: #0d47a1;
}

.site-tagline {
  color: #666;
  font-size: 14px;
}

.main-nav {
  background: #0b2d64;
}

.main-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav .menu > li {
  position: relative;
}

.main-nav .menu > li > a {
  display: block;
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav .menu > li > a:hover {
  background: #163f86;
}

.page-wrap {
  padding: 18px 0 30px;
}

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-content {
  padding: 16px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-meta,
.card-meta,
.list-meta,
.single-meta {
  font-size: 12px;
  color: #777;
}

.side-stack {
  display: grid;
  gap: 20px;
}

.widget-box,
.category-section,
.main-column,
.sidebar .widget,
.single-wrap,
.archive-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
}

.widget-title,
.section-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 2px solid #0d47a1;
  font-size: 18px;
  text-transform: uppercase;
}

.small-posts {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.small-post {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.small-post img {
  width: 110px;
  height: 75px;
  object-fit: cover;
}

.small-post-title {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.content-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.main-column {
  padding-bottom: 16px;
}

.section-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.news-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar .widget {
  padding-bottom: 10px;
}

.sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
}

.sidebar .widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}

.sidebar .widget ul li:last-child {
  border-bottom: 0;
}

.ad-box {
  padding: 14px;
}

.ad-placeholder {
  background: linear-gradient(135deg, #eceff8, #dbe6ff);
  border: 1px dashed #8ca7df;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #345;
  font-weight: 700;
  text-align: center;
}

.post-list {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.post-list-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}

.post-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-list-item img {
  width: 240px;
  height: 150px;
  object-fit: cover;
}

.post-list-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.post-list-item p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.single-wrap,
.archive-wrap {
  padding: 20px;
}

.single-title {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.single-thumbnail {
  margin: 18px 0;
}

.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 22px 0;
  margin-top: 30px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 991px) {
  .home-grid,
  .content-area {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-list-item {
    grid-template-columns: 1fr;
  }

  .post-list-item img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-title {
    font-size: 24px;
  }

  .hero-title,
  .single-title {
    font-size: 24px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .small-post {
    grid-template-columns: 90px 1fr;
  }

  .small-post img {
    width: 90px;
    height: 70px;
  }
}