/*
Theme Name: My Lessons
Theme URI: https://dlikrise.org/
Author: Bekker Yosef
Author URI: https://dlikrise.org/
Description: Инновационная платформа для онлайн-обучения, где каждый может освоить новые навыки, пройти профессиональные курсы и добиться своих целей
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-lessons
*/

.custom-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.custom-login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

#loginform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#loginform label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#loginform input[type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 3px;
}

#loginform input[type="submit"]:hover {
    background: #005d8c;
}

#menu-footer {
    display: flex;
    justify-content: flex-end; /* Выравнивание элементов по правому краю */
    width: 100%; /* Занимает всю доступную ширину */
    margin: 0; /* Убираем внешние отступы */
    padding: 0; /* Убираем внутренние отступы */
    list-style: none; /* Убираем маркеры списка */
}

#menu-footer li {
    padding: 5px 8px;
    margin: 0; /* Убираем отступы у элементов списка */
}

.single-post {
    line-height: 1.7;
    font-size: 1.1rem;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.post-navigation a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Lesson Single Page */
.lesson-single {
    line-height: 1.7;
}

.lesson-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.lesson-navigation a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.lesson-navigation a:hover {
    background-color: #e9ecef;
}

.lesson-sidebar .list-group-item {
    padding: 0.75rem 1rem;
    border-left: 0;
    border-right: 0;
}

.lesson-sidebar .list-group-item:first-child {
    border-top: 0;
}

.lesson-sidebar .list-group-item.active {
    background-color: #f8f9fa;
    color: #212529;
    border-color: rgba(0,0,0,.125);
    font-weight: 500;
}

/* Resources */
.resource-item .input-group {
    flex-wrap: nowrap;
}

.resource-item .form-control {
    flex: 1;
    min-width: 100px;
}

.resource-item .form-select {
    flex: 0 0 100px;
}

/* Аккордеон FAQ */
#faqAccordion {
    max-width: 100%;
    margin: 0 auto;
}

#faqAccordion .accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
}

#faqAccordion .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

#faqAccordion .accordion-body {
    padding: 1.25rem;
    line-height: 1.7;
}

/* Стили для списка уроков */
.course-lessons-list .list-group-item {
    transition: all 0.3s ease;
    border-left: 0;
    border-right: 0;
}

.course-lessons-list .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Стили для сетки уроков */
.lesson-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.lesson-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Иконки продолжительности */
.bi-clock {
    margin-right: 3px;
}

/* Стили для сетки постов */
.recent-posts-grid .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.recent-posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.recent-posts-grid .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Стили для списка постов */
.recent-posts-list .list-group-item {
    transition: all 0.3s ease;
    border-left: 0;
    border-right: 0;
}

.recent-posts-list .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Стили для карусели */
.recent-posts-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.recent-posts-carousel .carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    text-align: left;
}

/* Общие стили */
.bi-calendar {
    margin-right: 3px;
}




