/* =====================================================
   PG ACADEMY – GLOBAL LESSON UI
===================================================== */

.wg-lesson-view {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* =====================================================
   DESKTOP COURSE LAYOUT
===================================================== */

.wg-course-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wg-course-sidebar {
    width: 30%;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}

.wg-course-content {
    width: 70%;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

.wg-lesson-view h1,
.wg-lesson-view h2,
.wg-lesson-view h3,
.wg-lesson-view h4,
.wg-lesson-view h5,
.wg-lesson-view h6 {
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.wg-lesson-view h1 {
    font-size: 36px;
}

.wg-lesson-view h2 {
    font-size: 30px;
}

.wg-lesson-view h3 {
    font-size: 26px;
}

.wg-lesson-view h4 {
    font-size: 22px;
}

.wg-lesson-view p {
    font-size: 17px;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 18px;
}

.wg-lesson-view ul,
.wg-lesson-view ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.wg-lesson-view li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* =====================================================
   LESSON BLOCKS
===================================================== */

.wg-lesson-blocks {
    margin-top: 40px;
}

.wg-block {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 22px;
    margin-bottom: 28px;
    border-radius: 10px;
}

.wg-block-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

/* =====================================================
   IMAGES
===================================================== */

.wg-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid #dbe4ee;
}

/* =====================================================
   VIDEO
===================================================== */

.wg-block iframe {
    width: 100%;
    min-height: 450px;
    border-radius: 12px;
    border: none;
}

/* =====================================================
   SUPPORTING MATERIAL
===================================================== */

.wg-lesson-supporting-content {
    margin-top: 50px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #dbe4ee;
}

/* =====================================================
   QUIZ AREA
===================================================== */

#wg-quiz-container {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
}

#wg-quiz-container h3,
#wg-quiz-container h4 {
    margin-bottom: 20px;
}

#wg-quiz-container label {
    display: block;
    margin-bottom: 14px;
    line-height: 1.7;
}

/* =====================================================
   COMPLETION
===================================================== */

.wg-lesson-completed {
    margin-top: 30px;
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
}

/* =====================================================
   LESSON SIDEBAR HOVER
===================================================== */

.wg-academy-course-view aside ol li a,
.wg-academy-course-view aside ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.wg-academy-course-view aside ol li a:hover,
.wg-academy-course-view aside ul li a:hover {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    padding-left: 16px;
}

/* =====================================================
   TOP MENU HOVER EFFECTS
===================================================== */

header nav a,
.site-header a,
.main-navigation a {
    position: relative;
    transition: all 0.25s ease;
}

header nav a:hover,
.site-header a:hover,
.main-navigation a:hover {
    color: #0d6efd;
}

header nav a::after,
.site-header a::after,
.main-navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: width 0.25s ease;
}

header nav a:hover::after,
.site-header a:hover::after,
.main-navigation a:hover::after {
    width: 100%;
}

/* =====================================================
   STUDENT LOGIN BUTTON HOVER
===================================================== */

header .button:hover,
header .btn:hover,
a[href*="login"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =====================================================
   MOBILE STYLES
===================================================== */

@media screen and (max-width: 768px) {

    /* HERO */

    h1 {
        font-size: 42px;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero h1,
    .banner h1,
    .elementor-heading-title {
        font-size: 42px;
        line-height: 1.1;
        word-break: break-word;
    }

    .hero p,
    .banner p,
    .elementor-widget-text-editor {
        font-size: 18px;
        line-height: 1.6;
    }

    .hero,
    .banner {
        padding: 80px 20px;
    }

    /* MOBILE MENU */

    .mobile-menu a,
    .menu a,
    .offcanvas a {
        padding: 12px 0;
        font-size: 20px;
    }

    /* MOBILE COURSE LAYOUT */

    .wg-course-layout {
        flex-direction: column;
        gap: 20px;
    }

    .wg-course-sidebar,
    .wg-course-content {
        width: 100%;
        max-width: 100%;
    }

    .wg-course-sidebar {
        padding: 20px;
        border-radius: 18px;
    }

    .wg-course-content {
        padding: 20px;
        border-radius: 18px;
    }

    /* LESSON LIST */

    .wg-academy-course-view aside ol {
        padding-left: 20px;
    }

    .wg-academy-course-view aside ol li {
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.6;
    }

    .wg-academy-course-view aside ol li a {
        display: block;
        word-break: break-word;
    }

    /* TYPOGRAPHY */

    .wg-academy-course-view h1,
    .wg-lesson-view h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .wg-academy-course-view h2,
    .wg-lesson-view h2 {
        font-size: 26px;
    }

    .wg-academy-course-view h3,
    .wg-lesson-view h3 {
        font-size: 22px;
    }

    .wg-academy-course-view p,
    .wg-academy-course-view li,
    .wg-lesson-view p,
    .wg-lesson-view li {
        font-size: 17px;
        line-height: 1.7;
    }

    /* IMAGES */

    .wg-academy-course-view img,
    .wg-lesson-view img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* VIDEOS */

    iframe,
    .wg-block iframe {
        width: 100%;
        min-height: 220px;
        height: 220px;
        border-radius: 12px;
    }

    /* BUTTONS */

    .wg-academy-course-view button,
    .wg-academy-course-view .button,
    .wg-academy-course-view a.button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 18px;
        border-radius: 12px;
    }

    /* LESSON VIEW */

    .wg-lesson-view {
        padding: 20px;
    }

    .wg-block {
        padding: 18px;
    }
}
/* =====================================================
   FINAL MOBILE HERO FIX
===================================================== */

@media screen and (max-width: 768px) {

    .hero h1,
    .banner h1,
    .elementor-heading-title {

        font-size: 52px !important;
        line-height: 1.05 !important;
        letter-spacing: -2px;
        max-width: 100%;
        display: block;
    }

    /* Prevent duplicate/stacked heading rendering */

    .elementor-heading-title br {
        display: none;
    }

    .hero,
    .banner,
    .elementor-section {

        overflow: hidden;
    }

    /* Better spacing below hero title */

    .hero p,
    .banner p,
    .elementor-widget-text-editor {

        margin-top: 18px;
    }
}

/* =====================================================
   LESSON SIDEBAR VISUAL IMPROVEMENT
===================================================== */

.wg-course-sidebar {

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Lesson items */

.wg-course-sidebar ol li {

    padding: 6px 0;
}

/* Hover lift */

.wg-course-sidebar a:hover {

    transform: translateX(4px);
}

/* Main content card stronger */

.wg-course-content {

    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
}
/* =====================================================
   FINAL MOBILE HERO FIX
===================================================== */

@media screen and (max-width: 768px) {

    .hero h1,
    .banner h1,
    .elementor-heading-title {

        font-size: 52px !important;
        line-height: 1.05 !important;
        letter-spacing: -2px;
        max-width: 100%;
        display: block;
    }

    /* Prevent duplicate/stacked heading rendering */

    .elementor-heading-title br {
        display: none;
    }

    .hero,
    .banner,
    .elementor-section {

        overflow: hidden;
    }

    /* Better spacing below hero title */

    .hero p,
    .banner p,
    .elementor-widget-text-editor {

        margin-top: 18px;
    }
}

/* =====================================================
   LESSON SIDEBAR VISUAL IMPROVEMENT
===================================================== */

.wg-course-sidebar {

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Lesson items */

.wg-course-sidebar ol li {

    padding: 6px 0;
}

/* Hover lift */

.wg-course-sidebar a:hover {

    transform: translateX(4px);
}

/* Main content card stronger */

.wg-course-content {

    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
}

/* =========================================
   MOBILE ONLY STUDENT LOGIN MENU
========================================= */

/* Hide text menu item on desktop */
.menu-item-student-mobile {
    display: none !important;
}

/* Show it on mobile only */
@media screen and (max-width: 768px) {

    .menu-item-student-mobile {
        display: block !important;
    }

}