/* Загальні стилі */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Шапка */
.header {
    background-color: #7D498C;
    color: white;
    text-align: center;
    padding: 1rem;
/*     position: sticky; */
  height:80px;
  
}

/* Навігація */
.navigation {
    background-color: #451054;
    padding: 0.5rem;
    position: sticky;
    top: 0px;
    z-index: 1000;
}

.navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    margin: 0 1rem;
}

.navigation a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: #666;
    border-radius: 5px;
}

/* Основна частина */
.main-content {
    display: flex;
    flex-direction: column;
  align-items:center;
    gap: 2rem;
  padding:30px 0;
  background-color: #dfb7e9;
/*     padding: 2rem; */
}
section{
    color: white;
     background-color: #462153;
    border: 1px solid #BA98D1;
    
  width:80%;
}
article{
     background-color: #260a39;
    border: 1px solid #ccc;

}
/* Розділ 1: Статті у вертикальному напрямку */
.section-1 {
    background-color: #462153;
    border: 1px solid #BA98D1;
    padding: 1.5rem;
    border-radius: 5px;
  display:flex;
  flex-direction:column;
  gap:20px;
  color: white !important;
}
.section-1 a{
    color: white;
    text-decoration: none;
}

.section-1 article {
    background-color: #260a39;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.section-1 article p{
    text-align: center;
}
/* Розділ 2: Статті у горизонтальному напрямку */
.section-2 {
    
    padding: 1.5rem;
    border-radius: 5px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.section-2 article {
    
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-2 article h3{
min-width: 200px;

}
.section-2 img {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* Розділ 3: Картковий дизайн статтей */
.section-3 {
    
    padding: 1.5rem;
    border-radius: 5px;
    display: flex;
    flex-direction:column;
    align-items:center;
    width:100%;
}
.section-3 div{
  display:flex;
  gap:30px;
}

.section-3 article {
    
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-3 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Загальний стиль зображень */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
section article{
  transition:0.2s;
}
section article:hover {
  cursor:pointer;
  box-shadow:0 0 3px 0 black;
}

/* Підвал */
.footer {
    background-color: #7D498C;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.footer p {
    margin: 0;
}




