:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --background-color: #f8fafc;
    --section-padding: 80px 0;
    --gradient-primary: linear-gradient(135deg, #6366f1, #4f46e5);
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #2563eb);
    --gradient-dark: linear-gradient(135deg, #1e293b, #0f172a);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(255, 255, 255, 1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    max-width: 260px;
    width: auto;
    display: block;
    margin-right: 16px;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.section {
    padding: var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
}

.video-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper-title {
    min-height: 56px;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 18px 20px 10px 20px;
    color: #fff;
    background: #00c3ff;
    margin: 0;
}

.video-wrapper video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: transparent;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: transparent;
    overflow: hidden;
}

.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Rimuovo gli stili che causano l'overlay nero */
.video-placeholder::after,
.video-placeholder::before {
    display: none;
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover .custom-video-controls {
    opacity: 1;
}

.custom-video-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.custom-video-controls button:hover {
    transform: scale(1.1);
}

.custom-video-controls .progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.custom-video-controls .progress-bar .progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.custom-video-controls .volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-video-controls .volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.custom-video-controls .volume-slider .volume-level {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

.video-placeholder.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

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

.video-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    opacity: 1;
}

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

.test-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
}

.test-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.altro-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

    .video-grid {
        grid-template-columns: minmax(280px, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 1.5rem;
    }
    
    .section-title i {
        font-size: 1.6rem;
    }

    .logo-img {
        height: 36px;
        max-width: 180px;
        margin-right: 10px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .intro-section {
        flex-direction: column;
        padding: 0;
        margin: 1.5rem 0;
    }

    .intro-image {
        min-width: 100%;
        margin-bottom: 1.5rem;
    }

    .video-wrapper {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .test-container {
        grid-template-columns: 1fr;
    }

    .video-grid {
        gap: 1rem;
    }
    
    .video-placeholder {
        min-width: 280px;
        min-height: 157.5px;
    }
    
    .video-placeholder i {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 1.2rem 1.5rem;
    }
    
    .section-title i {
        font-size: 1.4rem;
    }

    .intro-section {
        margin: 1rem 0;
    }
}

.section-title-wrapper {
    position: relative;
    display: block;
    margin-bottom: 4rem;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    background: linear-gradient(135deg, #1a365d, #2d3748);
    box-shadow: var(--shadow-lg);
}

.section-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite alternate;
}

.section-title-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin: 0;
    padding: 2rem 3rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.video-accordion {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 20px;
    background-color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    color: #475569;
}

.video-accordion.active .accordion-header i {
    transform: rotate(180deg);
}

.video-accordion.active .accordion-content {
    max-height: 200px;
    overflow-y: auto;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    background-image: url('img/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(213, 234, 239, 0.8);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.cta-button:hover::before {
    left: 100%;
}

.custom-video-controls .subtitles {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    position: relative;
}

.custom-video-controls .subtitles:hover {
    transform: scale(1.1);
}

.custom-video-controls .subtitles.active {
    color: var(--secondary-color);
}

.custom-video-controls .subtitles::after {
    content: 'IT';
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.6rem;
    background: var(--secondary-color);
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

/* Stili per Plyr */
.plyr {
    border-radius: 0;
    overflow: hidden;
}

.plyr--video {
    height: 100%;
}

.plyr--full-ui input[type=range] {
    color: var(--primary-color);
}

.plyr__control--overlaid {
    background: var(--primary-color);
}

.plyr__control--overlaid:hover {
    background: var(--primary-color-dark);
}

.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded=true] {
    background: var(--primary-color);
}

.plyr__control.plyr__tab-focus {
    box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.5);
}

.plyr__menu__container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.plyr__menu__container button {
    color: var(--text-color);
}

.plyr__menu__container button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Stili per i sottotitoli */
.plyr__captions {
    font-size: 1.2em;
    padding: 20px;
}

.plyr__captions .plyr__caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 8px 12px;
}

/* Stili per il loading */
.plyr--loading {
    background: #000;
}

.plyr--loading::before {
    border-color: var(--primary-color);
}

/* Stili per il poster */
.plyr__poster {
    background-size: cover;
    background-position: center;
}

/* Stili per i controlli */
.plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px;
}

.plyr__progress__container {
    height: 5px;
}

.plyr__progress__buffer {
    background: rgba(255, 255, 255, 0.3);
}

.plyr__progress__buffer::-webkit-progress-value {
    background: var(--primary-color);
}

.plyr__volume {
    min-width: 100px;
}

/* Stili per il fullscreen */
.plyr--fullscreen {
    background: #000;
}

.plyr--fullscreen video {
    height: 100vh;
    width: 100vw;
}

/* Stili per il mobile */
@media (max-width: 768px) {
    .plyr__controls {
        padding: 5px;
    }
    
    .plyr__volume {
        min-width: 80px;
    }
    
    .plyr__captions {
        font-size: 1em;
        padding: 10px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Sezione introduttiva */
.intro-section {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-image {
    flex: 0 0 40%;
    min-width: 300px;
    padding: 1rem;
}

.intro-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.intro-text {
    flex: 1;
    padding: 1rem;
}

.intro-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .intro-image {
        min-width: 100%;
        margin-bottom: 1.5rem;
        padding: 0.5rem;
    }

    .intro-text {
        padding: 0.5rem;
    }

    .intro-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .intro-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.topspin-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0 0.5rem 0;
}

.footer-logo-topspin {
    height: 45px;
    width: auto;
    margin-top: 0.5rem;
    display: block;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .footer-bottom {
        padding: 1.5rem 0.5rem 0;
    }

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

    .social-links {
        justify-content: center;
    }

    .footer-section ul li i {
        margin-right: 0.3rem;
    }

    .footer-logo-topspin {
        height: 35px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .topspin-credit {
        font-size: 0.8rem;
        text-align: center;
    }
}

.quiz-container {
    width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quiz-wrapper {
    padding: 2rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quiz-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.quiz-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .quiz-wrapper {
        padding: 1.5rem;
    }

    .quiz-header h3 {
        font-size: 1.5rem;
    }

    .quiz-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quiz-wrapper {
        padding: 1rem;
    }
}

/* Quiz Styles */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.question-number {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.question {
    margin-bottom: 2rem;
}

.question h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

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

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option.correct {
    background: #dcfce7;
    border-color: #22c55e;
}

.option.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
}

.option.correct::after,
.option.incorrect::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.option.correct::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.option.incorrect::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
}

.option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.feedback-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.feedback-message.correct {
    background: #dcfce7;
    color: #166534;
    display: block;
}

.feedback-message.incorrect {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.option:hover {
    background: #f1f5f9;
    border-color: var(--secondary-color);
}

.option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
}

.option span {
    font-size: 1.1rem;
    color: var(--text-color);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1a365d, #2d3748) !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quiz-results {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 2rem;
}

.quiz-results h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.score-container {
    margin-bottom: 2rem;
}

.score {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.score-message {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.restart-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1a365d, #2d3748) !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .question h4 {
        font-size: 1.2rem;
    }

    .option {
        padding: 0.8rem;
    }

    .option span {
        font-size: 1rem;
    }

    .nav-button {
        padding: 0.7rem 1.2rem;
    }
}

.video-wrapper video, .plyr, .plyr__video-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.cookie-content a {
    color: #3498db;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

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

.cookie-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-button.accept {
    background-color: #3498db;
    color: white;
}

.cookie-button.accept:hover {
    background-color: #2980b9;
}

.cookie-button.reject {
    background-color: #e74c3c;
    color: white;
}

.cookie-button.reject:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
} 

.main-content {
    padding-top: 100px;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }
} 

.row-flex {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 32px;
    margin: 0 auto;
}

.col-sx {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 350px;
}

.col-center {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-dx {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .row-flex {
        flex-direction: column;
        gap: 32px;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .col-sx, .col-center, .col-dx {
        max-width: 100%;
        flex: 1 1 100%;
        min-height: unset;
        align-items: stretch;
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
    }
    .col-sx {
        margin-bottom: 12px;
    }
    .col-center {
        margin-bottom: 12px;
        justify-content: center;
        align-items: center;
    }
    .col-dx {
        margin-bottom: 12px;
        justify-content: center;
        align-items: center;
    }
    .intro-text {
        padding: 0 4px;
    }
    .cta-button {
        margin: 0 auto;
        display: block;
    }
} 