header { background: #0077cc; color: white; padding: 2.2rem; position: relative; text-align: center; }
header h1 { margin: 1rem 0 1rem; }
header p { font-size: 1.2rem; }
.login-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.95rem;
}
.login-link a {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
}
.packages { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 2rem; background: #fff; }
.package { position:relative; background: #f0f0f0; padding: 1.5rem; border-radius: 12px; width: 300px; box-shadow: 0 0 10px rgba(0,0,0,0.05); }
.package h3 { margin-top: 0; }
.package ul { padding-left: 1.2rem; }
.package .price { font-size: 1.4rem; font-weight: bold; margin: 1rem 0; }
.package a { display: inline-block; margin-top: 1rem; background: #0077cc; color: white; padding: 0.8rem 1.2rem; text-decoration: none; border-radius: 6px; }
.package.free { background: #e6f7ec; }
.package.basic { background: #e6f0fa; }
.package.premium { background: #f6e6fa; }
.package .sub { font-size:.9rem; color:#555; margin-top:-.25rem; }
.package .ribbon { position:absolute; top:-10px; right:-10px; background:#ffb703; color:#1f2937; font-weight:700; padding:.35rem .6rem; border-radius:8px; }

.texts { padding: 2rem; max-width: 900px; margin: auto; }
.texts h2 { color: #0077cc; margin-top: 0; }
.texts ul { padding-left: 1.2rem; }
.texts blockquote { font-style: italic; color: #555; border-left: 4px solid #ccc; padding-left: 1rem; margin: 1rem 0; }

.with-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.with-image .text-content {
  flex: 2 1 60%;
  min-width: 280px;
}

.with-image .image-content {
  flex: 1 1 30%;
  min-width: 200px;
  max-width: 300px;
}

.with-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.left-image .image-content { order: 0; }
.left-image .text-content { order: 1; }
.right-image .text-content { order: 0; }
.right-image .image-content { order: 1; }

@media (max-width: 768px) {
  .with-image {
    flex-direction: column;
  }
  .with-image .image-content, .with-image .text-content {
    order: 0 !important;
    flex: 1 1 100%;
  }
}

.site-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.site-logo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px; /* vagy 1rem, ha az jobban illik */
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Mobil nézet finomítás */
@media (max-width: 768px) {
  header { 
     padding: 0.2rem;
  }    
    
  .title-block {
    margin-top: 100px;
  }  
    
  .site-logo {
    top: 0.5rem;
    left: 0.5rem;
  }

  .site-logo img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {

  .with-image.left-image .text-content,
  .with-image.right-image .text-content {
    order: 1 !important;
  }

  .with-image.left-image .image-content,
  .with-image.right-image .image-content {
    order: 2 !important;
  }
}

/* --- Blog szekció --- */
.blog-section {
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  margin: 0rem auto;
  max-width: 900px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.blog-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-section h2 {
  color: #0077cc;
  margin-bottom: 0.2rem;
  font-size: 1.6rem;
}

.blog-section .lead {
  color: #555;
  margin-bottom: 1rem;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Card */
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  /*border-radius: 12px;*/
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-image {
  width: 200px;
  height: 133px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Body */
.card-body {
  padding: 0.9rem 1rem;
}

.card-title {
  font-weight: 700;
  color: #0b63a6;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.2;
}

.card-excerpt {
  font-size: 0.85rem;
  color: #666;
}

/* "Több" gomb */
.blog-more {
  text-align: center;
  margin-top: 1rem;
}

.blog-more .btn {
  display: inline-block;
  background: #00aa88;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Reszponzív */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-section {
    padding: 1.6rem 1rem;
  }
  .card-title { font-size: 1.05rem; }
}

/* 1. Menü gombok egymás alá 380px alatt */
@media (max-width: 380px) {
  .login-link {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;   
    gap: 0.35rem;
    width: auto !important;  
  }

  .login-link a {
    display: inline-block;
    text-align: right;
    margin: 0 !important;    
  }    
}

/* Lábléc linkek egységes margó és sor­köz */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 20px;
  background-color: #f1f1f1;
  line-height: 1.6; /* kényelmes sor­köz */
}

footer a {
  color: #006d77;
  margin: 5px 12px; /* vízszintes és függőleges térköz */
  text-decoration: none;
  display: inline-block;
}

footer a:hover {
  text-decoration: underline; /* jobb UX */
}

footer p {
  margin-top: 12px; /* elkülönítés a linkektől */
}
