/* styles.css - Enhanced Responsive Design for Mobile & Desktop */

/* CSS Variables */
:root {
    --primary-blue: #1a73e8;
    --secondary-blue: #4285f4;
    --light-blue: #e8f0fe;
    --dark-blue: #0d47a1;
    --accent-blue: #8ab4f8;
    --text-dark: #202124;
    --text-light: #5f6368;
    --green-accent: #34a853;
    --orange-accent: #ff9800;
    --purple-accent: #9c27b0;
    --pink-accent: #e91e63;
    --success-green: #34a853;
    --warning-orange: #ff9800;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    min-height: 100vh;
    font-size: 1rem;
    overflow-x: hidden;
}

/* Common Components - Responsive Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 35px;
    width: 100%;
}

/* Course Header - Responsive */
.course-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 40px 35px;
    border-radius: 18px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(26, 115, 232, 0.2);
    word-wrap: break-word;
}

.course-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.course-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 18px;
    line-height: 1.3;
}

.session-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    margin-top: 12px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    word-wrap: break-word;
}

/* Lecture Structure */
.lecture-structure {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.topic-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: nowrap;
    gap: 15px;
}

.topic-number {
    background: var(--primary-blue);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    min-width: 45px;
    height: 45px;
    text-align: center;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-details {
    flex: 1;
    min-width: 200px;
}

.topic-details h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--dark-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}

.topic-details p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 40px 35px;
    border-radius: 18px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-blue);
}

.section-title {
    color: var(--dark-blue);
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--light-blue);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    line-height: 1.4;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    min-width: 8px;
    height: clamp(28px, 6vw, 42px);
    background: var(--primary-blue);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Key Concepts & Boxes */
.key-concept {
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-blue);
}

.key-concept h4 {
    color: var(--dark-blue);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    line-height: 1.4;
    word-break: break-word;
}

.key-concept h4::before {
    content: "💡";
    font-size: 1.5rem;
}

.definition-box {
    background: #f0f7ff;
    padding: clamp(16px, 3vw, 22px);
    border-radius: 10px;
    margin: 18px 0;
    border-left: 4px solid var(--primary-blue);
}

.definition-box strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.note-box {
    background: #e8f5e9;
    padding: clamp(16px, 3vw, 20px);
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--green-accent);
}

.note-box h5 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

/* Comparison Grids - Responsive */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: 30px 0;
}

.comparison-column {
    background: #f8f9fa;
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    border-top: 5px solid var(--secondary-blue);
}

.comparison-column h4 {
    color: var(--dark-blue);
    margin-bottom: 22px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.comparison-column h4::before {
    content: "⚙️";
    font-size: 1.4rem;
}

/* Cybersecurity Connection */
.cyber-connection {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid #ffc107;
    position: relative;
    overflow: hidden;
}

.cyber-connection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: #ffc107;
}

.cyber-connection h4 {
    color: #856404;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    line-height: 1.4;
    word-break: break-word;
}

.cyber-connection h4::before {
    content: "🔒";
    font-size: 1.5rem;
}

/* Binary & Special Examples */
.binary-example {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    margin: 30px 0;
    border-left: 6px solid var(--green-accent);
    overflow-x: auto;
}

.binary-example h4 {
    color: #0d652d;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    line-height: 1.4;
    word-break: break-word;
}

.binary-example h4::before {
    content: "🔢";
    font-size: 1.5rem;
}

.computer-system-definition {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    margin: 30px 0;
    border-left: 6px solid #34a853;
}

.computer-system-definition h4 {
    color: #0d652d;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    line-height: 1.4;
    word-break: break-word;
}

.computer-system-definition h4::before {
    content: "🖥️";
    font-size: 1.5rem;
}

/* In-Class Activities */
.in-class-activity {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    padding: clamp(25px, 5vw, 40px);
    border-radius: 16px;
    margin: 35px 0;
    border-left: 6px solid var(--primary-blue);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: 30px 0;
}

.activity-column {
    background: white;
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    border-top: 5px solid var(--secondary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.activity-column h4 {
    color: var(--dark-blue);
    margin-bottom: 22px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.activity-column h4::before {
    content: "🔍";
    font-size: 1.4rem;
}

.step-list {
    background: #f8f9fa;
    padding: clamp(16px, 3vw, 22px);
    border-radius: 10px;
    margin: 18px 0;
}

.step-list li {
    padding-left: 28px;
    margin-bottom: 14px;
}

.step-list li::before {
    content: "✓";
    color: var(--green-accent);
    font-weight: bold;
}

/* Activity Solutions */
.activity-solutions {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    margin-top: 30px;
    border-left: 6px solid var(--green-accent);
}

.activity-solutions h4 {
    color: #0d652d;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
    line-height: 1.4;
    word-break: break-word;
}

.activity-solutions h4::before {
    content: "✅";
    font-size: 1.5rem;
}

.solution-step {
    background: white;
    padding: clamp(16px, 3vw, 20px);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
}

.solution-step h5 {
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-step h5::before {
    content: "🔑";
    font-size: 1.2rem;
}

/* Homework Assignment */
.homework-assignment {
    background: linear-gradient(135deg, #fce4ec 0%, #ffffff 100%);
    padding: clamp(25px, 5vw, 40px);
    border-radius: 16px;
    margin: 35px 0;
    border-left: 6px solid #9c27b0;
}

.homework-assignment h3 {
    color: #880e4f;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.homework-assignment h3::before {
    content: "📝";
    font-size: 1.7rem;
}

.homework-info {
    background: rgba(156, 39, 176, 0.1);
    padding: clamp(16px, 3vw, 20px);
    border-radius: 10px;
    margin-bottom: 25px;
}

.homework-section {
    margin-bottom: 30px;
}

.homework-section h4 {
    color: #6a1b9a;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1bee7;
}

.homework-section ol {
    padding-left: 25px;
}

.homework-section ol li {
    margin-bottom: 12px;
    padding-left: 0;
}

.homework-section ol li::before {
    content: none;
}

.homework-section ul {
    padding-left: 20px;
}

/* Journey Section */
.journey-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: clamp(30px, 6vw, 45px);
    border-radius: 18px;
    text-align: center;
    margin-top: 45px;
}

.journey-section h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 22px;
    font-weight: 300;
}

.journey-section p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 18px;
    opacity: 0.95;
}

.next-week {
    background: rgba(255, 255, 255, 0.15);
    padding: clamp(18px, 4vw, 22px);
    border-radius: 12px;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.next-week h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 14px;
    font-weight: 500;
}

.next-week p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

/* Buttons - Responsive */
.button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: clamp(14px, 3vw, 16px) clamp(25px, 5vw, 40px);
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 28px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    text-align: center;
    max-width: 100%;
}

.button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 55px;
    padding: 35px 20px;
    border-top: 2px solid #e0e0e0;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin-bottom: 16px;
    padding-left: 36px;
    position: relative;
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Code Blocks - Responsive */
.code-block {
    background: #263238;
    color: #f8f9fa;
    padding: clamp(18px, 4vw, 25px);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 22px 0;
    overflow-x: auto;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

.code-comment {
    color: #9e9e9e;
}

.code-keyword {
    color: #ff9800;
}

.code-string {
    color: #4caf50;
}

.code-block .comment {
    color: #75715e;
}

.code-block .hex {
    color: #f92672;
}

.code-block .reg {
    color: #66d9ef;
}

.code-block .mem {
    color: #a6e22e;
}

/* Tables - Responsive */
.number-system-table, .truth-table, .conversion-table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px auto;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    /* display: block;*/
    overflow-x: auto;
    white-space: nowrap;
}

.number-system-table th, .conversion-table th, table th {
    background: var(--primary-blue);
    color: white;
    padding: clamp(12px, 2.5vw, 16px);
    text-align: center;
}

.number-system-table td, .conversion-table td, table td {
    padding: clamp(10px, 2vw, 14px);
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.number-system-table tr:nth-child(even), .conversion-table tr:nth-child(even), table tr:nth-child(even) {
    background: #f8f9fa;
}

.truth-table th, .truth-table td {
    border: 1px solid #ddd;
    padding: clamp(8px, 2vw, 12px);
    text-align: center;
}

.truth-table th {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    font-weight: 600;
}

.truth-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Memory Diagram */
.memory-diagram {
    background: #f5f5f5;
    padding: clamp(16px, 3vw, 20px);
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--purple-accent);
    font-family: 'Courier New', monospace;
    font-size: clamp(0.9rem, 2vw, 1rem);
    overflow-x: auto;
}

.memory-address {
    color: var(--purple-accent);
    font-weight: bold;
}

.memory-cell {
    color: var(--dark-blue);
    font-weight: bold;
}

.highlight {
    background-color: #fff9c4;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* Gates Container - Responsive */
.gates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(15px, 3vw, 25px);
    margin: 30px 0;
}

.gate-card {
    background: white;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 25px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

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

.gate-symbol {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.gate-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 15px auto;
    border-radius: 8px;
    display: block;
}

/* Method Grid - Responsive */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(15px, 3vw, 25px);
    margin: 25px 0;
}

.method-card {
    background: white;
    padding: clamp(18px, 4vw, 25px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--green-accent);
}

.method-card h5 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Shortcut Tips */
.shortcut-tip {
    background: #e8f5e9;
    padding: clamp(12px, 2.5vw, 15px);
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--green-accent);
}

.shortcut-tip h6 {
    color: #2e7d32;
    margin-bottom: 8px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.example-box {
    background: #f8f9fa;
    padding: clamp(12px, 2.5vw, 15px);
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.85rem, 2vw, 1rem);
    overflow-x: auto;
}

.example-step {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.example-step::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Course Outline Specific Styles */
.course-outline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(15px, 3vw, 20px);
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: clamp(20px, 4vw, 30px);
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5em);
    font-weight: 300;
}

.header h2 {
    margin: 10px 0 0 0;
    font-weight: 300;
    opacity: 0.9;
    font-size: clamp(1.2rem, 3vw, 1.5em);
}

.instructor-info {
    background: var(--light-blue);
    padding: clamp(15px, 3vw, 20px);
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    text-align: center;
    padding: 10px 15px;
    flex: 1;
    min-width: 140px;
}

.info-item strong {
    color: var(--dark-blue);
    display: block;
    margin-bottom: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.info-item span {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.week-navigation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: clamp(15px, 3vw, 20px);
    border-radius: 10px;
    margin: 30px 0;
    border: 2px solid var(--accent-blue);
}

.week-navigation h3 {
    color: var(--dark-blue);
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 3vw, 1.4em);
}

.week-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.week-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 24px);
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(0.85rem, 2vw, 0.95em);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(90px, 15vw, 120px);
    text-align: center;
}

.week-button:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.week-button::before {
    content: "📅";
    margin-right: 8px;
    font-size: 1.1em;
}

/* Week section colors */
.week-button:nth-child(1) { background: #1a73e8; }
.week-button:nth-child(2) { background: #4285f4; }
.week-button:nth-child(3) { background: #5c6bc0; }
.week-button:nth-child(4) { background: #3f51b5; }
.week-button:nth-child(5) { background: #3949ab; }
.week-button:nth-child(6) { background: #303f9f; }
.week-button:nth-child(7) { background: #283593; }
.week-button:nth-child(8) { background: #1a237e; }
.week-button:nth-child(9) { background: #0d47a1; }
.week-button:nth-child(10) { background: #1565c0; }

.week-section {
    margin-bottom: 25px;
    padding: clamp(18px, 4vw, 25px);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-margin-top: 80px;
}

.week-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.week-title {
    color: var(--dark-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.week-title::before {
    content: "📅";
    margin-right: 10px;
    font-size: 1.2em;
}

.week-link {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 0.9em);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.week-link:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.week-link::before {
    content: "📖";
    margin-right: 6px;
}

.learning-objectives {
    background: linear-gradient(135deg, var(--light-blue) 0%, #ffffff 100%);
    padding: clamp(15px, 3vw, 20px);
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
}

.learning-objectives strong {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin: 20px 0;
}

.assessment-section {
    background: var(--light-blue);
    padding: clamp(25px, 5vw, 30px);
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.assessment-section h2 {
    color: var(--dark-blue);
    margin-top: 0;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.assessment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin-top: 30px;
}

.assessment-card {
    background: white;
    padding: clamp(20px, 4vw, 25px);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.assessment-percentage {
    font-size: clamp(2rem, 5vw, 2.5em);
    font-weight: bold;
    color: var(--primary-blue);
    margin: 10px 0;
}

.assessment-type {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.textbook-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    padding: clamp(20px, 4vw, 25px);
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #34a853;
}

.textbook-section h3 {
    color: #2e7d32;
    margin-top: 0;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.textbook-section p {
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.teaching-approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin: 30px 0;
}

.approach-item {
    text-align: center;
    padding: clamp(15px, 3vw, 20px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.approach-item::before {
    content: "✓";
    display: block;
    font-size: clamp(1.5rem, 4vw, 2em);
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.cyber-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 2vw, 0.8em);
    margin-left: 10px;
    margin-bottom: 5px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    display: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.quick-note {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: clamp(0.85rem, 2vw, 0.9em);
    color: #2e7d32;
    text-align: center;
    border: 1px solid #c8e6c9;
}

/* Index.html specific styles */
.index-body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: clamp(30px, 8vw, 50px);
    direction: rtl;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 15px 12px;
    }

    .course-header {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .content-section {
        padding: 20px 15px;
        border-left-width: 4px;
    }

    .in-class-activity,
    .homework-assignment {
        padding: 20px 15px;
    }

    .journey-section {
        padding: 25px 15px;
    }

    li {
        padding-left: 28px;
    }

    .topic-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Mobile Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 20px 18px;
    }

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

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

/* Tablet Devices (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 30px 25px;
    }

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

/* Small Desktop (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        padding: 35px 30px;
    }
}

/* Large Desktop (1201px and above) */
@media (min-width: 1201px) {
    .container {
        max-width: 1400px;
        padding: 40px 35px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .button:hover,
    .week-button:hover,
    .week-link:hover,
    .gate-card:hover,
    .assessment-card:hover {
        transform: none;
    }

    .button:active,
    .week-button:active,
    .week-link:active {
        transform: scale(0.98);
    }

    li::before {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .back-to-top,
    .button,
    .week-navigation {
        display: none !important;
    }

    .container {
        padding: 10px;
        max-width: 100%;
    }

    .content-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --dark-blue: #000080;
        --text-dark: #000000;
    }

    .definition-box,
    .note-box,
    .key-concept {
        border-width: 3px;
    }
}