*{margin:0;padding:0;box-sizing:border-box;font-family:'Inter',sans-serif;}

body{
    background:url('img/fon.png') center/cover no-repeat fixed;
    color:#1f2937;
}

/* HEADER */
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(15px);
}

.search{
    width:450px;
    padding:12px 18px;
    border-radius:999px;
    border:none;
    background:#f1f5f9;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.btn{
    background:#3b82f6;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:999px;
}

.notif{position:relative;}
.notif-badge{
    position:absolute;
    top:-5px;right:-5px;
    background:red;color:white;
    font-size:10px;
    padding:2px 6px;
    border-radius:50%;
}

.profile{
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    padding:5px 10px;
    border-radius:999px;
}
.profile img{width:30px;height:30px;border-radius:50%;}

.container{
    display:flex;
    gap:20px;
    padding:20px 30px;
}

/* SIDEBAR */
.sidebar{
    width:260px;
    background:#fff;
    padding:20px;
    border-radius:16px;
}

.logo img{width:160px;margin-bottom:20px;}

.menu a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:12px;
    color:#374151;
    text-decoration:none;
}

.menu a.active{
    background:#e8f0ff;
    color:#2563eb;
}
-----------------------------------------------------------
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
-----------------------------------------------------------------


.badge{
    margin-left:auto;
    background:#2563eb;
    color:#fff;
    padding:2px 8px;
    border-radius:999px;
}

.section{font-size:12px;color:#9ca3af;margin:10px 0;}

.main{flex:1;}

.card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    margin-bottom:20px;
}



/* POST */
.post-header{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}
.avatar{width:40px;height:40px;border-radius:50%;}

.meta{font-size:12px;color:#6b7280;}

.tags span{
    background:#eef2ff;
    color:#3b82f6;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    margin-right:5px;
}

.post-actions{
    margin-top:10px;
    display:flex;
    gap:20px;
    font-size:14px;
}

/* RIGHT */
.rightbar{width:300px;}

.widget{
    background:rgba(255,255,255,0.7);
    backdrop-filter:blur(10px);
}

.widget-date{font-size:12px;color:#9ca3af;}

.currency{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    margin-top:5px;
}

.up{color:green;text-align:right;}
.down{color:red;text-align:right;}

.event{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.event-title{font-size:14px;}
.event-time,.event-place{font-size:12px;color:#6b7280;}



.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.menu-item:hover {
    background: #f1f5f9;
}

.icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.more {
    color: #6b7280;
}

/* MOBILE */
.menu-btn {
    display: none;
    font-size: 22px;
    cursor: pointer;
}
@media (max-width: 900px) {

    .rightbar {
        display: block;
        margin-top: 10px;
    }

}

/* АДАПТАЦИЯ */
@media (max-width: 900px) {

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .search {
        width: 100%;
    }

    .menu-btn {
        display: block;
    }
.close-btn {
    font-size: 20px;
    margin-bottom: 10px;
    cursor: pointer;
}

    /* SIDEBAR СКРЫТ */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        width: 240px;
        background: white;
        z-index: 1000;
        transition: 0.3s;
    }

    .sidebar.active {
        left: 0;
    }

    /* УБИРАЕМ ПРАВЫЙ БЛОК */
    .rightbar {
    width: 100%;
}

    /* КАРТОЧКИ */
    .card {
        padding: 15px;
    }

    /* HEADER УПРОЩАЕМ */
    .header {
        gap: 10px;
    }

    .header-right {
        gap: 8px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Курс валют день время =============================================*/
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-date {
    font-size: 12px;
    color: #9ca3af;
}
/* КАЛЕНДАРЬ */
.calendar-widget {
    padding: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.calendar-header button {
    background: #f1f5f9;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* ДНИ НЕДЕЛИ */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* СЕТКА */
#calendar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 5px;
    margin-top: 5px;
}

/* ДЕНЬ */
.day {
    padding: 8px;
    font-size: 12px;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
}

/* СЕГОДНЯ */
.today {
    background: #3b82f6;
    color: white;
}

/* ЭКЗАМЕН */
.exam {
    background: #fde68a;
}
.exam-info {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 13px;
    text-align: center;
}
/* Авторизация и Регистрация =================================== */

/* КНОПКА */
.auth-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    max-width: 90%;
}

/* INPUT */
.modal input {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BUTTON */
.modal button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    margin-top: 10px;
}

/* CLOSE */
.close {
    float: right;
    cursor: pointer;
}

/* SWITCH */
.switch {
    text-align: center;
    margin-top: 10px;
    color: #2563eb;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 500px) {
    .modal-content {
        width: 100%;
        border-radius: 20px 20px 0 0;
        position: absolute;
        bottom: 0;
    }
}
/* ЭТО ДЛЯ РЕДАКТИРОВАНИЕ И УДАЛЕНИЯ СОТРУДНИКОВ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

.profile-page{

    display:flex;

    justify-content:center;

    padding:40px;

}

.profile-card{

    width:400px;

    background:white;

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,0.1);

}

.profile-avatar{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:20px;

}

.profile-role{

    background:#2563eb;

    color:white;

    display:inline-block;

    padding:6px 14px;

    border-radius:20px;

    margin:10px 0;

}

.profile-info{

    text-align:left;

    margin-top:20px;

}

.edit-btn{

    display:inline-block;

    margin-top:20px;

    background:#2563eb;

    color:white;

    padding:12px 20px;

    border-radius:12px;

    text-decoration:none;

}
/*================================*/
/* это посты в середине ---------*/
.post-image:hover{

    transform:scale(1.01);

    transition:0.3s;

}
.post-image{

    width:100%;

    max-height:450px;

    object-fit:cover;

    border-radius:20px;

    margin-top:20px;

    display:block;

}


.short-text{

    max-height:80px;

    overflow:hidden;

    position:relative;

}

.short-text.open{

    max-height:none;

}

.read-more-btn{

    margin-top:10px;

    border:none;

    background:none;

    color:#2563eb;

    cursor:pointer;

    font-weight:bold;

    font-size:14px;

}
/* конец стила поста */
/*Начало стила по Опоишения=================*/
/* ALERTS */

.alert-slider{

    position:relative;

    height:100px;

    margin-bottom:10px;

}

.alert-slide{

    position:absolute;

    inset:0;

    background:white;

    border-radius:50px;

    padding:5px 25px;

    display:none;

    width:100%;

    box-sizing:border-box;

}

/* ACTIVE */

.alert-slide.active{

    display:flex;

}

/* LEFT */

.alert-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* ICON */

.alert-icon{

    width:50px;

    height:50px;

    border-radius:50%;

    background:#f1f5f9;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

}

/* TEXT */

.alert-title{

    font-size:20px;

    font-weight:bold;

}

.alert-text{

    color:#64748b;

    margin-top:5px;

}
.alert-content {
    width: 1000px;
  
  
}
/* COLORS */

.alert-slide.danger{

    border-left:6px solid #ef4444;

}

.alert-slide.warning{

    border-left:6px solid #f59e0b;

}

.alert-slide.info{

    border-left:6px solid #3b82f6;

}

.alert-slide.success{

    border-left:6px solid #10b981;

}
/*Конец стила по Оповишени*/

/* начало стил для постов редактироват и филтр поиска*/
.edit-btn {
    background:#2563eb;
    color:white;
    padding:8px 12px;
    border-radius:12px;
    text-decoration:none;
}

.delete-btn {
    background:#ef4444;
    color:white;
    padding:8px 12px;
    border-radius:12px;
    text-decoration:none;
}
.posts-table{
    width:100%;
    border-collapse:collapse;
}
.posts-table th, .posts-table td{
    padding:12px;
    text-align:left;
    border-bottom:1px solid #e5e7eb;
}
.table-actions a{
    margin-right:8px;
}
/*конец стил для постов редактироват и филтр поиска*/
/*начало стиля карточек*/
.courses-section {
  text-align: center;
  margin: 40px 0;
}

.courses-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.course-card {
  position: relative; /* нужно для позиционирования количества уроков */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  height: 180px; /* фиксированная высота */
  object-fit: cover; /* чтобы картинка не растягивалась */
  display: block;
}

.course-card .lessons {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f1f1f1;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.course-card h3 {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
/*Конец*/