/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.flash {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .flash-messages {
        top: 70px;
        width: 95%;
    }
    
    .flash {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 2px solid #00ffff;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
    to {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
    position: relative;
}

.nav-links a:hover {
    color: #ff00ff;
    text-shadow: 0 0 3px #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    color: #00ffff;
    padding: 40px 0 30px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #00ffff;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    position: relative;
    z-index: 1;
}

.hero .description {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Instructor Preview */
.instructor-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4facfe;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-details {
    text-align: right;
    flex: 1;
}

.instructor-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #4facfe;
    font-weight: 600;
}

.instructor-details p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #ff00ff;
}

.btn-secondary {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #ff00ff;
    color: #ff00ff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

/* Course Info Section - Like Advantages */
.course-info {
    padding: 50px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
}

.course-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

.course-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.course-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-info .form-group {
    margin-bottom: 1rem;
}

.course-info .form-group label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #e0e0e0;
}

.course-info .form-group input,
.course-info .form-group textarea,
.course-info .form-group select {
    font-size: 1rem;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #e0e0e0;
}

.course-info .form-group textarea {
    height: 120px;
    resize: vertical;
}

.course-info .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 10px;
    margin-top: 1rem;
    width: 100%;
}

.course-info ul {
    padding-right: 1rem;
    margin: 1rem 0;
}

.course-info li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.course-info i {
    font-size: 1.3rem;
    margin-left: 0.8rem;
    color: #00ffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}

.stat-card h3 {
    font-size: 2rem;
    color: #00ffff;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-shadow: 0 0 5px #00ffff;
}

.stat-card p {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0;
}

/* Features Section */
.features {
    padding: 50px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    color: #e0e0e0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

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

.feature-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #ff00ff;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Advantages Section */
.advantages {
    padding: 50px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    color: #e0e0e0;
    border-bottom: 3px solid #ff00ff;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.2);
}

.advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #ff00ff;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
}

.advantage-card h3 {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Modules Section */
.modules {
    padding: 50px 0;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
}

.modules h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

/* Center the 12th module */
/* .modules-grid .module-card:nth-child(12) {
    grid-column: 2 / 3;
    text-align: center;
    background: #f8f9fa;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    border-left: 5px solid #667eea;
} */

.module-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.module-card:hover {
    transform: translateX(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: #ff00ff;
}

.module-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 3px #00ffff;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    color: #e0e0e0;
    border-bottom: 3px solid #00ffff;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #ff00ff;
    text-shadow: 0 0 3px #ff00ff;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 3px #00ffff;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
    color: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: #333;
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 0;
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

body[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}

body[dir="rtl"] .course-stats {
    direction: rtl;
}

body[dir="rtl"] .features-grid,
body[dir="rtl"] .modules-grid,
body[dir="rtl"] .testimonials-grid {
    direction: rtl;
}

/* Discount Badge */
.discount-badge {
    background: #ff4757;
    color: #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    opacity: 0.7;
}

.current-price {
    color: #28a745;
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-card .price-container {
    margin: 0.5rem 0;
}

.stat-card .original-price {
    font-size: 1rem;
}

.stat-card .current-price {
    font-size: 1.5rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: #f8f9fa;
}

/* Form Styles */
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
    color: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.form-group select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile body padding adjustment */
    body {
        padding-top: 70px !important; /* Smaller header on mobile */
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .instructor-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .instructor-details {
        text-align: center;
    }
    
    .instructor-avatar {
        width: 70px;
        height: 70px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .course-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card h3 {
        font-size: 1.2rem;
        margin-top: 0.3rem;
        margin-bottom: 0;
    }
    
    .stat-card p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .stat-card .original-price {
        font-size: 0.8rem;
    }
    
    .stat-card .current-price {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Fix module cards on mobile - make them all consistent and compact */
    .module-card {
        padding: 1rem !important;
        margin: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .module-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .module-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
    
    /* Ensure all module cards have consistent styling on mobile */
    .modules .module-card {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: right !important;
    }
    
    /* Fix any potential height inconsistencies - More compact */
    .modules .module-card:nth-child(n) {
        height: auto !important;
        min-height: 80px !important;
        max-height: none !important;
    }
    
    /* Make other sections more compact */
    .features h2,
    .advantages h2,
    .testimonials h2,
    .modules h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-card,
    .advantage-card,
    .testimonial-card {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .feature-card h3,
    .advantage-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .feature-card p,
    .advantage-card p,
    .testimonial-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .feature-icon,
    .advantage-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Ensure consistent spacing between cards */
    .modules .module-card + .module-card {
        margin-top: 0 !important;
    }
    
    /* .modules-grid .module-card:nth-child(12) {
        grid-column: 1;
    } */
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Fix mobile navigation issue */
    .mobile-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* Course-info section - Mobile like advantages */
    .course-info {
        padding: 20px 0;
    }
    
    .course-info h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .course-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .course-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero {
        padding: 15px 0 !important;
        min-height: auto !important;
    }
    
    /* Ensure hero content is visible */
    .hero-content {
        padding: 0.8rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .modules {
        padding: 10px 0 !important;
    }
    
    .features {
        padding: 10px 0 !important;
    }
    
    .advantages {
        padding: 10px 0 !important;
    }
    
    .testimonials {
        padding: 10px 0 !important;
    }
    
    /* Make containers more compact */
    .container {
        padding: 0.5rem !important;
    }
    
    /* Reduce section margins */
    section {
        margin: 0 !important;
    }
    
    /* Course-info elements - Mobile like advantages */
    .course-info .form-group {
        margin-bottom: 1rem;
    }
    
    .course-info .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .course-info .form-group input,
    .course-info .form-group textarea,
    .course-info .form-group select {
        font-size: 0.9rem;
        padding: 10px;
        border-radius: 6px;
        width: 100%;
    }
    
    .course-info .form-group textarea {
        height: 80px;
    }
    
    .course-info .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 6px;
        margin-top: 1rem;
        width: 100%;
    }
    
    .course-info ul {
        padding-right: 1rem;
        margin: 0.5rem 0;
    }
    
    .course-info li {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        line-height: 1.4;
    }
    
    .course-info i {
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    /* Enroll page mobile - Single column */
    .course-info div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Dashboard page mobile - Fix course purchase section */
    .course-info div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    /* Dashboard payment buttons - Stack vertically on mobile */
    .course-info div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }
    
    /* Dashboard payment buttons - Full width */
    .course-info button[style*="width: 100%"],
    .course-info a[style*="width: 100%"] {
        width: 100% !important;
    }
    
    /* Dashboard payment buttons - Better sizing - More compact */
    .course-info button[type="submit"],
    .course-info button[type="button"] {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Dashboard cards - Much more compact */
    .course-info div[style*="background: rgba(26, 26, 46, 0.8)"] {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Dashboard user info grid - More compact */
    .course-info div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Dashboard headings - Smaller */
    .course-info h2[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .course-info h3[style*="font-size: 1rem"] {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .course-info h4[style*="font-size: 1rem"] {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Dashboard text - Smaller */
    .course-info div[style*="font-size: 0.9rem"] {
        font-size: 0.85rem !important;
    }
    
    .course-info li[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .course-info ul[style*="list-style: none"] {
        padding: 0 !important;
    }
    
    /* Dashboard table - More compact */
    .course-info div[style*="overflow-x: auto"] table {
        font-size: 0.75rem !important;
    }
    
    .course-info div[style*="overflow-x: auto"] th,
    .course-info div[style*="overflow-x: auto"] td {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Dashboard hero section - Much more compact */
    .hero[style*="margin-top: 80px"] {
        margin-top: 70px !important;
        padding: 10px 0 !important;
    }
    
    .hero h1[style*="font-size: 1.8rem"] {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .hero .subtitle[style*="font-size: 1rem"] {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Dashboard student status card - More compact */
    .course-info div[style*="background: linear-gradient(135deg, rgba(39, 174, 96"] {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .course-info div[style*="background: linear-gradient(135deg, rgba(39, 174, 96"] h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
    
    .course-info div[style*="background: linear-gradient(135deg, rgba(39, 174, 96"] p {
        font-size: 0.8rem !important;
        margin: 0.3rem 0 0 0 !important;
    }
    
    .course-info div[style*="background: linear-gradient(135deg, rgba(39, 174, 96"] i {
        font-size: 1.3rem !important;
    }
    
    /* Dashboard price display - More compact */
    .course-info span[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    .course-info span[style*="font-size: 1rem"] {
        font-size: 0.85rem !important;
    }
    
    .course-info div[style*="font-size: 0.8rem"] {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Dashboard action buttons - More compact */
    .course-info a[style*="padding: 0.6rem 1.2rem"] {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        margin-left: 0.5rem !important;
    }
    
    
    /* Mobile fixes for home page - Perfect balance */
    .hero h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.6) !important;
    }
    
    .hero .subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
        color: #00ffff !important;
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.4) !important;
    }
    
    .hero .description {
        font-size: 0.85rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
        color: #e0e0e0 !important;
    }
    
    .instructor-preview {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
        margin: 0.8rem 0 !important;
        padding: 0.6rem !important;
        background: rgba(26, 26, 46, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 255, 0.2) !important;
    }
    
    .instructor-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .instructor-details h3 {
        font-size: 0.9rem !important;
        color: #00ffff !important;
        text-shadow: 0 0 6px rgba(0, 255, 255, 0.4) !important;
        margin-bottom: 0.2rem !important;
    }
    
    .instructor-details p {
        font-size: 0.8rem !important;
        color: #e0e0e0 !important;
    }
    
    .discount-badge {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        margin: 0.6rem 0 !important;
        background: rgba(255, 0, 0, 0.2) !important;
        border: 1px solid #ff0000 !important;
        border-radius: 6px !important;
        color: #ff6b6b !important;
        text-shadow: 0 0 4px rgba(255, 0, 0, 0.5) !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.6rem !important;
        margin-top: 0.8rem !important;
    }
    
    .btn {
        width: 100% !important;
        max-width: 250px !important;
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
        border-radius: 6px !important;
    }
}


/* Instructor Page Mobile Styles */
@media (max-width: 768px) {
    /* Make instructor profile vertical layout */
    .course-info div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    /* Teaching philosophy grid - 1 column on mobile */
    .course-info div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Instructor profile section adjustments */
    .course-info div[style*="text-align: center;"] {
        margin-bottom: 1rem !important;
    }
    
    /* Instructor avatar adjustments */
    .course-info div[style*="width: 120px; height: 120px"] {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 0.8rem !important;
    }
    
    /* Text size adjustments for mobile */
    .course-info h2[style*="font-size: 1.3rem"] {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .course-info h4[style*="font-size: 1rem"] {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .course-info p[style*="font-size: 0.85rem"] {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .course-info p[style*="font-size: 1rem"] {
        font-size: 0.9rem !important;
    }
    
    /* Summary section adjustments */
    .course-info div[style*="background: rgba(26, 26, 46, 0.6)"] {
        padding: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Companies and specialties flex adjustments */
    .course-info div[style*="display: flex; flex-wrap: wrap"] {
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Teaching philosophy cards adjustments */
    .course-info div[style*="text-align: center; padding: 1rem;"] {
        padding: 0.8rem !important;
    }
    
    .course-info div[style*="font-size: 2rem;"] {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Button adjustments */
    .course-info .btn[style*="padding: 8px 16px"] {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .course-info .btn[style*="padding: 12px 24px"] {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}
