/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #fff;
}

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

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

[dir="rtl"] .nav-menu {
    margin-left: 0;
    margin-right: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2563EB;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563EB;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
    color: white;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: #3B82F6;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: #4B5563;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3B82F6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3B82F6;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #4B5563;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1F2937;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6B7280;
}

/* Courses Grid */
.featured-courses,
.courses-catalog {
    padding: 80px 0;
}

.featured-courses h2,
.courses-catalog h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1F2937;
}

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

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

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.course-category,
.course-difficulty,
.course-duration {
    font-size: 0.875rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.course-category {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.course-difficulty {
    background-color: #D1FAE5;
    color: #065F46;
}

.course-duration {
    background-color: #FEF3C7;
    color: #92400E;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.course-description {
    color: #6B7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.course-instructor {
    font-size: 0.875rem;
    color: #6B7280;
}

.section-footer {
    text-align: center;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.trust-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1F2937;
}

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

.trust-item {
    text-align: center;
    padding: 2rem;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.trust-item p {
    color: #6B7280;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #6B7280;
}

/* Catalog Controls */
.catalog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: #3B82F6;
}

.search-box button {
    padding: 12px 16px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    outline: none;
}

.filter-controls select:focus {
    border-color: #3B82F6;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6B7280;
    font-size: 1.125rem;
}

/* Course Detail */
.course-detail {
    padding-top: 2rem;
}

.course-hero {
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    padding: 60px 0;
}

.course-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.course-breadcrumb {
    color: #6B7280;
    margin-bottom: 1rem;
}

.course-breadcrumb a {
    color: #6B7280;
}

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

.course-hero h1 {
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.course-hero .course-price {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin: 1.5rem 0;
}

.course-actions {
    margin-top: 2rem;
}

.course-details {
    padding: 60px 0;
}

.course-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.course-section {
    margin-bottom: 3rem;
}

.course-section h2 {
    color: #1F2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.learning-objectives,
.requirements {
    list-style: none;
}

.learning-objectives li,
.requirements li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.learning-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: bold;
}

.curriculum {
    background-color: #F9FAFB;
    border-radius: 8px;
    overflow: hidden;
}

.curriculum-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.curriculum-title {
    font-weight: 500;
    color: #1F2937;
}

.curriculum-duration {
    color: #6B7280;
    font-size: 0.875rem;
}

.faq-list .faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #F9FAFB;
}

.faq-answer {
    padding: 0 1.5rem 1rem;
    color: #6B7280;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.course-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.instructor-card,
.course-features {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.instructor-card h3,
.course-features h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.instructor-info h4 {
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

.course-features ul {
    list-style: none;
}

.course-features li {
    padding: 0.5rem 0;
    color: #6B7280;
}

.course-not-found {
    padding: 80px 0;
    text-align: center;
}

.error-content h1 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.error-content p {
    color: #6B7280;
    margin-bottom: 2rem;
}

/* Checkout */
.checkout-section {
    padding: 60px 0;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: #F3F4F6;
    color: #6B7280;
}

.step.active {
    background-color: #3B82F6;
    color: white;
}

.step.completed {
    background-color: #059669;
    color: white;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: currentColor;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.step.active .step-number,
.step.completed .step-number {
    background-color: rgba(255,255,255,0.2);
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.checkout-form-section h2 {
    color: #1F2937;
    margin-bottom: 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3B82F6;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text a {
    color: #3B82F6;
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.order-summary h3 {
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.course-summary {
    padding: 1rem;
    background-color: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.course-summary h4 {
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.course-summary p {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.course-summary .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.billing-info {
    margin-bottom: 1.5rem;
}

.billing-info h4 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.billing-details p {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.order-total {
    border-top: 2px solid #E5E7EB;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.total-amount {
    color: #059669;
}

.security-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.security-info h4 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.security-info p {
    color: #6B7280;
    font-size: 0.875rem;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
}

/* Success Page */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-content h1 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 3rem;
}

.order-details {
    margin-bottom: 3rem;
}

.order-details h2 {
    color: #1F2937;
    margin-bottom: 2rem;
}

.order-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    margin-bottom: 2rem;
}

.next-steps {
    margin-bottom: 3rem;
}

.next-steps h3 {
    color: #1F2937;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-item {
    padding: 2rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-item h4 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.step-item p {
    color: #6B7280;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.additional-info {
    padding: 60px 0;
    background-color: #F9FAFB;
}

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

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.info-card p {
    color: #6B7280;
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #6B7280;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.values-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.values-section h2 {
    text-align: center;
    color: #1F2937;
    margin-bottom: 3rem;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.value-card p {
    color: #6B7280;
}

.commitment-section {
    padding: 80px 0;
}

.commitment-content h2 {
    text-align: center;
    color: #1F2937;
    margin-bottom: 3rem;
}

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

.commitment-item {
    padding: 1.5rem;
}

.commitment-item h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.commitment-item p {
    color: #6B7280;
}

.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    text-align: center;
}

.cta-content h2 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #6B7280;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #6B7280;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-details h3 {
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #3B82F6;
    margin-bottom: 0.25rem;
}

.contact-details small {
    color: #6B7280;
    font-size: 0.875rem;
}

.contact-form-section h2 {
    color: #1F2937;
    margin-bottom: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.success-message {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.support-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.support-section h2 {
    text-align: center;
    color: #1F2937;
    margin-bottom: 3rem;
}

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

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.support-card p {
    color: #6B7280;
    margin-bottom: 2rem;
}

/* FAQ Page */
.faq-section {
    padding: 60px 0;
}

.faq-categories {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    color: #1F2937;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.faq-contact {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #EBF8FF 0%, #F0F9FF 100%);
    border-radius: 12px;
    margin-top: 3rem;
}

.faq-contact h2 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.faq-contact p {
    color: #6B7280;
    margin-bottom: 2rem;
}

.faq-contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Legal Pages */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.legal-document h2 {
    color: #1F2937;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.legal-document h2:first-of-type {
    margin-top: 0;
}

.legal-document p {
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-document ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-document li {
    color: #6B7280;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.contact-info {
    background-color: #F9FAFB;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #1F2937;
}

.legal-notice {
    background-color: #FEF3C7;
    border: 1px solid #F59E0B;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.legal-notice p {
    color: #92400E;
    margin-bottom: 0;
}

.legal-notice strong {
    color: #78350F;
}

/* Footer */
.footer {
    background-color: #1F2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #D1D5DB;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #93C5FD;
}

.footer-contact a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .course-details-grid {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .course-hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .legal-document {
        padding: 2rem 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .checkout-form {
        padding: 1.5rem;
    }
    
    .order-summary {
        padding: 1.5rem;
    }
}

/* Focus and Accessibility */
.btn:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn,
    .checkout-sidebar,
    .course-sidebar {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .legal-document,
    .course-detail,
    .about-content {
        page-break-inside: avoid;
    }
}