/* Courses Page Specific Styles */

.courses-page {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Navigation Active State */
.nav-menu a.active {
    color: #00d4aa;
    font-weight: 600;
}

/* Courses Hero Section */
.courses-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.courses-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.courses-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromTop 1s ease-out;
}

.courses-hero-subtitle {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.courses-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Section */
.courses-filter {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.search-group {
    margin-left: auto;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00d4aa;

/* Type Filter Icon Buttons */
.type-filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.type-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.type-filter-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.type-filter-btn span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.type-filter-btn:hover {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.4);
    color: #00d4aa;
}

.type-filter-btn.active {
    background: rgba(0, 212, 170, 0.12);
    border-color: #00d4aa;
    color: #00d4aa;
}
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
    width: 300px;
}

.search-input::placeholder {
    color: #666;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.courses-container {
    display: flex;
    gap: 2rem;
    transition: all 0.5s ease;
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    transition: all 0.5s ease;
    width: 100%;
}

.courses-grid.courses-minimized {
    width: 320px;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex-shrink: 0;
}

.courses-grid.courses-minimized .course-card {
    display: flex;
    flex-direction: row;
    height: 120px;
    max-width: none;
}

.courses-grid.courses-minimized .course-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 20px;
}

.courses-grid.courses-minimized .course-svg-icon {
    width: 40px;
    height: 40px;
}

.courses-grid.courses-minimized .course-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.courses-grid.courses-minimized .course-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.courses-grid.courses-minimized .course-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: none;
}

.courses-grid.courses-minimized .course-meta {
    display: none;
}

.courses-grid.courses-minimized .course-skills {
    display: none;
}

.courses-grid.courses-minimized .course-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.courses-grid.courses-minimized .course-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.courses-grid.courses-minimized .course-price {
    flex-direction: column;
    gap: 0;
}

.courses-grid.courses-minimized .current-price {
    font-size: 1rem;
}

.courses-grid.courses-minimized .original-price {
    font-size: 0.7rem;
}

.courses-grid.courses-minimized .view-course-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.courses-grid.courses-minimized .course-level {
    display: none;
}

/* Course Details Panel */
.course-details-panel {
    width: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 16px;
    transition: all 0.5s ease;
    opacity: 0;
}

.course-details-panel.details-active {
    width: calc(100% - 340px);
    opacity: 1;
}

.details-header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.close-details-btn {
    background: none;
    border: none;
    color: #00d4aa;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.close-details-btn:hover {
    color: #ffffff;
    background: rgba(0, 212, 170, 0.1);
    transform: translateX(-5px);
}

.details-content {
    padding: 2rem;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Details Hero Section */
.details-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-course-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-course-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.details-svg-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.details-fallback-icon {
    font-size: 4rem;
}

.details-course-info {
    flex: 1;
}

.details-course-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.details-course-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.details-course-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-instructor {
    color: #00d4aa;
    font-weight: 600;
    font-size: 1.1rem;
}

.details-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.details-course-price {
    text-align: right;
}

.details-current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #00d4aa;
    display: block;
    line-height: 1;
}

.details-original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.enroll-btn-large {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0a0a;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
}

.enroll-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.5);
}

/* Details Tabs */
.details-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.details-tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.details-tab-btn.active {
    color: #00d4aa;
    border-bottom: 3px solid #00d4aa;
    background: rgba(0, 212, 170, 0.1);
}

.details-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.details-tab-content {
    min-height: 400px;
}

.details-tab-panel {
    display: none;
}

.details-tab-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2);
    border-color: rgba(0, 212, 170, 0.3);
}

.course-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.course-svg-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.course-fallback-icon {
    font-size: 3rem;
    z-index: 2;
}

.course-level {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: #00d4aa;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-header {
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.course-subtitle {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stars {
    color: #FFD700;
    font-size: 0.85rem;
}

.rating-text {
    color: #888;
    font-size: 0.75rem;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #888;
    font-size: 0.75rem;
}

.course-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.skill-more {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.course-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    width: 100%;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.course-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
}

.feature-icon:hover {
    color: #00d4aa;
    transform: scale(1.2);
}

.feature-icon.docs {
    color: #4F46E5;
}

.feature-icon.docs:hover {
    color: #6366F1;
}

.feature-icon.video {
    color: #FF0000;
}

.feature-icon.video:hover {
    color: #FF3333;
}

.feature-icon.paid {
    color: #FFA500;
}

.feature-icon.paid:hover {
    color: #FFB84D;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d4aa;
}

.original-price {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
}

.view-course-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0a0a;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.view-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.no-results h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.2);
}

.modal-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.modal-course-image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-course-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.modal-svg-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.modal-fallback-icon {
    font-size: 3rem;
}

.modal-course-info h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-course-subtitle {
    color: #888;
    margin-bottom: 1rem;
}

.modal-course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-instructor {
    color: #00d4aa;
    font-weight: 500;
}

.modal-course-price {
    text-align: right;
}

.price-container {
    margin-bottom: 1rem;
}

.modal-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4aa;
    display: block;
}

.modal-original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 1rem;
}

.enroll-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    color: #00d4aa;
    border-bottom: 2px solid #00d4aa;
}

.tab-btn:hover {
    color: #ffffff;
}

.modal-tab-content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.course-curriculum h3,
.course-requirements h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.curriculum-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    border-left: 4px solid #00d4aa;
}

.curriculum-stats span {
    color: #00d4aa;
    font-weight: 600;
    font-size: 0.9rem;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.module-header:hover {
    background: rgba(0, 212, 170, 0.1);
}

.module-info h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.module-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.module-toggle {
    color: #00d4aa;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.module-content {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lessons-list {
    padding: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.lesson-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item.free {
    background: rgba(0, 212, 170, 0.02);
}

.lesson-item.premium {
    opacity: 0.7;
}

.lesson-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.lesson-icon .video-icon {
    color: #FF0000;
}

.lesson-icon .quiz-icon {
    color: #FFA500;
}

.lesson-icon .lab-icon {
    color: #00d4aa;
}

.lesson-icon .project-icon {
    color: #9C27B0;
}

.lesson-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lesson-title {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.lesson-duration {
    color: #888;
    font-size: 0.85rem;
}

.lesson-status {
    display: flex;
    align-items: center;
}

.free-badge {
    background: #00d4aa;
    color: #0a0a0a;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lock-icon {
    color: #666;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.course-overview h4 {
    color: #00d4aa;
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
}

.course-overview p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-details {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    color: #ccc;
}

.detail-item strong {
    color: #00d4aa;
}

.learning-objectives,
.requirements-list {
    list-style: none;
    padding: 0;
}

.learning-objectives li,
.requirements-list li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.learning-objectives li::before {
    content: '✓';
    color: #00d4aa;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.requirements-list li::before {
    content: '•';
    color: #00d4aa;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header h4 {
    color: #ffffff;
    margin: 0;
}

.module-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* Footer */


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}





/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .courses-container {
        flex-direction: column;
    }
    
    .course-details-panel.details-active {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
    }
    
    .courses-grid.courses-minimized {
        display: none;
    }
    
    .details-content {
        height: calc(100vh - 80px);
    }
}

@media (max-width: 1024px) {
    .details-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .details-course-price {
        text-align: center;
    }
    
    .details-course-title {
        font-size: 2rem;
    }
    
    .details-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .courses-hero-title {
        font-size: 2.5rem;
    }
    
    .courses-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .courses-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-group {
        margin-left: 0;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }

    .type-filter-group {
        justify-content: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 100%;
    }
    
    .course-card {
        height: 350px;
    }
    
    .course-image {
        height: 90px;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .course-subtitle {
        font-size: 0.8rem;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .course-skills {
        margin-bottom: 0.75rem;
    }
    
    .view-course-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .curriculum-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .module-header {
        padding: 1rem;
    }
    
    .lesson-item {
        padding: 0.75rem 1rem;
    }
    
    .lesson-info {
        gap: 0.1rem;
    }
    
    .lesson-title {
        font-size: 0.9rem;
    }
    
    .details-content {
        padding: 1rem;
    }
    
    .details-hero {
        padding: 1.5rem;
    }
    
    .details-course-title {
        font-size: 1.8rem;
    }
    
    .enroll-btn-large {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    .details-header {
        padding: 1rem;
    }
    
    .close-details-btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* ===================================
   ENROLLMENT MODAL STYLES
   =================================== */

.enrollment-modal-overlay,
.credentials-modal-overlay,
.loading-modal-overlay,
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.enrollment-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.credentials-modal {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal visibility states */
.modal-visible {
    opacity: 1 !important;
}

.modal-closing {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: all 0.3s ease-out !important;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.success-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px 12px 0 0;
}

.success-header h2,
.success-header p {
    color: white;
    margin: 0;
}

.success-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #374151;
}

.course-summary {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.course-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.course-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #e5e7eb;
}

.course-info h3 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.course-info p {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-info .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.price-info .original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Registration Form Styles */
.registration-form {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel,
.btn-proceed,
.btn-primary,
.btn-secondary,
.btn-receipt {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-proceed,
.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-proceed:hover,
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-receipt {
    background: #059669;
    color: white;
}

.btn-receipt:hover {
    background: #047857;
}

/* Credentials Modal Styles */
.receipt-summary {
    padding: 24px;
    background: #f0f9ff;
    border-bottom: 1px solid #e0e7ff;
}

.receipt-summary h3 {
    margin: 0 0 16px 0;
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
}

.receipt-details {
    display: grid;
    gap: 8px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dbeafe;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-row span:first-child {
    color: #374151;
    font-weight: 500;
}

.receipt-row span:last-child {
    color: #1f2937;
    font-weight: 600;
}

.receipt-row .amount {
    color: #059669;
    font-size: 18px;
    font-weight: 700;
}

.receipt-id {
    font-family: 'Courier New', monospace;
    background: #e0e7ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.credentials-info {
    padding: 24px;
}

.credentials-info h3 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.credentials-box {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.credential-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-item label {
    color: #374151;
    font-weight: 500;
    min-width: 80px;
}

.credential-value {
    flex: 1;
    margin: 0 16px;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #2563eb;
}

.important-note {
    padding: 16px 24px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    margin: 0;
}

.important-note p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

.modal-actions {
    padding: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.modal-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.modal-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Loading Modal */
.loading-modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-modal p {
    margin: 0;
    color: #374151;
    font-weight: 500;
}

/* Error Modal */
.error-modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.error-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #fee2e2;
    background: #fef2f2;
    border-radius: 12px 12px 0 0;
}

.error-header h2 {
    margin: 0;
    color: #dc2626;
    font-size: 20px;
    font-weight: 600;
}

.error-content {
    padding: 24px;
}

.error-content p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.error-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enrollment-modal,
    .credentials-modal {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .receipt-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .credential-value {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Razorpay Integration Styles */
.razorpay-payment-button {
    display: none !important;
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-header {
    animation: successPulse 2s ease-in-out;
}