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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
    border-color: #2563EB;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #4B5563;
    border-color: #4B5563;
}

.btn-outline {
    background-color: transparent;
    color: #2563EB;
    border-color: #2563EB;
}

.btn-outline:hover {
    background-color: #2563EB;
    color: white;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563EB;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563EB;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1F2937;
    color: white;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: #F9FAFB;
}

.cookie-content p {
    margin-bottom: 15px;
    color: #D1D5DB;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Cookie Settings Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6B7280;
}

.close:hover {
    color: #374151;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
}

.cookie-category h3 {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.required {
    font-size: 12px;
    color: #DC2626;
    font-weight: normal;
}

.cookie-category p {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2563EB;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2563EB;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1F2937;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #2563EB;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: #F9FAFB;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1F2937;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #6B7280;
}

.about-features {
    list-style: none;
    margin-bottom: 30px;
}

.about-features li {
    padding: 8px 0;
    font-size: 1.1rem;
    color: #374151;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1F2937;
}

.service-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* Courses Section */
.courses {
    background-color: #F9FAFB;
}

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

.course-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    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.15);
}

.course-image {
    height: 200px;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 80px;
    height: 80px;
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1F2937;
}

.course-content p {
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.course-meta span {
    background-color: #E5E7EB;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563EB;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.testimonial-content p {
    font-style: italic;
    color: #6B7280;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #1F2937;
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #6B7280;
    font-size: 14px;
}

.testimonial-rating {
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
}

.form-checkbox {
    text-align: left;
}

.form-checkbox input {
    margin-right: 8px;
}

.form-checkbox a {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    background-color: #F9FAFB;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1F2937;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1F2937;
}

.contact-item p {
    color: #6B7280;
    line-height: 1.6;
}

.contact-item a {
    color: #2563EB;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    margin-bottom: 15px;
    color: #1F2937;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #2563EB;
    font-weight: 500;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Form Styles */
.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563EB;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 25px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #F9FAFB;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section ul li a:hover {
    color: #2563EB;
}

.footer-contact a {
    color: #2563EB;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social a {
    margin-left: 20px;
    color: #D1D5DB;
}

.footer-social a:hover {
    color: #2563EB;
}

/* Legal Pages */
.legal-page {
    padding: 40px 0;
    background-color: #F9FAFB;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1F2937;
}

.last-updated {
    color: #6B7280;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1F2937;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #374151;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #4B5563;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4B5563;
}

.contact-box {
    background-color: #F3F4F6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2563EB;
    margin: 20px 0;
}

.legal-navigation {
    margin-top: 50px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #E5E7EB;
}

.cookie-table th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.cookie-table td {
    color: #6B7280;
}

.cookie-controls {
    margin: 20px 0;
    text-align: center;
}

/* Thanks Page */
.thanks-page {
    padding: 40px 0;
    background-color: #F9FAFB;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1F2937;
}

.thanks-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2563EB;
}

.thanks-content p {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.thanks-benefits,
.thanks-next-steps {
    text-align: left;
    background-color: #F9FAFB;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.thanks-benefits h3,
.thanks-next-steps h3 {
    color: #1F2937;
    margin-bottom: 15px;
}

.thanks-benefits ul,
.thanks-next-steps ul {
    list-style: none;
    padding-left: 0;
}

.thanks-benefits li,
.thanks-next-steps li {
    padding: 8px 0;
    color: #4B5563;
}

.thanks-actions {
    margin: 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-contact {
    margin-top: 40px;
    text-align: center;
}

.thanks-contact h3 {
    color: #1F2937;
    margin-bottom: 20px;
}

.contact-quick {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-quick .contact-item {
    text-align: center;
}

.auto-redirect {
    margin-top: 40px;
    padding: 20px;
    background-color: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    color: #92400E;
}

#countdown {
    font-weight: bold;
    color: #B45309;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social a {
        margin: 0 10px;
    }

    .legal-content {
        padding: 40px 30px;
    }

    .thanks-actions,
    .legal-navigation {
        flex-direction: column;
        align-items: center;
    }

    .contact-quick {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .thanks-content {
        padding: 40px 20px;
    }

    .cookie-content {
        padding: 0 10px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .nav-toggle,
    .btn,
    .auto-redirect {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    main {
        padding-top: 0;
    }

    .legal-content {
        box-shadow: none;
        padding: 0;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-outline {
        border-color: #000;
        color: #000;
    }
}
