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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header tar hela bredden */
header {
    text-align: center;
    margin: -20px -20px 4rem -20px; /* Negativ margin för att bryta ut ur container */
    padding: 1rem 0 2rem 0; /* Mindre höjd */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100vw; /* Hela viewportens bredd */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Innehållet i headern ska vara centrerat och begränsat */
header .main-nav,
header .hero-section,
header .logo-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 0.8rem; /* Mindre gap */
    margin: 0 auto 1.5rem; /* Mindre margin */
    flex-wrap: wrap;
    max-width: 350px; /* Mindre bredd */
}

.course-logo {
    width: 40px; /* Mindre loggor */
    height: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.course-logo-link {
    display: block;
    text-decoration: none;
}

.course-logo:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 2.5rem; /* Mindre rubrik */
    margin-bottom: 0.3rem; /* Mindre margin */
    font-weight: 700;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.2rem; /* Mindre subtitle */
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.intro-section {
    background: white;
    padding: 4rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 4rem;
    border-left: 4px solid #48bb78;
}

.intro-section h2 {
    color: #1a202c;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.intro-text {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fef5e7 0%, #f0fff4 100%);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #38a169;
    display: block;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.courses-section h2 {
    text-align: center;
    color: #1a202c;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.course-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.course-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.course-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
}

.course-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.difficulty {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.course-content {
    padding: 2.5rem;
}

.course-description {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.why-learn-section {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.why-learn-section h4 {
    color: #22543d;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.why-learn-text {
    color: #276749;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.skills-tag {
    background: #e6fffa;
    color: #234e52;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0 0;
    display: inline-block;
}

.career-section {
    background: #f7fafc;
    border: 1px solid #bee3f8;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.career-section h4 {
    color: #2b6cb0;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.career-jobs, .career-paths, .continuation-studies {
    color: #2d3748;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.career-jobs {
    font-weight: 500;
}

.continuation-studies {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 0;
}

.prerequisites {
    background: #fffbf0;
    border: 1px solid #f6e05e;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.prerequisites strong {
    color: #744210;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.prerequisites span {
    color: #975a16;
    font-size: 0.875rem;
}

.chapter-preview {
    margin-bottom: 2rem;
}

.chapter-preview h4 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.chapter-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
}

.chapter-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.chapter-item:hover {
    background: #edf2f7;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chapter-item a:hover {
    color: #5a67d8;
}

.chapter-item small {
    display: block;
    color: #AAA;
    font-size: 9px;
    padding: 0 0 0 28px;
}

.chapter-number {
    color: #667eea;
    font-weight: 600;
    margin-right: 0.75rem;
}

.course-buttons {
    display: flex;
    gap: 1rem;
}

.course-button {
    flex: 1;
    padding: 1.25rem 2rem;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-secondary {
    background: #FFF;
    color: #666;
    border-color: #AAA;
}

.btn-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.4);
}

.btn-full {
    width: 100%;
    flex: none;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    margin-top: 6rem;
    padding: 4rem 2rem;
    background: #f7fafc;
    color: #4a5568;
}

footer h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    max-width: 800px;
    margin: 0 auto 1rem;
}

footer a {
    color: #FFF;
}

.copyright {
    margin-top: 2rem;
    color: #718096;
}

/* Övningsuppgifter sektion */
.exercise-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.6rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
    height: 44px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover {
    border-color: #cbd5e0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
    flex: 1;
}

/* Förbättrad sökruta */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 44px;
}

.search-container input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background: #ffffff;
}

.search-container input::placeholder {
    color: #a0aec0;
    transition: color 0.2s ease;
    font-style: italic;
}

.search-container input:focus::placeholder {
    color: #cbd5e0;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.search-container input:focus + .search-icon {
    color: #667eea;
}

/* Clearing X icon när det finns text */
.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear:hover {
    background: #cbd5e0;
    color: #2d3748;
    transform: translateY(-50%) scale(1.1);
}

.search-clear.show {
    display: flex;
}

/* Responsiv anpassning för sökrutan */
@media (max-width: 768px) {
    .search-container input {
        font-size: 16px; /* Förhindrar zoom på iOS */
        height: 48px;
    }
    
    .search-container input::placeholder {
        font-size: 14px;
    }
}

#clear-filters {
    align-self: flex-end;
    padding: 0.6rem 1.2rem;
    height: 44px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 101, 101, 0.2);
}

#clear-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 101, 101, 0.3);
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.exercise-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #edf2f7;
    border-radius: 6px;
}

.stats-summary {
    font-weight: 600;
    color: #2d3748;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 500;
    color: #4a5568;
}

.sort-options select {
    padding: 0.4rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: white;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.exercise-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exercise-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.difficulty-A {
    background: #c6f6d5;
    color: #22543d;
}

.difficulty-B {
    background: #fef5e7;
    color: #c05621;
}

.difficulty-C {
    background: #fed7d7;
    color: #c53030;
}

.time-estimate {
    background: #e6fffa;
    color: #234e52;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.exercise-content {
    margin: 1rem 0;
}

.exercise-preview {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.exercise-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.exercise-link {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.exercise-id small {
    color: #a0aec0;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

.section-description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Paginering */
.pagination-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: #edf2f7;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .logo-grid {
        gap: 0.5rem;
    }
    
    .course-logo {
        width: 40px;
        height: 40px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-section, .course-content, .course-header {
        padding: 2rem;
    }
    
    /* Mobila anpassningar för övningsuppgifter */
    .exercise-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .exercise-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .exercises-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exercise-card {
        padding: 1rem;
    }
    
    .exercise-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .exercise-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    /* Mobila anpassningar för paginering */
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===============================
   NAVIGATION STYLES
   =============================== */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* ===============================
   HERO SECTION STYLES
   =============================== */
.hero-section {
    text-align: center;
    margin: 1rem 0; /* Mindre margin */
    padding: 1rem 0; /* Mindre padding */
}

.hero-subtitle {
    font-size: 1.2rem; /* Något mindre */
    margin-bottom: 0.5rem; /* Mindre margin */
    opacity: 0.9;
}

.hero-description {
    font-size: 1rem; /* Något mindre */
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   VALUE PROPOSITION STYLES
   =============================== */
.value-proposition {
    background: #f8fafc;
    padding: 4rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.value-proposition h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 3rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.value-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* ===============================
   MAIN SECTIONS STYLES
   =============================== */
.main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.section-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.section-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-content {
    padding: 2.5rem;
}

.section-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.section-highlights {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.highlight-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.disciplines-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.discipline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.discipline-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.more-disciplines {
    text-align: center;
    padding: 1rem;
    color: #ffd700;
    font-weight: bold;
}

.exercise-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 2rem 0;
}

.feature {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Section header with icon */
.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

/* Sample exercises */
.sample-exercises {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sample-exercises h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exercise-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.exercise-link:hover {
    transform: translateY(-2px);
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.exercise-link:hover .exercise-item {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exercise-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.exercise-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.exercise-meta {
    display: flex;
    align-items: left;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    justify-content: flex-start;
}

.exercise-meta .subject {
    font-size: 0.8rem;
    color: #ffd700;
    font-weight: 500;
}

.exercise-meta .difficulty {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 500;
}

.difficulty-a {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.difficulty-b {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
}

.difficulty-c {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.exercise-question {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ===============================
   CTA BUTTON STYLES
   =============================== */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button.primary {
    background: #4299e1;
    color: white;
}

.cta-button.primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: #edf2f7;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.cta-button.secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ===============================
   SUCCESS PATH STYLES
   =============================== */
.success-path {
    background: #f7fafc;
    padding: 4rem 0;
    margin: 4rem 0;
    text-align: center;
    width: 100%;
}

.success-path h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 3rem;
}

.path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    text-align: center;
}

.step-number {
    background: #4299e1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.step p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-arrow {
    font-size: 1.5rem;
    color: #a0aec0;
    font-weight: bold;
}

/* ===============================
   SUBJECTS OVERVIEW STYLES
   =============================== */
.subjects-overview {
    margin: 4rem 0;
    text-align: center;
}

.subjects-overview h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 3rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.subject-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

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

.subject-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.subject-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.subject-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subject-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.difficulty,
.chapters {
    font-size: 0.8rem;
    color: #718096;
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.subject-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    font-size: 0.8rem;
    background: #e6fffa;
    color: #285e61;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.subjects-cta {
    margin-top: 3rem;
}

/* ===============================
   STATS SECTION STYLES
   =============================== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-section .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stats-section .stat-number {
    color: #ffd700;
}

.stats-section .stat-description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===============================
   FINAL CTA STYLES
   =============================== */
.final-cta {
    background: #f7fafc;
    padding: 4rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===============================
   FOOTER STYLES
   =============================== */
footer {
    margin: 4rem -20px 0 -20px; /* Negativ margin för att bryta ut ur container */
    padding: 2rem 0; /* Mindre höjd */
    background: #2d3748;
    color: white;
    text-align: center;
    width: 100vw; /* Hela viewportens bredd */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Innehållet i footern ska vara centrerat och begränsat */
footer > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

footer h3 {
    font-size: 1.3rem; /* Mindre rubrik */
    margin-bottom: 1rem; /* Mindre margin */
}

footer p {
    line-height: 1.6;
    margin-bottom: 1rem; /* Mindre margin */
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0; /* Mindre margin */
    flex-wrap: wrap;
}

.footer-links a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #63b3ed;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    padding-top: 1rem; /* Mindre padding */
    margin-top: 1rem; /* Mindre margin */
}

/* ===============================
   RESPONSIVE STYLES
   =============================== */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .main-sections {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .path-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .value-proposition,
    .success-path,
    .stats-section,
    .final-cta {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Annons styling */
.ad-container {
    margin: 25px auto;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-container--display {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ad-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.adsbygoogle {
    display: block !important;
}

/* Responsiv annons styling */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 10px;
        padding: 10px;
        border-radius: 6px;
    }
    
    .ad-label {
        font-size: 10px;
        margin-bottom: 8px;
    }
}