html {
    background-color: #516c5f;
}

body {
    padding-top: 140px;
}

/* Шапка */
.header-container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    align-items: center;
    padding: 10px 20px;
    background-color: #c2d9cc;
    border-radius: 15px;
}

.header-container .logo {
    display: block;
    align-items: center;
    max-width: 10%;
    margin-right: auto;
}

.header-container .logo img {
    width: 100%;
    height: 100%;
    display: block;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    padding: 8px 16px;
    background-color: #50695d;
    color: white;
    border-radius: 10px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #7aa18e;
}

/* Баннер */
.hero-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Боковая панель */
.sidebar {
    flex: 1;
    position: sticky;
    top: 18%;
    align-self: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: #fafafa;
    min-width: 20%;
    height: 20%;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding-left: 10px;
}

.sidebar li {
    margin-bottom: 10px;
}

/* Стиль карточки */
.custom-article-card {
    background-color: #f2f8f5; /* светло-зелёный/серый фон */
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.10); /* глубокая тень */
    border-radius: 20px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.custom-article-card .card-body {
    padding: 20px;
}


/* Детали статьи */
.article-detail {
    position: relative;
    border: 1px solid #ccc;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

/* Изображения */
.article-card img,
.article-detail img,
.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 15px;
}

/* Создание статьи */
.create-article {
    max-width: 1400px;
    margin: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", sans-serif;
}

.form-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.create-article form p {
  margin-bottom: 16px;
}

.create-article input[type="text"],
.create-article textarea,
.create-article input[type="date"],
.create-article select {
  width: 90%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.3s ease;
  font-family: "Arial Rounded MT Bold", sans-serif;
}

.create-article input:focus,
.create-article textarea:focus,
.create-article select:focus {
  border-color: #4a90e2;
  outline: none;
}

/* Кнопки */
.submit-btn {
  background-color: #4a90e2;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #357ab8;
}

.delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Блок информации */
.info-section {
    background-color: #f9f9f9;
    padding: 20px 30px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 15px;
}

/* CKEditor */
.django-ckeditor-widget {
    width: 100%;
}

/* Ссылки в заголовках */
.card-title a:hover {
    color: #0d6efd;
    transition: color 0.2s ease-in-out;
}


/* Бургер-кнопка */
.burger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    margin-left: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    .header-container {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #c2d9cc;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    nav.show {
        display: flex;
    }

    .burger {
        display: block;
    }
}
