/* Trading Education Page Specific Styles */

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Add a subtle tech pattern to the hero section */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/circuit-pattern.png");
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.hero-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(123, 52, 221, 0.3);
}

.hero-section p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--gray-700);
    position: relative;
    z-index: 1;
    max-width: 90%;
}

/* Enhanced Stats Cards */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(26, 27, 38, 0.7);
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(123, 52, 221, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(153, 50, 204, 0.05) 100%);
    opacity: 0.5;
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(123, 52, 221, 0.5);
    position: relative;
    display: inline-block;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 52, 221, 0.5);
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(123, 52, 221, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(123, 52, 221, 0.6);
}

.hero-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(123, 52, 221, 0.4);
}

/* Featured Courses Section */
.featured-courses {
    position: relative;
    z-index: 1;
}

/* Course Cards Enhancement */
.course-card {
    background: var(--gray-100);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(123, 52, 221, 0.1);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-level {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.beginner {
    background-color: #10B981;
    color: #fff;
}

.intermediate {
    background-color: #F59E0B;
    color: #fff;
}

.advanced {
    background-color: #EF4444;
    color: #fff;
}

.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: var(--primary-color);
}

.course-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.course-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
    text-shadow: 0 0 10px rgba(123, 52, 221, 0.3);
}

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

.course-rating i {
    color: #F59E0B;
    margin-right: 2px;
}

.course-rating span {
    font-weight: 600;
    margin-left: 5px;
    color: var(--gray-700);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-button {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(123, 52, 221, 0.3);
}

/* Level Titles */
.level-title {
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    color: var(--gray-900);
}

.level-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 52, 221, 0.5);
}

/* Learning Paths Enhancement */
.learning-path-card {
    background: var(--gray-100);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(123, 52, 221, 0.1);
}

.learning-path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.learning-path-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.learning-path-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/circuit-pattern.png");
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.learning-path-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.learning-path-description {
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.learning-path-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.learning-path-content {
    padding: 30px;
}

.learning-path-stats {
    display: flex;
    margin-bottom: 30px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.learning-path-stat {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.learning-path-stat:hover {
    background: rgba(123, 52, 221, 0.1);
}

.learning-path-stat:last-child {
    border-right: none;
}

.learning-path-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(123, 52, 221, 0.3);
}

.learning-path-stat-label {
    font-size: 14px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learning-path-courses {
    margin-bottom: 30px;
}

.learning-path-course {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.learning-path-course:hover {
    transform: translateX(5px);
}

.learning-path-course:last-child {
    border-bottom: none;
}

.learning-path-course-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    color: #fff;
    box-shadow: 0 0 10px rgba(123, 52, 221, 0.3);
}

.learning-path-course-title {
    flex-grow: 1;
    font-weight: 500;
    color: var(--gray-800);
}

.learning-path-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.learning-path-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 24px;
    text-shadow: 0 0 10px rgba(123, 52, 221, 0.3);
}

/* Webinars Enhancement */
.webinar-card {
    background: var(--gray-100);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(123, 52, 221, 0.1);
}

.webinar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.webinar-image {
    position: relative;
    overflow: hidden;
}

.webinar-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.webinar-card:hover .webinar-image img {
    transform: scale(1.05);
}

.webinar-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.webinar-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.webinar-status.upcoming {
    background-color: #10B981;
    color: #fff;
}

.webinar-status.recorded {
    background-color: #6B7280;
    color: #fff;
}

.webinar-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.webinar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
    transition: color 0.3s ease;
}

.webinar-card:hover .webinar-title {
    color: var(--primary-color);
}

.webinar-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.webinar-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.webinar-meta span {
    display: flex;
    align-items: center;
}

.webinar-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.webinar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.webinar-presenter {
    display: flex;
    align-items: center;
}

.webinar-presenter img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 52, 221, 0.3);
}

.webinar-presenter span {
    font-weight: 600;
    color: var(--gray-800);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section h2 {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: calc(50% - 20px);
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section h2 {
        font-size: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-button {
        flex: 0 0 auto;
    }
}
