body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px !important;
    background-color: #f9f9f9;
}

.header-image {
    width: 100%;
    height: auto;
    max-height: 1080px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Typography */
h1 {
    color: #2c3e50;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

h2 {
    color: #2980b9;
    margin-top: 40px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

h3 {
    color: #16a085;
    margin-top: 25px;
}

h4 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Navigation Components */
.nav-panel {
    background-color: #e8f4fc;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

/* Fixed .nav-item rules for proper horizontal alignment */
.nav-item {
    cursor: pointer;
    margin: 20px 0;
    background-color: #e8f4fc;
    color: #2c3e50;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: auto; /* Ensure no minimum height */
}

/* Nested collapsible items - First level */
.lideranca-interactive-content .nav-item {
    background-color: #e0f0fa; /* Lighter blue for nested items */
    margin: 15px 0 0 0;
    padding: 10px 12px;
    font-size: 0.95em;
}

.lideranca-interactive-content .nav-item:hover {
    background-color: #d8e8f7;
}

/* Double nested items - Second level (Exemplo de Agenda Eficaz) */
.lideranca-interactive-content .lideranca-interactive-content .nav-item {
    background-color: #d8e8f7; /* Even lighter blue for double nesting */
    margin: 12px 0 0 0;
    padding: 8px 10px;
    font-size: 0.9em;
    border-left: 3px solid #2980b9;
}

.lideranca-interactive-content .lideranca-interactive-content .nav-item:hover {
    background-color: #d0e0f5;
}

.nav-item:first-child {
    margin-top: 0;
}

.nav-item:last-child {
    margin-bottom: 0;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

/* Title text inside nav-item */
.nav-item > span:first-child {
    flex: 1; /* Take available space */
    margin-right: 15px; /* Space between text and arrow */
    line-height: 1.4; /* Proper line height */
}

/* Style for the arrow */
.oft-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent arrow from shrinking */
}

.oft-arrow.down {
    transform: rotate(0deg);
}

.oft-arrow.up {
    transform: rotate(180deg);
}

/* Interactive content areas */
.lideranca-interactive-content {
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 0 0 6px 6px;
    margin: -8px 0 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

/* Nested content areas - First level */
.lideranca-interactive-content .lideranca-interactive-content {
    background-color: #f0f5f9;
    border-left: 3px solid #2980b9;
    margin: -5px 0 0 0;
    padding: 12px;
}

/* Double nested content areas - Second level (Exemplo de Agenda Eficaz) */
.lideranca-interactive-content .lideranca-interactive-content .lideranca-interactive-content {
    background-color: #ecf3f9;
    border-left: 2px solid #2471a3;
    margin: -3px 0 0 0;
    padding: 10px;
}

/* ===== REMOVE ALL CONTAINER STYLING ===== */
.section {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    position: relative;
    left: 0 !important;
}

/* Add styling directly to content elements */
.motives, .techniques {
    background-color: #f5f7fa !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

/* Video styling - stands alone */
.section video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background-color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Lists */
ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
    line-height: 1.6;
}

strong {
    color: #2c3e50;
}

/* Utility Classes */
.back-to-top {
    text-align: right;
    margin-top: 25px;
}

.back-to-top a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.intro {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===== LMS CONTAINER STYLING ===== */
.learning-page-content,
.learning-content, 
.content-tab,
#learningPageContent {
    padding: 5px !important;
    margin: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.learning-content-loading {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove LMS container styling */
.learning-page-content,
.learning-content {
    background-color: transparent !important;
}

.content-tab {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Ensure LMS doesn't add styling back */
#learningPageContent .section {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 5px 0 !important;
    width: 100% !important;
}

/* Remove any nested container styles */
.learning-pageContent > *,
.learning-content > *,
.content-tab > * {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove utility class paddings */
.p-15, .px-15, .py-10, .p-10 { 
    padding: 5px !important;
}

/* Quiz Styles */
.oft-quiz-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.oft-quiz-question {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

.oft-quiz-options {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.oft-quiz-option {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.oft-quiz-option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.oft-quiz-option.selected.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.oft-quiz-option.selected.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.oft-quiz-feedback {
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
    font-size: 0.95em;
}

.oft-quiz-feedback.correct {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.oft-quiz-feedback.incorrect {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Practice Container */
.oft-practice-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.oft-checklist {
    margin-top: 15px;
}

.oft-checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.oft-checklist-icon {
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Forum Styles */
.forum-container {
    background: #8B4513;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.forum-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.forum-message {
    color: white;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1em;
}

.forum-btn {
    background: #F5F5DC;
    color: #8B4513;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.forum-btn:hover {
    background: #FFF8DC;
    transform: translateY(-2px);
}


/* Additional classes for IOL content */
.content-highlight {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.technical-specs {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.comparison-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.key-point {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .spec-item {
        flex-direction: column;
    }
    
    .technical-specs {
        padding: 10px;
    }
}


/* Mobile responsive fixes */
@media (max-width: 768px) {
    body {
        padding: 5px !important;
    }
    
    .learning-page-content,
    .learning-content,
    .content-tab,
    #learningPageContent {
        padding: 5px !important;
    }
    
    #learningPageContent .section {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    
    #learningPageContent .section video {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 8px !important;
    }
    
    .nav-item {
        padding: 10px 12px;
        margin: 15px 0;
    }
    
    .lideranca-interactive-content .nav-item {
        padding: 8px 10px;
        margin: 12px 0 0 0;
    }
    
    .lideranca-interactive-content .lideranca-interactive-content .nav-item {
        padding: 7px 9px;
        margin: 10px 0 0 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 3px !important;
    }
    
    .section {
        padding: 0 !important;
        margin: 3px 0 !important;
    }
    
    .section video {
        border-radius: 6px !important;
    }
    
    .motives, .techniques {
        padding: 15px;
    }
    
    .nav-item {
        padding: 10px;
        margin: 12px 0;
        flex-direction: row; /* Keep horizontal layout on mobile */
    }
    
    .nav-item > span:first-child {
        margin-right: 10px;
    }
    
    .lideranca-interactive-content .nav-item {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .lideranca-interactive-content .lideranca-interactive-content .nav-item {
        padding: 7px;
        font-size: 0.85em;
    }
}