/* ===== COURSES SECTION STYLES ===== */

.blog-boxarea {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.blog-boxarea:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #e5e5e5;
}

.blog-boxarea:hover .course-price {
    color: white !important;
}

.course-price {
    transition: color 0.3s ease;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2d5016 !important;
}

.course-price-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 12px !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* Badges de nivel - Courses Section */
.course-level-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.course-level-badge.basico {
    background: #4a90e2 !important;
}

.course-level-badge.intermedio {
    background: #2d5016 !important;
}

.course-level-badge.avanzado {
    background: #e74c3c !important;
}

/* ===== COURSE DETAIL STYLES ===== */

.course-detail-section-area {
    padding: 60px 0;
}

.course-detail-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Imagen del Curso */
.course-detail-image {
    position: relative;
    margin-bottom: 40px;
}

.course-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.course-level-badge-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.course-level-badge-detail.basico {
    background: #4a90e2;
}

.course-level-badge-detail.intermedio {
    background: #2d5016;
}

.course-level-badge-detail.avanzado {
    background: #e74c3c;
}

/* Info Card Principal */
.course-info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #2d5016;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5016;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 16px;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Price CTA */
.course-price-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d5016;
}

.enroll-btn {
    background: #2d5016;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.enroll-btn:hover {
    background: #1f3810;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.15);
}

.enroll-btn:active {
    transform: translateY(0);
}

/* Sections */
.course-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.course-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title:before {
    content: "";
    width: 4px;
    height: 24px;
    background: #2d5016;
    border-radius: 2px;
}

.section-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.objective-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.objective-icon {
    width: 24px;
    height: 24px;
    background: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.objective-item p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Curriculum */
.curriculum-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.curriculum-module {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

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

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.module-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.module-number {
    width: 36px;
    height: 36px;
    background: #2d5016;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.module-title-section h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.module-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-hours {
    background: white;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.toggle-icon {
    color: #2d5016;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-content.active {
    max-height: 500px;
}

.lessons-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    background: white;
}

.lessons-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.lessons-list li:last-child {
    border-bottom: none;
}

.lesson-icon {
    color: #2d5016;
    font-size: 12px;
}

.lesson-title {
    flex: 1;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: transparent;
}

.info-box {
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: #2d5016;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.08);
}

.info-box-icon {
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #2d5016;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5016;
    margin-bottom: 16px;
    font-size: 18px;
}

.info-box h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.requirements-list li:before {
    content: "✓";
    color: #2d5016;
    font-weight: 700;
    flex-shrink: 0;
}

/* Instructor Profile */
.instructor-profile {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    align-items: flex-start;
}

.instructor-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border: 2px solid #2d5016;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5016;
    font-size: 40px;
}

.instructor-details {
    flex: 1;
}

.instructor-details h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.instructor-specialty {
    color: #2d5016;
    font-weight: 600;
    margin-bottom: 12px !important;
    font-size: 14px;
}

.instructor-bio {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 14px !important;
}

.instructor-credentials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.credential-badge {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* FAQ */
.faq-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question i {
    color: #2d5016;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-question i.rotated {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer.active {
    max-height: 300px;
}

.faq-answer p {
    padding: 18px;
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* Footer Section */
.course-footer-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.tags-section h5,
.share-section h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #2d5016;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: #2d5016;
    color: white;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #2d5016;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.share-buttons a:hover {
    background: #2d5016;
    color: white;
    transform: translateY(-2px);
}

/* Final CTA */
.course-final-cta {
    background: #f3f4f6;
    padding: 48px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.course-final-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.course-final-cta p {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 28px;
}

.enroll-btn-large {
    background: #2d5016;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.enroll-btn-large:hover {
    background: #1f3810;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-price-cta {
        flex-direction: column;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .instructor-profile {
        flex-direction: column;
        text-align: center;
    }

    .instructor-avatar {
        margin: 0 auto;
    }

    .instructor-credentials {
        justify-content: center;
    }

    .course-footer-section {
        flex-direction: column;
    }

    .course-final-cta {
        padding: 30px;
    }

    .enroll-btn-large {
        width: 100%;
        min-width: auto;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}
