* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --container: 1240px;
  --gutter: 24px;

  --bg: #f5f5f7;
  --text: #000000;

  --white: #ffffff;
  --border: #f0f0f0;

  --primary: #5b47d1;
  --primary-soft: #f2f0ff;

  --muted: #888888;
  --muted-2: #444444;

  --radius: 10px;
  --shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ============ BASE ============ */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* დიდ ეკრანებზე ცოტა მეტი „ჰაერი“ */
@media (min-width: 1200px) {
  :root {
    --gutter: 32px;
  }
}

/* ============ HEADER ============ */
.site-header {
  background-color: var(--white);
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  background-color: var(--primary-soft);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

/* ============ HERO ============ */
.hero-section {
  width: 100%;
  min-height: 320px;
  background-image: url(img/hero.jpg);
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  text-align: center;
}

/* Hero content container */
.hero-section .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-content h1 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: #ffffff;
}

.hero-content p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  max-width: 720px;
}

/*  LATEST NEWS  */
.latest-news-section {
  padding: 64px 0;
  background-color: #f0f0f0;
}

.section-title {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  width: 100%;
  min-height: 380px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--primary);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta {
  font-weight: 400;
  font-size: 11px;
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.news-grid h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

.news-grid p {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* FOOTER */
.site-footer {
  background-color: #1e1e1e;
  color: #ffffff;
  padding-top: 64px;
}

.footer-content {
  display: flex;
  gap: 48px;
  padding-bottom: 50px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 350px;
}

.footer-logo {
  font-weight: 600;
  font-size: 18px;
  color: #cccccc;
  line-height: 1;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 16px;
}

.footer-title {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.footer-links,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 10px;
}

.contact-list li,
.footer-links li {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #cccccc;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  background-color: #000000;
  padding: 16px 0;
}

.footer-bottom p {
  font-size: 11px;
  color: #888888;
  margin: 0;
  text-align: center;
}

/*  RESPONSIVE*/
@media (max-width: 768px) {
  .main-nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .latest-news-section {
    padding: 48px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 28px;
  }
}
/*post details */

.single-post-section {
  padding: 60px 0;
  min-height: 60vh;
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

.post-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.post-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #888888;
}

.post-content {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.post-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 16px;
  color: #000000;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content blockquote {
  border-left: 4px solid #5b47d1;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  font-size: 18px;
  color: #555;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

/* --- Layout: Main + Sidebar --- */
.layout-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.main-content-wrapper {
  flex: 2;
  width: 100%;
}

.sidebar {
  flex: 1;
  position: sticky;
  top: 90px;
  min-width: 300px;
}

.sidebar-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  padding-bottom: 10px;
  border-bottom: 2px solid #5b47d1;
}

.sidebar-card {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-card:hover {
  transform: translateX(5px);
}

.sidebar-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #ddd;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-info h4 {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
  line-height: 1.4;
}

.sidebar-info .date {
  font-size: 12px;
  color: #888;
}

@media (max-width: 900px) {
  .layout-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }
}

.sidebar-block {
  margin-bottom: 40px;
}

.sidebar-categories,
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li,
.sidebar-links li {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.sidebar-categories li:last-child,
.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-categories a,
.sidebar-links a {
  text-decoration: none;
  color: #555;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

.sidebar-categories a:hover,
.sidebar-links a:hover {
  color: #5b47d1;
  transform: translateX(5px);
}

.sidebar-categories span {
  background-color: #f2f0ff;
  color: #5b47d1;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/*readmore button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 0 20px 20px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.read-more-btn:hover {
  color: #3f31a7;
}
