/* ==================== */
/* CSS Variables & Root */
/* ==================== */

:root {
    --color-primary: #6f4d38;
    --color-dark: #001524;
    --color-text: #14080e;
    --color-light: #fff9f2;
    --color-light-blue: #5b8fb8;
    --color-dark-blue: #364f6b;
    --font-primary: 'Roboto', sans-serif;
    --transition: 0.3s ease;
}

/* ==================== */
/* Global Styles */
/* ==================== */

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

html {
    scroll-behavior: smooth;
}

.roboto-<uniquifier> {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
}

.home-container {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* ==================== */
/* Background Layer */
/* ==================== */

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    z-index: -1;
}

/* ==================== */
/* Header & Navigation */
/* ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 45px;
    width: auto;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 100%;
    width: auto;
    max-height: 45px;
}

.nav-items {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    margin-left: auto;
}

.nav-link {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-light);
    text-decoration: none;
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.nav-link:hover {
    color: #d4a574;
}

.nav-link.active {
    color: var(--color-light);
}

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

.nav-underline {
    position: fixed;
    bottom: 20px;
    right: 340px;
    width: 90px;
    height: 3px;
    background-color: var(--color-light);
    z-index: 101;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    background: #c9a876;
    margin-top: 60px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

/* Hero background image */
.hero-bg-image {
    position: absolute;
    right: 40px;
    top: 40%;
    transform: translateY(-50%);
    width: 580px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    z-index: 10;
}

/* Hero content wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 5;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Brown shape boxes containing text */
.shape-box {
    background-color: var(--color-primary);
    border-radius: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 126px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
}

.shape-welcome {
    width: 570px;
}

.shape-to {
    width: 216px;
    align-self: left;
}

.shape-class {
    width: 405px;
}

.shape-text {
    font-size: 96px;
    font-weight: 600;
    letter-spacing: 1.92px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Decorative dots */
.dot {
    position: absolute;
    width: 74px;
    height: 74px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 8;
}

.dot-1 {
    left: 494px;
    top: 360px;
}

.dot-2 {
    left: 612px;
    top: 360px;
}

.dot-3 {
    left: 730px;
    top: 360px;
}

/* Hero description */
.hero-description {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary);
    max-width: 673px;
    line-height: 1.35;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Blue decorative shapes */
.blue-shapes-left,
.blue-shapes-right {
    position: absolute;
    z-index: 6;
    border-radius: 50%;
    mix-blend-mode: multiply;
    display: none;
}

/* CTA Button */
.cta-button {
    position: absolute;
    bottom: 180px;
    right: 240px;
    padding: 16px 40px;
    background-color: var(--color-light);
    color: var(--color-text);
    font-size: 36px;
    font-weight: 600;
    border-radius: 64px;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 15;
    text-align: center;
    min-width: auto;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== */
/* Wave Decorations */
/* ==================== */

.wave-decoration {
    position: relative;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    overflow: hidden;
}

.wave-1 {
    background: #5b8fb8;
}

.wave-2 {
    background: #364f6b;
}

/* ==================== */
/* Instructors Section */
/* ==================== */

.instructors-section {
    position: relative;
    padding: 80px 40px;
    background-color: var(--color-light);
    z-index: 2;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(334px, 1fr));
    gap: 80px;
    max-width: 1200px;
}

.instructor-card {
    text-align: center;
    transition: transform var(--transition);
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-image {
    width: 100%;
    height: 242px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.instructor-name {
    font-size: 24px;
    font-weight: 500;
    line-height: 43px;
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    
}

.instructor-name-course {
    font-size: 13px;
    font-weight: 300;
    line-height: 43px;
    color: var(--color-text);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;

}

.instructor-role {
    font-size: 13px;
    font-weight: 300;
    line-height: 43px;
    color: var(--color-text);
    opacity: 0.8;
    font-family: 'Roboto', sans-serif;
}

/* Instructor card alignment */
.instructor-card:nth-child(1) {
    text-align: left;
}

.instructor-card:nth-child(2) {
    text-align: left;
}

.instructor-card:nth-child(2) .instructor-image {
    display: block;
    margin-bottom: 20px;
}

.instructor-card:nth-child(3) {
    text-align: left;
}

.instructor-card:nth-child(3) .instructor-image {
    display: block;
    margin-bottom: 20px;
}

/* ==================== */
/* Students Section */
/* ==================== */

.students-section {
    position: relative;
    padding: 80px 40px;
    background: #5b8fb8;
    margin-top: 0;
    z-index: 2;
}

.students-section .section-title {
    color: var(--color-text);
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
}

.testimonial-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 15px;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.student-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.student-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif;
}

.testimonial-text {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.55;
    font-family: 'Roboto', sans-serif;
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: start;
    min-height: 266px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-image {
    height: 147px;
    width: auto;
}

.footer-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    color: var(--color-light);
    text-decoration: none;
    transition: opacity var(--transition);
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-link:last-child {
    margin-bottom: 0;
}

.footer-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.social-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform var(--transition), background-color var(--transition);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* ==================== */
/* Courses Page Style */
/* ==================== */

.courses-section {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--color-light);
    min-height: calc(100vh - 60px);
}

.courses-container {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
}

/* Left Sidebar - Courses */
.courses-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-box {
    background-color: white;
    border: 3px solid var(--color-text);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.welcome-text {
    flex: 1;
}

.welcome-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.welcome-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition);
}

.settings-btn:hover {
    opacity: 0.7;
}

.search-courses {
    padding: 15px 20px;
    font-size: 16px;
    border: 3px solid var(--color-text);
    border-radius: 15px;
    font-family: 'Roboto', sans-serif;
    width: 100%;
}

.search-courses::placeholder {
    color: #999;
}

.section-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin: 20px 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

/* Current Courses Grid */
.current-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Course Cards */
.course-card {
    background: white;
    border: 3px solid var(--color-text);
    border-radius: 15px;
    overflow: hidden;
    transition: transform var(--transition);
}

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

.course-card.featured {
    padding: 0;
}

.course-card.featured .course-image {
    width: 100%;
    height: 217px;
    background: linear-gradient(135deg, #8B6F47 0%, #6F4D38 100%);
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    object-position: center;
}

.course-card.featured .course-title {
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px 20px 20px;
    color: var(--color-text);
}

.course-card.small {
    padding: 15px;
    text-align: left;
    position: relative;
}

.course-card.small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 8, 14, 0.55);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

.course-card.small .course-image {
    width: 100%;
    height: 169px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

.course-card.small .course-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 8, 14, 0.55);
    border-radius: 10px;
}

.course-card.small .course-title,
.course-card.small .instructor-name {
    position: relative;
    z-index: 1;
}

.course-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    object-position: center;
    display: block;
}

.course-progress {
    padding: 20px 20px 20px;
}

.progress-bar {
    height: 17px;
    background-color: #f6f4f4;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background-color: var(--color-primary);
    border-radius: 15px;
    animation: fillProgress 1.5s ease-in-out;
}

.progress-bar.complete::after {
    width: 100%;
    background-color: var(--color-primary);
}

.course-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.instructor-name {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.7;
    margin: 8px 0 0 0;
    font-family: 'Roboto', sans-serif;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Right Sidebar */
.courses-right {
    background-color: var(--color-primary);
    border-radius: 15px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.date-header {
    margin-bottom: 30px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: flex-start;
}

.date-day {
    font-size: 40px;
    font-weight: 600;
    color: #d5b893;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    grid-column: 1;
}

.date-info {
    font-size: 20px;
    color: #d5b893;
    margin: 5px 0 0 0;
    font-family: 'Roboto', sans-serif;
    grid-column: 1;
}

.level-badge {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 1 / 3;
    z-index: 10;
    position: relative;
}

.level-text {
    font-size: 14px;
    color: #D5B893;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    z-index: 20;
    position: relative;
}

.progress-bar-background {
    background-color: #FFF9F2;
    border-radius: 6px;
    height: 25px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-fill {
    background-color: #25344F;
    height: 100%;
    width: 10%;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-bar-text {
    font-size: 12px;
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.level-label {
    font-size: 14px;
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.level-number {
    background-color: #5b8fb8;
    color: white;
    width: 36px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.right-heading {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

/* Daily Challenges */
.challenges-section {
    margin-bottom: 30px;
    background-color: #d5b893;
    border-radius: 15px;
    padding: 20px;
}

.challenge-item {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.challenge-avatar {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.challenge-content {
    flex: 1;
}

.challenge-text {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.challenge-action {
    font-size: 12px;
    color: var(--color-text);
    margin: 5px 0 0 0;
    font-family: 'Roboto', sans-serif;
}

.challenge-icon {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-weight: bold;
    flex-shrink: 0;
}

/* Progress Circle */
.progress-section {
    margin-bottom: 30px;
    background-color: #d5b893;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.circle-svg {
    width: 100%;
    height: 100%;
}

.donut-chart {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #fff9f2;
    stroke-width: 2;
    opacity: 0.3;
}

.circle-progress {
    fill: none;
    stroke: #8B4444;
    stroke-width: 15;
    stroke-dasharray: 565;
    stroke-dashoffset: 100;
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-count {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Progress Legend */
.progress-legend {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.legend-label {
    line-height: 1.4;
}

.legend-count {
    font-size: 12px;
    color: #666;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.not-completed {
    background-color: #632024;
}

.legend-dot.in-progress {
    background-color: #25344F;
}

.legend-dot.completed {
    background-color: #617891;
}

/* Leaderboard */
.leaderboard-section {
    margin-top: 30px;
    background-color: #d5b893;
    border-radius: 15px;
    padding: 20px;
}

.rank-item {
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
    min-width: 25px;
    font-family: 'Roboto', sans-serif;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.rank-level {
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.7;
    margin: 3px 6px;
    color: var(--color-primary) 0;
    font-family: 'Roboto', sans-serif;
}

.rank-badge {
    font-size: 18px;
}

/* ==================== */
/* Animations */
/* ==================== */

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 70%; }
}

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

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        padding: 50px 20px;
    }

    .hero-content-wrapper {
        width: 100%;
        align-items: center;
    }

    .shape-box {
        margin: 10px auto;
    }

    .shape-welcome,
    .shape-to,
    .shape-class {
        width: 90%;
        max-width: 400px;
    }

    .dot {
        display: none;
    }

    .blue-shapes-left,
    .blue-shapes-right {
        display: none;
    }

    .hero-bg-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin-top: 40px;
        height: auto;
    }

    .cta-button {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 30px auto 0;
        min-width: 300px;
    }

    .nav-items {
        gap: 60px;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }

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

    /* Courses Page Responsive */
    .courses-container {
        grid-template-columns: 1fr;
    }

    .courses-right {
        position: static;
        margin-top: 30px;
    }

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

    .current-courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 20px;
    }

    .nav-items {
        gap: 30px;
    }

    .shape-text {
        font-size: 54px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .instructors-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .instructor-image {
        height: 200px;
    }

    .cta-button {
        font-size: 32px;
        padding: 15px 40px;
    }

    .footer {
        padding: 30px 20px;
        min-height: auto;
    }

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

    .footer-link {
        font-size: 16px;
    }

    .social-icon {
        width: 56px;
        height: 56px;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    /* Courses Page Mobile */
    .courses-section {
        padding: 20px;
    }

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

    .current-courses-grid {
        grid-template-columns: 1fr;
    }

    .welcome-box {
        flex-wrap: wrap;
    }

    .date-day {
        font-size: 28px;
    }

    .rank-item {
        padding: 10px 12px;
    }

    .rank-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .shape-text {
        font-size: 36px;
    }

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

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cta-button {
        font-size: 24px;
        min-width: 200px;
        padding: 12px 30px;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-items {
        gap: 15px;
    }

    .hero-section {
        min-height: auto;
    }

    .shape-box {
        height: auto;
        padding: 20px;
    }

    /* Courses Page Extra Small */
    .courses-section {
        padding: 15px;
    }

    .courses-right {
        padding: 20px;
    }

    .date-day {
        font-size: 24px;
    }

    .right-heading {
        font-size: 18px;
    }

    .progress-circle {
        width: 150px;
        height: 150px;
    }

    .rank-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ==================== */
/* Modal Styles */
/* ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

#quizExitConfirmModal,
#testExitConfirmModal {
    z-index: 1600;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--color-light);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

/* Hint Modal Styles */
.hint-modal {
    display: none;
    position: fixed;
    z-index: 1600;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

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

.hint-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    border: 3px solid var(--color-primary);
}

.hint-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-modal-close:hover {
    color: var(--color-primary);
}

.hint-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 15px 0;
    font-family: 'Roboto', sans-serif;
}

.hint-modal-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ==================== */
/* Collapsible Sections */
/* ==================== */

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color var(--transition);
}

.collapsible-header:hover {
    color: var(--color-text);
    opacity: 0.8;
}

.toggle-icon {
    font-size: 16px;
    font-weight: bold;
    transition: transform var(--transition);
    display: inline-block;
    margin-left: 8px;
}

.collapsible-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 100vh;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* ==================== */
/* Practice Page Styles */
/* ==================== */

.practice-section {
    padding: 40px;
    max-width: 1400px;
    margin: 60px auto 0;
}

.practice-container {
    margin-bottom: 80px;
}

.practice-container:last-child {
    margin-bottom: 40px;
}

/* Section Headers */
.section-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-description {
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text);
    margin: 0 0 40px 0;
    opacity: 0.9;
}

/* Quiz Cards */
.quiz-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    background: white;
    border: 3px solid var(--color-text);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
    align-items: stretch;
    transition: transform var(--transition);
    height: 350px;
}

.quiz-card:hover {
    transform: translateY(-2px);
}

.quiz-image-container {
    width: 380px;
    height: 100%;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
}


.quiz-image {
    background-size: cover;
    background-position: center;
    object-fit: cover;
    object-position: center;
    display: block;
    width: 100%;
    height: 100%;
}

.quiz-image--crop-left-third {
    object-position: left;
    clip-path: polygon(0 0, 33.33% 0, 33.33% 100%, 0 100%);
}

.quiz-content {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.quiz-title {
    font-size: 40px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.quiz-description {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0 0 30px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.quiz-btn {
    padding: 12px 25px;
    font-size: 32px;
    font-weight: 400;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.redo-btn {
    background-color: #632024;
    color: var(--color-light);
}

.redo-btn:hover {
    background-color: #7a2a2c;
}

.start-btn {
    background-color: #25344f;
    color: var(--color-light);
}

.start-btn:hover {
    background-color: #2d3d5d;
}

.difficulty-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.difficulty-label {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text);
    white-space: nowrap;
}

.star-rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

.star {
    font-size: 32px;
    color: var(--color-text);
    opacity: 0.3;
}

.star.filled {
    opacity: 1;
    color: #d4af37;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    border: 3px solid var(--color-text);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    background: white;
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-image-container {
    width: 172px;
    height: 172px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.game-title {
    font-size: 40px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.game-description {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0 0 25px 0;
    line-height: 1.4;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-btn {
    padding: 12px 25px;
    font-size: 32px;
    font-weight: 400;
    background-color: #617891;
    color: var(--color-light);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 110px;
}

.game-btn:hover {
    background-color: #6f8399;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quiz-image-container {
        width: 100%;
        height: 276px;
        border-radius: 15px 15px 0 0;
    }
}

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

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

    .section-description {
        font-size: 24px;
    }

    .quiz-title {
        font-size: 28px;
    }

    .quiz-description {
        font-size: 18px;
    }

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

    .game-title {
        font-size: 28px;
    }

    .game-description {
        font-size: 18px;
    }
}

/* ==================== */
/* Course Modal Styles */
/* ==================== */

.course-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff9f2;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

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

.course-pages-container {
    width: 100%;
    min-height: 100vh;
}

.course-page {
    width: 100%;
    min-height: 100vh;
    background-color: #fff9f2;
    position: relative;
    padding-top: 60px;
    padding-bottom: 80px;
}

.course-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: #001524;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 999;
}

.course-logo {
    height: 45px;
    width: auto;
    display: flex;
    align-items: center;
}

.course-logo img {
    height: 100%;
    width: auto;
    max-height: 45px;
}

.course-nav {
    display: flex;
    gap: 50px;
}

.course-nav-link {
    color: #fff9f2;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.course-nav-link.active {
    text-decoration: underline;
}

.course-exit-btn {
    position: absolute;
    top: 65px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    color: #14080E;
    cursor: pointer;
    z-index: 1001;
    font-weight: bold;
}

.course-exit-btn:hover {
    opacity: 0.7;
}

.course-content-wrapper {
    display: flex;
    height: calc(100vh - 60px - 80px);
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.course-sidebar {
    width: 474px;
    background-color: #6f4d38;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    padding: 20px;
}

.section-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.section-btn {
    background-color: #d5b893;
    color: #14080e;
    border: none;
    padding: 16px 18px;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-btn-title {
    font-size: 16px;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.section-btn-desc {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.85;
    display: block;
}

.section-btn:hover {
    background-color: #e5c9a3;
}

.section-btn.active {
    background-color: #d5b893;
}

.section-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #617891;
    border-radius: 0px;
}

.course-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin: 20px 20px 20px 0;
    background-color: #fff9f2;
    border-radius: 15px;
    position: relative;
}

.blue-line-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #617891;
    border-radius: 15px 0 0 15px;
    display: none;
}

.course-main.definitions-view {
    display: flex;
    gap: 40px;
    align-items: stretch;
    padding: 30px;
}

.course-main .definitions-view {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 20px;
}

.course-main .definitions-view .blue-line-indicator {
    display: none;
}

.definitions-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.collapsible-definition {
    border-bottom: 1px solid #ddd;
}

.collapsible-definition:first-child {
    border-top: 1px solid #ddd;
}

.definition-header {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #14080e;
    text-align: left;
}

.definition-title {
    flex: 1;
}

.definition-toggle {
    color: #14080e;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.collapsible-definition.open .definition-toggle {
    transform: rotate(180deg);
}

.definition-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #14080e;
    line-height: 1.6;
}

.collapsible-definition.open .definition-content {
    max-height: 500px;
    padding-bottom: 15px;
}

.definition-content p {
    margin: 0;
}

.tips-box-right {
    background-color: #617891;
    color: #fff9f2;
    padding: 20px;
    border-radius: 15px;
    min-width: 340px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.tips-box-right h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.tips-box-right ul {
    margin: 0;
    padding-left: 20px;
}

.tips-box-right li {
    margin-bottom: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.section-content {
    padding-left: 20px;
}

.section-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #14080e;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.section-content p {
    font-size: 16px;
    color: #14080e;
    line-height: 1.8;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.section-content {
    padding-left: 20px;
}

.section-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #14080e;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.section-content p {
    font-size: 16px;
    color: #14080e;
    line-height: 1.8;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.course-image-container {
    position: relative;
    margin-bottom: 30px;
    margin-left: 0;
}

.course-hero-image {
    width: calc(100vw - 450px - 80px);
    height: 190px;
    object-fit: cover;
    border-radius: 15px;
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

.course-next-btn {
    position: absolute;
    bottom: 30px;
    right: 87px;
    background-color: #25344f;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.course-next-btn:hover {
    background-color: #304466;
    transform: translateY(-3px);
}

.course-prev-btn {
    position: absolute;
    bottom: 30px;
    left:500px;
    background-color: #25344f;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.course-prev-btn:hover {
    background-color: #304466;
    transform: translateY(-3px);
}

/* Modal Confirmation */
#exitConfirmModal .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn-confirm,
.modal-btn-cancel {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.modal-btn-confirm {
    background-color: #d9534f;
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #c9302c;
}

.modal-btn-cancel {
    background-color: #6f4d38;
    color: white;
}

.modal-btn-cancel:hover {
    background-color: #5a3d2a;
}

/* ==================== */
/* Quiz Modal Styles */
/* ==================== */

.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    z-index: 1500;
    display: none;
    overflow-y: auto;
}

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

.quiz-pages-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.quiz-page {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-light);
    position: relative;
    display: flex;
    padding-top: 60px;
    padding-bottom: 40px;
}

.quiz-page:nth-child(n+2) {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.quiz-exit-btn {
    position: absolute;
    top: 65px;
    right: 30px;
    z-index: 2000;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.quiz-exit-btn:hover {
    color: var(--color-primary);
}

.quiz-content-wrapper {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    gap: 0;
}

.quiz-image-section {
    flex: 0 0 35%;
    height: 108%;
    overflow: hidden;
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: transparent;
}

.quiz-question-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 40px 60px 20px 60px;
    background-color: #fffbf5;
    position: relative;
}

.quiz-help {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: var(--color-light-blue);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.quiz-help:hover {
    background-color: var(--color-dark-blue);
}

.quiz-question-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 10px;
    padding-right: 80px;
    line-height: 1.1;
}

.quiz-question-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--color-light-blue);
    margin-top: 8px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0 20px 0;
    flex: 1;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    padding: 20px;
    border-radius: 10px;
    transition: background-color var(--transition);
}

.quiz-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.quiz-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--color-text);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 2px;
    flex-shrink: 0;
}

.quiz-radio:hover {
    border-color: var(--color-light-blue);
}

.quiz-radio:checked {
    background-color: #25344F;
    border-color: #25344F;
}

.quiz-radio:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-option-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1.5;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 10px;
}

.quiz-counter {
    font-size: 20px;
    color: var(--color-text);
    font-weight: 600;
}

.quiz-next-btn,
.quiz-done-btn {
    background-color: #25344F;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-next-btn:hover,
.quiz-done-btn:hover {
    background-color: #1a2337;
}

.quiz-next-btn:disabled,
.quiz-done-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Error Message */
.quiz-error-message {
    color: #6b3535;
    background-color: rgba(160, 77, 77, 0.1);
    border: 1px solid #a04d4d;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

/* Correct Answer Feedback */
/* Feedback Pages */
#correctFeedback,
#incorrectFeedback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#correctFeedback.active,
#incorrectFeedback.active {
    display: flex;
}

.feedback-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.feedback-circle {
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
    position: relative;
}

.checkmark-svg,
.x-mark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    fill: #5b8fb8;
    stroke: #364f6b;
    stroke-width: 4;
}

.checkmark-mark {
    fill: none;
    stroke: #14080e;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.x-mark-circle {
    fill: #a04d4d;
    stroke: #6b3535;
    stroke-width: 4;
}

.x-mark-line {
    fill: none;
    stroke: #14080e;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-title {
    font-size: 96px;
    font-weight: 900;
    color: var(--color-text);
    margin: 30px 0 20px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.feedback-subtitle {
    font-size: 48px;
    font-weight: 400;
    color: var(--color-text);
    margin: 20px 0 50px 0;
    font-family: 'Roboto', sans-serif;
}

.feedback-next-btn {
    background-color: #25344F;
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 15px;
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color var(--transition);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feedback-next-btn:hover {
    background-color: #1a2337;
}

/* Results Pages (Pass/Fail) */
.results-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 40px;
}

.results-title {
    font-size: 96px;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 40px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.results-title.fail {
    color: var(--color-text);
}

.results-circle {
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
    position: relative;
}

.results-circle.pass .checkmark-circle {
    fill: #5b8fb8;
    stroke: #364f6b;
    stroke-width: 4;
}

.results-circle.fail .x-mark-circle {
    fill: #a04d4d;
    stroke: #6b3535;
    stroke-width: 4;
}

.results-subtitle {
    font-size: 40px;
    font-weight: 400;
    color: var(--color-text);
    margin: 20px 0 30px 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.results-score {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    margin: 20px 0 50px 0;
    font-family: 'Roboto', sans-serif;
}

.results-done-btn {
    background-color: #25344F;
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-done-btn:hover {
    background-color: #1a2337;
}

.certificate-btn {
    background-color: #617891;
}

.certificate-btn:hover {
    background-color: #4f6278;
}

#passPage,
#failPage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-light);
    padding-top: 60px;
    padding-bottom: 40px;
    display: none !important;
}

#passPage.active,
#failPage.active {
    display: flex !important;
}

#testCorrectFeedback.active,
#testIncorrectFeedback.active {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

#testPassPage,
#testFailPage {
    min-height: 100vh;
    background-color: var(--color-light);
    padding-top: 60px;
    padding-bottom: 40px;
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
}

#testPassPage.active,
#testFailPage.active {
    display: flex !important;
}

/* Certificate Modal Styles */
.certificate-page {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

.certificate-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 200px);
}

.certificate-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-certificate-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.download-certificate-btn:hover {
    transform: scale(1.1);
}

.download-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.2) contrast(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quiz-content-wrapper {
        flex-direction: column;
        height: auto;
        padding: 0 20px;
    }

    .quiz-image-section {
        flex: 1;
        width: 100%;
        height: 300px;
        margin-right: 0;
        margin-bottom: 40px;
    }

    .quiz-question-section {
        padding-right: 20px;
    }

    .quiz-question-title {
        font-size: 32px;
    }

    .quiz-options {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .quiz-page {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .quiz-exit-btn {
        top: 70px;
        right: 20px;
    }

    .quiz-content-wrapper {
        padding: 0 15px;
    }

    .quiz-image-section {
        height: 200px;
        margin-bottom: 30px;
    }

    .quiz-question-title {
        font-size: 24px;
    }

    .quiz-options {
        gap: 12px;
        margin: 20px 0;
    }

    .quiz-option {
        padding: 15px;
    }

    .quiz-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .quiz-next-btn,
    .quiz-done-btn {
        width: 100%;
    }
}

/* ==================== */
/* Test Styles */
/* ==================== */

/* Test Fill-In-The-Blank Inputs */
.test-fill-in-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.fill-in-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.fill-in-text {
    font-size: 16px;
    color: var(--color-text);
    white-space: nowrap;
}

.test-input {
    padding: 8px 12px;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
    font-size: 16px;
    font-family: var(--font-primary);
    background-color: transparent;
    color: var(--color-text);
    transition: border-color var(--transition);
    min-width: 100px;
    text-align: center;
}

.test-input:focus {
    outline: none;
    border-bottom-color: var(--color-dark-blue);
    box-shadow: none;
}

.test-input::placeholder {
    color: #999;
}

.fill-in-instruction {
    font-size: 18px;
    color: #666;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 16px;
    text-align: left;
}

/* Test True/False Options */
.test-true-false {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.test-true-false .quiz-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    background-color: #fff;
}

.test-true-false .quiz-option:hover {
    border-color: var(--color-primary);
    background-color: #faf5f0;
}

.test-true-false .quiz-radio {
    accent-color: var(--color-primary);
    cursor: pointer;
    margin-right: 12px;
}

.test-true-false .quiz-radio:checked + .quiz-option-text {
    color: var(--color-primary);
    font-weight: 600;
}

.test-true-false .quiz-option:has(.quiz-radio:checked) {
    border-color: var(--color-primary);
    background-color: #faf5f0;
}

.test-true-false .quiz-option-text {
    font-size: 18px;
    color: var(--color-text);
    transition: color var(--transition);
}
