/* Loading and Container Styles */
.loading-spinner {
    display: none;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
    width: 100%;
}

/* Header Styles */
.blue-header {
    background-color: #003366;
    padding-top: 130px;
}

.course-container{
    font-family: 'Roboto';
}

.header-breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.header-breadcrumb a {
    color: white;
    font-size: 13px;
}

.header-breadcrumb li a:hover {
    color: #FFD700 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}


.header-breadcrumb .active {
    color: white;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-input {
    border-radius: 20px;
    padding-right: 30px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 7px;
    color: #666;
    cursor: pointer;
}

/* Grid Layout */
.course-grid {
    margin: 0 -15px;
}

/* Course Card Styles */
.courseTitle span,
.courseInstructor span,
.courseInstitute span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.courseTitle {
    font-size: 14px;
    color: #0066ff;
    vertical-align: middle;
    font-weight: bold;
    margin-bottom: 10px;
    height: 25px;
}

.courseInstructor {
    margin-bottom: 10px;
    font-weight: 500;
    color: #666666;
    font-size: 14px;
    height: 30px;
}

.courseInstitute {
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Roboto';
    color: #666666;
    font-size: 14px;
    height: 30px;
}

.es-course-card {
    margin-top: 15px;
    min-height: 370px;
    max-height: 450px;
    display: flex;
    transform: translateY(-5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-direction: column;
    position: relative;
    width: 100%;
}

.es-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 1pt 1pt #0099CC;
}

.info-text {
    font-size: 10px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
}

/* Logo and Icon Styles */
.nc-logo-container {
    width: 32px;
    min-width: 32px;
    margin-right: 10px;
}

.nc-logo {
    width: 32px;
    height: 32px;
}

.week-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.week-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Panel Styles */
.panel-heading {
    flex: 0 0 85px;
}

.panel-heading img {
    width: 100%;
    height: 85px;
    border-radius: 4px 4px 0 0;
}

.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

.course-info-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.course-meta-section {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Tooltip Styles */
.tooltip-inner {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 8px;
    font-size: 12px;
    max-width: 500px !important;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #000000 !important;
}

/* Advanced Search Button */
.advanced-search-btn {
    background-color: #E3F2FD;
    color: #003366;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    padding: 5px 20px;
    transition: all 0.3s ease;
}

.advanced-search-btn:hover {
    background-color: #B3E0FF;
    color: #002244;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* No courses found */
.no-courses-message {
    text-align: center;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.54);
    padding: 40px 20px;
}

.no-courses-message h2 {
    width: 100%;
    margin-bottom: 20px;
}

.no-courses-message h3 {
    width: 100%;
    text-transform: none;
    margin-bottom: 30px;
}

.no-courses-message ul {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.no-courses-message li {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .es-course-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .blue-header {
        padding-top: 130px;
        margin-top: 110px;
        background-color: #003366;
    }

    .search-container {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .es-course-card {
        margin: 10px 0;
        min-height: 350px;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
    }

    .search-box {
        width: 100%;
        margin-bottom: 10px;
    }

    .advanced-search-btn {
        width: 100%;
        text-align: center;
    }
}
