.guidelines-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-toggle {
    text-align: right;
    margin-bottom: 10px;
    padding: 10px;
}

.flag {
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 6px;
    padding: 4px 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flag:hover {
    transform: scale(1.2);
}

.active-lang {
    box-shadow: 0 0 5px #333;
    background-color: #4374b94a;
}

/* ===== Layout just for this page ===== */

.guidelines-container {
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px; */
    margin-top: 20px;
    align-items: flex-start;
}

.guidelines-container .left,
.guidelines-container .right {
    box-sizing: border-box;
    width: 100%;
}

/* Side-by-side from 768px and up */
@media (min-width: 768px) {
    .guidelines-container .left,
    .guidelines-container .right {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ===================================== */

.section {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.guidelines-content h1 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.guidelines-content h2 {
    color: #333;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

details {
    margin-top: 10px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

summary:hover {
    background-color: #f0f0f0;
}

.badge {
    display: inline-block;
    background: #007BFF;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}

.flowchart {
    text-align: center;
    margin: 1rem 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.node {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px;
    border-radius: 10px;
    background: #007BFF;
    color: white;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Montserrat', sans-serif;
}

.node:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.arrow {
    display: block;
    margin: 5px auto;
    font-size: 24px;
    color: #333;
}

.branch-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
}

.fr {
    display: none;
}

/* Animation for section transitions */
.section {
    transition: opacity 0.3s ease-in-out;
}

.section.hidden {
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .node {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .branch-row {
        gap: 20px;
    }
    
    .arrow {
        font-size: 20px;
    }
}

/* Print styles */
@media print {
    .lang-toggle {
        display: none;
    }
    
    .node {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
    
    .section {
        break-inside: avoid;
    }
}
