/* Learning Paths Specific Styles */

/* Hero Section */
.learning-paths-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.learning-paths-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Hero Visual - Flashcard Preview */
.flashcard-preview {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card {
    position: absolute;
    width: 200px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-card.card-1 {
    transform: translateX(-50px) translateY(-20px) rotate(-10deg);
    z-index: 3;
}

.preview-card.card-2 {
    transform: translateX(0) translateY(0) rotate(0deg);
    z-index: 2;
}

.preview-card.card-3 {
    transform: translateX(50px) translateY(-20px) rotate(10deg);
    z-index: 1;
}

.preview-card:hover {
    transform: translateY(-30px) scale(1.05);
    z-index: 4;
}

.preview-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.preview-card h4 {
    font-size: 1rem;
    margin: 0;
    color: white;
    font-weight: 500;
}

/* Section Description */
.section-description {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 800px;
    font-size: 1.1rem;
    color: #555;
}

/* Path Cards */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.path-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.path-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.path-icon {
    width: 48px;
    height: 48px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.path-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.path-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.difficulty {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.beginner {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.intermediate {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.advanced {
    background-color: #fff3e0;
    color: #e65100;
}

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

.path-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background-color: #4caf50;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
}

.path-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.path-actions button {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 1rem;
}

.path-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

/* Path Details */
.path-details-btn, .start-path-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.path-details-btn {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.path-details-btn:hover {
    background-color: #f0f7ff;
}

.start-path-btn {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.start-path-btn:hover {
    background-color: #0069d9;
}

/* Learning Paths Intro */
.learning-paths-intro {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.skill-assessment {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.beta-tag {
    background-color: #ff9800;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    top: -1px;
    margin-left: 0.5rem;
}

/* Upcoming Paths */
.paths-coming-soon {
    margin-top: 3rem;
    text-align: center;
}

.upcoming-paths {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.upcoming-path {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Features Section */
.path-features {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #007bff;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.feature-card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Signup Prompt */
.signup-prompt {
    padding: 3rem 0;
}

.signup-content {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.signup-text {
    flex: 1;
    min-width: 280px;
}

.signup-text h2 {
    margin-top: 0;
    color: #0d47a1;
}

.signup-action {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Learning Resources (Ad Section) */
.learning-resources {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card.sponsored {
    border: 1px solid #ffecb3;
}

.sponsored-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #fff8e1;
    color: #ff8f00;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.resource-content p {
    margin-bottom: 1.25rem;
    color: #555;
    line-height: 1.5;
}

.resource-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.resource-link i {
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Path Content Modal */
.path-content-placeholder {
    text-align: center;
    padding: 2rem;
}

.path-content-placeholder h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.path-content-placeholder p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.placeholder-modules {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.placeholder-module {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    border-left: 4px solid #3498db;
}

.placeholder-module h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.placeholder-module p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* Learning Paths Section */
.learning-paths-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Updated Path Cards */
.path-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.path-header {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.path-icon.beginner {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.path-icon.intermediate {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.path-icon.advanced {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.path-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.path-info {
    flex: 1;
}

.path-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.path-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.path-meta .difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    color: white;
}

.path-meta .difficulty.beginner {
    background: #4CAF50;
}

.path-meta .difficulty.intermediate {
    background: #2196F3;
}

.path-meta .difficulty.advanced {
    background: #FF9800;
}

.path-meta .modules,
.path-meta .duration {
    color: #6c757d;
    font-weight: 500;
}

/* Module Preview */
.module-preview {
    margin: 1.5rem 0;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.module-number {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.module-name {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.card-count {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.more-modules {
    color: #667eea;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.path-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.learner-count,
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.demo-flashcard-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flashcard-stack {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.flashcard {
    width: 100%;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-number {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-topic {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-visual {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.perceptron-diagram {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.input-nodes,
.weights,
.output-node {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weights {
    gap: 1rem;
}

.node {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.weight {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.key-points {
    margin-top: 1rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.point i {
    color: #4CAF50;
}

.card-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Demo Activity */
.demo-activity {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-activity h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.activity-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #495057;
}

.activity-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-btn:disabled {
    cursor: not-allowed;
}

.activity-feedback {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feedback-content i {
    font-size: 1.2rem;
}

.demo-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.demo-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #495057;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Ad Container Styles */
.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-ad {
    margin: 1rem 0;
}

.content-ad {
    margin: 3rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .flashcard-preview {
        height: 200px;
    }
    
    .preview-card {
        width: 150px;
        height: 90px;
    }
    
    .preview-card.card-1 {
        transform: translateX(-30px) translateY(-10px) rotate(-5deg);
    }
    
    .preview-card.card-3 {
        transform: translateX(30px) translateY(-10px) rotate(5deg);
    }
    
    .paths-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .path-header {
        padding: 1.5rem;
    }
    
    .path-content {
        padding: 1.5rem;
    }
    
    .flashcard {
        height: 250px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
}

/* Learning Modal Styles */
.learning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.learning-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.module-info h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.module-info h3 {
    margin: 0 0 0.5rem 0;
    color: #667eea;
    font-size: 1.3rem;
}

.module-info p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.learning-body {
    padding: 2rem;
    flex: 1;
}

.progress-section {
    margin-bottom: 2rem;
}

.progress-section .progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-section .progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.flashcard-learning-container {
    margin-bottom: 2rem;
}

.flashcard-learning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    min-height: 300px;
    position: relative;
    color: white;
    margin-bottom: 1.5rem;
}

.card-front-learning,
.card-back-learning {
    padding: 2rem;
    border-radius: 15px;
}

.card-header-learning {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-topic-learning {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.card-content-learning {
    text-align: center;
}

.card-content-learning h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.card-content-learning p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.flip-instruction {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.key-points-learning {
    margin-top: 1.5rem;
    text-align: left;
}

.key-points-learning .point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.key-points-learning .point i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.card-controls-learning {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.activity-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.activity-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.activity-content-learning p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1.5rem;
}

.activity-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-btn-learning {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    color: #495057;
}

.option-btn-learning:hover:not(:disabled) {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-btn-learning:disabled {
    cursor: not-allowed;
}

.option-btn-learning.correct {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.option-btn-learning.incorrect {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.activity-feedback {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #28a745;
}

.activity-feedback .feedback-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-feedback .feedback-content i {
    font-size: 1.2rem;
}

.learning-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.btn-secondary:disabled {
    background: #e9ecef;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* Responsive Learning Modal */
@media (max-width: 768px) {
    .learning-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .learning-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .learning-body {
        padding: 1.5rem;
    }
    
    .flashcard-learning {
        min-height: 250px;
    }
    
    .card-front-learning,
    .card-back-learning {
        padding: 1.5rem;
    }
    
    .card-controls-learning {
        flex-direction: column;
    }
    
    .learning-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .learning-footer .btn {
        width: 100%;
    }
}
