/*الشاشه*/

*{
    box-sizing: border-box;
    font-family:"Cairo",sans-serif;
}

body{
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #08111F;
    color: #f1f1f1;
}
/*الشاشه اثناء الوضع الليلي*/


body.dark-mode{
    background: #242424;

    color: white;
}

body.dark-mode .card{
    background: #222;

    color: white;
}

body.dark-mode .site-title,
body.dark-mode .list a,
body.dark-mode .list_bottom a,
body.dark-mode .btn-open-list{
    color: #a8a8a8;
    
    background:#222;

    border-color:#333;
}

body.dark-mode .acc{
    color: #ffffff;
}

body.dark-mode .search_bar {
    background-color: #242424;
    box-shadow: 1px 2px 5px #333333;
}

body.dark-mode .list,
body.dark-mode .list_bottom {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(255,255,255,0.08);
}


/*كل ما في الاعله */

.header{
    position: relative;
    top: -70px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    height: 65px;
    background: rgba(16,28,49,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand{
    display: flex;
    align-items: center;
    gap: 10px;
}

            /* البحث */
.search_bar{
    outline:none;
    display:flex;
    align-items:center;
    width:min(45%, 420px);
    height:45px;
    margin:0 auto;
    padding:0 15px;
    border-radius:40px;
    background:#101C31;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
    z-index: 1000;
}

.search_bar:hover{

    border-color:#3b82f6;

}


.search_bar input{

    flex:1;

    color:white;
    
    background-color: #24242400;

    border: none;

    text-align: right;

    font-size:15px;

}
.search_bar button {
    background-color: #24242400;
    border: none;
}


                /* الشعار */


.site-title{
    font-size: 16px;

    font-weight: bold;

    color: #e4e4e4;

    letter-spacing: 2px;
}
                /*الباقه الحساب */

.acc{
    position: static;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    padding: 3px 16px;
    border-radius: 50px;
    color: rgb(255, 255, 255);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    cursor: pointer;
    transition: .3s;
}

.acc img{
        
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4f8cff;
    width: 38px;
    border-radius: 70px;
}

.btn-open-list{
    display: none;
    font-size: 20px;
    color:#e9e9e9;
    background: transparent;
    border: none;
    cursor: pointer;
}
/* بطاقه الترحيب */
.welcome{

    margin-left:20%;

    margin-right:5%;

    margin-top:35px;

    padding:35px;

    border-radius:20px;

    background:

    linear-gradient(135deg,#2564eba9,#1d4fd88f);

    color:white;

    z-index: 1000;

    align-items: center;
}

/* القائمة الجانبية */
.list,
.list_bottom{
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    position: fixed;
    width: 150px;
    z-index: 1000;
    background: rgba(8, 17, 31, 0.92);
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.list{
    top: 70px;
    left: 5px;
}

.list_bottom{
    align-items: center;
    bottom: 10px;
    left: 5px;
}

.list a,
.list_bottom a{
    font-weight: 550;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e7e7e7;
    font-size: 12px;
    width: 136px;
    height: 34px;
    border-radius: 8px;
    transition: .3s;
}

.list a:hover,
.list_bottom a:hover{
    background: rgba(0, 123, 255, 0.18);
    color: #8ec5ff;
    transform: translateX(-2px);
}





/* عناوين الأقسام */
.py-logo,
.js-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing:2px;
    margin-left: 220px;
    margin-top: 40px;
}

.py-logo img,
.js-logo img{
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

/* شبكة الكورسات */
.first_videos{
    margin-left: 220px;
    margin-right: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 20px;
    
}

.one_videos{
    background-color: #101C31;
    border: 1px solid #dddddd00;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    
    transition:.35s;
}


.one_videos:hover{

    transform:translateY(-8px);

    box-shadow:

    0 20px 45px rgba(37,99,235,.35);

}
.one_videos img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.one_videos h3{
    font-size: 16px;
}

.one_videos p{
    font-size: 13px;
}

.btn{

    display:inline-block;

    width:80%;

    margin-top:20px;

    border-radius:12px;
    
    text-decoration: none;

    padding:10px;

    color: #ddd;

    background:linear-gradient(90deg,#2563eb,#3b82f6);

    transition:.3s;

}

.btn:hover{

    transform:scale(1.05);

}

.one_videos .btn:hover{
    background: #0056b3;
}







/* كورس الباشمهندس كريم جيره*/
.start_vid iframe{
    
	
    z-index: 1000;
 } 
.video-container{ 
 
    max-width: 500px; /* أكبر حجم */ 
    min-width: 10px;
    aspect-ratio: 16 / 9; 
    /* نسبة الفيديو */ 

  
    margin-bottom: 5%;
} 
.video-container iframe{ 
    width: 100%; 
    height: 100%; 
  
}
.start_vid h2{
	margin-left: 18%;
	margin-top: 8%; 
}
.start_vid p{
	margin-left: 18%; 
	margin-top: 10px;
	font-size: 14px; 
} 
.All_videos_py{ 
	z-index: 1000;
	border-radius: 10px; 

	margin-left:5%; 
	border: 1px solid #d4d4d4; 
	width: 91%; 
	height: auto; 

} 

.All_videos_py button{ 
    border: none;
    border: 1px solid #d4d4d4;
    display: flex;
	border-radius: 10px;
	width: 100%; 
	background-color: transparent; 
} 
.All_videos_py button img{ 
  margin-left: -5px;

} 
.one_video{ 
	height: 60px; 
	border-radius: 10px;
	margin: 10px;
	gap: 10px; 
} 
.one_video img{
	border-top-left-radius: 10px; 
	border-bottom-left-radius: 10px; 
	width: 100px;
	height: 60px;
 } 
.one_video h3{ 
	font-size: 17px; 
	margin-left: 10%; 
	
} 
body.dark-mode .one_video h3{
    color: #f1f1f1;
}
.done{
	margin-left: 18%;
	margin-top: 10px;
	font-size: 14px; 
}

@media (max-width: 900px) {
    .btn-open-list {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header {
        top:-20px;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .search_bar {
        width: 100%;
        order: 3;
        margin: 0;
    }

    .acc {
        margin-right: auto;
    }

    .welcome,
    .py-logo,
    .js-logo,
    .first_videos {
        margin-left: 15px;
        margin-right: 15px;
    }

    .list,
    .list_bottom {
        display: none;
        width: min(200px, calc(100% - 20px));
        left: 10px;
        right: 10px;
    }

    .list.show,
    .list_bottom.show {
        display: block;
    }

    .list {
        top: 130px;
    }

    .list_bottom {
        bottom: 5px;
    }
}

@media (max-width: 600px) {
    .acc {
        padding: 1px 6px;
    }

    .acc h3 {
        display: none;
    }

    .welcome {
        padding: 20px;
    }

    .py-logo,
    .js-logo {
        margin-left: 15px;
        margin-right: 15px;
    }

    .first_videos {
        margin-left: 15px;
        margin-right: 15px;
        grid-template-columns: 1fr;
    }

    .start_vid h2,
    .start_vid p,
    .done {
        margin-left: 10px;
        margin-right: 10px;
    }

    .video-container {
        width: 100%;
        max-width: 100%;
        margin: auto;
    }

    .All_videos_py {
        width: 95%;
        margin: 20px auto;
    }

    .one_video h3 {
        font-size: 14px;
        margin-left: 10px;
    }

    .one_video img {
        width: 90px;
        height: 55px;
    }
}

