/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: Child theme for Hello Elementor
Author: Your Name
Author URI: https://example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ====== Base ====== */
body {
  background-color: #fff;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #222;
}

/* ====== Layout ====== */
.latest-news-section {
  padding: 60px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.row-news {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.main-news {
  flex: 0 0 75%;
  max-width: 75%;
}

.sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 992px) {
  .row-news {
    flex-direction: column;
  }
  .main-news,
  .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .sidebar {
    margin-top: 40px;
  }
}

/* ====== News List ====== */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  padding: 15px;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.news-thumb {
  flex: 0 0 200px;
  height: 140px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.news-content {
padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.news-title a {
  color: #222;
  text-decoration: none;
}

.news-title a:hover {
  color: #0073aa;
}

.news-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* ====== Pagination ====== */
.pagination {
  display: flex;
  justify-content: center!important;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 14px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.pagination .current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
  font-weight: 600;
}

/* ====== Sidebar ====== */
.sidebar-widget {
  margin-bottom: 30px;
}

.widget-title {
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

.category-list,
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.recent-posts li {
  margin-bottom: 8px;
}

.category-list a,
.recent-posts a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.category-list a:hover,
.recent-posts a:hover {
  color: #0073aa;
}

/* Active category highlight */
.category-list li.active a {
  color: #0073aa;
  font-weight: 600;
}

/* =====================
   SINGLE POST PAGE
===================== */

/* Featured Image */
.single-featured-image {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 10px;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Header */
.single-header {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: center;
}

.single-categories {
  margin-bottom: 10px;
}

.cat-link {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin: 0 4px 8px;
  text-decoration: none;
}

.cat-link:hover {
  background: #005e8c;
}

.single-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0;
  color: #222;
}

.meta-info {
  color: #777;
  font-size: 0.9rem;
}

.meta-info i {
  margin-right: 6px;
  color: #999;
}

/* Content */
.single-content {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 15px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.single-content img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
}

.single-content p {
  margin-bottom: 1.2em;
}

/* Tags */
.single-tags {
  max-width: 1280px;
  margin: 20px auto 50px;
  padding: 0 15px;
  font-size: 0.95rem;
}

.single-tags i {
  color: #0073aa;
  margin-right: 8px;
}

.single-tags a {
  display: inline-block;
  background: #f1f1f1;
  color: #333;
  padding: 5px 10px;
  margin: 4px 4px 0 0;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.single-tags a:hover {
  background: #0073aa;
  color: #fff;
}

/* Related Posts */
.related-posts {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.related-posts h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  border-bottom: 2px solid #0073aa;
  display: inline-block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 2fr));
  gap: 25px;
}

.related-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  padding-bottom: 15px;
}

.related-item:hover {
  transform: translateY(-3px);
}

.related-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 15px 5px;
}

.related-title a {
  color: #222;
  text-decoration: none;
}

.related-title a:hover {
  color: #0073aa;
}

.related-date {
  font-size: 0.9rem;
  color: #777;
  padding: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .single-title {
    font-size: 1.6rem;
  }

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

.category-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #000;
  width: 100%;
}

.category-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.category-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.category-title {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.category-description {
  font-size: 18px;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto;
}