/* style.css */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Roboto', sans-serif;
}

body{
    min-height:100vh;
    background: radial-gradient(circle at 30% 20%, #1a1240, #050510 70%);
    display:flex;
    justify-content:center;
    padding:40px 15px;
    color:white;
}

.container{
    width:100%;
    max-width:1100px;
    background:rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:20px;
    padding:30px;
}

.title{
    font-size:30px;
    margin-bottom:25px;
    background:linear-gradient(90deg,#7f5af0,#2cb67d);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.course{
    margin-bottom:15px;
    border-radius:15px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
    scroll-margin-top: 30px; 
}

.course-header{
    padding:18px 20px;
    background:rgba(255,255,255,0.05);
    cursor:pointer;
    font-size:18px;
    display:flex;
    justify-content:space-between;
}

.course-header span{
    transition:0.3s;
}

.course.active .course-header span{
    transform:rotate(90deg);
}

.course-content{
    overflow:hidden;
    opacity:0;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    max-height:0;
    padding:0 25px;
}

.course.active .course-content{
    opacity:1;
    transform: translateY(0);
    max-height:none; 
    padding:25px;
}

.week{
    margin-bottom:10px;
    border-radius:10px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
    scroll-margin-top: 30px; 
}

.week-header{
    padding:12px 15px;
    background:rgba(255,255,255,0.08);
    cursor:pointer;
    display:flex;
    justify-content:space-between;
}

.week-header span{
    transition:0.3s;
}

.week.active .week-header span{
    transform:rotate(90deg);
}

.week-content{
    overflow:hidden;
    opacity:0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    max-height:0;
    padding:0 15px;
}

.week.active .week-content{
    opacity:1;
    transform: translateY(0);
    max-height:none;
    padding:15px;
}

.week:hover {
    transform: translateY(-3px);
    transition: 0.3s;
}

.pdf-btn{
    display:inline-block;
    margin-bottom:15px;
    padding:6px 14px;
    border-radius:8px;
    text-decoration:none;
    background:linear-gradient(90deg,#7f5af0,#2cb67d);
    color:white;
}

.note-title{
    margin:15px 0 8px;
    font-weight:600;
    color:#2cb67d;
}

.code{
    background:#0d0d18;
    padding:15px;
    border-radius:10px;
    font-family:Consolas, monospace;
    font-size:14px;
    white-space:pre-wrap;
    line-height:1.5;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #111;
  color: #eee;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
}

.modal-content h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
  margin-bottom: 20px;
}

.modal-content button {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.modal-content button:hover {
  opacity: 0.85;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.telegram-btn {
    display:inline-block;
    padding:14px 25px;
    border-radius:12px;
    text-decoration:none;
    font-weight:500;
    color:white;
    background:#007ba7;
    box-shadow:0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.telegram-btn:hover {
    background:#006487;
    transform: translateY(-3px);
    box-shadow:0 8px 25px rgba(0,0,0,0.4);
}