body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f9f9f9;
}
header {
    background: #13283d;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}
.facebook{
    max-height: 80px;
    height: auto;
}
.logo{
    max-height: 100px;
    height: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: large;
}

nav a:hover {
  color: #ffcc00;
}
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.news-grid a{
    text-decoration: none;
    color: black;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}
.container {
    padding: 2rem;
}
.news-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;*/
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    flex-wrap: wrap;
    gap: 1rem;
}
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    width: 25%;
    min-width: 280px; /* hogy ne törje össze a szöveget */
}
.card:hover {
    transform: scale(1.01);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 1rem;
}
.card-content h3 {
    margin-top: 0;
}
.searchContainer{
    display: flex;
    justify-content: center;
}
.search-box {
    margin-bottom: 2rem;
    width: 80%;
    padding:0.8rem;
    font-size:1rem;
}
#title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}
#main_text {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: larger;
}
#article_text {
    margin-top: 1rem;
    text-align: justify;
    font-size: larger;
    line-height: 2rem;
}
div.article-container{
    max-width: 70%;
    margin: 2rem auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: row;
}
main{
  flex: 0 0 75%;
}
.further-article-container{
  padding-left: 1rem;
  padding-right: 1rem;
}
.further-article{
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size:.95rem;
  background-color: antiquewhite;
  align-items: center;
  border-left: 3px solid red;
}
.further-article-details-div a{
  display:block;
  text-decoration:none;
  color: inherit;
  font-size:1.1rem;
}
.further-article-image-div{
  display: block;
}
.further-article-image-div a{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.further-article-image-div img{
  height: 7rem;
}

aside{
  padding-top: 2rem;
}
.related-grid{
  display:grid;
  gap:.75rem;
}
.related-grid a{
  display:block;
  text-decoration:none;
  color: inherit;
}
.related-div{
  width:100%;
  overflow:hidden;
  border-radius:4px;
}
.related-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}
.related-title-div{
  padding-top:.5rem;
  font-weight:600;
  font-size:.95rem;
}
.toolbar button { 
    margin-right: 5px;
}
.editor {
    border: 1px solid black;
    padding: 10px;
    min-height: 300px;
}
.editor img {
    max-width: 300px;
    height: auto; /* arányt megtartja */
}
.lead{
    width: 100%;
    font-size: 16px!important;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.title{
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 16px!important;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}
.category{
    width: 20%;
    display: block;
    box-sizing: border-box;
    font-size: 16px!important;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}
.article-creator{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}
.publish{
    margin-bottom: 1rem;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 40px;
    background-color: greenyellow;
}
.addnew{
    margin-bottom: 1rem;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 40px;
    background-color: greenyellow;
}
.save{
    margin-bottom: 1rem;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 40px;
    background-color: greenyellow;
}
.cancel{
    margin-bottom: 1rem;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 40px;
    background-color: greenyellow;
}
.editSave{
    margin-bottom: 1rem;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 40px;
    background-color: greenyellow;
}
.item-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.item-container .item{
    width: 60%;
}

footer {
  background-color: #13283d; /* ugyanolyan, mint a header */
  color: white;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* mobilon több sorba törhet */
  gap: 1rem;       /* távolság a linkek között */
  text-align: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: medium;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* --- Reszponzív nézet --- */
@media (max-width: 1024px) {
  header {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-container {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    width: 40%;
  }

  .logo {
    max-height: 100px;
  }

  .facebook {
    max-height: 80px;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px; /* hogy a logo alá essen */
    left: 0;
    width: 100%;
    background: #13283d;
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    gap: 1rem;
    z-index: 1000;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
  }

  /* Tartalom mobilon */
  .news-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 1rem;
  }

  .card {
    width: 100%;
    max-width: 500px; /* ne legyen túl széles */
  }

  div.article-container{
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  main{
    flex: 0 0 100%;
  }
  aside{
    padding: 1rem;
  }
  .footer-links {
    flex-direction: column; /* kis kijelzőn egymás alá teszi */
    gap: 0.5rem;
  }
}
@media (max-width: 600px) {
  footer { padding: 1rem 0; }

  /* erős, specifikus selector + !important biztosítja az alkalmazást */
  footer .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  /* minden link teljes sor legyen, max szélesség, középre igazítva */
  footer .footer-links a {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important; /* ha szeretnéd, hogy ne legyen túl széles */
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 0.6rem 1rem !important;
  }
}