/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
}

/* ---------- CONTAINERS ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo, .logo a {
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  color: #0077cc;
  display: block;
}

.filter-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.filter-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.filter-menu a:hover {
  color: #0077cc;
}

/* ---------- HERO IMAGE ---------- */
.article-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ---------- ARTICLE BODY ---------- */
.article-content a {
  text-decoration: none;
  color: #111;
}

.article-content {
  background: #fff;
  position: relative;
  top: -80px;
  padding: 40px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 2;
}

.article-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

.article-content .meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.article-content p {
  margin-bottom: 20px;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- TAG COLORS ---------- */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.sveikata { background-color: #28a745; }
.technologijos { background-color: #007bff; }
.verslas { background-color: #ffc107; color: #000; }
.naujienos { background-color: #dc3545; }

/* ---------- BREAK SPACE ---------- */
.break {
  display: block;
  width: 100%;
  height: 40px; /* adjust as needed */
}

.break_small {
  display: block;
  width: 100%;
  height: 3px; /* adjust as needed */
}


/* ---------- BLOCKQUOTE STYLES ---------- */
.article-quote {
  font-style: italic;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  border-left: 4px solid #ccc;
  margin: 20px 0;
  padding-left: 15px;
  quotes: "“" "”" "‘" "’";
}

.article-quote::before {
  content: open-quote;
}

.article-quote::after {
  content: close-quote;
}

/* ---------- INLINE PHOTOS (FIXED SIZE) ---------- */
.article-content .inline-photo img {
  width: 500px;
  height: auto;
  display: block;
  margin: 30px auto;
}

/* --- PHOTOS TO THE LEFT --- */
.article-content .photo-left img {
  float: left;
  width: 600px;
  height: auto;
  margin: 10px 25px 20px -160px; /* half outside */
  object-fit: cover;
  shape-outside: margin-box;
}

/* --- PHOTOS TO THE RIGHT --- */
.article-content .photo-right img{
  float: right;
  width: 600px;
  height: auto;
  margin: 10px -160px 20px 25px;
  object-fit: cover;
  shape-outside: margin-box;
}

/* ---------- CLEAR FLOATS ---------- */
.article-content::after {
  content: "";
  display: block;
  clear: both;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

footer p {
  color: #555;
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .article-hero img {
    height: 250px;
  }

  .article-content {
    top: -40px;
    padding: 25px 15px;
    box-shadow: none;
  }

  .article-content h1 {
    font-size: 1.5rem;
  }

  /* photos become full-width on phones */
  .article-content img.photo-left,
  .article-content img.photo-right,
  .article-content .inline-photo img {
    float: none;
    width: 100%;
    margin: 20px 0;
  }
}
