:root {
    --white: #FFFFFF;
    --black: #000;
    --blackNav: #424242;
    --blueNav: #133A67;
    --yellowBanner: #FFC99D;
    --whiteBanner: #DADADA;
    --blueItem: #00ADB6;
    --blackItem: #3C4852;
    --infoGray: #808080;
    --redBanner: #BE6A67;
    --reviewsGray: #F1F1F1;
    --whiteFooter: #EEEEEE;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'cairo';
}

header {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blueNav);

}

header nav {
    width: 88%;
    margin: auto;
    display: flex;
}



header nav .navbar-nav {
    padding: 0px;
    margin: 0px;
}

header nav .navbar-nav .nav-item .nav-link {
    color: var(--white);
}




header nav .navbar-nav .nav-item .nav-link::before {
    content: "";
    width: 0px;
    height: 1px;
    background-color: var(--white);
    position: absolute;
    bottom: 35px;
}

header nav .navbar-nav .nav-item .nav-link:hover::before {
    width: 30px;
    transition: all 1s ease;
}



nav .user_nav h5{
    font-size: 16px;
    margin: 0px 8px;
    color: var(--white);
}

/* course-watch */
.course-watch{
    width: 85%;
    margin: auto;
    display: flex;
    margin-top: 50px;
    justify-content: space-between;

}

.course-watch .course-watch-cat{
    box-shadow: 5px 4px 30px 0px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    width: 35%;
    overflow-y: scroll;
    height: 400px;


}

.course-watch .course-watch-cat::-webkit-scrollbar{
    width: 5px;
}
.course-watch .course-watch-cat::-webkit-scrollbar-thumb{
    background-color: #9891A3;
    border-radius: 5px;

}


.course-watch .course-watch-cat h3{
    font-size: 20px;
    color: var(--blueNav);
    font-weight: bold;
    padding: 20px 14px;
    border-bottom: 1px solid rgba(118, 117, 119, 0.2);

}

.course-watch .course-watch-cat ul{
    list-style: none;
    padding: 20px 14px;
}

.course-watch .course-watch-cat ul li{
font-size: 18px;
font-weight: bold;
padding: 8px;
cursor: pointer;
}

.course-watch .course-watch-cat ul li:hover{
   background-color:   #F3F3F3;

}

.course-watch .course-watch-cat ul li span{
    font-size: 16px;
    font-weight: normal;
}

.course-watch-content{
    width: 60%;

}

.course-watch-content h3{
    font-size: 20px;
    font-weight: bold;
}
.course-watch-content video{
    width: 100%;
    margin-top: 13px;
    border-radius: 10px;
}

  
   
   .personal-navbtns {
       border-bottom: 1px solid rgba(168, 167, 174, 0.2);
       margin-top: 40px;
       margin-bottom: 30px;
   }
   .personal-navbtns button{
       border-radius: 0px;
       font-size: 17px;
   }
   .personal-navbtns .active{
       border: none;
       color: var(--blueNav);
       font-weight: bold;
       border-bottom: 2px solid var(--blueNav);
   
   }
   .personal-navbtns button:not(.active) {
       border: none;
   }
   
   .overview h3{
   font-size: 20px;
   font-weight: bold;
   margin-bottom: 15px;
   }
   
   .overview p{
      color:#100F14;
      font-weight: 600;
   }
   
   .overview ul{
       list-style: none;
       margin-top: 20px;
   }
   .overview ul li{
       margin-bottom: 20px;
       color: #100F14;
       font-weight: 600;
   }
   
   .cards .cards__card{
       display: flex;
       align-items: center;
      padding:  10px;
      box-shadow: 5px 4px 30px 0px rgba(0, 0, 0, 0.07);
      border-radius: 10px;
      margin-bottom: 30px;
   
    }
   
   .cards .cards__card div{
       margin-right: 20px;
   }
   .cards h4{
       font-size: 18px;
       color: #0A033C;
       font-weight: 600;
   }
   
   .cards span{
       color: #FF6652;
   font-size: 14px;
   text-align: right;
   width: 100%;
   
   }
   
   .cards__card-layout{
       background-color: white;
       opacity: 0.4;
       width: 100%;
       height: 100%;
       display: flex;
       padding: 0px;
       cursor:not-allowed;
   }
   
   .trainer{
       width: 100%;
   }
   
   .trainer h3{
       font-size: 20px;
       font-weight: bold;
       margin-bottom: 20px;
   }
   
   .trainer__content{
   border: 1px solid rgba(168, 167, 174, 0.2);
   border-radius: 10px;
   padding: 30px;
   
   }
   
   .trainer h4{
   font-size: 20px ;
   font-weight: bold;
   }
   
   .trainer span{
       color: #100F14;
   }
   
   .trainer p{
       font-weight: 600;
   
   }
   
   .comments h3{
       color: #100F14;
       font-size: 20px;
       font-weight: bold;
       margin-bottom: 20px;
   }
   
   .comments .comments__content{
       box-shadow: 5px 4px 30px 0px rgba(0, 0, 0, 0.08);
   padding: 30px 40px;
   border-radius: 10px;
   }
   
   .comments .rate{
       display: inline-block;
       font-size: 60px;
       color: #5260E5;
       font-weight: bold;
   }
    
   .comments .com{
       font-size: 16px;
       font-weight: 600;
       margin-bottom: 20px;
   }
   
   .comment__text{
       padding: 14px 0px;
       border-bottom: 1px solid rgba(168, 167, 174, 0.2);
       margin-bottom: 10px;
   }
   
   .comment__text h4{
       font-size: 16px;
       font-weight: bold;
   
   }
   
   .comment__text h3{
       font-size: 16px;
       font-weight: bold;
   }
   .comment__text p{
       font-size: 16px;
       font-weight: 600;
   }
   
   .comment__text span{
       font-size: 14px;
       color: #A8A7AE;
   }
   
   .cardd{
   
   background-color: white;
   }
   .course-card{
       border: 1px solid rgba(168, 167, 174, 0.2);
       width: 80%;
       border-radius: 20px;
       padding: 30px;
       margin: auto;
       position: relative;
       top: -16%;
       background-color: white;
   }
   
   .course-card .subscribe{
   background-color: var(--blueNav);
   color: var(--white);    
   padding: 16px 0px;
   
   }
   .course-card .video video{
       width: 100%;
       border-radius: 20px;
   }
   
   .course-card ul{
       list-style: none;
       margin-top: 40px;
   
   }
   
   .course-card ul li{
       padding: 16px 0px ;
       border-top: 1px solid rgba(168, 167, 174, 0.2);
   
   }
   
   .course-card ul li h4{
       font-size: 20px;
       font-weight: bold;
       margin-bottom: 14px;
   }
   
   .course-card ul li svg{
       margin-left: 10px;
   }
   
   .course-card ul li span{
       color: #100F14;
       font-weight: 600;
   }


  .quiz-container h2 {
    font-size: 24px;
    color:  #000A38;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .quiz-container ul {
    list-style-type: none;
    padding: 0;
  }
  
  .quiz-container ul li {
    box-shadow: 5px 4px 30px 0px rgba(0, 0, 0, 0.08) ;
    font-size: 21px;
    margin-bottom: 20px;
    padding: 15px 30px;
  }
  
  .quiz-container ul li label {
    cursor: pointer;
  }

    .quiz-container ul li input{
        margin-left: 10px;

    }

.form-check-input:checked {
    background-color: var(--redBanner) !important;
   border-color: var(--redBanner);
}

.form-check-input:focus {
box-shadow: none;
}

  
  .quiz-container button {
    font-weight: bold;
    font-size: 16px;
    background-color: var(--blueNav);
    padding: 16px 30px;
    border-radius: 8px;
    color: white;
  }
  
  .quiz-container  button:hover {
    background-color:var(--blueNav);
    color: white;

  }
  
  .quiz-container button:focus {
    background-color: var(--blueNav);
    color: white;

}

.quiz-result{
    box-shadow: 5px 4px 30px 0px rgba(0, 0, 0, 0.08);

}


.your-review textarea{
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    padding: 20px;
}

.your-review button{
    padding: 16px 70px;
}
/* footer */

footer {
    background-color: var(--blueNav);
    background-image: url("../../assets/images/footer__bg.png");
    height: 500px;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0px;
    position: relative;
    margin-top: 50px;


}


footer .foot__pic {
    position: absolute;
    bottom: 0;
    left: 0;
}

footer .footer__content {
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: auto;
    margin-bottom: 100px;
    margin-top: 50px;
}

footer .footer__content h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

footer .footer__content ul li {
    padding: 4px 0px;
}

footer .footer__content ul li a {
    text-decoration: none;
    color: var(--whiteFooter);
}

footer .footer__content ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer .footer__content .subscribe form img {
    margin-bottom: 8px;
}

footer .footer__content .subscribe form h5 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 8px;
}

footer .footer__content .subscribe form p {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 8px;
    padding: 10px 0px;
}

footer .footer__content .subscribe form div {
    background-color: var(--white);
}

footer .footer__content .subscribe form div .btn-footer {
    padding: 17px 40px;
    background-color: var(--redBanner);
    color: var(--white);
    border: none;
}


/* ============ Course Sections (like screenshot) ============ */
.course-sections{
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Arial;
  margin: 16px 0;
}

.course-sections-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.course-sections-counts{
  font-size:14px;
  color:#2c2f36;
  opacity:.9;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.course-tabs{
  display:flex;
  gap:0;
  border:1px solid #d7dbe3;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.tab-btn{
  border:0;
  background:transparent;
  padding:8px 14px;
  font-weight:700;
  font-size:13px;
  color:#4a5568;
  cursor:pointer;
  transition:.2s ease;
}

.tab-btn + .tab-btn{
  border-right:1px solid #d7dbe3;
}

.tab-btn.is-active{
  background:#133A67;
  color:#fff;
}

.course-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Card item */
.course-item{
  background:linear-gradient(180deg, rgba(20,30,50,.06), rgba(20,30,50,.02));
  border:1px solid rgba(19,58,103,.14);
  border-radius:18px;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.item-main{
  min-width:0;
  flex:1;
}

.item-title{
  margin:0 0 8px 0;
  font-size:18px;
  font-weight:800;
  color:#1a202c;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.item-index{
  color:#0b5ed7;
  font-weight:900;
}

.item-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.item-duration{
  font-size:13px;
  color:#334155;
  opacity:.95;
}

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid transparent;
}

.pill-recorded{
  background:#e7f0ff;
  color:#0b5ed7;
  border-color:#cfe2ff;
}

.pill-live{
  background:#e9fff2;
  color:#0f7a3b;
  border-color:#bff0d2;
}

.pill-free{
  background:#0f7a3b;
  color:#fff;
  border-color:#0f7a3b;
}

/* Actions */
.item-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.btn-primary,
.btn-secondary,
.btn-live{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid transparent;
  transition:.18s ease;
  white-space:nowrap;
}

.btn-primary{
  background:#0b5ed7;
  color:#fff;
}
.btn-primary:hover{ filter:brightness(.95); }

.btn-secondary{
  background:#ffffff;
  color:#0b5ed7;
  border-color:#0b5ed7;
}
.btn-secondary:hover{ background:#f2f7ff; }

.btn-live{
  background:#0f7a3b;
  color:#fff;
}
.btn-live:hover{ filter:brightness(.95); }

/* Play button (right side circle) */
.btn-play{
  width:50px;
  height:50px;
  border-radius:14px;
  border:0;
  background:#d1d5db;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.18s ease;
}

.btn-play:hover{
  background:#bfc5cf;
}

.play-icon{
  width:0;
  height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-right:0;
  border-left:12px solid #133A67;
  transform: translateX(1px);
}

/* Responsive */
@media (max-width: 768px){
  .course-item{
    flex-direction:column;
    align-items:stretch;
  }
  .item-actions{
    justify-content:space-between;
  }
  .btn-play{
    width:52px; height:52px;
    align-self:flex-end;
  }
}


/* ===== LIVE NOW badge (red dot + pulse) ===== */
.live-now-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-inline-start:10px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#fff0f0;
  color:#b42318;
  border:1px solid #ffcccc;
  vertical-align:middle;
}

.live-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff2d2d;
  position:relative;
  box-shadow:0 0 0 0 rgba(255,45,45,.55);
  animation: livePulse 1.2s infinite;
}

@keyframes livePulse{
  0%   { box-shadow:0 0 0 0 rgba(255,45,45,.55); }
  70%  { box-shadow:0 0 0 10px rgba(255,45,45,0); }
  100% { box-shadow:0 0 0 0 rgba(255,45,45,0); }
}

/* Optional: highlight the whole card when live now */
.course-item.is-live-now{
  border-color: rgba(255,45,45,.35);
  box-shadow: 0 12px 26px rgba(255,45,45,.10);
}


/* ===== LIVE NOW (Fixed) ===== */
.course-item.is-live-now{
  border-color: rgba(255,45,45,.40);
  box-shadow: 0 12px 26px rgba(255,45,45,.12);
}

.live-now-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-inline-start:10px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#fff0f0;
  color:#b42318;
  border:1px solid #ffcccc;
  vertical-align:middle;
  white-space:nowrap;
}

.live-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff2d2d;
  box-shadow:0 0 0 0 rgba(255,45,45,.55);
  animation: livePulse 1.2s infinite;
}

@keyframes livePulse{
  0%   { box-shadow:0 0 0 0 rgba(255,45,45,.55); }
  70%  { box-shadow:0 0 0 10px rgba(255,45,45,0); }
  100% { box-shadow:0 0 0 0 rgba(255,45,45,0); }
}


/* ===== Trainer actions buttons ===== */
.trainer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}

.trainer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  border:1px solid rgba(19,58,103,.18);
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.trainer-btn:active{ transform: scale(.98); }

.trainer-btn-meet{
  background: #133A67;
  color:#fff;
}

.trainer-btn-meet:hover{
  box-shadow: 0 14px 34px rgba(19,58,103,.22);
}

.trainer-btn-download{
  background:#fff;
  color:#133A67;
}

.trainer-btn-download:hover{
  background: rgba(19,58,103,.06);
}

/* ===== Meeting modal styling ===== */
.meeting-modal .modal-title{
  font-weight:900;
}
.meeting-price{
  background: rgba(25,135,84,.08);
  border: 1px solid rgba(25,135,84,.18);
  border-radius: 12px;
  padding: 10px 12px;

}


/* ===== Student Requests ===== */
.student-requests-section{
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.req-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

.req-title{
  margin:0;
  font-weight: 900;
  font-size: 18px;
  color:#0f172a;
}
.req-sub{
  margin:6px 0 0;
  color: rgba(15,23,42,.65);
  font-size: 13px;
}

.req-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.req-btn-outline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(19,58,103,.22);
  background:#fff;
  color:#133A67;
  font-weight:900;
  cursor:pointer;
  transition: .15s ease;
}
.req-btn-outline:hover{ background: rgba(19,58,103,.06); }

.req-table-wrap{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(15, 23, 42, .08);
}

.req-table{
  display:grid;
}

.req-row{
  display:grid;
  grid-template-columns: 120px 140px 100px 140px 140px 1fr;
  gap: 10px;
  align-items:center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  font-size: 13px;
  color:#0f172a;
  background:#fff;
}

.req-row:last-child{ border-bottom:none; }

.req-row-head{
  background: rgba(2, 6, 23, .03);
  font-weight: 900;
  color: rgba(15,23,42,.75);
  font-size: 12px;
}

.req-id{ font-weight: 900; color:#133A67; }

.req-controls{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
}

.icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border:1px solid rgba(15, 23, 42, .10);
  background:#fff;
  color:#0f172a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: .15s ease;
}
.icon-btn:hover{ background: rgba(2, 6, 23, .04); }
.icon-btn.danger{ border-color: rgba(185,28,28,.22); color:#b91c1c; }

.req-join{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  background: #133A67;
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  border:1px solid rgba(19,58,103,.22);
  transition: .15s ease;
}
.req-join:hover{ opacity:.92; }

.status-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border:1px solid transparent;
}
.status-dot{
  width:8px;height:8px;border-radius:50%;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.status-pending{
  background: rgba(245, 158, 11, .10);
  color: #b45309;
  border-color: rgba(245, 158, 11, .22);
}
.status-approved{
  background: rgba(34, 197, 94, .10);
  color: #15803d;
  border-color: rgba(34, 197, 94, .22);
}
.status-rejected{
  background: rgba(239, 68, 68, .10);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, .22);
}
.status-edit{
  background: rgba(59, 130, 246, .10);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, .22);
}

/* responsive */
@media (max-width: 992px){
  .req-row{
    grid-template-columns: 110px 1fr 1fr;
    grid-auto-rows:auto;
  }
  .req-row > div:nth-child(4),
  .req-row > div:nth-child(5){
    grid-column: span 1;
  }
  .req-controls{ justify-content:flex-start; }
  .req-row-head{ display:none; }
}

/* Modal */
.req-modal .modal-title{ font-weight: 900; }
.req-reason-box{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, .22);
  background: rgba(239, 68, 68, .08);
  color: #7f1d1d;
  font-weight: 700;
}
.details-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.detail-card{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  background:#fff;
}
.detail-k{ font-size: 12px; color: rgba(15,23,42,.55); margin-bottom:4px; }
.detail-v{ font-weight: 900; color:#0f172a; }
@media (max-width: 768px){
  .details-grid{ grid-template-columns: 1fr; }
}

.course-col-divider{
  width: 16px;       /* المسافة */
  flex: 0 0 33px;    /* لو layout Flex */
}

@media (max-width: 992px){
  .course-col-divider{ display:none; }
}
