:root {
    --primary: #1a5f93; /* Dark Blue from header */
    --accent: #3498db;  /* Button Blue */
    --bg-light: #f8fbff;
    --text-dark: #333;
    --success: #2ecc71;
    --error: #e74c3c;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--bg-light); color: var(--text-dark); }
nav { display: flex; justify-content: space-between; padding: 20px 10%; background: #fff; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); }

.btn { padding: 10px 25px; border-radius: 20px; text-decoration: none; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; border-radius: 5px; }

/* Grid for Modules */
.module-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 50px 10%; }
.card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.card-body { padding: 20px; }

/* Quiz Styles */
.quiz-box { background: white; padding: 30px; border-radius: 10px; margin-top: 20px; }
.option { display: block; width: 100%; padding: 15px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; text-align: left; background: white; }
.option.correct { background: #d4edda; border-color: var(--success); color: #155724; }
.option.wrong { background: #f8d7da; border-color: var(--error); color: #721c24; }

/* Dashboard Table */
table { width: 100%; border-collapse: collapse; background: white; margin-top: 20px; }
th, td { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
.score-badge { padding: 5px 10px; border-radius: 5px; font-weight: bold; }








/* HOMEPAGE */
/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    background-color: #f8fbff;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 48px; color: #333; margin-bottom: 20px; }
.hero-text span { color: #3498db; }
.hero-text p { color: #666; margin-bottom: 30px; max-width: 500px; }

.hero-image { flex: 1; text-align: right; position: relative; }
.hero-image img { width: 80%; border-radius: 50%; }

/* Module Grid */
.section-title { text-align: center; margin: 60px 0 40px; }
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 10%;
}

.module-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.module-card img { width: 100%; height: 150px; object-fit: cover; }
.module-content { padding: 15px; }
.module-content h4 { color: #1a5f93; font-size: 14px; margin-bottom: 10px; }
.module-content p { font-size: 12px; color: #777; line-height: 1.4; }

/* Steps Section */
.steps-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 10%;
    background: white;
}

.step-card {
    text-align: left;
    padding: 20px;
    border-radius: 12px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
}

.step-img {
    width: 100%;
    height: 180px;
    background: #eef7ff;
    border-radius: 8px;
    margin-bottom: 20px;
}












/* MATERIAL LAYOUT STYLES */

/* Layout Wrapper */
.study-container {
    display: flex;
    background-color: #f0f7ff; /* Light blue background from image */
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: white;
    padding-top: 20px;
    border-right: 1px solid #e0e8f0;
}

.sidebar-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-left: 5px solid transparent;
    transition: 0.3s;
}

.sidebar-item i { margin-right: 15px; width: 20px; }
.sidebar-item.active {
    background: #eef7ff;
    color: #1a5f93;
    border-left-color: #3498db;
    font-weight: bold;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 50px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.study-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #e0e8f0;
}

.study-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Start Quiz Button (Gradient like image) */
.btn-start-quiz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #1a5f93, #3498db);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
}

.play-icon-white {
    background: white;
    color: #3498db;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}











/* QUIZ */
/* Quiz Layout */
.quiz-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 20px 5%;
    background-color: #f8fbff;
}

/* Video & Left Side */
.quiz-video-section {
    position: sticky;
    top: 20px;
}

.video-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Score Box (Top Right) */
.score-box {
    background: #1a5f93;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.score-stats { font-size: 14px; text-align: right; }

/* Question & Options */
.question-item { margin-bottom: 40px; }
.question-text { font-weight: bold; margin-bottom: 15px; color: #333; }

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
    width: 100%;
}

.option-letter {
    background: #bdc3c7;
    color: white;
    padding: 12px 18px;
    font-weight: bold;
}

.option-label { padding: 12px; flex: 1; text-align: left; }

/* Feedback States */
.option-btn.correct { border-color: #2ecc71; background: #eafaf1; }
.option-btn.correct .option-letter { background: #2ecc71; }

.option-btn.wrong { border-color: #e74c3c; background: #fdedec; }
.option-btn.wrong .option-letter { background: #e74c3c; }

.disabled { pointer-events: none; opacity: 0.8; }

/* Selected but not yet evaluated */
.option-btn.selected {
    border-color: #3498db;
    background: #ebf5fb;
}
.option-btn.selected .option-letter {
    background: #3498db;
}


/* THESE ARE FOR TYPE 2 QUIZ QUESTIONS (WITH IMAGES) */
/* Navigation Buttons */
.quiz-nav {
    display: flex;
    gap: 10px;
    padding: 10px 5%;
    border-bottom: 2px solid #eee;
    background: white;
}

/* Option States */
.option-btn.selected {
    border-color: #3498db;
    background-color: #f0f7ff;
}

.option-btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

/* Post-Submission feedback */
.option-btn.correct-reveal {
    border-color: #27ae60 !important;
    background-color: #eafaf1 !important;
}
.option-btn.correct-reveal .option-letter {
    background-color: #27ae60 !important;
}

.option-btn.wrong-reveal {
    border-color: #e74c3c !important;
    background-color: #fdedec !important;
}
.option-btn.wrong-reveal .option-letter {
    background-color: #e74c3c !important;
}

.submit-container {
    padding: 40px 0;
    text-align: center;
}

