/* Optimized CSS for Courses Page */

/* Remove aliceblue background from footer on this page */
.footer-one {
    background: transparent !important;
}

/* Remove aliceblue background from inner banner on this page */
.inner-banner-one {
    background: transparent !important;
    background-color: transparent !important;
}

/* More specific override to ensure it works */
div.inner-banner-one.position-relative {
    background: transparent !important;
    background-color: transparent !important;
}

/* Even more specific override */
.inner-banner-one.position-relative {
    background: transparent !important;
    background-color: transparent !important;
}

/* Most specific override */
div.inner-banner-one.position-relative {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Courses banner specific styling */
.courses-banner {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.disabled-btn {
    pointer-events: none; /* Disable mouse events */
    opacity: 0.6; /* Make the button look disabled */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
}

/* Performance optimizations */
@media (max-width: 991px) {
    .brief-placeholder {
        margin-left: 0 !important; 
    }
}

@media (max-width: 574px) {
    .brief-placeholder {
        padding: 0 !important; 
    }
}

/* Loading states */
.loading-text {
    color: #999;
}

/* Skills gained text - reduced font size by 10% */
.Sk {
    font-size: 12.6px;
}

/* Optimized animations */
.course-title-link {
    transition: color 0.2s ease;
}

.course-title-link:hover {
    color: #F59E42;
}

/* Performance improvements for course cards */
.job-list-one {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimized button states */
.apply-btn {
    transition: all 0.2s ease;
}

.apply-btn:hover {
    transform: translateY(-1px);
}

/* Minimalistic View button styling */
.job-list-one.style-two .apply-btn {
    width: auto;
    min-width: 100px;
    line-height: 27px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #3b82f6;
    text-transform: none;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #3b82f6;
    padding: 7px 18px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.job-list-one.style-two .apply-btn:hover {
    transform: translateY(-2px);
    color: #3b82f6;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.15);
}

.job-list-one.style-two .apply-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    color: #3b82f6;
    background: #fff;
    border-color: #3b82f6;
}

.job-list-one.style-two .apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.1);
}

/* Disabled state styling */
.job-list-one.style-two .apply-btn.disabled-btn {
    color: #9CA3AF;
    border-color: #D1D5DB;
    background: #F9FAFB;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    position: relative;
}

.job-list-one.style-two .apply-btn.disabled-btn:hover {
    background: #F9FAFB;
    color: #9CA3AF;
    border-color: #D1D5DB;
    transform: none;
    box-shadow: none;
}

/* Loading animation for disabled button */
.job-list-one.style-two .apply-btn.disabled-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1.5px solid #D1D5DB;
    border-top: 1.5px solid #9CA3AF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for minimalistic button */
@media (max-width: 768px) {
    .job-list-one.style-two .apply-btn {
        min-width: 90px;
        font-size: 13px;
        padding: 0 14px;
        line-height: 30px;
    }
}

@media (max-width: 576px) {
    .job-list-one.style-two .apply-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 0 12px;
        line-height: 28px;
    }
}

/* Loading animation optimization */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-post-item-wrapper {
    animation: fadeIn 0.3s ease-out;
}

/* Optimized responsive design */
@media (max-width: 768px) {
    .job-title .title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .brief-placeholder {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Performance optimizations for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimized form elements */
.fomtext02 {
    transition: border-color 0.2s ease;
}

.fomtext02:focus {
    border-color: #F59E42;
    outline: none;
}

/* Optimized select dropdown */
.nice-select {
    transition: border-color 0.2s ease;
}

.nice-select:focus {
    border-color: #F59E42;
}

/* Performance improvements for AJAX loading */
#loader {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Optimized error states */
.alert-danger {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

/* Optimized success states */
.text-success {
    color: #28a745 !important;
}

/* Performance optimizations for course cards */
.job-list-one.style-two {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.job-list-one.style-two:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Optimized loading states */
.skill-placeholder {
    color: #999;
    font-style: normal;
}

/* Performance improvements for mobile */
@media (max-width: 576px) {
    .job-search-one .row {
        margin: 0 -10px;
    }
    
    .job-search-one .col-xl-7,
    .job-search-one .col-xl-2 {
        padding: 0 10px;
    }
    
    .btn-five {
        width: 100%;
        margin-top: 10px;
    }
}

/* Optimized accessibility */
.course-title-link:focus {
    outline: 2px solid #F59E42;
    outline-offset: 2px;
}

.apply-btn:focus {
    outline: 2px solid #F59E42;
    outline-offset: 2px;
}

/* Performance optimizations for animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimized print styles */
@media print {
    .inner-banner-one,
    .footer-one,
    #loadMoreBtnarea,
    #loader {
        display: none !important;
    }
    
    .job-list-one {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 