/*********************************** 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;
}
/*********************************** BASE-STYLE *****************************************/
/*********************************** BASE-STYLE *****************************************/



/************************************ SelectIELTS - LIGHT THEME **************************************/
/* Background Overlay */
.class_AbsFlexCenter.ContSelectExam {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, #f8fafc, #e0e7ff 70%);
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modalPop {
    0% {
        transform: scale(0.6) translateY(40px);
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.class_AbsFlexCenter.ContSelectExam {
    animation: backdropFade 0.4s ease forwards;
}
@keyframes backdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Background Overlay */

/* Main Card - Glassmorphic Light */
.class_TheRel.WrapSelectExam {
    width: 590px;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 20px;
    border-radius: 28px;
    
    background: rgba(255, 255, 255, 0.12);
    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);
    
    /* Responsive adjustments */
    display: flex;
    flex-direction: column;
}
/* Make it smaller on low-height screens */
@media (max-height: 620px) {
    .class_TheRel.WrapSelectExam {
        height: 92vh;
        padding: 12px;
        border-radius: 20px;
    }
   
    .class_RelFlex.SpanExamHeader {
        font-size: 32px;
        padding-bottom: 12px;
    }
   
    .IELTS-Tabs {
        padding: 3px;
    }
   
    .class_RelFlex.IELTS-Tab {
        padding: 8px 18px;
        font-size: 15px;
    }
}

/* Even tighter on very small screens */
@media (max-height: 520px), (max-width: 700px) {
    .class_TheRel.WrapSelectExam {
        width: 96vw;
        height: 94vh;
        padding: 10px;
    }
   
    .class_RelFlex.NumberExam {
        width: 148px;
        height: 48px;
        margin: 8px;
        font-size: 13.5px;
        color: white;
    }
}
/* ====================== HEADER ====================== */
.class_RelFlex.SelectExamHeader {
    width: 100%;
    height: 110px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    position: relative;
}

/* ====================== MAIN TITLE ====================== */
.class_RelFlex.SpanExamHeader {
    width: 100%;
    height: auto;
    text-align: center;
    color: #1e2937;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 32px;                    /* Increased size */
    font-weight: 700;
    letter-spacing: -0.5px;             /* Better modern spacing */
    line-height: 1.1;
    padding-bottom: 18px;
    position: relative;
}

/* Optional: Add subtle gradient for premium feel */
.class_RelFlex.SpanExamHeader {
    background: linear-gradient(90deg, #1e2937 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Accent line under title */
.class_RelFlex.SpanExamHeader::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 3px;
    background: transparent;
    border-radius: 3px;
}

/* ====================== TABS (Slightly refined) ====================== */
.IELTS-Tabs {
    display: flex;
    gap: 3px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.class_RelFlex.IELTS-Tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.class_RelFlex.IELTS-Tab.active {
    background: #6b46c1;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}




/* Body */
/* Body */
.class_TheRel.SelectExamBody {
    width: 100%;
    height: calc(100% - 110px);
    overflow: auto;
}

/* Improved Number Body */
.class_RelFlex.SelectNumberBody {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    align-content: flex-start;
    
    overflow: auto;
}

/* Test Buttons */
.class_RelFlex.NumberExam {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    flex: 0 0 108px;
    height: 42px;
    margin: 0;
    border-radius: 9999px;
    font-size: 14px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.class_RelFlex.NumberExam:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.15);
}


/************************************ IELTS **************************************/
.class_TheAbs.ContExam {
    padding: 15px;
    background: #444;
}
.class_TheRel.WrapExam {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #f8fafc;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    background: linear-gradient(to bottom, #e2e8f0, #cbd5f5);
    background: linear-gradient(to bottom, #e8edf4, #d6defa);
    background: linear-gradient(to bottom, #edf2f7, #dde6fb);

    
}
.class_TheRel.ExamSecHeader {
    width: 100%;
    height: 50px;                             
}
.class_RelFlex.ExamHeader1, .class_RelFlex.ExamHeader2 {
    width: 100%;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: #333;
    line-height: 1.6;
}
.class_RelFlex.ExamHeader1 {
    height: 60%;
    font-size: 16px;
    font-weight: 700;
}
.class_RelFlex.ExamHeader2 {
    height: 40%;
    font-size: 14px;
}
.class_RelFlex.ExamHeaderTube {
    width: 100%;
    height: 60px;
}
.class_TheRel.ExamBody {
    padding: 15px;
    width: 100%;
    height: calc(100% - 110px);
    overflow: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #333;
    line-height: 1.6;     
}
.class_TheRel.ExamPassage {
    width: 100%;
    height: auto;
    border-bottom: 2px groove white;
}
/* ==================== EXTERNALIZED PASSAGE CONTENT STYLES ==================== */
.class_TheRel.passage-body {
    width: 100%;
    height: auto;
    
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
.class_TheRel.passage-content {
    width: 100%;
    height: auto;
    font-family: Arial, sans-serif;
    line-height: 1.75;
    font-size: 18px;
    text-align: left;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 18px;
    box-shadow: 4px 8px 10px rgba(0,0,0,0.1);
    background: white;
    transition: font-size 0.3s ease;       
    
    background: #ffffff;
    border: 1px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Make headings inside passages consistent */
.class_TheRel.passage-content h1 {
    line-height: 1;
    font-size: 1.4rem;
    color: #1e3a8a;
}

.class_TheRel.passage-content h2 {
    line-height: 1;
    font-size: 1.25rem;
    color: #1e40af;
}


/* ==================== CUSTOM STYLE FOR <summary> (Collapsible Passages) ==================== */
details {
    margin-bottom: 25px;
}

details summary {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1e40af;
    background: linear-gradient(to right, #f1f5f9, #e0e7ff);
    background: linear-gradient(to right, #e2e8f0, #d1d9e6);   /* Bit darker gray gradient */
    background: transparent;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;                    /* Remove default arrow */
    position: relative;
    margin-bottom: 10px;
}

/* Custom arrow */
details summary::before {
    content: "▶";
    margin-right: 12px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* Hover effect */
details summary:hover {
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    color: #1e3a8a;
    border-color: #94a3b8;
}

/* When opened */
details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    background: transparent;
}

/* ==================== TwoPanels ==================== */
/* Fix for right panel (Questions) - Make it scrollable */
#id_ExamBody-1 {
    height: calc(100% - 120px) !important;
    overflow-y: auto !important;
    padding-bottom: 40px;
}

/* Optional: Make left panel (passages) also scroll better */
#id_ExamBody-0 {
    height: calc(100% - 120px) !important;
    overflow-y: auto !important;
}

/* ==================== Highlight ==================== */
.class_TheRel.passage-content mark,
.class_TheRel.passage-content .highlighted {
    background-color: #fffb8f !important;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.class_TheRel.passage-content mark:hover,
.class_TheRel.passage-content .highlighted:hover {
    background-color: #ffe066 !important;
}

/* ==================== ANSWERS REVIEW PANEL ==================== */
.class_AbsFlexCenter.BackAnswers {
    padding: 30px;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #0045a5, #186de2 100%); 
    transition: font-size 1.6s ease;   
    
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: 
        opacity 0.65s ease,
        transform 0.5s cubic-bezier(.18,1.25,.4,1);
}
.class_AbsFlexCenter.BackAnswers.Insensitive {
    background: linear-gradient(150deg, #b91c1c, #f59e0b);
    background: linear-gradient(150deg, #fbbf24, #f59e0b);
}
.class_AbsFlexCenter.BackAnswers.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.class_TheRel.ContAnswers {
    padding: 20px;
    width: 100%;
    height: 100%;

    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;

    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.12);

    overflow: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: #333;
}
.class_TheRel.ListSecHeader {
    width: 100%;
    height: 130px;                           
    
}
.class_TheRel.ListSecBody {
    width: 100%;
    height: calc(100% - 130px);                         
    
}

.AnswersHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.AnswersHeader h3 {
    margin: 0;
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
}

.AnswersBody {
    padding: 15px 20px;
    max-height: 60vh;
    overflow-y: auto;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: #333;
}

.AnswerRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.AnswerRow:last-child {
    border-bottom: none;
}

.AnswerRow .question {
    flex: 1;
    color: #1e40af;
    font-weight: 600;
}

.AnswerRow .correct {
    flex: 1;
    color: #374151;
}

.AnswerRow .your {
    flex: 1;
    text-align: right;
}

.ScoreBox {
    margin-top: 18px;
    padding: 18px;
    background: #f0f9ff;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #bae6fd;
}

.ScoreBox h2 {
    margin: 0;
    color: #1e40af;
    font-size: 22px;
}

.ScoreBox .percent {
    margin: 6px 0 0 0;
    font-size: 26px;
    font-weight: 700;
    color: #166534;
}

.CloseX {
    font-size: 26px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.CloseX:hover {
    color: #dc2626;
}

.IELTSLabelAnswer {
    transition: all 0.6s ease;
}

/* ==================== SUBMIT TextArea - Glassmorphism ==================== */
.class_AbsFlexCenter.ContSubmitTextArea {
    padding: 30px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: 
        opacity 0.65s ease,
        transform 0.5s cubic-bezier(.18, 1.25, .4, 1);
    opacity: 0;
    transform: scale(0.92) translateY(40px);
}

.class_AbsFlexCenter.ContSubmitTextArea.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.class_TheRel.WrapSubmitTextArea {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.class_BB.SubmitTextArea {
    /************** BorderGradientBarPrettyPurple ************************/
    border-image-source: linear-gradient(150deg, #4600f1, #f731db 100%);
}

.ActiveBook {
    background: blue !important;   /* Blue background */
    color: white !important;
    border-radius: 50% !important;
    padding: 4px 8px !important;
    box-shadow: 0 0 8px rgba(30, 64, 175, 0.5);
}



/* Question highlights - hot pink / different tone */
#id_ExamBody-1 mark.highlighted,
#id_ExamBody-1 .highlighted {
    background-color: #ff69b4 !important;   /* Hot pink */
    padding: 2px 4px;
    border-radius: 3px;
}

#id_ExamBody-1 mark.highlighted:hover,
#id_ExamBody-1 .highlighted:hover {
    background-color: #ff1493 !important;
}
/* Questions Highlighting Support */
#id_ExamBody-1 * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

#id_ExamBody-1 input,
#id_ExamBody-1 select,
#id_ExamBody-1 button,
#id_ExamBody-1 .IELTSLabelAnswer input {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}


/* Remove hyphens - keep full words */
.class_TheRel.passage-content,
.class_TheRel.passage-body,
#id_ExamBody-0 .passage-body,
#id_ExamBody-0 .passage-content {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none !important;           /* ← DISABLE hyphenation */
    -webkit-hyphens: none !important;   /* For Safari/Chrome */
    -ms-hyphens: none !important;       /* For Edge/IE */
    word-break: normal;                 /* Keep words intact */
    overflow-wrap: normal;              /* Don't break words */
}

/* Also for paragraphs */
.class_TheRel.passage-content p,
.class_TheRel.passage-body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    word-break: normal;
    overflow-wrap: normal;
}




















