/* ==========================================
   ARTH TRAINING INSTITUTE
   STYLE.CSS
========================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f7fb;
    color:#222;
    line-height:1.6;
}

/* ================= HEADER ================= */

header{
    background:#000;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 35px;
}

.header-left{
    display:flex;
    flex-direction:column;
}

.header-left h1{
    font-size:26px;
    margin:0;
}

.header-left p{
    margin-top:8px;
    color:#ddd;
    font-size:16px;
}

/* Home Button */

header nav a{
    color:#fff;
    text-decoration:none;
    border:2px solid #fff;
    padding:10px 22px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

header nav a:hover{
    background:#0d6efd;
    border-color:#0d6efd;
}

/* ==========================
   COURSE GRID
========================== */

.courses{

    width:95%;
    max-width:1450px;

    margin:35px auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

/* ==========================
   CARD
========================== */

.card{

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

}

.card img{

    width:100%;

    height:180px;

    object-fit:cover;

}

.card h3{

    padding:20px 10px;

    text-align:center;

    font-size:20px;

    min-height:80px;

}

/* ==========================
   BUTTON
========================== */

.btn{

    display:block;

    width:85%;

    margin:0 auto 20px;

    background:#0d6efd;

    color:#fff;

    text-decoration:none;

    text-align:center;

    padding:14px;

    border-radius:8px;

    font-size:18px;

    transition:.3s;

}

.btn:hover{

    background:#084298;

}
/* ==========================================
   VIDEO PAGE
========================================== */

.video-container{

    width:95%;
    max-width:1500px;

    margin:30px auto;

    display:flex;

    gap:25px;

    align-items:flex-start;

}

/* ==========================
   VIDEO PLAYER
========================== */

.video-player{

    flex:3;

    background:#fff;

    padding:18px;

    border-radius:14px;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.video-player iframe{

    width:100%;

    height:600px;

    border:none;

    border-radius:10px;

}

/* ==========================
   NOW PLAYING
========================== */

.current-video{

    background:#111827;

    color:#fff;

    padding:18px;

    border-radius:10px;

    margin-bottom:20px;

}

.playing-title{

    display:flex;

    align-items:center;

    gap:12px;

}

.playing-title h2{

    font-size:24px;

    margin:0;

}

.live-dot{

    width:14px;

    height:14px;

    background:red;

    border-radius:50%;

    animation:pulse 1s infinite;

}

@keyframes pulse{

0%{
transform:scale(.8);
opacity:.5;
}

50%{
transform:scale(1.2);
opacity:1;
}

100%{
transform:scale(.8);
opacity:.5;
}

}

/* ==========================
   BUTTONS
========================== */

.video-buttons{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

}

.left-buttons,
.right-buttons{

    display:flex;

    gap:12px;

}

.btn2{

    background:#0d6efd;

    color:#fff;

    text-decoration:none;

    padding:12px 24px;

    border-radius:8px;

    transition:.3s;

    font-size:16px;

    font-weight:bold;

}

.btn2:hover{

    background:#084298;

    transform:translateY(-2px);

}

/* ==========================================
   PLAYLIST
========================================== */

.playlist{

    flex:1;

    background:#fff;

    border-radius:14px;

    overflow-y:auto;

    max-height:720px;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.playlist h2{

    position:sticky;

    top:0;

    background:#0d6efd;

    color:#fff;

    text-align:center;

    padding:16px;

    font-size:22px;

    z-index:10;

}

.playlist a{

    display:block;

    padding:15px;

    margin:10px;

    color:#222;

    text-decoration:none;

    border-radius:8px;

    transition:.3s;

    line-height:1.5;

}

.playlist a:hover{

    background:#eef4ff;

    transform:translateX(5px);

}

.playlist .active-video{

    background:#2563eb;

    color:#fff;

    font-weight:bold;

    border-left:6px solid gold;

}

/* ==========================
   SCROLLBAR
========================== */

.playlist::-webkit-scrollbar{

    width:8px;

}

.playlist::-webkit-scrollbar-track{

    background:#f1f1f1;

}

.playlist::-webkit-scrollbar-thumb{

    background:#0d6efd;

    border-radius:20px;

}

.playlist::-webkit-scrollbar-thumb:hover{

    background:#084298;

}
/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large Laptop */

@media (max-width:1400px){

.courses{

grid-template-columns:repeat(3,1fr);

}

.video-player iframe{

height:550px;

}

}

/* Laptop */

@media (max-width:1100px){

header{

flex-direction:column;

gap:20px;

text-align:center;

}

.course-header{

width:100%;

}

header nav{

width:100%;

display:flex;

justify-content:center;

}

.courses{

grid-template-columns:repeat(2,1fr);

gap:22px;

}

.video-container{

flex-direction:column;

}

.video-player{

width:100%;

}

.playlist{

width:100%;

max-height:420px;

}

.video-player iframe{

height:450px;

}

}

/* Tablet */

@media (max-width:768px){

header{

padding:20px;

}

.course-header h1{

font-size:30px;

}

.course-header p{

font-size:16px;

}

header nav{

margin-top:10px;

}

header nav a{

display:inline-block;

font-size:16px;

padding:10px 18px;

}

.courses{

grid-template-columns:1fr;

width:92%;

}

.card{

border-radius:14px;

}

.card img{

height:220px;

}

.card h3{

font-size:22px;

padding:15px;

min-height:auto;

}

.btn{

width:90%;

font-size:17px;

}

.video-container{

flex-direction:column;

}

.video-player{

width:100%;

padding:12px;

}

.video-player iframe{

height:300px;

}

.current-video{

padding:15px;

}

.playing-title h2{

font-size:18px;

}

.playlist{

width:100%;

max-height:350px;

}

.playlist h2{

font-size:20px;

}

.video-buttons{

flex-direction:column;

gap:12px;

}

.left-buttons,

.right-buttons{

width:100%;

justify-content:center;

flex-wrap:wrap;

}

.btn2{

width:100%;

text-align:center;

}

}

/* Mobile */

@media (max-width:480px){

header{
    padding:15px;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
}

.header-left{
    width:100%;
    text-align:center;
}

.header-left h1{
    font-size:24px;
    margin:0;
}

.header-left p{
    font-size:14px;
    margin-top:5px;
    color:#ddd;
}

.courses{

width:95%;

gap:18px;

}

.card img{

height:180px;

}

.card h3{

font-size:18px;

}

.btn{

font-size:16px;

padding:12px;

}

.video-player iframe{

height:220px;

}

.playlist{

max-height:300px;

}

.playlist a{

font-size:14px;

padding:12px;

}

.playlist h2{

font-size:18px;

padding:12px;

}

.btn2{

padding:10px;

font-size:15px;

}

}

/* Ultra Small Phones */

@media (max-width:360px){

.course-header h1{

font-size:20px;

}

.card img{

height:160px;

}

.video-player iframe{

height:180px;

}

}
/* ===========================
   FOOTER
=========================== */

.footer{
    background:#111;
    color:#fff;
    margin-top:60px;
    padding:40px 20px;
    text-align:center;
}

.footer-container{
    max-width:1100px;
    margin:auto;
}

.footer h3{
    font-size:28px;
    margin-bottom:15px;
    color:#ffffff;
}

.footer p{
    color:#d1d1d1;
    line-height:1.8;
    font-size:16px;
    max-width:800px;
    margin:0 auto 20px;
}

.footer-links{
    margin:25px 0;
}

.footer-links a{
    color:#ffffff;
    text-decoration:none;
    margin:0 15px;
    font-weight:600;
    transition:0.3s;
}

.footer-links a:hover{
    color:#0d6efd;
}

.copyright{
    border-top:1px solid #444;
    padding-top:20px;
    margin-top:25px;
    font-size:14px;
    color:#aaa;
}

@media(max-width:768px){

.footer h3{
    font-size:22px;
}

.footer p{
    font-size:15px;
}

.footer-links a{
    display:block;
    margin:10px 0;
}

}