/* ================================
   COURSES PAGE - ASEL AKADEMİ
   Modern E-Learning Platform CSS
   ================================ */

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    padding: 60px 0;
    color: #fff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-title i {
    margin-right: 12px;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.page-stats {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-end;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
    color: #fff;
}

/* Courses Content */
.courses-content {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: #cb0001;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
}

.search-box input:focus {
    border-color: #cb0001;
    box-shadow: 0 0 0 3px rgba(203, 0, 1, 0.1);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-item:hover {
    background: #f3f4f6;
    color: #cb0001;
}

.category-item.active {
    background: linear-gradient(135deg, rgba(203, 0, 1, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
    color: #cb0001;
    font-weight: 600;
}

.category-item i {
    font-size: 16px;
    width: 20px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: #f3f4f6;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #cb0001;
    cursor: pointer;
}

.filter-option span {
    color: #4b5563;
    font-weight: 500;
}

/* Price Range */
.price-range label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}

.price-range input {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.price-range input:focus {
    border-color: #cb0001;
    box-shadow: 0 0 0 3px rgba(203, 0, 1, 0.1);
}

/* Clear Filters Button */
.btn-clear-filters {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-clear-filters:hover {
    background: #e5e7eb;
    color: #cb0001;
}

/* Courses Toolbar */
.courses-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.results-count {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-form label {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.sort-form select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
}

.sort-form select:focus {
    border-color: #cb0001;
    box-shadow: 0 0 0 3px rgba(203, 0, 1, 0.1);
}

/* Course Card */
.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(203, 0, 1, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.course-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.course-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-image-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.course-image-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.course-card:hover .course-image-placeholder i {
    transform: scale(1.15) rotate(5deg);
    color: rgba(255, 255, 255, 0.95);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.favorite-btn i {
    font-size: 18px;
    color: #cb0001;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.15);
    background: #fff;
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.4);
}

.favorite-btn.active i {
    font-weight: 900;
}

.favorite-btn.active i:before {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
}

/* Course Badges */
.course-image .badge-featured,
.course-image .badge-free,
.course-image .badge-discount {
    position: absolute;
    left: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.badge-featured {
    top: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-free {
    top: 12px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    font-weight: 700;
}

.badge-discount {
    top: 12px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    font-weight: 700;
}

/* When multiple badges exist, stack them */
.badge-featured ~ .badge-free,
.badge-featured ~ .badge-discount {
    top: 62px;
}

.badge-free ~ .badge-discount {
    top: 62px;
}

/* Course Body */
.course-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 13px;
    color: #cb0001;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #cb0001;
}

.course-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.meta-item {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #cb0001;
}

/* Course Footer */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 2px solid #f3f4f6;
    min-height: 70px;
}

.course-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 120px;
}

.price-free {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: #cb0001;
    line-height: 1;
}

.price-old {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1;
    order: -1;
}

.btn-course-detail {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-course-detail:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(203, 0, 1, 0.3);
}

/* Empty State */
.empty-state {
    background: #fff;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 3.5rem;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.empty-state p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* ================================
   COURSE DETAIL PAGE
   ================================ */

.course-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px 0 60px;
    color: #fff;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.course-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-breadcrumb a:hover {
    color: #fff;
}

.course-breadcrumb i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.course-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.course-hero-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #6b7280;
    font-size: 14px;
}

.stars i.active {
    color: #fbbf24;
}

.rating-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-students,
.meta-level {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.enrolled-badge {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.2);
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid #10b981;
    font-weight: 600;
}

.enrolled-badge i {
    color: #10b981;
    font-size: 1.2rem;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Course Detail Content */
.course-detail-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.course-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #cb0001;
    font-size: 1.3rem;
}

/* Learning Outcomes */
.learning-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.outcome-item i {
    color: #10b981;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.outcome-item span {
    color: #4b5563;
    line-height: 1.6;
}

/* Course Description */
.course-description-full {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

/* Course Stats Bar */
.course-stats-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.course-stats-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4b5563;
}

.course-stats-bar i {
    color: #cb0001;
}

/* Curriculum Accordion */
.curriculum-accordion {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.curriculum-section {
    border-bottom: 2px solid #e5e7eb;
}

.curriculum-section:last-child {
    border-bottom: none;
}

.section-header {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: #f3f4f6;
}

.section-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-info i {
    color: #cb0001;
    transition: transform 0.3s ease;
}

.section-header[aria-expanded="true"] .section-info i {
    transform: rotate(180deg);
}

.section-info strong {
    font-size: 1.05rem;
    color: #1f2937;
    flex: 1;
}

.section-meta {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.section-body {
    padding: 0;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s ease;
}

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

.video-item:hover {
    background: #f8f9fa;
}

.video-icon {
    width: 40px;
    flex-shrink: 0;
}

.video-icon i {
    font-size: 1.2rem;
    color: #cb0001;
}

.video-icon i.fa-lock {
    color: #9ca3af;
}

.video-info {
    flex: 1;
    padding: 0 15px;
}

.video-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.video-preview-badge {
    font-size: 11px;
    background: #10b981;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.video-duration {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Requirements List */
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b5563;
}

.requirement-item i {
    color: #cb0001;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Reviews */
.reviews-summary {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-avatar i {
    color: #fff;
    font-size: 1.5rem;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-date {
    font-size: 13px;
    color: #9ca3af;
}

.review-comment {
    color: #4b5563;
    line-height: 1.6;
}

/* Purchase Card (Sticky Sidebar) */
.purchase-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.course-preview video,
.course-image-large img {
    width: 100%;
    display: block;
}

.purchase-body {
    padding: 25px;
}

.price-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.progress-bar-container {
    margin-top: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.progress-percent {
    color: #cb0001;
}

.progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #cb0001 0%, #ff4444 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.course-includes {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f3f4f6;
}

.course-includes h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.course-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #4b5563;
}

.course-includes i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ================================
   PURCHASE PAGE
   ================================ */

.purchase-page {
    padding: 60px 0;
    background: #f8f9fa;
}

.purchase-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.purchase-left,
.purchase-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.purchase-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
}

/* Course Summary Card */
.course-summary-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    padding: 20px;
}

.course-summary-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.course-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-summary-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.course-summary-info p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.course-summary-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}

.course-summary-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-summary-meta i {
    color: #cb0001;
}

/* Payment Section */
.payment-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    position: relative;
    cursor: pointer;
}

.payment-method input {
    position: absolute;
    opacity: 0;
}

.method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-method input:checked + .method-content {
    border-color: #cb0001;
    background: rgba(203, 0, 1, 0.05);
}

.method-content i {
    font-size: 2rem;
    color: #4b5563;
}

.payment-method input:checked + .method-content i {
    color: #cb0001;
}

.method-content span {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.card-details {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #cb0001;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-checkbox span {
    font-size: 14px;
    color: #6b7280;
}

.terms-checkbox a {
    color: #cb0001;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Order Summary */
.order-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.order-summary-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.item-label {
    color: #6b7280;
    font-weight: 500;
}

.item-value {
    font-weight: 600;
    color: #1f2937;
}

.order-item.discount .item-value {
    color: #10b981;
}

.order-item.tax {
    border-bottom: 2px solid #e5e7eb;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 25px;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cb0001;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px solid #f3f4f6;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.security-badge i {
    color: #10b981;
}

.purchase-benefits {
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}

.purchase-benefits h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.purchase-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.purchase-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #4b5563;
    font-size: 14px;
}

.purchase-benefits i {
    color: #10b981;
}

.help-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.help-card i {
    font-size: 2.5rem;
    color: #cb0001;
    margin-bottom: 10px;
}

.help-card p {
    color: #4b5563;
    margin-bottom: 10px;
}

.help-card a {
    color: #cb0001;
    font-weight: 600;
    text-decoration: none;
}

.help-card a:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1199px) {
    .page-title {
        font-size: 2rem;
    }
    
    .course-hero-title {
        font-size: 2rem;
    }
    
    .purchase-wrapper {
        grid-template-columns: 1fr;
    }
    
    .order-summary-card {
        position: static;
    }
}

@media (max-width: 991px) {
    .courses-content {
        padding: 40px 0;
    }
    
    .filters-sidebar {
        margin-bottom: 30px;
        position: static;
    }
    
    .page-stats {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .course-hero {
        padding: 30px 0 40px;
    }
    
    .learning-outcomes {
        grid-template-columns: 1fr;
    }
    
    .course-stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 40px 0;
        margin-top: 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 10px 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .courses-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .course-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .course-hero-title {
        font-size: 1.75rem;
    }
    
    .course-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .course-summary-card {
        flex-direction: column;
    }
    
    .course-summary-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-image,
    .course-image-placeholder {
        height: 180px;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .course-price {
        align-items: center;
        text-align: center;
    }
    
    .btn-course-detail {
        width: 100%;
        justify-content: center;
    }
    
    .course-image {
        height: 180px;
    }
    
    .purchase-title {
        font-size: 1.5rem;
    }
    
    .order-summary-card,
    .payment-section {
        padding: 20px;
    }
}

/* ================================
   EXAMS SECTION
   ================================ */
.exams-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exam-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: start;
    gap: 20px;
    transition: all 0.3s ease;
}

.exam-item:hover {
    border-color: #cb0001;
    box-shadow: 0 4px 20px rgba(203, 0, 1, 0.1);
}

.exam-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam-icon i {
    font-size: 28px;
    color: white;
}

.exam-info {
    flex: 1;
}

.exam-info h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.exam-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.exam-meta span {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exam-meta i {
    color: #cb0001;
}

.exam-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.exam-action {
    display: flex;
    align-items: center;
}

.exam-action .btn {
    padding: 12px 24px;
    font-weight: 600;
    white-space: nowrap;
}

.exam-action .btn-primary {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    color: white;
    border: none;
}

.exam-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 0, 1, 0.4);
}

.exam-action .btn-secondary {
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .exam-item {
        flex-direction: column;
    }
    
    .exam-action {
        width: 100%;
    }
    
    .exam-action .btn {
        width: 100%;
    }
    
    .exam-meta {
        gap: 15px;
    }
}
