/*
Theme Name: Hello Elementor Child - Depromm
Theme URI: https://depromm.pl
Description: Child theme dla Hello Elementor z niestandardowymi szablonami kursów Tutor LMS
Author: Depromm
Author URI: https://depromm.pl
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* -------------------------------------------------------------------------- */
/*                               DEPROMM COURSES LAYOUT                       */
/* -------------------------------------------------------------------------- */

:root {
    --depromm-bg: #0B0B15;
    --depromm-text: #FFFFFF;
    --depromm-accent: #8A64F8;
    /* Purple */
    --depromm-accent-hover: #7b54e0;
    --depromm-border: #2D2D3A;
    --depromm-card-bg: #161621;
    --depromm-pill-border: #4D4D60;
}

body.post-type-archive-courses,
body.single-courses,
.depromm-courses-page {
    background-color: var(--depromm-bg) !important;
    color: var(--depromm-text);
    font-family: 'Inter', sans-serif;
    /* Assuming Inter or similar */
}

/* Main Container */
.depromm-container {
    max-width: 1400px;
    /* Wide container */
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header & Filters */
.depromm-courses-header {
    padding: 40px 0 20px;
    margin-bottom: 20px;
}

.depromm-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #8A64F8;
    /* Purple text for "Rozpocznij nowy" */
    margin-bottom: 30px;
}

.depromm-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.depromm-filters-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.depromm-filter-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.depromm-filter-label {
    font-size: 14px;
    color: #8D8D9D;
    min-width: 90px;
    font-weight: 500;
}

.depromm-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hidden checkbox/radio inputs */
.depromm-hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Pill labels */
.depromm-pill-label {
    cursor: pointer;
    display: inline-block;
}

.depromm-pill {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--depromm-pill-border);
    border-radius: 30px;
    padding: 8px 22px;
    color: #BCBCC8;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.depromm-pill:hover {
    border-color: var(--depromm-accent);
    color: #fff;
    background: rgba(138, 100, 248, 0.1);

}

/* Active state when checkbox is checked */
.depromm-hidden-input:checked+.depromm-pill {
    border-color: var(--depromm-accent);
    color: #fff;
    background: rgba(138, 100, 248, 0.2);
    box-shadow: 0 4px 12px rgba(138, 100, 248, 0.2);
}

/* Sorting group */
.depromm-sorting-group {
    text-align: left;
    padding-top: 5px;
    min-width: 150px;
}

.depromm-sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.depromm-sort-label {
    cursor: pointer;
    display: block;
    text-align: left;
}

.depromm-sort-link {
    color: #8D8D9D;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    font-weight: 500;
    padding-right: 15px;
    position: relative;
    display: inline-block;
}

.depromm-sort-label:hover .depromm-sort-link {
    color: #fff;
}

/* Active sorting state */
.depromm-hidden-input:checked+.depromm-sort-link {
    color: #fff;
    font-weight: 600;
}

.depromm-hidden-input:checked+.depromm-sort-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--depromm-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--depromm-accent);
}

.depromm-divider-line {
    height: 1px;
    background: linear-gradient(90deg, var(--depromm-border) 0%, transparent 100%);
    margin-top: 50px;
    margin-bottom: 40px;
    opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/*                               COURSE CARD                                  */
/* -------------------------------------------------------------------------- */

.depromm-course-card {
    background: transparent;
    border-radius: 0;
    margin-bottom: 40px;
    overflow: hidden;
    /* Simulate Layout from Screen 1 */
}

.depromm-card-header {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.depromm-card-header:hover {
    transform: translateY(-5px);
}

.depromm-card-header img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.depromm-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #8A64F8;
    color: #0B0B15;
    /* Dark text on purple as likely intended for contrast, or check reference */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.depromm-card-body h3.depromm-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.depromm-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.depromm-card-title a:hover {
    color: var(--depromm-accent);
}

.depromm-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.depromm-card-duration {
    color: var(--depromm-accent);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 15px;
    margin-top: 4px;
}

.depromm-card-divider {
    height: 2px;
    width: 40px;
    background: var(--depromm-accent);
    margin-bottom: 20px;
}

.depromm-card-excerpt {
    font-size: 14px;
    color: #BCBCC8;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 80px;
}

.depromm-card-excerpt span {
    color: #7B7B95;
    /* Muted purple/grey label match */
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.depromm-card-excerpt ul {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}

.depromm-card-excerpt li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: #BCBCC8;
}

.depromm-card-excerpt li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--depromm-accent);
    font-weight: bold;
}

.depromm-card-footer {
    display: flex;
    justify-content: space-between;
    /* Better alignment */
    align-items: center;
    gap: 20px;
    margin-top: auto;
    /* Push to bottom */
}

.depromm-points {
    color: var(--depromm-accent);
    font-size: 14px;
    font-weight: 600;
}

.depromm-btn-outline {
    display: inline-block;
    background: #0B0B15;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    /* 3D Effect */
    box-shadow: 4px 4px 0px #FFFFFF;
}

.depromm-btn-outline:hover {
    background: #FFFFFF;
    color: #0B0B15;
    transform: translate(2px, 2px);
    /* Press down effect */
    box-shadow: 2px 2px 0px #FFFFFF;
    /* Reduced shadow */
}

/* Course Grid Layout - 1 column (Full Width) */
.tutor-pagination-wrapper-replaceable,
.tutor-course-filter-loop-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width */
    gap: 40px;
}

@media (max-width: 991px) {

    .tutor-pagination-wrapper-replaceable,
    .tutor-course-filter-loop-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Ensure cards fill their grid cells */
.depromm-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* -------------------------------------------------------------------------- */
/*                               SINGLE COURSE                                */
/* -------------------------------------------------------------------------- */

/* Timeline Header */
.depromm-course-timeline {
    padding-top: 30px;
    margin-bottom: 40px;
}

.depromm-timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    /* Or full width */
    margin: 0 auto;
    position: relative;
}

.depromm-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.depromm-timeline-item.active {
    opacity: 1;
}

.step-num {
    color: var(--depromm-accent);
    font-weight: 700;
    font-size: 13px;
}

.step-label {
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.depromm-timeline-divider {
    height: 1px;
    background: #2D2D3A;
    margin-top: 20px;
}

/* Hero Section */
.depromm-hero-section {
    margin-bottom: 40px;
    text-align: left;
}

.depromm-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.depromm-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.depromm-lesson-tag {
    color: var(--depromm-accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.depromm-hero-pill {
    background: var(--depromm-accent);
    color: #0B0B15;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.depromm-hero-desc {
    font-size: 16px;
    color: #BCBCC8;
    line-height: 1.6;
    max-width: 800px;
}

/* Sidebar / Video area - Matching List Item 3D style or clean */
.depromm-video-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2D2D3A;
}

/* Content Grid */
.depromm-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Left Column */
.depromm-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--depromm-accent);
    margin-bottom: 10px;
}

.depromm-title-underline {
    width: 40px;
    height: 3px;
    background: var(--depromm-accent);
    margin-bottom: 30px;
}

.depromm-text-content {
    font-size: 15px;
    color: #BCBCC8;
    line-height: 1.8;
}

.depromm-read-more {
    margin-top: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
}

/* Downloads List */
.depromm-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.depromm-download-link {
    color: #BCBCC8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.depromm-download-link:hover {
    color: var(--depromm-accent);
}

/* Right Column Action Box */
/* Sticky implementation might need parent relative */
.depromm-right-col {
    position: relative;
}

.sticky-box {
    position: sticky;
    top: 40px;
}


.depromm-action-box {
    background: transparent;
    text-align: right;
    /* Align content to the right as per design */
    padding-top: 20px;
}

.depromm-action-header {
    margin-bottom: 5px;
}

.depromm-action-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.depromm-action-subtitle {
    font-size: 13px;
    color: #BCBCC8;
    margin-bottom: 20px;
    font-weight: 500;
}

.depromm-btn-wrapper .depromm-btn-outline,
.tutor-btn-ghost,
.tutor-btn-outline-primary {
    /* Style the actual Tutor completion button if we can target it, or wrapper's button */
    display: inline-block;
    background: #0B0B15;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px #FFFFFF;
    /* High contrast shadow */
}

.depromm-btn-wrapper .depromm-btn-outline:hover,
.tutor-btn-ghost:hover,
.tutor-btn-outline-primary:hover {
    background: #FFFFFF;
    color: #0B0B15;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #FFFFFF;
}

/* Ensure standard Tutor button in that area adopts this style */
.depromm-btn-wrapper .tutor-btn {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 4px 4px 0px #fff !important;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 11px;
    padding: 12px 30px !important;
}

.depromm-btn-wrapper .tutor-btn:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #fff !important;
}

.depromm-details-section {
    margin-bottom: 60px;
}

.depromm-bottom-separator {
    height: 1px;
    background: #2D2D3A;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .depromm-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -------------------------------------------------------------------------- */
/*                        HIDE TUTOR LMS LESSON SIDEBAR                       */
/* -------------------------------------------------------------------------- */

/* Hide the left sidebar containing the lesson list */
.tutor-course-content-list,
.tutor-sidebar,
.tutor-lesson-sidebar,
.tutor-course-topics-sidebar,
.tutor-course-topic-item-holder,
#tutor-lessons-list-sidebar,
.tutor-single-lesson-sidebar,
aside.tutor-sidebar {
    display: none !important;
}

/* Make the main content full width */
.tutor-single-lesson-wrap,
.tutor-lesson-main-content,
.tutor-single-lesson-content,
.tutor-lesson-content-area,
#tutor-single-lesson-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
}

/* Remove any grid/flex layout that creates sidebar space */
.tutor-single-lesson-segment,
.tutor-lesson-wrapper,
.tutor-single-lesson-inner {
    display: block !important;
    grid-template-columns: 1fr !important;
}


/* Override Tutor Pro sidebar toggle button if exists */
.tutor-lesson-sidebar-toggle,
.tutor-sidebar-toggle-btn {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/*                        NEW WHITE TOP BAR NAVIGATION                        */
/* -------------------------------------------------------------------------- */

.depromm-top-bar-white {
    background-color:#fff;
    width: 100%;
    padding: 15px 0 0 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

/* Modify timeline container when inside the white bar */
.depromm-top-bar-white .depromm-timeline-container {
    max-width: 1400px;
    /* Match main container */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align to bottom to connect with indicators */
    padding: 0 40px;
    height: 60px;
    /* Fixed height for consistency */
}

/* Timeline items in white bar - Numbers only */
.depromm-top-bar-white .depromm-timeline-item.number-item {
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center numbering */
    justify-content: flex-end;
    height: 100%;
    flex: 1;
    /* Distribute evenly */
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.depromm-top-bar-white .depromm-timeline-item.number-item:hover,
.depromm-top-bar-white .depromm-timeline-item.number-item.active {
    opacity: 1;
}

/* Font styles for numbers */
.depromm-top-bar-white .step-num {
    color: #8A64F8;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Active indicator (purple bar at bottom) */
.active-indicator {
    display: none;
}

.depromm-top-bar-white .depromm-timeline-item.active .active-indicator {
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                        PURPLE TIMELINE DOTS                                */
/* -------------------------------------------------------------------------- */

/* Dot on each number item — sits at the very bottom, overlapping onto the dark bar */
.depromm-top-bar-white .depromm-timeline-item.number-item::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #8A64F8;
    position: absolute;
    bottom: -5px;
    /* Half the dot hangs below the white bar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    transition: all 0.3s ease;
}

/* Active dot — slightly bigger with glow */
.depromm-top-bar-white .depromm-timeline-item.number-item.active::after {
    width: 12px;
    height: 12px;
    bottom: -6px;
    box-shadow: 0 0 6px rgba(138, 100, 248, 0.6);
}

/* Horizontal connecting line between dots */
.depromm-top-bar-white .depromm-timeline-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: #8A64F8;
    z-index: 15;
}

.depromm-top-bar-white .depromm-timeline-container {
    position: relative;
}

/* -------------------------------------------------------------------------- */
/*                        SECONDARY DARK TITLE BAR                            */
/* -------------------------------------------------------------------------- */

.depromm-timeline-titles-bar {
    background-color: var(--depromm-bg);
    /* Dark background */
    width: 100%;
    padding: 20px 0 40px 0;
    /* Space below white bar */
    margin-bottom: 40px;
}

.depromm-timeline-titles-bar .depromm-timeline-container {
    max-width: 1400px;
    /* Match main container */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px;
}

.depromm-timeline-item.title-item {
    flex: 1;
    text-align: center;
    padding: 0 5px;
    text-decoration: none;
    font-weight: bold;
}

.depromm-timeline-item.title-item .step-label {
    color: #8a64f8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Active title style */
.depromm-timeline-item.title-item.active .step-label {
    color: #8A64F8;
    /* Purple active text */
    font-weight: 700;
}

.active-arrow {
    font-size: 14px;
    color: #8A64F8;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* Reset original timeline divider just in case */
.depromm-top-bar-white .depromm-timeline-divider {
    display: none;
}