/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/
.class_AbsFlexCenter {
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;

    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    
    color: LightSteelBlue;
    font-size: 150px;         
}
.class_RelInline {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 50%;                           
}
.class_RelImage {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    background-size: contain;
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
.class_TheAbs {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_TheRel {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;  
    width: 100%;  
}
.class_RelFlex {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;                          
}
.class_RelButton {
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 0;
    left: 0;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}

.class_FixedTopLeft {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    left: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}
.class_FixedTopRight {
    box-sizing: border-box;
    position: absolute;
    display: block;
    float: left;
    cursor: pointer;
    overflow: hidden;
    background: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0;
    user-select: none;  
    top: 15px;
    right: 15px;
    margin: 0;
    padding: 5px;
    height: 40px;
    width: 40px;
}


/*********************************** IELTS-LISTENING *****************************************/
/*********************************** IELTS-LISTENING *****************************************/
.class_TheAbs.ContExamModule {
    padding: 15px;
    background: #444;
}
.class_TheRel.WrapExamModule {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background-color: #DCD9D4;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%), radial-gradient(at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.50) 50%);
    background-blend-mode: soft-light,screen;
}
.class_TheRel.ListenSecHeader {
    width: 100%;
    height: 110px; 
    font-size: 14px; 
}
.class_RelFlex.ListenWrapTabs {
    width: 100%;
    height: 48px;
    gap: 8px;
    padding: 0 20px;                              
}
.class_RelFlex.TopBadge {
    width: 120px;
    height: 100%;

    background: black;
    border-top-left-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}
.class_RelFlex.HeaderTop {
    justify-content: flex-start;
    padding-left: 20px;
    width: calc(100% - 120px);
    height: 100%;
    
    background: transparent;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}
.class_RelFlex.ListenWrapAudio {
    width: 100%;
    height: 60px;                           
    padding: 15px 20px;
    background: transparent;                                     
}
.class_RelFlex.ListenSecBody {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    width: 100%;
    height: calc(100% - 110px);       
    padding: 15px;

    font-size: 24px;
    font-weight: 500;
    text-align: left;
    color: black;
}
/* === RESIZE HANDLE === */
.class_ResizeHandle {
    width: 8px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}
.class_ResizeHandle:hover {
    background: rgba(148, 163, 184, 0.15);
}
.class_ResizeGrip {
    width: 4px;
    height: 80px;
    background: black;
    border-radius: 9999px;
    transition: all 0.2s ease;
}


/*************************** AUDIO PLAYER FIX *******************************/
/*************************** AUDIO PLAYER FIX *******************************/
#id_ListenAudioPlayer {
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
/* Main Timeline Container */
#id_ListenAudioPlayer::-webkit-media-controls-timeline {
    background: transparent !important;
}
/* Blue Gradient Background */
#id_ListenAudioPlayer::-webkit-media-controls-enclosure,
#id_ListenAudioPlayer::-webkit-media-controls-panel {
    background: linear-gradient(90deg,
        #E3F2FD 0%,
        #BBDEFB 35%,
        #90CAF9 65%,
        #64B5F6 100%) !important;
    border-radius: 8px !important;
}
/* Progress bar styling */
#id_ListenAudioPlayer::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.35) !important;
}
/* Text & icons visibility */
#id_ListenAudioPlayer::-webkit-media-controls-current-time-display,
#id_ListenAudioPlayer::-webkit-media-controls-time-remaining-display {
    color: #0D47A1 !important; /* Deep blue for good contrast */
    font-weight: 600;
}
/* ========== NORMAL (Unselected) ========== */
.class_RelFlex.class_ListenTabBtn {
    font-family: var(--fontFamilyRoboto);
    width: 85px;
    height: 35px;
    margin-right: 10px;
    background: #E3F2FD; /* Light sky blue */
    color: #1565C0; /* Medium-dark blue text */
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}
/* ========== HOVER ========== */
.class_RelFlex.class_ListenTabBtn:hover {
    background: #BBDEFB; /* Lighter blue */
    color: #0D47A1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}
/* ========== ACTIVE ========== */
.class_RelFlex.class_ListenTabBtn.active {
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 11, 0.35);
    border: 1px solid #E3F2FD;
    color: #FFFFFF; /* White text */
    background: linear-gradient(90deg,
        #1976D2 0%,
        #1565C0 35%,
        #0D47A1 100%);
}
.class_RelFlex.AudioTimeDisplay {
    font-family: var(--fontFamilyRobotoMono);   
    width: 260px;
    height: 100%;
    margin-right: 32px;
    font-size: 28px;
    font-weight: 600;
    color: navy;
    text-align: center;
    white-space: nowrap;
            
    letter-spacing: 0.5px; /* Optional: makes numbers cleaner */
}
/*************************** AUDIO PLAYER FIX *******************************/
/*************************** AUDIO PLAYER FIX *******************************/



.class_TheRel.ListenSecQuestions, .class_TheRel.ListenSecScript { 
    width: 58%;
    height: 100%;                  
    
    border-radius: 16px;
    
    background: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 32px rgba(148, 163, 184, 0.15); 
}
.class_TheRel.ListenSecScript {
    width: calc(42% - 10px);
    height: 100%;   
    margin-left: 10px;                                                  
}
.class_TheRel.ListenTopQuestions, .class_TheRel.ListenTopScript {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    width: 100%;
    height: 50px;      
    background: rgba(0,0,0,0.1);
}
.class_TheRel.ListenWrapQuestions, .class_TheRel.ListenWrapScript {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    width: 100%;
    height: calc(100% - 60px);
    overflow: auto;                                   
}
.class_TheRel.BlockQuestion {
    width: auto;
    min-width: 100%;
    height: auto;                                
    border: 10px solid transparent;                           
}
/*********************************** IELTS-LISTENING *****************************************/
/*********************************** IELTS-LISTENING *****************************************/



/* Improve script readability */
.class_TheRel.script-content {
    font-size: 15.5px;
    color: #1e2937;
}
/* === IELTS LISTENING SCRIPT - PROFESSIONAL STYLING === */
/* ==================== SCRIPT CONTENT BASE ==================== */
.class_TheRel.script-content,
.script-content {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    color: #1e2937;
    font-weight: 400;
    
    /* Critical for highlighting */
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Speaker turns */
.script-content > div {
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: text !important;
}

/* Hover effect - keep but make it lighter */
.script-content > div:hover {
    background-color: #f8fafc;
}

/* Speaker name */
.script-content strong {
    font-weight: 600;
    color: #334155;
    margin-right: 8px;
    display: inline-block;
    min-width: 70px;
}

/* ==================== HIGHLIGHTING ==================== */

/* Live selection (while dragging) */
.script-content ::selection,
.script-content ::-moz-selection {
    background: #fff700 !important;
    color: #000 !important;
    text-shadow: none;
}

/* Persistent highlight - Single Turn Mode */
.script-content mark {
    background: #fff700 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    line-height: 1.75 !important;
    display: inline !important;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 247, 0, 0.5);
}

/* Ensure marks work well inside speaker turns */
.script-content > div mark,
.script-content mark * {
    display: inline !important;
    user-select: text !important;
}

/* Extra safety for any remaining spans (if needed) */
.script-content span[style*="background-color"] {
    background: #fff700 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}






