* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

:root {
    /* Colours */
    --white-color: #fff;
    --lightWhite-color: #f8fafc;
    --powBlue-color: #0b8bd6;;
    --skBlue-color: #38b6ff;
    --lightBlue2Grey-color: #718096;
    --blue-color: #0d47a1;
    --darkBlue-color: #062644;
    --liGrey-color: #ededed;
    --liGrey2-color: #b4b4b4;
    --black-color: #000000;
    --midGrey-color: #ffffff94;
    --liMidGrey-color: #e2e2e2;
    --liPink-color: #ffe8ec;
    --medGrey2-color: #ccc;
    --dark-grey: #333;
    --light-grey: #f5f5f5;
    --border-color: #e0e0e0;
    --primary-color: #38b6ff;
    --secondary-color:  #1da1f2;
    --text-color: #333;
    --text-light: #666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* nav bar section handle from /home.css*/
/* ------ */

/* Main Content  */
.main-container {
    max-width: 80%;
    margin: 25px auto;
    padding: 0 18px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 18px;
}

.video-card {
    flex: 2;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
    
    .video-container {
        position: relative;
        background: #000;
        
        video {
            width: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
            cursor: pointer;
            aspect-ratio: 16/9;
        }
        
        .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        transition: opacity 0.3s ease;
        
        .play-button {
            background: #38b6ffc9;
            backdrop-filter: blur(4px);
            border: none;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            
            svg {
            color: white;
            margin-left: 3px;
            }
            
            &:hover {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.3);
            }
        }
        }
        
        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            padding: 10px 14px;
            opacity: 0;
            transition: opacity 0.3s ease;
            
            .progress-container {
                height: 3px;
                background: rgba(255, 255, 255, 0.2);
                border-radius: 2px;
                margin-bottom: 10px;
                position: relative;
                cursor: pointer;
                
                .progress-bar {
                height: 100%;
                width: 0%;
                background: #3a86ff;
                border-radius: 2px;
                position: relative;
                
                &::after {
                    content: '';
                    position: absolute;
                    right: -3px;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 7px;
                    height: 7px;
                    background: white;
                    border-radius: 50%;
                    opacity: 0;
                    transition: opacity 0.2s ease;
                }
            }
            
            .hover-time {
            position: absolute;
            top: -20px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 11px;
            opacity: 0;
            pointer-events: none;
            transform: translateX(-50%);
            }
            
            &:hover {
            .progress-bar::after {
                opacity: 1;
            }
            
            .hover-time {
                opacity: 1;
            }
            }
        }
        
        .controls-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
            .left-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            
            .control-btn {
                background: transparent;
                border: none;
                color: white;
                cursor: pointer;
                padding: 3px;
                border-radius: 3px;
                display: flex;
                align-items: center;
                justify-content: center;
                
                &:hover {
                background: rgba(255, 255, 255, 0.1);
                }
                
                svg {
                display: block;
                }
            }
            
            .volume-control {
                display: flex;
                align-items: center;
                gap: 3px;
                
                .volume-slider {
                width: 0;
                opacity: 0;
                transition: all 0.2s ease;
                }
                
                &:hover .volume-slider {
                width: 55px;
                opacity: 1;
                }
            }
            
            .time-display {
                color: rgba(255, 255, 255, 0.8);
                font-size: 12px;
                font-family: monospace;
            }
            }
            
            .right-controls {
            .control-btn {
                background: transparent;
                border: none;
                color: white;
                cursor: pointer;
                padding: 3px;
                border-radius: 3px;
                
                &:hover {
                background: rgba(255, 255, 255, 0.1);
                }
            }
            }
        }
        }
        
        &:hover .video-controls {
        opacity: 1;
        }
        
        &.playing {
        .video-overlay {
            opacity: 0;
            pointer-events: none;
        }
        }
    }
    
    .video-info {
        padding: 18px;
        
        .video-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 0 10px 0;
        color: #222;
        }
        
        .video-meta {
        display: flex;
        gap: 14px;
        margin-bottom: 14px;
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 3px;
            font-size: 12px;
            color: #666;
            
            svg {
            opacity: 0.7;
            }
        }
        }
        
        .video-description {
        color: #444;
        line-height: 1.5;
        margin-bottom: 14px;
        font-size: 13px;
        }
        
        .video-actions {
        display: flex;
        gap: 10px;
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            background: #f5f5f5;
            border: none;
            padding: 7px 12px;
            border-radius: 18px;
            color: #333;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            
            &:hover {
            background: #e0e0e0;
            }
            
            svg {
            opacity: 0.8;
            }
        }
        }
    }
}

.btn {
    padding: 7px 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--light-grey);
    color: var(--text-color);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn:hover {
    background-color: var(--liGrey2-color);
}

/* Sidebar Styles */
.sidebar {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: var(--white-color);
    border-radius: 7px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.sidebar-section h3 {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

a.video-item {
    text-decoration: none;
    color: inherit;
    display: block;}

a.video-item:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

.video-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.thumbnail img {
    width: 75px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}

.video-info {
    flex: 1;
}

.video-info h4 {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 2px;
    line-height: 1.2;
}

.duration, .description {
    font-size: 0.8em;
    color: var(--text-light);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

.price {
    font-size: 0.85em;
    color: var(--dark-grey);
    font-weight: 500;
}

.price span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Recommended Training Styles */
.training-item {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.training-item .thumbnail img {
    width: 110px;
    height: 82px;
    object-fit: cover;
    border-radius: 4px;
}

.training-info {
    flex: 1;
}

.training-info h4 {
    font-size: 1.05em;
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 2px;
}

.training-info .duration,
.training-info .description {
    font-size: 0.85em;
    margin-bottom: 3px;
}

.btn {
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-section {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav_block {
        display: none;
        width: 100%;
        margin-top: 12px;
    }
    
    .nav_block.active {
        display: block;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links ul li {
        margin: 7px 0;
    }
    
    .video-title {
        font-size: 1.2em;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .sidebar-section {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .video-item, .training-item {
        flex-direction: column;
    }
    
    .thumbnail img {
        width: 95px;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Upcoming Live Sessions & Webinars CSS */
.webinars-section {
    width: 80%;
    max-width: 80%;
    margin: 70px auto;
    padding: 45px 35px;
    background-color: var(--lightWhite-color);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 45px;
    text-align: center;
}

.webinars-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.webinars-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--skBlue-color);
    bottom: -4px;
    left: 20%;
    border-radius: 2px;
}

.webinars-subtitle {
    font-size: 1rem;
    color: var(--lightBlue2Grey-color);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.webinars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
}

.webinar-card {
    background-color: var(--white-color);
    border-radius: 10px;
    width: 340px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.webinar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 20px rgba(33, 150, 243, 0.15);
}

.webinar-card.featured {
    border: 2px solid #2196F3;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    background-color: var(--skBlue-color);
    color: var(--white-color);
    padding: 3px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

.card-header {
    padding: 22px 22px 12px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.icon-container {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon {
    font-size: 22px;
    color: var(--skBlue-color);
}

.icon.dark {
    color: var(--secondary-color);
}

.date-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background-color: var(--lightWhite-color);
    border-radius: 7px;
    padding: 7px;
    text-align: center;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}

.date-day {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lightBlue2Grey-color);
    text-transform: uppercase;
}

.recurring-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background-color: var(--lightWhite-color);
    border-radius: 7px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 18px 22px 22px;
}

.webinar-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lightBlue2Grey-color);
    margin-bottom: 10px;
}

.webinar-description {
    font-size: 0.9rem;
    color: var(--lightBlue2Grey-color);
    line-height: 1.6;
    margin-bottom: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.webinar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--lightBlue2Grey-color);
}

.meta-item i {
    color: var(--skBlue-color);
    font-size: 0.85rem;
}

.webinar-button {
    width: 100%;
    background-color: var(--skBlue-color);
    color: var(--white-color);
    border: none;
    padding: 11px;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.webinar-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.webinar-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.webinar-button i {
    transition: transform 0.3s ease;
}

.webinar-button:hover i {
    transform: translateX(2px);
}

.view-all-container {
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--secondary-color);
    gap: 8px;
}

.view-all-link i {
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .webinars-section {
        width: 100%;
        max-width: 100%;
        padding: 35px 18px;
    }
    
    .webinars-title {
        font-size: 1.8rem;
    }
    
    .webinar-card {
        width: 100%;
    }
}


/* Cheatsheet CSS */
.cheatsheet-section {
    display: flex;
    justify-content: center;
    padding: 50px 18px;
    background-color: var(--lightWhite-color);
}

.cheatsheet-container {
    width: 80%;
    max-width: 750px;
    padding: 35px;
    border-radius: 14px;
    background-color: var(--white-color);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cheatsheet-header {
    margin-bottom: 25px;
}

.title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lock-icon {
    width: 22px;
    height: 22px;
    color: var(--skBlue-color);
}

.subtitle {
    font-size: 1rem;
    color: var(--lightBlue2Grey-color);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.cheatsheet-preview {
    width: 100%;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--white-color);
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.preview-header {
    background: var(--lightWhite-color);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.file-name {
    font-size: 0.75rem;
    color: var(--lightBlue2Grey-color);
    font-family: monospace;
}

.preview-content {
    position: relative;
    height: calc(100% - 35px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blurred-content {
    width: 80%;
}

.blurred-line {
    height: 11px;
    background: var(--lightWhite-color);
    margin: 10px 0;
    border-radius: 3px;
}

.blurred-line.long {
    width: 100%;
}

.blurred-line.medium {
    width: 70%;
}

.blurred-line.short {
    width: 40%;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(29, 161, 242, 0.15);
}

.watermark svg {
    width: 55px;
    height: 55px;
    margin-bottom: 8px;
}

.watermark span {
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unlock-btn {
    background-color: var(--skBlue-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(29, 161, 242, 0.2);
}

.unlock-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(29, 161, 242, 0.3);
}

.unlock-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.unlock-btn:hover svg {
    transform: translateX(2px);
}

.note {
    font-size: 0.85rem;
    color: var(--lightBlue2Grey-color);
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.note svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    .cheatsheet-container {
        width: auto;
        max-width: none;
        padding: 25px 18px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .cheatsheet-preview {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .cheatsheet-section {
        padding: 35px 12px;
    }
    
    .cheatsheet-container {
        width: 95%;
        padding: 22px 12px;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .unlock-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Footer Section */
/* applied form global CSS - footer.css */