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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .logo {
    filter: brightness(0) saturate(100%) invert(1);
}

.desktop-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

.theme-icon {
    width: 24px;
    height: 24px;
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

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

.mobile-nav-links {
    padding: 1rem 20px;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary-cta {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.cta-button.secondary-cta:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.register-btn {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/9/1/6913224befa6e026120763.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-eyebrow svg {
    color: var(--accent-color);
}

.hero-headline {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-cta {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Why Choose Section */
.why-choose-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-side h2 {
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.trust-pillars {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pillar {
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pillar h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.image-side img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.outcomes-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.outcomes-list {
    display: grid;
    gap: 2rem;
}

.outcome-card {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outcome-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.outcome-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.outcome-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.outcome-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.journey-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 12px;
}

.journey-step {
    text-align: center;
    max-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.journey-step h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.journey-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.journey-arrow {
    color: var(--primary-color);
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

.courses-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border: 2px solid var(--accent-color);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.course-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}

.course-level.beginner {
    background-color: #28a745;
}

.course-level.intermediate {
    background-color: #f39c12;
}

.course-level.advanced {
    background-color: #dc3545;
}

.course-level.mentorship {
    background-color: var(--primary-color);
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.course-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.duration svg {
    color: var(--primary-color);
}

.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 12px;
}

.seo-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h3:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* Instructors Section */
.instructors-section {
    padding: 4rem 0;
}

.instructors-grid {
    display: grid;
    gap: 3rem;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 12px;
}

.instructor-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.instructor-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.instructor-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instructor-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.testimonial-course {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    color: var(--accent-color);
}

blockquote {
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.testimonial-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-badge {
    padding: 0.5rem 1rem;
    background-color: var(--surface-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 1.125rem;
    margin: 0;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

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

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Final CTA Section */
.final-cta-section {
    position: relative;
    padding: 4rem 20px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/9/1/6913224b8b3ab623958011.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.9), rgba(243, 156, 18, 0.8));
    z-index: 1;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.final-cta-subheadline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.final-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.large-cta {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    min-width: 250px;
    margin-bottom: 2rem;
}

.final-cta-reassurance {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.final-cta-reassurance span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    font-weight: 500;
}

.final-cta-reassurance svg {
    color: var(--accent-color);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

.newsletter-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.newsletter-benefits svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--success-color);
}

.newsletter-form-wrapper {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-privacy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-proof svg {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .footer-logo {
    filter: brightness(0) saturate(100%) invert(1);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--primary-color);
}

.footer-contact a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-cta {
    margin-top: 1.5rem;
    width: 100%;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-legal p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.legal-modal-content {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--error-color);
    color: #ffffff;
}

.modal-content h2 {
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-content > p {
    margin-bottom: 1.5rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-modal-body {
    font-size: 0.9375rem;
    line-height: 1.8;
}

.legal-modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-modal-body p {
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem 20px;
    z-index: 1500;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

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

.cookie-accept,
.cookie-reject {
    flex: 1;
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .desktop-nav {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .register-btn {
        display: inline-block;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-subheadline {
        font-size: 1.25rem;
    }

    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }

    .trust-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .outcomes-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructor-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .instructor-image {
        max-width: 250px;
    }

    .newsletter-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .newsletter-content,
    .newsletter-form-wrapper {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-actions {
        flex-shrink: 0;
    }

    .cookie-accept,
    .cookie-reject {
        flex: 0 0 auto;
        min-width: 120px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .split-layout {
        flex-direction: row;
        align-items: center;
    }

    .content-side {
        flex: 1;
    }

    .image-side {
        flex: 0 0 40%;
    }

    .outcomes-layout {
        flex-direction: row;
    }

    .outcomes-list {
        flex: 1;
    }

    .journey-visual {
        flex: 0 0 300px;
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .final-cta-content h2 {
        font-size: 2.5rem;
    }

    .final-cta-reassurance {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .trust-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .outcomes-list {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header,
    .hero-section,
    .final-cta-section,
    .newsletter-section,
    footer,
    .modal,
    .cookie-banner {
        display: none;
    }
}
