/* Modal Structure */
.jobinfo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
}

.jobinfo-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#jobinfo-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
}

/* Close Button */
.jobinfo-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
    z-index: 10001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jobinfo-close:hover {
    background: #f3f4f6;
    color: #1a202c;
}

/* Container and Panels */
.jobinfo-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Questions Panel */
.jobinfo-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jobinfo-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

.jobinfo-question:hover {
    background: #f1f5f9;
}

.question-number {
    font-weight: 600;
    color: #4a5568;
    min-width: 24px;
}

.question-text {
    flex: 1;
    font-size: 15px;
    color: #1a202c;
    line-height: 1.5;
}

.question-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.question-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Response Panel */
.jobinfo-response-panel {
    position: relative;
    min-height: 200px;
}

#jobinfo-response {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Content Sections */
.jobinfo-section {
    margin-bottom: 24px;
}

.jl2024-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    padding: 12px;
}

.jobinfo-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.jobinfo-section-content {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.jobinfo-section-content p {
    margin-bottom: 12px;
}

.jobinfo-section-content ul,
.jobinfo-section-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.jobinfo-section-content li {
    margin-bottom: 8px;
}

/* Loading Spinner */
#jobinfo-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner-logo {
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.jobinfo-error {
    padding: 16px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    margin: 16px 0;
}

.jl2024-box {
    padding: 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Responsive Design */
/* Modal mobile styles */
@media screen and (max-width: 768px) {
    .jobinfo-modal {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .jobinfo-modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
        max-width: none !important;
    }

    #jobinfo-content {
        padding: 16px !important;
        padding-top: 50px !important;
        height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
    }

    .jl2024-box {
        padding: 4px;
        margin: 0;
    }

    .jobinfo-close {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10001 !important;
    }

    .jobinfo-questions {
        padding: 8px;
    }

    .jobinfo-question {
        padding: 10px;
        margin-bottom: 8px;
    }

    .jobinfo-response-panel {
        padding: 8px;
    }
    .jobinfo-disclaimer {
        position: fixed !important;
        bottom: 0 !important;
        width: 100% !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .jobinfo-modal-content {
        padding: 8px;
    }

    #jobinfo-content {
        padding: 4px;
    }
}

/* Institution Cards */
.jl2024-institution-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
 }
 
 .jl2024-institution-card h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a90e2;
 }
 
 .jl2024-course-content {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
 }
 
 /* Adjust spacing between cards */
 .jl2024-institutions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
 }
 
 /* Optional hover effect */
 .jl2024-institution-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.2s ease;
 }
 
 /* Mobile Styles */
/* Mobile Styles */
@media screen and (max-width: 768px) {
    .jl2024-institution-card {
        padding: 6px;
        margin-bottom: 6px;
    }
 
    .jl2024-institution-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
 
    .jl2024-course-content {
        font-size: 14px;
    }
 
    .jl2024-institutions-list {
        margin: 4px 0;
        padding: 0;
    }
 }
 
 /* Small Mobile Styles */
 @media screen and (max-width: 480px) {
    .jl2024-institution-card {
        padding: 12px;
        margin-bottom: 8px;
    }
 
    .jl2024-institution-card h3 {
        font-size: 15px;
    }
 
    .jl2024-course-content {
        font-size: 13px;
    }
 }

/* Desktop styles for intro and conclusion */
.jl2024-intro,
.jl2024-conclusion {
   color: #2d3748;
   font-size: 16px;
   line-height: 1.6;
   margin-bottom: 24px;
   padding: 16px;
   background: #f8fafc;
   border-left: 4px solid #4a90e2;
   border-radius: 4px;
}

/* Different color for conclusion to distinguish it */
.jl2024-conclusion {
   border-left-color: #48bb78;
   margin-top: 24px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
   .jl2024-intro,
   .jl2024-conclusion {
       font-size: 14px;
       margin-bottom: 12px;
       padding: 8px;
       border-left-width: 3px;
   }

   .jl2024-conclusion {
       margin-top: 12px;
   }
}

/* Small Mobile styles */
@media screen and (max-width: 480px) {
   .jl2024-intro,
   .jl2024-conclusion {
       font-size: 13px;
       margin-bottom: 8px;
       padding: 6px;
       border-left-width: 2px;
   }

   .jl2024-conclusion {
       margin-top: 8px;
   }
}

/* Entry Requirements Link styles */
.jl2024-link-container {
    margin-top: 12px;
    text-align: right;
}

.jl2024-entry-link {
    display: inline-block;
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
}

.jl2024-entry-link:hover {
    text-decoration: underline;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .jl2024-link-container {
        margin-top: 8px;
    }
    
    .jl2024-entry-link {
        font-size: 13px;
        padding: 3px 6px;
    }
}

        /* Subject-specific styles */
        .jl2024-subject-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 20px 0;
        }
        .jl2024-subject-card {
            padding: 20px;
            border-radius: 8px;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            min-height: 200px;
        }
        .jl2024-subject-card.required {
            border-top: 4px solid #3b82f6;
        }
        .jl2024-subject-card.recommended {
            border-top: 4px solid #10b981;
        }
        .jl2024-subject-card h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 15px 0;
            color: #2d3748;
        }
        .jl2024-subject-card h4 {
            font-size: 16px;
            font-weight: 600;
            margin: 20px 0 10px 0;
            color: #2d3748;
        }
        .jl2024-subject-content {
            color: #4a5568;
            font-size: 15px;
            line-height: 1.6;
        }
        .jl2024-admission-requirements {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }
        .jl2024-subject-content ul,
        .jl2024-subject-content ol {
            margin: 10px 0 10px 20px;
            padding: 0;
        }
        .jl2024-subject-content li {
            margin-bottom: 5px;
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            .jl2024-subject-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Entry Requirements styles */
.jl2024-entry-content {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.jl2024-entry-content p {
    margin-bottom: 12px;
}

.jl2024-entry-content ul,
.jl2024-entry-content ol {
    margin: 12px 0 12px 20px;
    padding: 0;
}

.jl2024-entry-content li {
    margin-bottom: 8px;
}

/* Mobile styles for entry requirements - aligned with existing patterns */
@media screen and (max-width: 768px) {
    .jl2024-entry-content {
        padding: 6px;
        margin: 8px 0;
        font-size: 14px;
    }

    .jl2024-entry-content p {
        margin-bottom: 6px;
    }

    .jl2024-entry-content ul,
    .jl2024-entry-content ol {
        margin: 6px 0 6px 16px;
    }

    .jl2024-entry-content li {
        margin-bottom: 4px;
    }
}

@media screen and (max-width: 480px) {
    .jl2024-entry-content {
        padding: 8px;
        margin: 6px 0;
        font-size: 13px;
    }

    .jl2024-entry-content p {
        margin-bottom: 6px;
    }

    .jl2024-entry-content ul,
    .jl2024-entry-content ol {
        margin: 6px 0 6px 12px;
    }

    .jl2024-entry-content li {
        margin-bottom: 4px;
    }
}

.jl2024-ai-content {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .jl2024-ai-content {
        padding: 6px;
        margin: 8px 0;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .jl2024-ai-content {
        padding: 8px;
        margin: 6px 0;
        font-size: 13px;
    }
}

.jobinfo-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#jobinfo-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 70px; /* Make room for disclaimer */
}

.jobinfo-disclaimer {
    position: absolute; /* Change from sticky to absolute */
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff7ed;
    border-top: 1px solid #fcd34d;
    padding: 12px 20px;
    font-size: 12px;
    color: #92400e;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 10002;
}

/* Keep mobile styles as they are */
@media screen and (max-width: 768px) {
    .jobinfo-disclaimer {
        position: sticky;
        padding: 8px 12px;
        font-size: 11px;
    }
}