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

/* ============================================================================
   INDEX.HTML STYLES
   ============================================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F8F9FA;
    min-height: 100vh;
}

/* Index Page Specific */
body.index-page {
    background: #9BC4E2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    background: #F8F9FA;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 67, 133, 0.15);
    align-items: center;
    border: 6px solid #001F42;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    color: #001F42;
    line-height: 1.2;
}

.description {
    font-size: 18px;
    color: #001F42;
    line-height: 1.6;
    max-width: 450px;
}

.start-button {
    align-self: flex-start;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.4);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 83, 153);
}

.start-button:active {
    transform: translateY(0);
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: #94B3D1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001F42;
    font-size: 16px;
    border: 2px dashed #001F42;
}

/* ============================================================================
   NAVIGATION STYLES (Overview, Lessons, Practice)
   ============================================================================ */

nav {
    background: #F8F9FA;
    padding: 20px 60px;
    box-shadow: 0 2px 8px rgba(0, 31, 66, 0.1);
    border-bottom: 2px solid #001F42;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #001F42;
    transition: color 0.3s ease;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: #7285A5;
    border-bottom-color: #7285A5;
}

nav a.active {
    color: #7285A5;
    border-bottom-color: #7285A5;
}

/* ============================================================================
   OVERVIEW.HTML STYLES
   ============================================================================ */

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.overview-title {
    font-size: 42px;
    font-weight: 700;
    color: #001F42;
    line-height: 1.3;
}

.quote-section {
    background: #7285A5;
    padding: 30px;
    border-radius: 8px;
}

.quote-text {
    font-size: 16px;
    color: #F8F9FA;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-attribution {
    font-size: 14px;
    color: #F8F9FA;
    text-align: right;
}

.quote-attribution a {
    color: #F8F9FA;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.quote-attribution a:hover {
    text-decoration: underline;
}

.lesson-button {
    align-self: flex-start;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.lesson-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.5);
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.lesson-button:hover .arrow {
    transform: translateX(5px);
}

/* ============================================================================
   LESSONS.HTML STYLES
   ============================================================================ */

/* Allow scrolling on lessons page only */
body:has(.lessons-container) {
    overflow: auto;
}

.lessons-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lessons-title {
    font-size: 48px;
    font-weight: 700;
    color: #001F42;
    margin-bottom: 15px;
}

.lessons-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    flex: 1;
    align-items: stretch;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #7285A5;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #001F42;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: #7285A5;
}

.lesson-card {
    flex: 0 0 300px;
    background: #7285A5;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 2px solid #001F42;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 500px;
    position: relative;
}

.lesson-status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.lesson-status-indicator.passed {
    background: #28a745;
}

.lesson-status-indicator.failed {
    background: #dc3545;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 31, 66, 0.15);
}

.lesson-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #F8F9FA;
}

.lesson-card-description {
    font-size: 14px;
    color: #F8F9FA;
    line-height: 1.6;
    flex-grow: 1;
}

.card-button {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
    text-transform: uppercase;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.5);
}

#practiceButton {
    background: #7285A5;
    box-shadow: 0 4px 15px rgba(114, 133, 165, 0.3);
}

#practiceButton:hover {
    box-shadow: 0 6px 20px rgba(114, 133, 165, 0.5);
}

.card-image-placeholder {
    width: 100%;
    height: 150px;
    background: rgba(248, 249, 250, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8F9FA;
    font-size: 12px;
    border: 1px dashed #F8F9FA;
    flex-grow: 1;
}

.card-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    flex-grow: 1;
}

/* Lesson Modal Styles */

.lesson-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F8F9FA;
    z-index: 1000;
    flex-direction: column;
}

.lesson-modal.active {
    display: flex;
}

.lesson-header {
    background: #F8F9FA;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #001F42;
}

.lesson-title {
    font-size: 32px;
    font-weight: 700;
    color: #001F42;
}

.exit-button {
    background: none;
    border: none;
    font-size: 32px;
    color: #001F42;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.exit-button:hover {
    color: #7285A5;
}

.lesson-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.lesson-page {
    display: none;
    width: 100%;
    padding: 60px;
    gap: 40px;
    flex-direction: row;
    flex: 1;
}

.lesson-page.active {
    display: flex;
}

.lesson-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lesson-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #001F42;
}

.lesson-body-text {
    font-size: 16px;
    color: #001F42;
    line-height: 1.8;
}

.lesson-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.lesson-image-placeholder {
    width: 100%;
    height: 300px;
    background: #B8D4E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001F42;
    font-size: 16px;
    border: 2px dashed #001F42;
}

.lesson-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 20px;
}

.lesson-button {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 66, 0.5);
}

.page-counter {
    font-size: 14px;
    color: #7285A5;
    font-weight: 600;
}

/* Quiz Section Styles */

.quiz-section {
    display: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
    height: 100vh;
}

.quiz-section.active {
    display: flex;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #F8F9FA;
    border-bottom: 2px solid #001F42;
}

.quiz-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #001F42;
    margin: 0;
}

.quiz-header .exit-button {
    background: none;
    border: none;
    font-size: 32px;
    color: #001F42;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.quiz-header .exit-button:hover {
    color: #7285A5;
}

.quiz-pages-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 60px;
    gap: 40px;
}

.quiz-page {
    display: none;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.quiz-page.active {
    display: flex;
}

.quiz-question-subtitle {
    font-size: 16px;
    color: #7285A5;
    font-weight: 600;
    margin: 0;
}

.quiz-question-text {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #001F42;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #7285A5;
    border: 3px solid #001F42;
    border-radius: 30px;
    padding: 20px 25px;
    cursor: pointer;
    color: #F8F9FA;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.quiz-option:hover {
    background: #5F6F8F;
}

.quiz-radio {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 3px solid #001F42;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.quiz-option.selected .quiz-radio {
    background: #001F42;
    box-shadow: inset 0 0 0 3px #001F42;
}

.quiz-option-text {
    flex: 1;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.quiz-page-counter {
    font-size: 14px;
    color: #7285A5;
    font-weight: 600;
}

.quiz-correct-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #001F42;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

.quiz-correct-indicator.show {
    display: flex;
}

.checkmark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #001F42;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.quiz-incorrect-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #C85A5A;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

.quiz-incorrect-indicator.show {
    display: flex;
}

.x-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #C85A5A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.quiz-results-page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 60px;
    text-align: center;
    width: 100%;
}

.quiz-results-page.active {
    display: flex;
}

.results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.results-icon.passed {
    background: #28a745;
}

.results-icon.failed {
    background: #dc3545;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: #001F42;
}

.results-score {
    font-size: 24px;
    color: #7285A5;
    font-weight: 600;
}

.results-message {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    max-width: 500px;
}

.results-button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: #001F42;
    color: #F8F9FA;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-button:hover {
    background: #7285A5;
    transform: translateY(-2px);
}

/* Exit Confirmation Modal */

.exit-confirmation {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 31, 66, 0.3);
    z-index: 2000;
    text-align: center;
    max-width: 400px;
}

.exit-confirmation.active {
    display: block;
}

.exit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 66, 0.5);
    z-index: 1500;
}

.exit-overlay.active {
    display: block;
}

.confirmation-title {
    font-size: 24px;
    font-weight: 700;
    color: #001F42;
    margin-bottom: 20px;
}

.confirmation-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #001F42;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 66, 0.5);
}

.cancel-btn {
    background: #E0E0E0;
    color: #001F42;
}

.cancel-btn:hover {
    background: #D0D0D0;
}

/* ============================================================================
   PRACTICE.HTML STYLES
   ============================================================================ */

.practice-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.practice-title {
    font-size: 70px;
    font-weight: 700;
    color: #001F42;
}

.practice-description {
    font-size: 24px;
    color: #555;
    line-height: 1.8;
    max-width: 600px;
}

.practice-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.practice-images {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 480px);
}

.practice-image-large {
    grid-column: 1;
    grid-row: 1 / 3;
    background: #B8D4E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001F42;
    font-size: 16px;
    border: 2px dashed #001F42;
}

.practice-image-large-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.practice-images-right {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.practice-image-small {
    background: #B8D4E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001F42;
    font-size: 16px;
    border: 2px dashed #001F42;
}

.practice-image-small-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.practice-text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.practice-next-button {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
    text-transform: uppercase;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.practice-next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 66, 0.5);
}

.practice-next-button span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.practice-next-button:hover span {
    transform: translateX(5px);
}

.back-button {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #001F42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.3);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 66, 0.5);
}

/* Game Modal Styles */

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F8F9FA;
    z-index: 1000;
    flex-direction: column;
}

.game-modal.active {
    display: flex;
}

.game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 66, 0.5);
    z-index: 500;
}

.game-overlay.active {
    display: block;
}

.game-header {
    background: #F8F9FA;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    font-size: 32px;
    font-weight: 700;
    color: #001F42;
}

.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 5px;
    overflow: hidden;
}

.game-scenario {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #F8F9FA;
    border-radius: 0;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

.scenario-graphic {
    width: 100%;
    height: 100%;
    max-height: 500px;
    flex: 1;
    min-height: 0;
    border-radius: 10px;
}

.scenario-container {
    position: relative;
    text-align: center;
    margin-top: 0;
    padding: 0 5px;
}

.scenario-description {
    font-size: 14px;
    color: #001F42;
    line-height: 1.4;
    font-style: italic;
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
}

.game-hearts {
    font-size: 16px;
    font-weight: 600;
    color: #001F42;
    padding: 2px 0;
    text-align: center;
    margin-bottom: 8px;
}

.game-options {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.game-options.show {
    display: grid;
}

.game-option {
    display: flex;
}

.option-button {
    flex: 1;
    padding: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #F8F9FA;
    background: #7285A5;
    border: 3px solid #001F42;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.6;
}

.option-button:hover {
    background: #5F6F8F;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 31, 66, 0.2);
}

.game-result {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 31, 66, 0.3);
    z-index: 1500;
    max-width: 500px;
    text-align: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

#resultTitle {
    font-size: 28px;
    font-weight: 700;
    color: #001F42;
    margin: 0;
}

#resultMessage {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.result-button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: #001F42;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-button:hover {
    background: #7285A5;
    transform: translateY(-2px);
}

/* Animations */

@keyframes pulse {
    0% {
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(114, 133, 165, 0.7));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(114, 133, 165, 0.9));
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(114, 133, 165, 0.7));
    }
}

@keyframes shake {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5px, -5px);
    }
    50% {
        transform: translate(5px, 5px);
    }
    75% {
        transform: translate(-5px, 5px);
    }
}

@keyframes rescuerApproach {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(80px);
    }
}

@keyframes approachPatient {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-150px);
    }
}

@keyframes moveAway {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes celebration {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        padding: 20px 30px;
    }

    nav ul {
        gap: 20px;
    }

    .lessons-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .lesson-card {
        flex: 0 0 250px;
        padding: 20px;
    }

    .carousel {
        gap: 20px;
    }

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

    .lesson-page {
        flex-direction: column;
        padding: 40px 20px;
    }

    .lesson-header {
        padding: 20px 30px;
    }

    .lesson-title {
        font-size: 24px;
    }

    .exit-confirmation {
        width: 90%;
        padding: 30px 20px;
    }

    .lesson-image-placeholder {
        height: 250px;
    }

    .practice-title {
        font-size: 36px;
    }

    .practice-description {
        font-size: 16px;
    }

    .practice-content {
        grid-template-columns: 1fr;
    }

    .practice-images {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .practice-image-large {
        grid-column: 1;
        grid-row: 1;
        min-height: 300px;
    }

    .practice-images-right {
        grid-column: 1;
        grid-row: 2 / 4;
        grid-template-rows: 1fr 1fr;
    }

    .practice-image-small {
        min-height: 200px;
    }

    .game-header {
        padding: 20px 30px;
    }

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

    .game-scenario {
        padding: 20px;
    }

    .option-button {
        padding: 15px;
        font-size: 14px;
    }

    .game-options {
        grid-template-columns: 1fr;
    }

    .game-result {
        max-width: 90%;
        padding: 30px 20px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .title {
        font-size: 36px;
    }

    .description {
        font-size: 16px;
    }

    .image-placeholder {
        height: 300px;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overview-title {
        font-size: 32px;
    }

    .quote-text {
        font-size: 14px;
    }
}
