/* assets/css/style.css - MedExamExpert Style */

/* CSS Variables for Consistency */
:root {
    /* Primary Colors (Medical/Education Theme) */
    --primary-dark: #1a365d;       /* Dark Blue */
    --primary-blue: #2d5aa0;       /* Primary Blue */
    --accent-teal: #0ea5e9;        /* Bright Teal */
    --accent-green: #10b981;       /* Success Green */
    --warning-orange: #f59e0b;     /* Warning Orange */
    --danger-red: #ef4444;         /* Alert Red */
    
    /* Neutral Colors */
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: initial;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    border-radius: 2px;
}

/* Announcement Bar */
.top-announcement {
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal)) !important;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
    background-color: rgba(14, 165, 233, 0.1);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--accent-teal);
    border-radius: 1.5px;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: 8px;
    padding: 0.5rem;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(45, 90, 160, 0.9) 100%), 
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230ea5e9' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid var(--medium-gray);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-teal), var(--accent-green));
    transition: height var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover:before {
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon i {
    color: white;
}

/* Course Cards (Medical Exam Style) */
.courses-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.course-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-badge.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.level-badge.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.level-badge.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Success Stories / Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-blue));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-teal);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .feature-card, .course-card, .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--medium-gray);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Staggered Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-teal), var(--primary-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-blue), var(--accent-teal));
}

/* Quiz Cards */
.quiz-card {
    transition: transform 0.3s ease;
    border: 1px solid #dee2e6;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quiz-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4361ee;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
}


/* Payment Modal Styles */
#paymentModal .modal-dialog {
    max-width: 900px;
}

#paymentModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

#paymentModal .modal-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

#paymentModal .modal-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

#paymentModal .modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Card Styles */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: #e8f4ff;
    color: #1a237e;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

.accordion-body {
    background-color: #f8f9fa;
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

.form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Button Styles */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline-secondary {
    border: 2px solid #dee2e6;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    border-color: #6c757d;
    background-color: #f8f9fa;
}

/* Payment Method Cards */
.payment-method-option {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.payment-method-option:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.payment-method-option.selected {
    border-color: #1a237e;
    background-color: rgba(26, 35, 126, 0.05);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.1);
}

.method-icon {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon .rounded-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-method-option:hover .method-icon .rounded-circle {
    transform: scale(1.1);
}

.method-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-action {
    margin-top: auto;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1.25rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
}

/* Steps Styles */
.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.step-item .badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Input Group Styles */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    background-color: white;
}

/* Scrollbar Styles */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* File Upload Preview */
.img-thumbnail {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 5px;
    background-color: #f8f9fa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #paymentModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #paymentModal .modal-body {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .payment-method-option {
        min-height: 160px;
    }
    
    .method-icon .rounded-circle {
        width: 60px;
        height: 60px;
    }
}