/*
 * Theme Name: Learning System Theme
 * Theme URI: https://example.com/
 * Author: Your Name
 * Author URI: https://example.com
 * Description: 
 * Version: 1.0.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: learning-system-theme
 * Domain Path: /languages
 * Tags: education, learning, responsive, minimal
 */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* ===================================
   КОНТЕЙНЕР
   =================================== */

.site {
    max-width: 90%;
    margin: 0 auto;
    background-color: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   HEADER
   =================================== */

.site-header {
    background-color: #673AB7;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: #fff;
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* ===================================
   НАВИГАЦИЯ
   =================================== */

.main-navigation {
    flex: 1;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

/* ===================================
   ОСНОВНОЙ КОНТЕНТ
   =================================== */

.site-main {
    flex: 1;
    padding: 40px 30px;
}

.entry-content {
    line-height: 1.8;
    color: #555;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #333;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px;
    text-align: center;
    margin-top: auto;
}

.site-info {
    font-size: 14px;
    margin-bottom: 20px;
}

.site-footer a {
    color: #4CAF50;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ===================================
   КНОПКИ
   =================================== */

.lsp-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.lsp-btn:hover {
    background-color: #45a049;
}

.lsp-btn-secondary {
    background-color: #2196F3;
}

.lsp-btn-secondary:hover {
    background-color: #1976D2;
}

.lsp-btn-danger {
    background-color: #f44336;
}

.lsp-btn-danger:hover {
    background-color: #d32f2f;
}

/* ===================================
   ФОРМЫ
   =================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* ===================================
   АДАПТИВНОСТЬ
   =================================== */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation {
        width: 100%;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
        width: 100%;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul {
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #eee;
    }

    .main-navigation a {
        display: block;
        padding: 10px 0;
    }

    .site-main {
        padding: 20px 15px;
    }

    .site-footer {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .site-title {
        font-size: 18px;
    }

    .site-main {
        padding: 15px 10px;
    }
}

/* ===================================
   УТИЛИТЫ
   =================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================================
   WORDPRESS СПЕЦИФИК
   =================================== */

.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-caption {
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.wp-video {
    margin: 20px 0;
}


.courses-list{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    margin:40px 0;
}

.course-card{
        display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: column;
    flex: 0 0 25%;
}

.course-image{
    width: 100%;
}

.course-image img{
    width: 100%;
    border-radius: 12px;
    height: auto;
}

.course-title a{
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #034cae;
    text-decoration: none;
}

.course-flex-buttons{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap:15px;
}

.course-flex-buttons a{
    background: black;
    color: white;
    padding:10px 15px;
    border-radius: 10px;
    text-decoration: none;
}

.course-flex-buttons a.js-submit-course{
    background: #034cae;
}

.course-flex-buttons a.js-unsubmit-course{
    background:#9e9e9e;
}

.lsp-lesson-main iframe{
    width: 100%;
    height: 400px;
    border-radius: 12px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid white;
}