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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #3498db;
}

.sidebar-header h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #bdc3c7;
    font-size: 14px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
    padding-left: 25px;
}

.sidebar-nav a.active {
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    font-weight: bold;
}

.menu-section {
    padding: 20px 20px 10px;
    color: #3498db;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 35px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    background: #2c3e50;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #3498db;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header h2.hindi {
    color: #7f8c8d;
    font-size: 24px;
    margin-bottom: 15px;
}

.page-header .subtitle {
    color: #34495e;
    font-size: 18px;
    margin-bottom: 5px;
}

.page-header .hindi-meaning {
    color: #95a5a6;
    font-size: 16px;
    font-style: italic;
}

/* Cards */
.card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.card.highlight {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left-color: #667eea;
}

/* Features Grid */
.features-section {
    margin: 40px 0;
}

.features-section h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ecf0f1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card .hindi {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.feature-card .meaning {
    color: #95a5a6;
    font-size: 13px;
    font-style: italic;
}

/* Start Steps */
.start-steps {
    list-style: none;
    counter-reset: step-counter;
}

.start-steps li {
    counter-increment: step-counter;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    padding-left: 50px;
}

.start-steps li:last-child {
    border-bottom: none;
}

.start-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 35px;
    height: 35px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.start-steps li strong {
    color: #2c3e50;
    font-size: 16px;
}

.start-steps li .hindi {
    color: #7f8c8d;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.start-steps li a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.start-steps li a:hover {
    text-decoration: underline;
}

/* Tips List */
.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li strong {
    color: #2c3e50;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.tips-list li .hindi {
    color: #7f8c8d;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Hindi Styles */
.hindi {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Arial, sans-serif;
}

.hindi-meaning {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Arial, sans-serif;
}

/* Responsive Design */

/* Tablet View (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .main-content {
        margin-left: 250px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .container {
        padding: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (max 768px) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
    
    .container {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header h2.hindi {
        font-size: 20px;
    }
    
    .page-header .subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .start-steps li {
        padding-left: 45px;
        font-size: 14px;
    }
    
    .start-steps li::before {
        width: 30px;
        height: 30px;
        top: 12px;
    }
}

/* Small Mobile View (max 480px) */
@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header h2.hindi {
        font-size: 18px;
    }
    
    .features-section h3 {
        font-size: 22px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .feature-card .icon {
        font-size: 36px;
    }
    
    .sidebar {
        width: 280px;
    }
}

/* Additional Styles for Lesson Pages */
.lesson-section {
    margin: 30px 0;
}

.phrase-box {
    background: #fff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.phrase-box h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.phrase-box ul {
    list-style: none;
    padding-left: 0;
}

.phrase-box ul li {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.phrase-box .usage,
.phrase-box .example {
    margin: 8px 0;
    font-size: 15px;
}

.phrase-box .meaning {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 8px;
}

.phrase-box .hindi strong {
    color: #2c3e50;
    font-weight: 600;
}

.phrase-box p.hindi {
    background: #f0f7ff;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 8px 0;
    border-left: 3px solid #3498db;
}

/* Dialogue Boxes */
.dialogue-box {
    background: #f8f9fa;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.dialogue-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.dialogue {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.dialogue p {
    margin: 15px 0;
    line-height: 1.8;
}

.dialogue .speaker {
    font-weight: bold;
    color: #2c3e50;
}

/* Vocabulary Grid */
.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vocab-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.vocab-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vocab-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.vocab-item p {
    margin: 8px 0;
    font-size: 14px;
}

/* Week Section Styles */
.week-section {
    margin: 30px 0;
}

.week-content {
    margin-top: 20px;
}

.week-content h4 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.week-content ul {
    list-style: none;
    padding-left: 0;
}

.week-content ul li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.week-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Exercise Boxes */
.exercise-box {
    background: #fff7e6;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.exercise-box h4 {
    color: #d68910;
    margin-bottom: 15px;
    font-size: 18px;
}

.exercise-box ol {
    margin-left: 20px;
    margin-top: 15px;
}

.exercise-box li {
    margin: 12px 0;
    line-height: 1.6;
}

/* Response List */
.response-list li {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #2ecc71;
}

/* Navigation Section */
.navigation-section {
    margin: 40px 0 20px;
}

.navigation-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.navigation-section a:hover {
    text-decoration: underline;
}

/* Intro Section */
.intro-section {
    margin: 30px 0;
}

/* Tips Section */
.tips-section {
    margin: 30px 0;
}

/* Responsive Adjustments for Lesson Pages */
@media screen and (max-width: 768px) {
    .vocab-grid {
        grid-template-columns: 1fr;
    }
    
    .phrase-box,
    .dialogue-box,
    .exercise-box {
        padding: 15px;
    }
    
    .dialogue {
        padding: 10px;
    }
    
    .vocab-item {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .hamburger {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}
