/* Methodology Section CSS - matcher eksisterende design */
.methodology-section {
    padding: 5rem 0; /* ØKET for bedre viewport-høyde */
    background-color: rgba(4, 28, 44, 0.6);
    margin: 2rem 0;
}

/* NYE SEKSJONSSTILER */
.methodology-examples-section {
    padding: 5rem 0; /* Samme som methodology-section */
    background-color: rgba(0, 230, 118, 0.05); /* GRØNT tema */
    margin: 2rem 0;
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 10px;
}

.methodology-proof-section {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.15) 0%, 
        rgba(255, 152, 0, 0.1) 25%, 
        rgba(4, 28, 44, 0.8) 50%, 
        rgba(255, 193, 7, 0.1) 75%, 
        rgba(255, 193, 7, 0.05) 100%
    );
    padding: 5rem 0;
    margin: 4rem 0;
    border-radius: 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.methodology-proof-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: #00A7E1;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* GRØNT tema for examples-section */
.methodology-examples-section .section-title {
    color: #00E676;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Problem vs Solution Cards */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.problem-card, .solution-card {
    background-color: #041C2C;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.problem-card {
    border-left: 4px solid #FF5252;
}

.solution-card {
    border-left: 4px solid #00E676;
}

.problem-card:hover, .solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.card-title {
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
}

.problem-title {
    color: #FF5252;
}

.solution-title {
    color: #00E676;
}

.card-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-points li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.problem-card .card-points li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #FF5252;
    font-weight: bold;
    font-size: 1.2rem;
}

.solution-card .card-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00E676;
    font-weight: bold;
    font-size: 1.2rem;
}

.card-points li strong {
    color: white;
}

/* Steps Grid */
.methodology-steps {
    margin-bottom: 4rem;
}

.steps-title {
    color: #00A7E1;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background-color: #041C2C;
    border-radius: 12px;
    padding: 1.6rem;
    text-align: center;
    border: 1px solid rgba(0, 167, 225, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 167, 225, 0.2);
    border-color: #00A7E1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #00A7E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.step-title {
    color: #00A7E1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.step-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Algorithm Principles - GRØNT tema i examples-section */
.algorithm-principles {
    margin-bottom: 4rem;
}

.principles-title {
    color: #00A7E1;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* GRØNT tema for examples-section */
.methodology-examples-section .principles-title {
    color: #00E676;
}

.principles-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.principle-item {
    background-color: #041C2C;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 167, 225, 0.15);
    border-color: rgba(0, 167, 225, 0.3);
}

/* GRØNT tema for examples-section */
.methodology-examples-section .principle-item:hover {
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.3);
}

.principle-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.principle-content h3 {
    color: #00A7E1;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: bold;
}

/* GRØNT tema for examples-section */
.methodology-examples-section .principle-content h3 {
    color: #00E676;
}

.principle-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Method approach - för den inbäddade 3-kort sektionen */
.method-approach {
    margin-bottom: 4rem;
}

.approach-title {
    color: #00A7E1;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.method-card {
    background-color: #041C2C;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 167, 225, 0.3);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 167, 225, 0.2);
    border-color: #00A7E1;
}

.method-card h4 {
    color: #00A7E1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.method-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Proof Section */
.proof-section {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.proof-title {
    color: #00A7E1;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.proof-card {
    background-color: #041C2C;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 167, 225, 0.3);
    transition: all 0.3s ease;
}

.proof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 167, 225, 0.2);
    border-color: #00A7E1;
}

.proof-metric {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00A7E1;
    margin-bottom: 0.5rem;
}

.proof-label {
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.proof-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Proof Explanation */
.proof-explanation {
    background-color: rgba(0, 167, 225, 0.1);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 167, 225, 0.3);
}

.explanation-title {
    color: #00A7E1;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.explanation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.explanation-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.explanation-header {
    color: #00A7E1;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.explanation-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Risk Section - ENHANCED YELLOW GRADIENT */
.risk-section {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.risk-title {
    color: #FFC107;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.risk-icon {
    font-size: 2rem;
}

.risk-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.risk-item {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(4, 28, 44, 0.8));
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-left: 6px solid #FFC107;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.risk-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25);
    border-color: #FFC107;
}

.risk-item h4 {
    color: #FFC107;
    margin: 0 0 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.risk-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* FAQ Section - IMPROVED */
.faq-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.faq-title {
    color: #FFC107;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, rgba(4, 28, 44, 0.9), rgba(255, 193, 7, 0.05));
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 193, 7, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #FFC107;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.faq-item.active {
    border-color: #FFC107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(4, 28, 44, 0.9));
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.faq-question h4 {
    color: #FFC107;
    margin: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: #FFC107;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 193, 7, 0.05);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .principles-grid,
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .methodology-section,
    .methodology-examples-section,
    .methodology-proof-section {
        padding: 3rem 0; /* Redusert på mobile */
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps-grid,
    .principles-grid,
    .proof-grid,
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-content,
    .explanation-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .steps-title,
    .principles-title,
    .proof-title,
    .risk-title,
    .faq-title,
    .approach-title {
        font-size: 1.5rem;
    }
}